From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

crash moving items

Solved!
Go to solution

Hi all,

 

I keep experiencing a crash when I try to move a large selection of tiles with the keyboard.  This happens to me on LV2009 (full development suite) in Windows 7 Enterprise and LV2010 Student Edition on Win7 Home Premium.  The tiles will move a few clicks with no problem, but if I try to move then a substantial distance, LabVIEW crashes with the an error in drawmgr.cpp line 2970.

 

The LV2009 machine is a Toshiba Portege with integrated graphics.  The other machine is self-built running an NVidia GeForce GTX260.  Both should have the latest WHQL drivers installed.

 

I've attached the error log for reference.

 

Thanks for the help.

 

 

EDIT: I might add that this occurs moving the tiles in the block diagram.

0 Kudos
Message 1 of 17
(3,126 Views)

If the same VI crashes on two different computers with different versions of LV, maybe you should post the VI for people to look at.  It would be useful to see if it happens on other computers.  Does this happen on more than one VI?

 

And by "tiles," I guess you mean functions and nodes on the Block Diagram?  So this ONLY happens on the BD, not on the Front Panel?  What you say a "large selection," what do you mean?  More than one, more than a dozen, more than a hundred?  I've never run into a limit on moving a block of code, but I'd be interested to know if there is a limit.

 

And just a thought--I've sometimes found than the "latest" drivers are not the best for your particular system.  Sometimes going back a version or two may give you a more stable system--that was true with my last nVidia system.

 

I know I haven't answered your question.  I've just tried to clarify a few points that someone else might find helpful.

 

Ed

Edward Motts
Certified LabVIEW Associate Developer
0 Kudos
Message 2 of 17
(3,101 Views)

It's not any specific VI, and I'm not doing anything special (I saw other posts about custom icons causing problems, etc).

 

The problem tends to occur moving sets of maybe 5 or more -- I really haven't wanted to crash LV just so that I can count how many functions I can move without crashing, at least in a non-beta -- functions in the block diagram with a continuous press on the arrow keys.  It's also usually over a longer distance, say moving a section of code instead of just lining things up so they look nicer.

0 Kudos
Message 3 of 17
(3,073 Views)

A guess: How large is your block diagram?  If the size of the diagram exceeds about 16000 pixels many strange things may happen, including crashes.

 

The style guides and good practice suggest keeping the size of the diagram to the size of one screen.

 

Lynn

0 Kudos
Message 4 of 17
(3,068 Views)

 


@johnsold wrote:

A guess: How large is your block diagram?  If the size of the diagram exceeds about 16000 pixels many strange things may happen, including crashes.

 

The style guides and good practice suggest keeping the size of the diagram to the size of one screen.

 

Lynn


 

This can (and should) be done for multiple reasons. The easiest way to achieve this is by use of subVI's.

This helps make the code easier to read and modify later on as well.

Cory K
0 Kudos
Message 5 of 17
(3,063 Views)

Lynn and Cory are definitely right that a large block diagram could be the problem.  There is a limit to the size of the front panel and block diagram, so moving objects a large distance could exceed this limit.  Adding Sub VI's is definitely the best way to reduce the amount of code on a single block diagram.  The link below explains a little more about this limit. 

 

Maximum Size for Front Panel and Block Diagram

 

Justin D

 

 

Justin D.

Applications Engineer
National Instruments
0 Kudos
Message 6 of 17
(3,055 Views)

I was actually trying to contain my diagram within a 1680*1050 space (or 1280*1024, depending on the computer).  I was hoping to have one of my problematic VI's in my dropbox so I could post it.

0 Kudos
Message 7 of 17
(3,048 Views)

 


@Alston P. wrote:

I was actually trying to contain my diagram within a 1680*1050 space (or 1280*1024, depending on the computer).  I was hoping to have one of my problematic VI's in my dropbox so I could post it.


It would be easier to just upload the VI directly, rather than posting in on a 3rd party site.

 

Cory K
0 Kudos
Message 8 of 17
(3,040 Views)

I had planned on posting directly...  I meant that I didn't have it on hand to post at all.  It's saved to the hard drive on my desktop at home.

 

One of the problematic VIs is similar to the one I've attached.  I have a couple of versions where I am experimenting with different routines trying to work out how I want to do the program, so there is a lot of extra white space in the code right now.  The other VI that failed on me was a lot smaller in scope and was something I was building to use as a sub VI.

 

---

 

...and the computer is out to make me look like a liar this morning.  I haven't been able to reproduce the error I have been getting.  The error log on the laptop more or less mirrors the log I attached in the 1st post.  GDI calls failing, bad color depth, unable to create 24 pen.

 

 

0 Kudos
Message 9 of 17
(3,030 Views)

Was the navigation window open or closed when you were doing the moves and LV crashed?  It is open or closed now when it is working?

 

Not that it should cause a crash, but I know that when the Navigation Window is open, moves can take a bit longer or be slower because LV needs to calculate the graphics to show in the Navigation Window as well.  Just thinking that it might be what is putting your LV over the edge and causing the crash to happen.

0 Kudos
Message 10 of 17
(3,020 Views)