Crash creating textures when switching GLCanvas for GLJPanel
Posted by gregirvine on Nov 01, 2012; 5:07am
URL: https://forum.jogamp.org/Crash-creating-textures-when-switching-GLCanvas-for-GLJPanel-tp4026694.html
I'm trying to test the performance difference between GLJPanel and GLCanvas, simply by instantiating a GLJPanel instead of a GLCanvas. I get a strange crash while attempting to generate textures (for fonts) after the application is online (by which point it's already generated some textures for smaller fonts).
I'd guess the context is null based on:
GL4bcImpl.java:6330final long __addr_ = ((GL4bcProcAddressTable)_context.getGLProcAddressTable())._addressof_glGenTextures;
2012-11-01 15:54:18,349 FATAL [AWT-EventQueue-0] UncaughtExceptionHandler -
java.lang.NullPointerException
at jogamp.opengl.gl4.GL4bcImpl.glGenTextures(GL4bcImpl.java:6330)
JOGL2rc10, Windows 7
Init on Thread[AWT-EventQueue-0,6,main]
Chosen GLCapabilities: GLCaps[wgl vid 0x1a6 arb: offscr, rgba 0x8/8/8/8, opaque, accum-rgba 16/16/16/16, dp/st/ms: 24/0/2, sample-ext default, one, mono , hw, GLProfile[GL4bc/GL4bc.hw], pbuffer [r2t 0, r2tr 0, float 0]]
INIT GL IS: jogamp.opengl.gl4.GL4bcImpl
GL_VENDOR: NVIDIA Corporation
GL_RENDERER: Quadro K1000M/PCIe/SSE2
GL_VERSION: 4.2.0
GL GLSL: true, has-compiler: true, version 4.20 NVIDIA via Cg compiler
GL Profile: GLProfile[GL4bc/GL4bc.hw]
GL:jogamp.opengl.gl4.GL4bcImpl@1e019cc, 4.2 (Compatibility profile, arb, ES2 compatible, FBO, hardware) - 4.2.0