LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unit Test Framework Bug: Removing a test vector file causes LV to crash

Sounds like a plan. I'm glad you're at least avoiding the issue now.

Will
CLA, CLED, CTD, CPI
LabVIEW Champion
Choose Movement Consulting
choose-mc.com
0 Kudos
Message 11 of 20
(1,650 Views)

Hey Will,

 

I started having this problem again.  Not the exact same problem--this time it's crashing when I try to remove unit tests instead of test vectors.  I've included a zipped up project that is repeatedly crashing, even with everything removed except the unit tests.  The zip also includes a ProcMon trace started right before attempting to remove the unit test from the project and continuing throughout the entire shutdown process.

 

I've also recorded (but not included) a longer ProcMon trace recording the entire process of starting Labview, navigating to the project folder, and attempting to remove the unit test.  Let me know if you want me to upload it to the ftp site.  (It's 35+ mb.)

0 Kudos
Message 12 of 20
(1,625 Views)

Hey, 

 

Thanks for the trace. I noticed that your trace shows an attempt at some TCP communication right before the crash. I ran a trace on my own computer with your project and found that LabVIEW is much less busy than it is on yours. I've forwarded the traces to R&D so they can speculate.

Will
CLA, CLED, CTD, CPI
LabVIEW Champion
Choose Movement Consulting
choose-mc.com
0 Kudos
Message 13 of 20
(1,609 Views)

Hi Daklu,

 

A couple questions:

 

  1. Are you using a volume license? If so, what happens when you disconnect from the license server and attempt to remove a Unit Test? The best way to do this is to disconnect your computer from the network, open LabVIEW, and try to remove a Unit Test. If it says your license is expired, you should be able to find an evaluation license here that you can replace your current license file with. Just ZIP your current license files and replace them with the new trial licenses.
  2. Are you using source control? If so, move your current LabVIEW.ini file outside of the LabVIEW directory and then reopen LabVIEW. Then try removing a Unit Test again.

Please let me know your results.

 

Thanks,

Will
CLA, CLED, CTD, CPI
LabVIEW Champion
Choose Movement Consulting
choose-mc.com
0 Kudos
Message 14 of 20
(1,595 Views)

Yes, I am on a volume license and using TFS for source control.  I'll try to get to the tests you requested on Mon or Tues.

0 Kudos
Message 15 of 20
(1,573 Views)

Okay, I've captured traces from the two tests and attached them.  In both cases Labview still crashed, but I was shown the "Item will be permanently deleted from the project" warning dialog first.

 

To make sure we're on the same page, here are the steps I followed:

1. Downloaded sample code from earlier in the thread, unzipped to my desktop, and opened the project.

2. Navigated to devTest -> BufferedTdms -> Unit Tests and selected Test Close.lvtest.

     (There is always a pause of ~10 seconds when I select a unit test for the first time.)

3. Right clicked Test Close.lvtest and selected Remove From Project...

4. Result - "Labview 10.0 Development System has stopped working" dialog box.  Behavior is the same as before.  Select Close button.

 

5. Moved Labview.ini file to desktop.

6. Opened project.

7. Navigated to devTest -> BufferedTdms -> Unit Tests and selected Test Close.lvtest.

    (No noticable pause when selecting the unit test for the first time.)

8. Started ProcMon trace.

9. Right clicked Test Close.lvtest and selected Remove From Project...

10. Result - "The selected item will be permanently removed from the project" dialog box.  Selected OK.  ~4 second pause.  "Labview 10.0 Development System has stopped working" dialog box.  Select Close button.

11. Stopped trace and saved file as "Labview Unit Test Crashes - No SCC.pml"

 

12. Disconnected from network.  Left Labview.ini on my desktop to prevent LV from attempting to connect to SCC server.

13. Opened project.

14. See dialog box showing 14 days remaining on my backup licenses.  Click Launch Labview.

14. Navigated to devTest -> BufferedTdms -> Unit Tests and selected Test Close.lvtest.

    (No noticable pause when selecting the unit test for the first time.)

15. Started ProcMon trace.

16. Right clicked Test Close.lvtest and selected Remove From Project...

17. Result - "The selected item will be permanently removed from the project" dialog box.  Selected OK.  ~4 second pause.  "Labview 10.0 Development System has stopped working" dialog box.  Select Close button.

18. Stopped trace and saved file as "Labview Unit Test Crashes - No SCC No VLM.pm"

0 Kudos
Message 16 of 20
(1,552 Views)

Hey Daklu,

 

Will is currently out of the office, I ll make sure he gets this update since he has been working with you on this.

 

Regards,

Z'Atari

National Instruments
Applications Engineer
0 Kudos
Message 17 of 20
(1,527 Views)

Bump.  Any new information on this?  It pretty much kills any hope I had of using the UTF.

0 Kudos
Message 18 of 20
(1,445 Views)

Hi Daklu,

 

Sorry, but Will is not available currently.  I will have to contact him to get the project from him and work with my colleagues to take a closer look at this issue.  Can you repost the code to ftp://ftp.ni.com/incoming just in case I'm not able to find it?  Thanks!

0 Kudos
Message 19 of 20
(1,423 Views)

Thanks Kyle.  I've uploaded 'Unit Test Crashes.zip' which contains the project file and unit tests, procmon traces, and a crash report generated by Windows application log.  Let me know if you need anything else.

0 Kudos
Message 20 of 20
(1,386 Views)