Error on Running JOGL 2.0 Example D:

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

Error on Running JOGL 2.0 Example D:

Turelim
Hi guys... i'm new in the world of JOGL, because of it, i'm testing the examples found in the wiki
I can't run any example of code for JOGL2.0, even included that examples with only more than a window D:
when i try to run an example code, my JVM throws an EXCEPTION_ACCESS_VIOLATION, and i can understand why occurs that, when only construct a windows with a GLCanvas.
This is the code:

import java.awt.Frame;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.media.opengl.*;
import javax.media.opengl.awt.GLCanvas;

public class SimpleScene {
    public static void main(String[] args) {
        GLProfile glp = GLProfile.getDefault();
        GLCapabilities caps = new GLCapabilities(glp);
        GLCanvas canvas = new GLCanvas(caps);

        final Frame frame = new Frame("AWT Window Test");
        frame.setSize(300, 300);
        frame.add(canvas);
        frame.setVisible(true);
       
        // by default, an AWT Frame doesn't do anything when you click
        // the close button; this bit of code will terminate the program when
        // the window is asked to close
        frame.addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e) {
                frame.dispose();
                System.exit(0);
            }
        });
    }
}

and this is the error log:
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x03862ae6, pid=3324, tid=3096
#
# JRE version: 7.0-b147
# Java VM: Java HotSpot(TM) Client VM (21.0-b17 mixed mode, sharing windows-x86 )
# Problematic frame:
# C  [atioglx1.dll+0x422ae6]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---------------  T H R E A D  ---------------

Current thread (0x00869000):  JavaThread "main" [_thread_in_native, id=3096, stack(0x00910000,0x00960000)]

siginfo: ExceptionCode=0xc0000005, reading address 0x00044dfc

Registers:
EAX=0x00000000, EBX=0x00869128, ECX=0x00869d5c, EDX=0x22a1773c
ESP=0x0095f6dc, EBP=0x0095f738, ESI=0x0095f7d8, EDI=0x0095f7f4
EIP=0x03862ae6, EFLAGS=0x00010206

Top of Stack: (sp=0x0095f6dc)
0x0095f6dc:   6453c13a 71011640 22a1773c 22a17f4c
0x0095f6ec:   00000100 22a17f5c 22a1836c 0a054e48
0x0095f6fc:   00000055 00000000 03862ae0 22a17f5c
0x0095f70c:   22a17f4c 22a1773c 22a1836c 00000000
0x0095f71c:   71011640 0095f7b8 00992903 00998820
0x0095f72c:   32c87f68 32c87f68 00869000 0095f7b8
0x0095f73c:   0099a5a7 00869128 0095f80c 71011640
0x0095f74c:   00000000 0095f800 00000000 00000000

Instructions: (pc=0x03862ae6)
0x03862ac6:   8b 80 fc 4d 04 00 ff a0 54 07 00 00 cc cc cc cc
0x03862ad6:   cc cc cc cc cc cc cc cc cc cc 64 a1 f0 0b 00 00
0x03862ae6:   8b 80 fc 4d 04 00 ff a0 58 07 00 00 cc cc cc cc
0x03862af6:   cc cc cc cc cc cc cc cc cc cc 64 a1 f0 0b 00 00


Register to memory mapping:

EAX=0x00000000 is an unknown value
EBX=0x00869128 is an unknown value
ECX=0x00869d5c is an unknown value
EDX=
[error occurred during error reporting (printing register info), id 0xc0000005]

