LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI crash after (implausible) memory warning

Hello,

when switching between two (large) projects, playing with the menu Options / Color Settings and pressing the Help button I received the following message:

 

mem_1.png

 

 

 

After pressing the OK button CVI was gone, i.e. crashed with changes lost...

It happened twice but so far I couldn't narrow it down to an exact sequence. All I can say is that available memory should not be a problem:

 

mem_2.png

 

 

 

0 Kudos
Message 1 of 15
(3,838 Views)

Hello NI,

I admit that my description so far is not too helpful - all I can say is that calling Help (via F1 or a Help button) caused five crashes of CVI within two weeks, on two different computers, both Win 7 64 bit, CVI2017 and more than sufficient memory.

There is some still unknown prerequisite for causing F1 to crash, it requires some previous work (source code editing, compilation, changing projects...?)

Any suggestions from your side for helping localize this bug would be welcome, thanks!

0 Kudos
Message 2 of 15
(3,787 Views)

How much memory is being used by the cvi.exe process? A 32-bit process has a 2GB limit, even on 64-bit Windows. Depending on how large these projects are, you may be hitting that limit.

 

You can usually use Editbin /LARGEADDRESSAWARE to trick this into a 4GB limit.

https://www.linkedin.com/in/trentweaver
Message 3 of 15
(3,774 Views)

Thank you,

 

I will have a look at this number and report back. Actually I was hoping for some recipe to obtain a crash log you could investigate further Smiley Wink.

 

Anyway, it is not really clear to me why there can be a popup panel warning me (at this time everything is still fine, i.e. CVI is still there), and only after clicking the OK button CVI will crash...  but at this time CVI should know about the potential problem and avoid it (e.g. by not calling the help...).

0 Kudos
Message 4 of 15
(3,771 Views)

Hi Trent,

for the larger of the two projects the cvi.exe process uses about 1.3 GB (I can watch memory consumption increasing as browse information is being built), so its memory consumption is still far from the 2 GB limit. But when using the help after full browse information has been built I experience the crash of CVI...

Any other suggestions?

 

By the way, the help on version could be updated to version 2017, see image below Smiley Wink

help.png

 

 

 

0 Kudos
Message 5 of 15
(3,750 Views)

...and I can add, the crash does depend on this memory consumption - up to about 1.25 GB help works, if more memory is allocated to cvi.exe the help causes cvi to crash.

0 Kudos
Message 6 of 15
(3,750 Views)

How are you checking the memory? If you use performance monitor and add a process counter for CVI, how close does it get to 2GB?

Capture.PNG

 

It sounds like you're running into what's described here, except CVI is shutting down because it can't allocate enough memory to complete the operation. Enabling LAA would also help confirm this if it works in the LAA case. 

 

Trent

https://www.linkedin.com/in/trentweaver
0 Kudos
Message 7 of 15
(3,743 Views)

Thanks Smiley Happy

The values for memory consumption are from the Processes tab of Windows Task Manager. I will also try your /LAA switch suggestion and tell about.

0 Kudos
Message 8 of 15
(3,730 Views)

Hi Trent,

according to what I found out with Google Editbin comes with Microsoft Visual Studio - without VS no editbin, right?

0 Kudos
Message 9 of 15
(3,721 Views)

I was able to get it with just the build tools for VS. I also want to make it clear that i'm suggesting the editbin hack for investigative reasons and not necessarily as a real fix to your problem... I'd like to know if this error condition is valid.

https://www.linkedin.com/in/trentweaver
0 Kudos
Message 10 of 15
(3,712 Views)