08-12-2022 09:28 AM
Hi,
My LabVIEW application is pretty big size(loads more than 7000 vis when opening the project) and built on Actor framework.
The project doesn't have any file conflicts and missing VIs, runs very fine in the development mode. When I try to make an executable it is crashing or freezing the LabVIEW(most of the time crashing, see below screenshot).
I was able to build the executable a couple of months ago without any issue, later that I have added 3 more actors to the project to add some other features. I have not changed anything on the build configuration apart from the version number.
The build process is crashing when it progresses around 50% Refer bellow screenshot which was taken little before the crash.
What could be the reason and how can I tackle this issue? Any comment will be helpful.
Environment:
I have tried following;
Thank you
Adarsh
LabVIEW from 2006
CLA from 2014
Solved! Go to Solution.
08-13-2022 01:21 PM
Sounds like you might be "running out of room". One thing I noticed is you say you have 8 GB of RAM, and when I "asked Google" how much Virtual Memory you should have, they said between 1.5 and 3 times the amount of physical RAM (or 12 to 24 GB, not 6 GB). I also noticed that you seem to have 67% of your memory committed with about 50% of the build completed -- who knows how much adding your three Actors contributes to the Memory requirements.
Bob Schor
08-14-2022 12:56 AM
Debugging build issues can be tricky.
The "correct" answer is probably to say that at that size you should refactor your app into separate builds (for example, using packed project libraries), so that each build is simpler.
Barring that, here are a couple of options which might help with debugging the issue:
08-14-2022 08:52 AM
Thank you so much for your reply!
I have changed the virtual memory to around 18GB, running the build again.It will be an interesting study.
08-14-2022 08:56 AM
Thank you so much for your reply.
I will try enabling the build log.
08-15-2022 01:52 AM
After increasing virtual memory to 18GB+, the LabVIEW is not crashing but, I get this error now.
08-15-2022 11:19 AM
The first screenshot showing a crash in drawmgr.cpp means that it could be a problem with the GDI object limit:
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P7OGSA0&l=en-US
Per that article you can try to find ways to lower the amount of objects you use, or raise the amount Windows allows, and see if that helps.
09-21-2022 01:58 AM
Thank you so much for the inputs!
After so many experiments, I could catch the GDI object count number when its about crashing, I could see its reaching 10,000.
Now I'm testing it by increasing the Windows 10 GDI objects limit(set to 3x, i.e 30,000). I'll post the outcome.
I have following questions;
09-21-2022 11:26 AM
The GDI count is a factor of both your program AND of your LabVIEW dev environment. One of the things that can take up a lot of them is the size of the things in your palettes. LabVIEW automatically scans your user.lib and instr.lib folders and loads those in the palettes, so if you can remove things from there you don't need that can help without having to trim your program's size.
While deleting front panel controls will reduce the count, it won't reduce it nearly as much as removing files from your libraries that you don't use.
09-26-2022 03:32 AM - edited 09-26-2022 03:50 AM
Thank you for the information.
Further developments;
now the build is crashing with different error.
Translation of the error message is;
We apologize for any inconvenience
There was a problem in LabVIEW 2016. The program must be closed. To help identify the cause of the problem, please send this log to National Instruments. Exception: Access violation (0xC0000005) at EIP=0x0FF0AA7A Version: 16.0f2 (32-bit)
Last error logged in lvlog.txt is;
Last paragraph in the above screenshot:
Not enough memory to complete this operation.
<DEBUG_OUTPUT>
25.09.2022 07:29:38.404
Crash 0x00000000: Crash caught by NIER
File Unknown(0) : Crash 0x00000000: Crash caught by NIER
minidump id: b68405fc-6c86-4bd3-ac5e-90972bc26c41
ExceptionCode: 0xC0000005
</DEBUG_OUTPUT>
0x100011AF - nierInterface <unknown> + 0
0x10005F5A - nierInterface <unknown> + 0
0x100062EC - nierInterface <unknown> + 0
0x745935DA - mscoreei <unknown> + 0
0x773CD9D2 - KERNELBASE <unknown> + 0
0x77DDDE77 - ntdll <unknown> + 0
0x77DA1F34 - ntdll <unknown> + 0
0x00000000 - <unknown> <unknown> + 0