Stack: [0x00910000,0x00960000],  sp=0x0095f6dc,  free space=317k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [atioglx1.dll+0x422ae6]
j  jogamp.opengl.windows.wgl.WGLExtImpl.dispatch_wglChoosePixelFormatARB1(JLjava/lang/Object;IZLjava/lang/Object;IZILjava/lang/Object;IZLjava/lang/Object;IZJ)Z+0
j  jogamp.opengl.windows.wgl.WGLExtImpl.wglChoosePixelFormatARB(J[II[FII[II[II)Z+287
j  jogamp.opengl.windows.wgl.WindowsWGLGraphicsConfiguration.wglChoosePixelFormatARB(JLjogamp/opengl/windows/wgl/WindowsWGLDrawableFactory$SharedResource;Ljavax/media/opengl/GLCapabilitiesImmutable;[II[F)[I+86
j  jogamp.opengl.windows.wgl.WindowsWGLGraphicsConfigurationFactory.updateGraphicsConfigurationARB(JZLjogamp/opengl/windows/wgl/WindowsWGLGraphicsConfiguration;Ljavax/media/nativewindow/CapabilitiesChooser;Ljogamp/opengl/windows/wgl/WindowsWGLDrawableFactory;[I)Z+249
j  jogamp.opengl.windows.wgl.WindowsWGLGraphicsConfigurationFactory.updateGraphicsConfiguration(Ljogamp/opengl/windows/wgl/WindowsWGLGraphicsConfiguration;Ljavax/media/nativewindow/CapabilitiesChooser;Ljavax/media/opengl/GLDrawableFactory;JZ[I)V+109
j  jogamp.opengl.windows.wgl.WindowsWGLGraphicsConfigurationFactory.preselectGraphicsConfiguration(Ljavax/media/nativewindow/CapabilitiesChooser;Ljavax/media/opengl/GLDrawableFactory;Ljavax/media/nativewindow/AbstractGraphicsDevice;Ljogamp/opengl/windows/wgl/WindowsWGLGraphicsConfiguration;[I)V+131
j  jogamp.opengl.windows.wgl.WindowsWGLGraphicsConfiguration.preselectGraphicsConfiguration(Ljavax/media/opengl/GLDrawableFactory;[I)V+23
j  jogamp.opengl.windows.wgl.awt.WindowsAWTWGLGraphicsConfigurationFactory.chooseGraphicsConfigurationImpl(Ljavax/media/nativewindow/CapabilitiesImmutable;Ljavax/media/nativewindow/CapabilitiesImmutable;Ljavax/media/nativewindow/CapabilitiesChooser;Ljavax/media/nativewindow/AbstractGraphicsScreen;)Ljavax/media/nativewindow/AbstractGraphicsConfiguration;+299
j  javax.media.nativewindow.GraphicsConfigurationFactory.chooseGraphicsConfiguration(Ljavax/media/nativewindow/CapabilitiesImmutable;Ljavax/media/nativewindow/CapabilitiesImmutable;Ljavax/media/nativewindow/CapabilitiesChooser;Ljavax/media/nativewindow/AbstractGraphicsScreen;)Ljavax/media/nativewindow/AbstractGraphicsConfiguration;+84
j  javax.media.opengl.awt.GLCanvas.chooseGraphicsConfiguration(Ljavax/media/opengl/GLCapabilitiesImmutable;Ljavax/media/opengl/GLCapabilitiesImmutable;Ljavax/media/opengl/GLCapabilitiesChooser;Ljava/awt/GraphicsDevice;)Ljavax/media/nativewindow/awt/AWTGraphicsConfiguration;+46
j  javax.media.opengl.awt.GLCanvas.addNotify()V+74
j  java.awt.Container.addNotify()V+61
j  java.awt.Window.addNotify()V+73
j  java.awt.Frame.addNotify()V+70
j  java.awt.Window.show()V+8
j  java.awt.Component.show(Z)V+5
j  java.awt.Component.setVisible(Z)V+2
j  java.awt.Window.setVisible(Z)V+2
j  SimpleScene.main([Ljava/lang/String;)V+54
v  ~StubRoutines::call_stub
V  [jvm.dll+0x122c7e]
V  [jvm.dll+0x1c9c0e]
V  [jvm.dll+0x122d0d]
V  [jvm.dll+0xa77e4]
V  [jvm.dll+0xb1b77]
C  [java.exe+0x1fd3]
C  [java.exe+0xa0ab]
C  [java.exe+0xa135]
C  [kernel32.dll+0xb729]  GetModuleFileNameA+0x1ba

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  jogamp.opengl.windows.wgl.WGLExtImpl.dispatch_wglChoosePixelFormatARB1(JLjava/lang/Object;IZLjava/lang/Object;IZILjava/lang/Object;IZLjava/lang/Object;IZJ)Z+0
j  jogamp.opengl.windows.wgl.WGLExtImpl.wglChoosePixelFormatARB(J[II[FII[II[II)Z+287
j  jogamp.opengl.windows.wgl.WindowsWGLGraphicsConfiguration.wglChoosePixelFormatARB(JLjogamp/opengl/windows/wgl/WindowsWGLDrawableFactory$SharedResource;Ljavax/media/opengl/GLCapabilitiesImmutable;[II[F)[I+86
j  jogamp.opengl.windows.wgl.WindowsWGLGraphicsConfigurationFactory.updateGraphicsConfigurationARB(JZLjogamp/opengl/windows/wgl/WindowsWGLGraphicsConfiguration;Ljavax/media/nativewindow/CapabilitiesChooser;Ljogamp/opengl/windows/wgl/WindowsWGLDrawableFactory;[I)Z+249
j  jogamp.opengl.windows.wgl.WindowsWGLGraphicsConfigurationFactory.updateGraphicsConfiguration(Ljogamp/opengl/windows/wgl/WindowsWGLGraphicsConfiguration;Ljavax/media/nativewindow/CapabilitiesChooser;Ljavax/media/opengl/GLDrawableFactory;JZ[I)V+109
j  jogamp.opengl.windows.wgl.WindowsWGLGraphicsConfigurationFactory.preselectGraphicsConfiguration(Ljavax/media/nativewindow/CapabilitiesChooser;Ljavax/media/opengl/GLDrawableFactory;Ljavax/media/nativewindow/AbstractGraphicsDevice;Ljogamp/opengl/windows/wgl/WindowsWGLGraphicsConfiguration;[I)V+131
j  jogamp.opengl.windows.wgl.WindowsWGLGraphicsConfiguration.preselectGraphicsConfiguration(Ljavax/media/opengl/GLDrawableFactory;[I)V+23
j  jogamp.opengl.windows.wgl.awt.WindowsAWTWGLGraphicsConfigurationFactory.chooseGraphicsConfigurationImpl(Ljavax/media/nativewindow/CapabilitiesImmutable;Ljavax/media/nativewindow/CapabilitiesImmutable;Ljavax/media/nativewindow/CapabilitiesChooser;Ljavax/media/nativewindow/AbstractGraphicsScreen;)Ljavax/media/nativewindow/AbstractGraphicsConfiguration;+299
j  javax.media.nativewindow.GraphicsConfigurationFactory.chooseGraphicsConfiguration(Ljavax/media/nativewindow/CapabilitiesImmutable;Ljavax/media/nativewindow/CapabilitiesImmutable;Ljavax/media/nativewindow/CapabilitiesChooser;Ljavax/media/nativewindow/AbstractGraphicsScreen;)Ljavax/media/nativewindow/AbstractGraphicsConfiguration;+84
j  javax.media.opengl.awt.GLCanvas.chooseGraphicsConfiguration(Ljavax/media/opengl/GLCapabilitiesImmutable;Ljavax/media/opengl/GLCapabilitiesImmutable;Ljavax/media/opengl/GLCapabilitiesChooser;Ljava/awt/GraphicsDevice;)Ljavax/media/nativewindow/awt/AWTGraphicsConfiguration;+46
j  javax.media.opengl.awt.GLCanvas.addNotify()V+74
j  java.awt.Container.addNotify()V+61
j  java.awt.Window.addNotify()V+73
j  java.awt.Frame.addNotify()V+70
j  java.awt.Window.show()V+8
j  java.awt.Component.show(Z)V+5
j  java.awt.Component.setVisible(Z)V+2
j  java.awt.Window.setVisible(Z)V+2
j  SimpleScene.main([Ljava/lang/String;)V+54
v  ~StubRoutines::call_stub

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x0a119c00 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=3740, stack(0x03290000,0x032e0000)]
  0x0a118000 JavaThread "AWT-Shutdown" [_thread_blocked, id=3104, stack(0x03140000,0x03190000)]
  0x030cd400 JavaThread "main-SharedResourceRunner" daemon [_thread_blocked, id=3052, stack(0x032e0000,0x03330000)]
  0x02fce400 JavaThread "AWT-Windows" daemon [_thread_in_native, id=3440, stack(0x03190000,0x031e0000)]
  0x02fcbc00 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=2744, stack(0x030f0000,0x03140000)]
  0x02c21c00 JavaThread "Service Thread" daemon [_thread_blocked, id=928, stack(0x02e50000,0x02ea0000)]
  0x02c13c00 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=824, stack(0x02e00000,0x02e50000)]
  0x02c12400 JavaThread "Attach Listener" daemon [_thread_blocked, id=3232, stack(0x02db0000,0x02e00000)]
  0x02c10c00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2140, stack(0x02d60000,0x02db0000)]
  0x02c0a400 JavaThread "Finalizer" daemon [_thread_blocked, id=1496, stack(0x02d10000,0x02d60000)]
  0x02c05400 JavaThread "Reference Handler" daemon [_thread_blocked, id=688, stack(0x02cc0000,0x02d10000)]
=>0x00869000 JavaThread "main" [_thread_in_native, id=3096, stack(0x00910000,0x00960000)]

Other Threads:
  0x02c03c00 VMThread [stack: 0x02c70000,0x02cc0000] [id=2328]
  0x02c35400 WatcherThread [stack: 0x02ea0000,0x02ef0000] [id=3644]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 def new generation   total 4928K, used 480K [0x22a00000, 0x22f50000, 0x27f50000)
  eden space 4416K,   2% used [0x22a00000, 0x22a21000, 0x22e50000)
  from space 512K,  68% used [0x22ed0000, 0x22f27240, 0x22f50000)
  to   space 512K,   0% used [0x22e50000, 0x22e50000, 0x22ed0000)
 tenured generation   total 10944K, used 2368K [0x27f50000, 0x28a00000, 0x32a00000)
   the space 10944K,  21% used [0x27f50000, 0x281a02f0, 0x281a0400, 0x28a00000)
 compacting perm gen  total 12288K, used 2877K [0x32a00000, 0x33600000, 0x36a00000)
   the space 12288K,  23% used [0x32a00000, 0x32ccf6e8, 0x32ccf800, 0x33600000)
    ro space 10240K,  45% used [0x36a00000, 0x36e81888, 0x36e81a00, 0x37400000)
    rw space 12288K,  54% used [0x37400000, 0x37a804f8, 0x37a80600, 0x38000000)

Code Cache  [0x00990000, 0x00a50000, 0x02990000)
 total_blobs=488 nmethods=163 adapters=258 free_code_cache=32026Kb largest_free_block=32795264

Dynamic libraries:
0x00400000 - 0x0042e000 C:\Archivos de programa\Java\jdk1.7.0\bin\java.exe
0x7c910000 - 0x7c9c8000 C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c903000 C:\WINDOWS\system32\kernel32.dll
0x77da0000 - 0x77e4c000 C:\WINDOWS\system32\ADVAPI32.dll
0x77e50000 - 0x77ee3000 C:\WINDOWS\system32\RPCRT4.dll
0x77fc0000 - 0x77fd1000 C:\WINDOWS\system32\Secur32.dll
0x7e390000 - 0x7e421000 C:\WINDOWS\system32\USER32.dll
0x77ef0000 - 0x77f39000 C:\WINDOWS\system32\GDI32.dll
0x773a0000 - 0x774a3000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\COMCTL32.dll
0x77be0000 - 0x77c38000 C:\WINDOWS\system32\msvcrt.dll
0x77f40000 - 0x77fb6000 C:\WINDOWS\system32\SHLWAPI.dll
0x76340000 - 0x7635d000 C:\WINDOWS\system32\IMM32.DLL
0x78aa0000 - 0x78b5e000 C:\Archivos de programa\Java\jdk1.7.0\jre\bin\msvcr100.dll
0x6da80000 - 0x6dda1000 C:\Archivos de programa\Java\jdk1.7.0\jre\bin\client\jvm.dll
0x71a50000 - 0x71a5a000 C:\WINDOWS\system32\WSOCK32.dll
0x71a30000 - 0x71a47000 C:\WINDOWS\system32\WS2_32.dll
0x71a20000 - 0x71a28000 C:\WINDOWS\system32\WS2HELP.dll
0x76b00000 - 0x76b2e000 C:\WINDOWS\system32\WINMM.dll
0x76bb0000 - 0x76bbb000 C:\WINDOWS\system32\PSAPI.DLL
0x6da10000 - 0x6da1c000 C:\Archivos de programa\Java\jdk1.7.0\jre\bin\verify.dll
0x6d480000 - 0x6d4a0000 C:\Archivos de programa\Java\jdk1.7.0\jre\bin\java.dll
0x6da60000 - 0x6da73000 C:\Archivos de programa\Java\jdk1.7.0\jre\bin\zip.dll
0x637c0000 - 0x637ca000 C:\Documents and Settings\TuReLiM\Mis documentos\Librerias\JOGL2.0\lib\gluegen-rt.dll
0x6d110000 - 0x6d252000 C:\Archivos de programa\Java\jdk1.7.0\jre\bin\awt.dll
0x770f0000 - 0x7717b000 C:\WINDOWS\system32\OLEAUT32.dll
0x774b0000 - 0x775ed000 C:\WINDOWS\system32\ole32.dll
0x5b150000 - 0x5b188000 C:\WINDOWS\system32\uxtheme.dll
0x746b0000 - 0x746fc000 C:\WINDOWS\system32\MSCTF.dll
0x75160000 - 0x7518e000 C:\WINDOWS\system32\msctfime.ime
0x6d4b0000 - 0x6d4b6000 C:\Archivos de programa\Java\jdk1.7.0\jre\bin\jawt.dll
0x6a440000 - 0x6a44a000 C:\Documents and Settings\TuReLiM\Mis documentos\Librerias\JOGL2.0\lib\nativewindow_awt.dll
0x7e6a0000 - 0x7eec1000 C:\WINDOWS\system32\SHELL32.dll
0x6c100000 - 0x6c110000 C:\Documents and Settings\TuReLiM\Mis documentos\Librerias\JOGL2.0\lib\nativewindow_win32.dll
0x5f120000 - 0x5f1ec000 C:\WINDOWS\system32\OpenGL32.dll
0x5fea0000 - 0x5fec1000 C:\WINDOWS\system32\GLU32.dll
0x736e0000 - 0x7372b000 C:\WINDOWS\system32\DDRAW.dll
0x73b40000 - 0x73b46000 C:\WINDOWS\system32\DCIMAN32.dll
0x64500000 - 0x6456d000 C:\Documents and Settings\TuReLiM\Mis documentos\Librerias\JOGL2.0\lib\jogl_desktop.dll
0x69000000 - 0x694b1000 C:\WINDOWS\system32\atioglxx.dll
0x03440000 - 0x03ab7000 C:\WINDOWS\system32\atioglx1.dll
0x6d3d0000 - 0x6d3fa000 C:\Archivos de programa\Java\jdk1.7.0\jre\bin\fontmanager.dll

VM Arguments:
jvm_args: -Dfile.encoding=UTF-8 -Djava.library.path=C:\Documents and Settings\TuReLiM\Mis documentos\Librerias\JOGL2.0\lib
java_command: SimpleScene
Launcher Type: SUN_STANDARD

Environment Variables:
PATH=C:\Archivos de programa\ThinkPad\Utilities;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Archivos de programa\Archivos comunes\Lenovo;C:\Archivos de programa\ThinkPad\ConnectUtilities;C:\Archivos de programa\ATI Technologies\ATI Control Panel;C:\Archivos de programa\Java\jdk1.6.0_23\bin;C:\masm32\bin
USERNAME=TuReLiM
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 9 Stepping 5, GenuineIntel



---------------  S Y S T E M  ---------------

OS: Windows XP Build 2600 Service Pack 3

CPU:total 1 (1 cores per cpu, 1 threads per core) family 6 model 9 stepping 5, cmov, cx8, fxsr, mmx, sse, sse2

Memory: 4k page, physical 1047472k(97164k free), swap 2917548k(1935828k free)

vm_info: Java HotSpot(TM) Client VM (21.0-b17) for windows-x86 JRE (1.7.0-b147), built on Jun 27 2011 02:25:52 by "java_re" with unknown MS VC++:1600

time: Tue Sep 13 00:12:42 2011
elapsed time: 2 seconds

------------------------------------------------------------------
My Computer has a ATI Radeon Mobile Graphic Card with support for OpenGL 1.3
Reply | Threaded
Open this post in threaded view
|

Re: Error on Running JOGL 2.0 Example D:

gouessej
Administrator
Hi

Some other Windows users have the same problem but I thought this bug had been fixed. Do you use the dev build? Which version of JOGL 2 do you use?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Error on Running JOGL 2.0 Example D:

Turelim
i'm using the signed release, let me try the dev version
Reply | Threaded
Open this post in threaded view
|

Re: Error on Running JOGL 2.0 Example D:

Turelim
I'm just installed the build 466 from https://jogamp.org/deployment/autobuilds/master/ replacing files from the signed release 2.0-b20, but the example still not running; this time the program throws this error:
Exception in thread "main" java.lang.NoSuchFieldError: OS_TYPE
        at javax.media.nativewindow.NativeWindowFactory._getNativeWindowingType(NativeWindowFactory.java:105)
        at javax.media.nativewindow.NativeWindowFactory.initSingleton(NativeWindowFactory.java:181)
        at javax.media.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1168)
        at javax.media.opengl.GLProfile.access$000(GLProfile.java:71)
        at javax.media.opengl.GLProfile$1.run(GLProfile.java:112)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.media.opengl.GLProfile.initSingleton(GLProfile.java:110)
        at javax.media.opengl.GLProfile.validateInitialization(GLProfile.java:1448)
        at javax.media.opengl.GLProfile.getProfileMap(GLProfile.java:1606)
        at javax.media.opengl.GLProfile.get(GLProfile.java:613)
        at javax.media.opengl.GLProfile.getDefault(GLProfile.java:441)
        at javax.media.opengl.GLProfile.getDefault(GLProfile.java:449)
        at SimpleScene.main(SimpleScene.java:9)

suggestions :S??
Reply | Threaded
Open this post in threaded view
|

Re: Error on Running JOGL 2.0 Example D:

gouessej
Administrator
Use Gluegen b399 with JOGL b497. Do not mix any JOGL version with the wrong GlueGen version.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Error on Running JOGL 2.0 Example D:

Turelim
thx gouessej, that resolved the problem :D
Reply | Threaded
Open this post in threaded view
|

Re: Error on Running JOGL 2.0 Example D:

gouessej
Administrator
You're welcome :)
Julien Gouesse | Personal blog | Website