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-tp4043313p4043325.html
Please disregard the calculation that I posted earlier, I took not into account that it was for images with 3 channels.
Below you will find the correct calculation:
-> 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
multiplied with the number of channels (1 mono, 3 RGB)
exceeds a size of 1536MB where 1MB = 1024x1024 Bytes
the crash occurs...
So
an image of size 14145x9430 with 3 channels will load, total pixels = 133.387.350 pixels -> bytes ? * 4 * 3 channels RGB= 3 * 1.600.648.200 bytes
an image of size 14196x9464 with 3 channels will not... total pixels = 134.350.944 pixels -> bytes ? * 4 * 3 channels RGB= 3 * 1.612.211.328 bytes
1536MB = 1024*1024*512*3 bytes = 1.610.612.736 bytes
The size of the float buffer clearly is not the issue, the buffer is created correctly and has the correct size when i try to create the texture.