LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Runnable code crashes LabVIEW on save or run

I have some code that I recently was forced to upgrade from LabVIEW 2009 to 2011 and found that when the code is runnable (no broken arrow) it crashes LabVIEW imediately when running or saving.  Converting to 2012 or 2010 does not solve this.  Only 2009 works.  However, if I uncheck the "Allow debugging" box in properties, the code can be saved and run.

 

Going back to 2009 is not an option as there is much shared code that is 2011 now.  Anyone got any ideas?

0 Kudos
Message 1 of 14
(3,497 Views)

Hi Wise_Owl,

 

When LabVIEW crashes, does it report an error? Also, does the crash occur after a certain action, or is it simply after running the VI? Sometime, even though it seems that the crash is immediate, a certain portion of the code completes before LabVIEW crashes. One option is to try highlight execution or breakpoints to find what part of the code causes the crash. This might help narrow down the cause of the issue.

Regards,

Mike Watts
Product Manager - Modular Instruments
0 Kudos
Message 2 of 14
(3,437 Views)

LabVIEW creates a crash report, attached.  It does this~ 500ms after the save button is pressed, or ~500ms after the run button is pressed (before the code appears to begin to run).

Good thinking about the crash still at some point in the code.  I added breakpoints everywhere to stop before any code is run and get the same crash.  Given that this happens on Save, it would appear to caused by compilation of debuggable code...

 

Thanks,

 

Damian

0 Kudos
Message 3 of 14
(3,414 Views)

Unfortunately, the generic "Access Violation" error does not give us much clues as to what the underlying cause is. To confirm, does this happen everytime you save/run the code (with "Allow debugging" checked)? Or only some of the times?

 

Also, are you able to save other VIs, or do all VIs show the same behavior?

Regards,

Mike Watts
Product Manager - Modular Instruments
0 Kudos
Message 4 of 14
(3,400 Views)

The crash always happens on run/save, but only the main vi.  I've not had a crash while saving any of the sub vi's.

0 Kudos
Message 5 of 14
(3,342 Views)

You might want to try copying all of the info (code, description, etc.) from the main VI, placing it in a new brand new VI, and try to save the new VI. This would remove any doubt that the file has been corrupted in some way or another.

 

 

Regards,

Mike Watts
Product Manager - Modular Instruments
0 Kudos
Message 6 of 14
(3,331 Views)

Mike,

 

Good idea.  I opened the culprit's diagram.  Press CTRL+A and copied its contents to a new vi, e.g. I didn't get any extraneous panel decorations.  Saving caused the same crash.

 

Damian

0 Kudos
Message 7 of 14
(3,327 Views)

While they are fairly rare insane objects can occur and would cause just such a crash.

 

You can often find what the problem is using Heap-Peek


"Should be" isn't "Is" -Jay
0 Kudos
Message 8 of 14
(3,321 Views)

Heap Peek - never heard of it.  I got it working, but the only red objects are "SellList" and these yield nothing when I press "F" button baring a pleasant "ding" sound.  So, this doesn't appear to be caused by an insane object, unless it's this SellList.

0 Kudos
Message 9 of 14
(3,305 Views)

Wise_Owl,

 

Did you click the button to submit the crash report for crash that you attached a screenshot of earlier? I tried looking up the crash but didn't find it. If you recreate the crash, submit the crash report and post back with the crash id (preferably text as it is easier to copy it and make sure it is right) and I can take a look to see if there is any useful information in the crash report. 

 

Thanks,

 

Jeff Peacock 

 

Product Support Engineer | LabVIEW R&D | National Instruments 

0 Kudos
Message 10 of 14
(3,289 Views)