Crash creating textures when switching GLCanvas for GLJPanel

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Crash creating textures when switching GLCanvas for GLJPanel

gregirvine
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


Reply | Threaded
Open this post in threaded view
|

Re: Crash creating textures when switching GLCanvas for GLJPanel

Pixelapp
Do you use the Texture class and TextureIO.newTexture() to create textures?
Reply | Threaded
Open this post in threaded view
|

Re: Crash creating textures when switching GLCanvas for GLJPanel

gregirvine
We use the old demonstrator Texture code that was used to demonstrate Textures (i.e. Texture, TextureFactory, etc) JOGL1.
I'm not sure how different they are to JOGL2's Texture related classes.

I want to keep the initial transition to JOGL2 as minimal as possible.  Removal of code that now exists in JOGL2 is planned as a second step.
Reply | Threaded
Open this post in threaded view
|

Re: Crash creating textures when switching GLCanvas for GLJPanel

Sven Gothel
Administrator
In reply to this post by gregirvine
On 11/01/2012 06:07 AM, gregirvine [via jogamp] wrote:

> 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)
>
>
That's the whole stack trace ?
A bit more information could help a great deal.
Please post the git sha-1 of JOGL you use,
or the build version.

> 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
>
>
And this happens w/ GL2 as well I assume ?








signature.asc (907 bytes) Download Attachment