12-07-2017 02:37 PM
I have the following error popping up in an executable I've built:
Here is the code I believe to be causing this issue:
Is there some underlying memory issue with zip file VIs that im missing? or am I missing something else? Why is the error saying 'error occured at unknown on block diagram'??
Solved! Go to Solution.
12-07-2017 02:46 PM
@dhaugen92 wrote:
I have the following error popping up in an executable I've built:
Here is the code I believe to be causing this issue:
Is there some underlying memory issue with zip file VIs that im missing? or am I missing something else? Why is the error saying 'error occured at unknown on block diagram'??
I am not sure why you would suspect a zip file...
The only glaring item is the "build array" if that code snippet is in a loop.
Ben
12-07-2017 03:05 PM
If it is reliably repeatable you can also turn on highlight execution and figure out exactly what causes it.
But no, to my knowledge there is no problem with the zip vis.
12-08-2017 05:59 AM
How large is your raw data file? I know the zip files will struggle after a certain size.
12-08-2017 08:46 AM - edited 12-08-2017 08:46 AM
@BowenM wrote:
If it is reliably repeatable you can also turn on highlight execution and figure out exactly what causes it.
But no, to my knowledge there is no problem with the zip vis.
it only happens in the executable version of this program...
running source code does not seem to trigger this error......... which makes it even weirder!
12-08-2017 09:59 AM
@crossrulz wrote:
How large is your raw data file? I know the zip files will struggle after a certain size.
Not very large at all. Just a flattened binary string of an array of about 3000-8000 double floating point numbers. probably around 1-5kb
12-08-2017 10:31 AM
What happens if you diagram disable the code in false case?
What code is in the true case?
Ben
12-08-2017 10:33 AM
@Ben wrote:
What happens if you diagram disable the code in false case?
What code is in the true case?
Ben
Havent tried to diagram disable..
in the true case there is no code. nothing happens if its true.
12-08-2017 10:45 AM
Try to flatten the two 2D arrays separately, then append the resulting strings. (Arrays in LabVIEW are contiguous in memory and maybe you are running out of sufficient contiguous space. Doubt it thought by your numbers ...). Can you show us the rest of the code? What is outside the currently visible section?
What happens if you build build some example code containing significantly smaller arrays?
What kind of code is in the subVI that outputs the lower 2D array? Does it have uninitialized shift registers, for example?
12-08-2017 10:54 AM
@altenbach wrote:
Try to flatten the two 2D arrays separately, then append the resulting strings. (Arrays in LabVIEW are contiguous in memory and maybe you are running out of sufficient contiguous space. Doubt it thought by your numbers ...). Can you show us the rest of the code? What is outside the currently visible section?
What happens if you build build some example code containing significantly smaller arrays?
What kind of code is in the subVI that outputs the lower 2D array? Does it have uninitialized shift registers, for example?
The code outside of this screenshot is proprietary. The subVI that outputs the 2D array is used in many other applications at my company, none of which have this memory issue. Pretty much all of the other code of this program is reused in other applications (so is not subject to this investigation), and the memory error pops up when the code enters this particular state of the state machine. The other code in this state is also reused in other applications, and also does not create the memory error.
I've tried instead, inserting the dump from the subVI into the already established array:
If this does not solve the issue, I'll know by around 3:30pm (again, this error happened about every 4 hours)
**the problem with appending the strings is that the space for the 2d array is already allocated, so i fear it will concatenate an array with 3000 values and 10000 empty values with an array of only 500-1000 values, if that makes sense...