Help: Program crashes when using the "draw3D(string, x, y, z, scalefactor)" method of the "TextRenderer" class.

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

Help: Program crashes when using the "draw3D(string, x, y, z, scalefactor)" method of the "TextRenderer" class.

Dalina
Hello! I have a program where I've been using JOGL to draw 3D graphics. Recently I tried inserting some 3D Text over the objects of the 3D scene, and to achieve that, I used the TextRenderer class. The program executes perfectly, but when I try executing it on another PC (older one), the 3D graphic appears correctly for only a second, than it crashes, giving me this type of error:

"A fatal error has been detected by the Java Runtime Environment: EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x4db9a08f, pid=1532, tid=3364 JRE version: Java(TM) SE Runtime Environment (7.0_55-b14) (build 1.7.0_55-b14)  Java VM: Java HotSpot (TM) Client VM (24.55-b03 mixed mode windows-x86) Problematic frame: C [iglicd32.DLL+0x2a08f] ...Failed to write core dump. Minidumps are not enabled by default on client versions of windows...The crash happened outside the Java Virtual Machine in native code..."

I see that the problem is the "draw3D(string, x, y, z, scalefactor)" method from the TextRenderer class, because when I don't use the code line "renderer.draw3D(s, x, y, z, scale);", it won't crash. The code looks something like this:  

      rendererP.begin3DRendering();
      rendererP.setColor(0.0f, 0.2f, 0.5f, 0.9f);
      gl.glMatrixMode(GL_MODELVIEW);
      gl.glPushMatrix();
      gl.glTranslatef((float) pp.getX(), (float) pp.getY(), (float) pp.getZ());
      gl.glRotatef(-90, 1, 0, 0);
      gl.glRotatef(pallet.getReferencePosition().getOrientation() - 90f, 0, 0, 1);
      rendererP.draw3D(pallet.getCode(), 0.0f, 0.0f, 0.0f, 0.09f); -->//This line crashes the program just a second after execution//
      rendererP.flush(); //prova
      rendererP.end3DRendering();
      gl.glPopMatrix();

I also tried downloading the file "iglicd32.dll", which was supposed to update the OpenGL(R) Driver for Intel(R) Graphics Accelerator, but still it won't work...Just in case, the old PC has a Intel(R) Celeron(R) M processor, 1.00GHz, 997 MHz, RAM: 2.00 GB, Operating system 32 bit, Windows 7 Ultimate (year 2009), unlike the new PC which has a Intel(R) Core(TM) i7-3770S CPU @3.10 GHz, RAM: 8.00 GB, Operating System 64 bit, Windows 7 Professional. Any suggestion of what might be the problem? Thank you!
Reply | Threaded
Open this post in threaded view
|

Re: Help: Program crashes when using the "draw3D(string, x, y, z, scalefactor)" method of the "TextRenderer" class.

Sven Gothel
Administrator
On 09/02/2014 05:07 PM, Dalina [via jogamp] wrote:

> Hello! I have a program where I've been using JOGL to draw 3D graphics.
> Recently I tried inserting some 3D Text over the objects of the 3D scene, and
> to achieve that, I used the TextRenderer class. The program executes
> perfectly, but when I try executing it on another PC (older one), the 3D
> graphic appears correctly for only a second, than it crashes, giving me this
> type of error:
>
> "A fatal error has been detected by the Java Runtime Environment:
> EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x4db9a08f, pid=1532, tid=3364
> JRE version: Java(TM) SE Runtime Environment (7.0_55-b14) (build 1.7.0_55-b14)
>  Java VM: Java HotSpot (TM) Client VM (24.55-b03 mixed mode windows-x86)
> Problematic frame: C [iglicd32.DLL+0x2a08f] ...Failed to write core dump.
> Minidumps are not enabled by default on client versions of windows...The crash
> happened outside the Java Virtual Machine in native code..."

> I also tried downloading the file "iglicd32.dll", which was supposed to update
> the OpenGL(R) Driver for Intel(R) Graphics Accelerator, but still it won't
> work...Just in case, the old PC has a Intel(R) Celeron(R) M processor,
> 1.00GHz, 997 MHz, RAM: 2.00 GB, Operating system 32 bit, Windows 7 Ultimate
> (year 2009), unlike the new PC which has a Intel(R) Core(TM) i7-3770S CPU
> @3.10 GHz, RAM: 8.00 GB, Operating System 64 bit, Windows 7 Professional. Any
> suggestion of what might be the problem? Thank you!

We had this issue w/ an 'older' Windows/Intel driver here a few days (?) ago,
search forum.

Nothing we can do about buggy drivers.

>
> I see that the problem is the "draw3D(string, x, y, z, scalefactor)" method
> from the TextRenderer class, because when I don't use the code line
> "renderer.draw3D(s, x, y, z, scale);", it won't crash. The code looks
> something like this:  
>
>       rendererP.begin3DRendering();
>       rendererP.setColor(0.0f, 0.2f, 0.5f, 0.9f);
>       gl.glMatrixMode(GL_MODELVIEW);
>       gl.glPushMatrix();
>       gl.glTranslatef((float) pp.getX(), (float) pp.getY(), (float) pp.getZ());
>       gl.glRotatef(-90, 1, 0, 0);
>       gl.glRotatef(pallet.getReferencePosition().getOrientation() - 90f, 0, 0,
> 1);
>       rendererP.draw3D(pallet.getCode(), 0.0f, 0.0f, 0.0f, 0.09f); -->//This
> line crashes the program just a second after execution//
>       rendererP.flush(); //prova
>       rendererP.end3DRendering();
>       gl.glPopMatrix();
Similar issue as w/ previous reported Windows/Intel bug,
when starting using the GLSL code .. it crashes.

For the next report, it would be helpful to have a most simple complete
test case ofc - however, since this is not our issue, I waiver this request :)

~Sven


signature.asc (828 bytes) Download Attachment