Out of memory exception
fantatik3 opened this issue · 4 comments
When you make an an array, ex: Arr[2] and you access index 1, if then you edit the array to be size 1, the program will crash, if somehow you saved the file, your class will become corrupt.
I can't reproduce the exception but fde1599 limits the array index now. Did you compile ReClass with the newest code?
Yep, updated the source yday, ill make a video later on how to reproduce the issue.
Cheers
EDIT: Actually i think i had an outdated version of the exe and after i got this problem i tried to update.
Issue can probly be resolved by a check in the load of .RCNET file checking if the selected index is bigger than array length - 1.
Sent the .rcnet file thru email, to reproduce just click sGDATA class.
The problem has nothing to do with the array index. You use excessive amounts of array nodes. For example this one in the sGDATA class.
There are three array nodes stacked into each other which means the outer array needs 2416*1*2416*(size of inner node) bytes. And I have seen other nodes with more than 6000 items.
So sure, this needs a lot of memory which may not be available. I don't think there is much I can do if you tell the program to allocate x memory which is not available.

