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-tp4043313p4043323.html

Hi,

The Gl_MAX_TEXTURE_SIZE value on my mac-mini M1 where I have the issue is = 16384

I do not use -XX:MaxDirectMemorySize
I also do not use -XmX, but rather -XX:MaxRAMPercentage=95.
The systems on which the problem occur have at least 16GB of RAM, plenty for such large images.

The vmargs that we use are

-XX:+UseJVMCICompiler -XX:+EagerJVMCI -Dgraal.CompilerConfiguration=enterprise -Dgraal.UsePriorityInlining=false -XX:+UseG1GC -XX:G1PeriodicGCInterval=3000 -XX:MaxGCPauseMillis=500 -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=70 -XX:-ShrinkHeapInSteps -XX:MaxRAMPercentage=95 -Xss1024k -XX:+DisableExplicitGC -Xms512m -Dfile.encoding=UTF-8 -Dsun.java2d.d3d=false -Dsun.java2d.opengl=false -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -Dsun.java2d.metal=false --add-exports java.base/java.lang=ALL-UNNAMED --add-exports java.desktop/sun.awt=ALL-UNNAMED --add-exports java.desktop/sun.java2d=ALL-UNNAMED -Djogamp.gluegen.UseTempJarCache=false

"By the way, even a very old iPhone should support such texture sizes. "
I understand,  so the bug is not nice especiially when it happens only on Apple Silicon macs.. :-( (not the first time that Apple gives me headaches... )