Hi,
I have cannot really give you a simple case, I dont build textures based on images but on data. From each data value I assign a color and build the texture from it.
I have tried with the option -Djogl.glu.nojava but it crashed with log:
An unexpected error has been detected by HotSpot Virtual Machine:
EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x68b27372, pid=5464, tid=1724
Java VM: Java HotSpot™ Client VM (1.5.0_06-b05 mixed mode, sharing)
Problematic frame:
C [GLU32.dll+0x7372]
--------------- T H R E A D ---------------
Current thread (0x02cd7428): JavaThread “AWT-EventQueue-0” [_thread_in_native, id=1724]
siginfo: ExceptionCode=0xc0000005, reading address 0x03db0000
Registers:
EAX=0x00001401, EBX=0x0c09c8b0, ECX=0x00001401, EDX=0x00000001
ESP=0x0362f744, EBP=0x0362f75c, ESI=0x03daf3a0, EDI=0x03db0000
EIP=0x68b27372, EFLAGS=0x00010246
Top of Stack: (sp=0x0362f744)
0x0362f744: 5ed04ba4 000003e9 00001403 00000001
0x0362f754: 00000000 00000c81 0362f7dc 68b27bb7
0x0362f764: 0000042b 000003e9 00000c84 00001401
0x0362f774: 00000000 00000021 00000001 02cd7428
0x0362f784: 26ba40b8 26ba40b8 00000004 00000000
0x0362f794: 00000000 00000000 00000000 00000000
0x0362f7a4: 00000004 00000000 00000000 00000000
0x0362f7b4: 00000000 00000000 00000400 000003e9
Instructions: (pc=0x68b27372)
0x68b27362: 45 08 03 c0 eb 28 66 8b 45 08 eb 22 80 7d 18 00
0x68b27372: 66 0f b6 07 75 18 69 c0 01 01 00 00 eb 10 80 7d
Stack: [0x035f0000,0x03630000), sp=0x0362f744, free space=253k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [GLU32.dll+0x7372]
C [GLU32.dll+0x7bb7]
C [jogl.dll+0x103b1]
j javax.media.opengl.glu.GLU.dispatch_gluBuild2DMipmapsC0(IIIIIILjava/lang/Object;IJ)I+0
j javax.media.opengl.glu.GLU.gluBuild2DMipmapsC(IIIIIILjava/nio/Buffer;)I+56
j javax.media.opengl.glu.GLU.gluBuild2DMipmaps(IIIIIILjava/nio/Buffer;)I+34
j SegyRenderer.initTexture(Ljavax/media/opengl/GL;)V+173
j SegyRenderer.init(Ljavax/media/opengl/GLAutoDrawable;)V+80
j GLDisplay$MyHelpOverlayGLEventListener.init(Ljavax/media/opengl/GLAutoDrawable;)V+29
j com.sun.opengl.impl.GLDrawableHelper.init(Ljavax/media/opengl/GLAutoDrawable;)V+29
j javax.media.opengl.GLCanvas$InitAction.run()V+11
j com.sun.opengl.impl.GLDrawableHelper.invokeGL(Ljavax/media/opengl/GLDrawable;Ljavax/media/opengl/GLContext;Ljava/lang/Runnable;Ljava/lang/Runnable;)V+370
j javax.media.opengl.GLCanvas$DisplayOnEventDispatchThreadAction.run()V+35
j java.awt.event.InvocationEvent.dispatch()V+11
j java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+26
j java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Component;)Z+233
j java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+26
j java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
j java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
j java.awt.EventDispatchThread.run()V+9
v ~StubRoutines::call_stub
V [jvm.dll+0x845a9]
V [jvm.dll+0xd9317]
V [jvm.dll+0x8447a]
V [jvm.dll+0x841d7]
V [jvm.dll+0x9ed69]
V [jvm.dll+0x109fe3]
V [jvm.dll+0x109fb1]
C [MSVCRT.dll+0x2a3b0]
C [kernel32.dll+0xb50b]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j javax.media.opengl.glu.GLU.dispatch_gluBuild2DMipmapsC0(IIIIIILjava/lang/Object;IJ)I+0
j javax.media.opengl.glu.GLU.gluBuild2DMipmapsC(IIIIIILjava/nio/Buffer;)I+56
j javax.media.opengl.glu.GLU.gluBuild2DMipmaps(IIIIIILjava/nio/Buffer;)I+34
j SegyRenderer.initTexture(Ljavax/media/opengl/GL;)V+173
j SegyRenderer.init(Ljavax/media/opengl/GLAutoDrawable;)V+80
j GLDisplay$MyHelpOverlayGLEventListener.init(Ljavax/media/opengl/GLAutoDrawable;)V+29
j com.sun.opengl.impl.GLDrawableHelper.init(Ljavax/media/opengl/GLAutoDrawable;)V+29
j javax.media.opengl.GLCanvas$InitAction.run()V+11
j com.sun.opengl.impl.GLDrawableHelper.invokeGL(Ljavax/media/opengl/GLDrawable;Ljavax/media/opengl/GLContext;Ljava/lang/Runnable;Ljava/lang/Runnable;)V+370
j javax.media.opengl.GLCanvas$DisplayOnEventDispatchThreadAction.run()V+35
j java.awt.event.InvocationEvent.dispatch()V+11
j java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+26
j java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Component;)Z+233
j java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+26
j java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
j java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
j java.awt.EventDispatchThread.run()V+9
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x000366c8 JavaThread “DestroyJavaVM” [_thread_blocked, id=2372]
0x02cdfbc8 JavaThread “Timer-0” [_thread_blocked, id=5840]
=>0x02cd7428 JavaThread “AWT-EventQueue-0” [_thread_in_native, id=1724]
0x02ced398 JavaThread “AWT-Windows” daemon [_thread_in_native, id=3888]
0x02ca25f0 JavaThread “AWT-Shutdown” [_thread_blocked, id=5276]
0x00a98e38 JavaThread “Java2D Disposer” daemon [_thread_blocked, id=5948]
0x00a6ee10 JavaThread “Low Memory Detector” daemon [_thread_blocked, id=6032]
0x00a6db10 JavaThread “CompilerThread0” daemon [_thread_blocked, id=3284]
0x00a6cd30 JavaThread “Signal Dispatcher” daemon [_thread_blocked, id=5988]
0x00a47c18 JavaThread “Finalizer” daemon [_thread_blocked, id=3832]
0x0003f780 JavaThread “Reference Handler” daemon [_thread_blocked, id=1408]
--------------- S Y S T E M ---------------
OS: Windows XP Build 2600 Service Pack 2
CPU:total 2 family 15, cmov, cx8, fxsr, mmx, sse, sse2, ht
Memory: 4k page, physical 2095196k(1159760k free), swap 4032708k(2905596k free)
vm_info: Java HotSpot™ Client VM (1.5.0_06-b05) for windows-x86, built on Nov 10 2005 11:12:14 by “java_re” with MS VC++ 6.0