Re: macOS Apple Silicon bug - [libGLImage.dylib+0x1de2c] storeVecColor_RGBA_UI+0x40

Posted by Mabula on
URL: https://forum.jogamp.org/macOS-Apple-Silicon-bug-libGLImage-dylib-0x1de2c-storeVecColor-RGBA-UI-0x40-tp4043313p4043318.html

WHOOPS, this calculation is nor correct so please disregard this calculation in this post, below I have posted in a new post the correct calculation.
===============NOT CORRECT=====================================

I have done more testing and  I have found the threshold image size on which this error will occur only on Apple Silicon macs.
If the image dimensions = dim_x * dim_y  
multiplied with the number of bytes for the float data  = *4
exceeds a size of 512MB where 1MB = 1024x1024 Bytes
the crash occurs...

So
an image of size 14145x9430 will load    total pixels = 133.387.350 pixels -> bytes ? * 4 = 533.549.400 bytes
an image of size 14196x9464 will not...  total pixels = 134.350.944 pixels -> bytes ? * 4 = 537.403.776 bytes

512MB = 1024*1024*512 bytes = 536870912

Maybe the error occurs due to the size of the FloatBuffer ?
Is it known that this buffer is not allowed to exceed this size on Apple Silicon macs?

===============NOT CORRECT=====================================