0 Replies Latest reply: Dec 13, 2010 10:52 AM by 823491 RSS

    WToolkit EXCEPTION_ACCESS_VIOLATION

    823491
      hello,

      I'm getting said violation doing some graphic actions. I found out that at some point the class WToolkit is constructed and that it crashes. I re-created the issue using the following test:
        public void testTestWToolkit() throws Exception {
          sun.awt.windows.WToolkit wtk = new sun.awt.windows.WToolkit();
          System.out.println(wtk.toString());
      I have no idea what to look for, as far as I can see it's a native part that crashes and I'm not sure how to fix this.

      Any help appreciated!

      #
      # An unexpected error has been detected by HotSpot Virtual Machine:
      #
      #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x61e0559c, pid=2244, tid=1144
      #
      # Java VM: Java HotSpot(TM) Client VM (1.4.2_19-b04 mixed mode)
      # Problematic frame:
      # C  [igdumd32.dll+0x1559c]
      #
      
      ---------------  T H R E A D  ---------------
      
      Current thread (0x005cd790):  JavaThread "main" [_thread_in_native, id=1144]
      
      siginfo: ExceptionCode=0xc0000005, reading address 0x00000000
      
      Registers:
      EAX=0x00000000, EBX=0x0006e204, ECX=0x00000000, EDX=0x0023e968
      ESP=0x0006e160, EBP=0x0006e1e8, ESI=0x00248740, EDI=0x043013d8
      EIP=0x61e0559c, EFLAGS=0x00010287
      
      Top of Stack: (sp=0x0006e160)
      0x0006e160:   61dfe9f7 00000000 61df8f62 043013dc
      0x0006e170:   037209f0 6a03b5cc 00000000 00000000
      0x0006e180:   00000000 00000000 00000000 00000000
      0x0006e190:   00000000 00000000 0023e968 00248740
      0x0006e1a0:   0006e274 00000000 00000000 00000000
      0x0006e1b0:   00000000 00000000 00000000 043013d8
      0x0006e1c0:   043013dc 00248740 037209f0 09279365
      0x0006e1d0:   041e469c 037209f0 0006e204 00248740 
      
      Instructions: (pc=0x61e0559c)
      0x61e0558c:   cc cc cc cc 8b 44 24 04 3b 41 08 73 09 8b 49 04
      0x61e0559c:   8b 04 81 c2 04 00 33 c0 c2 04 00 cc cc cc cc cc 
      
      
      Stack: [0x00030000,0x00070000),  sp=0x0006e160,  free space=248k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      C  [igdumd32.dll+0x1559c]
      C  [ddraw.dll+0x48c9]
      C  [ddraw.dll+0x1ebab]
      C  [ddraw.dll+0x4b90]
      C  [ddraw.dll+0x5068]
      C  [awt.dll+0x6e4bf]
      C  [awt.dll+0x69f9a]
      j  sun.awt.windows.Win32SurfaceData.<clinit>()V+539
      v  ~StubRoutines::call_stub
      V  [jvm.dll+0x755d5]
      V  [jvm.dll+0xaf9a1]
      V  [jvm.dll+0x754e2]
      V  [jvm.dll+0x690fb]
      V  [jvm.dll+0x6908f]
      V  [jvm.dll+0x68120]
      V  [jvm.dll+0xa0ed1]
      V  [jvm.dll+0xa0d11]
      V  [jvm.dll+0x70415]
      j  sun.awt.windows.D3DBlitLoops.register()V+11
      j  sun.awt.windows.Win32OffScreenSurfaceData.initD3D()V+172
      j  sun.awt.windows.Win32OffScreenSurfaceData.<clinit>()V+283
      v  ~StubRoutines::call_stub
      V  [jvm.dll+0x755d5]
      V  [jvm.dll+0xaf9a1]
      V  [jvm.dll+0x754e2]
      V  [jvm.dll+0x690fb]
      V  [jvm.dll+0x6908f]
      V  [jvm.dll+0x68120]
      V  [jvm.dll+0x8f9b2]
      V  [jvm.dll+0x77f60]
      C  [awt.dll+0x98b6b]
      j  sun.awt.windows.WToolkit.initIDs()V+0
      j  sun.awt.windows.WToolkit.<clinit>()V+43
      v  ~StubRoutines::call_stub
      V  [jvm.dll+0x755d5]
      V  [jvm.dll+0xaf9a1]
      V  [jvm.dll+0x754e2]
      V  [jvm.dll+0x690fb]
      V  [jvm.dll+0x6908f]
      V  [jvm.dll+0x68120]
      V  [jvm.dll+0x6fdb4]
      j  ToolkitTest.testTestWToolkit()V+0
      v  ~StubRoutines::call_stub
      V  [jvm.dll+0x755d5]
      V  [jvm.dll+0xaf9a1]
      V  [jvm.dll+0x754e2]
      V  [jvm.dll+0xba819]
      V  [jvm.dll+0xbbdcd]
      V  [jvm.dll+0x90451]
      C  [java.dll+0x62f4]
      j  sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
      j  sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
      j  java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+111
      j  junit.framework.TestCase.runTest()V+108
      j  junit.framework.TestCase.runBare()V+7
      j  junit.framework.TestResult$1.protect()V+4
      j  junit.framework.TestResult.runProtected(Ljunit/framework/Test;Ljunit/framework/Protectable;)V+1
      j  junit.framework.TestResult.run(Ljunit/framework/TestCase;)V+18
      j  junit.framework.TestCase.run(Ljunit/framework/TestResult;)V+2
      j  org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(Lorg/eclipse/jdt/internal/junit/runner/TestExecution;)V+40
      j  org.eclipse.jdt.internal.junit.runner.TestExecution.run([Lorg/eclipse/jdt/internal/junit/runner/ITestReference;)V+17
      j  org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests([Ljava/lang/String;Ljava/lang/String;Lorg/eclipse/jdt/internal/junit/runner/TestExecution;)V+61
      j  org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(Lorg/eclipse/jdt/internal/junit/runner/TestExecution;)V+10
      j  org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run()V+70
      j  org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main([Ljava/lang/String;)V+14
      v  ~StubRoutines::call_stub
      V  [jvm.dll+0x755d5]
      V  [jvm.dll+0xaf9a1]
      V  [jvm.dll+0x754e2]
      V  [jvm.dll+0x7b22c]
      V  [jvm.dll+0x7be91]
      C  [javaw.exe+0x14c4]
      C  [javaw.exe+0x2f11]
      C  [kernel32.dll+0x51174]
      C  [ntdll.dll+0x5b495]
      C  [ntdll.dll+0x5b468]
      
      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      j  sun.awt.windows.Win32SurfaceData.initDDraw(ZZ)V+0
      j  sun.awt.windows.Win32SurfaceData.<clinit>()V+539
      v  ~StubRoutines::call_stub
      j  sun.awt.windows.D3DBlitLoops.register()V+11
      j  sun.awt.windows.Win32OffScreenSurfaceData.initD3D()V+172
      j  sun.awt.windows.Win32OffScreenSurfaceData.<clinit>()V+283
      v  ~StubRoutines::call_stub
      j  sun.awt.windows.WToolkit.initIDs()V+0
      j  sun.awt.windows.WToolkit.<clinit>()V+43
      v  ~StubRoutines::call_stub
      j  ToolkitTest.testTestWToolkit()V+0
      v  ~StubRoutines::call_stub
      j  sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0
      j  sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
      j  sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
      j  java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+111
      j  junit.framework.TestCase.runTest()V+108
      j  junit.framework.TestCase.runBare()V+7
      j  junit.framework.TestResult$1.protect()V+4
      j  junit.framework.TestResult.runProtected(Ljunit/framework/Test;Ljunit/framework/Protectable;)V+1
      j  junit.framework.TestResult.run(Ljunit/framework/TestCase;)V+18
      j  junit.framework.TestCase.run(Ljunit/framework/TestResult;)V+2
      j  org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(Lorg/eclipse/jdt/internal/junit/runner/TestExecution;)V+40
      j  org.eclipse.jdt.internal.junit.runner.TestExecution.run([Lorg/eclipse/jdt/internal/junit/runner/ITestReference;)V+17
      j  org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests([Ljava/lang/String;Ljava/lang/String;Lorg/eclipse/jdt/internal/junit/runner/TestExecution;)V+61
      j  org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(Lorg/eclipse/jdt/internal/junit/runner/TestExecution;)V+10
      j  org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run()V+70
      j  org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main([Ljava/lang/String;)V+14
      v  ~StubRoutines::call_stub
      
      ---------------  P R O C E S S  ---------------
      
      Java Threads: ( => current thread )
        0x03981a58 JavaThread "ReaderThread" [_thread_in_native, id=1060]
        0x01279fb0 JavaThread "CompilerThread0" daemon [_thread_blocked, id=3424]
        0x01237fb0 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=1348]
        0x01236280 JavaThread "Finalizer" daemon [_thread_blocked, id=1276]
        0x01235878 JavaThread "Reference Handler" daemon [_thread_blocked, id=1516]
      =>0x005cd790 JavaThread "main" [_thread_in_native, id=1144]
      
      Other Threads:
        0x012745e8 VMThread [id=2108]
        0x01275850 WatcherThread [id=3776]
      
      VM state:not at safepoint (normal execution)
      
      VM Mutex/Monitor currently owned by a thread: None
      
      Heap
       def new generation   total 576K, used 144K [0x10010000, 0x100b0000, 0x104f0000)
        eden space 512K,  16% used [0x10010000, 0x10024940, 0x10090000)
        from space 64K,  96% used [0x10090000, 0x1009f738, 0x100a0000)
        to   space 64K,   0% used [0x100a0000, 0x100a0000, 0x100b0000)
       tenured generation   total 1408K, used 305K [0x104f0000, 0x10650000, 0x14010000)
         the space 1408K,  21% used [0x104f0000, 0x1053c4e8, 0x1053c600, 0x10650000)
       compacting perm gen  total 4096K, used 2316K [0x14010000, 0x14410000, 0x18010000)
         the space 4096K,  56% used [0x14010000, 0x142530a8, 0x14253200, 0x14410000)
      
      Dynamic libraries:
      0x00400000 - 0x0040b000      C:\Java\j2sdk1.4.2_19\bin\javaw.exe
      0x776d0000 - 0x7780c000      C:\Windows\SYSTEM32\ntdll.dll
      0x77110000 - 0x771e4000      C:\Windows\system32\kernel32.dll
      0x75a10000 - 0x75a5a000      C:\Windows\system32\KERNELBASE.dll
      0x771f0000 - 0x77290000      C:\Windows\system32\ADVAPI32.dll
      0x76b40000 - 0x76bec000      C:\Windows\system32\msvcrt.dll
      0x76b20000 - 0x76b39000      C:\Windows\SYSTEM32\sechost.dll
      0x772e0000 - 0x77381000      C:\Windows\system32\RPCRT4.dll
      0x76a00000 - 0x76ac9000      C:\Windows\system32\USER32.dll
      0x77290000 - 0x772de000      C:\Windows\system32\GDI32.dll
      0x77830000 - 0x7783a000      C:\Windows\system32\LPK.dll
      0x75b80000 - 0x75c1d000      C:\Windows\system32\USP10.dll
      0x75b20000 - 0x75b3f000      C:\Windows\system32\IMM32.DLL
      0x76fe0000 - 0x770ac000      C:\Windows\system32\MSCTF.dll
      0x08000000 - 0x08144000      C:\Java\j2sdk1.4.2_19\jre\bin\client\jvm.dll
      0x741c0000 - 0x741f2000      C:\Windows\system32\WINMM.dll
      0x75720000 - 0x7576b000      C:\Windows\system32\apphelp.dll
      0x10000000 - 0x10007000      C:\Java\j2sdk1.4.2_19\jre\bin\hpi.dll
      0x77810000 - 0x77815000      C:\Windows\system32\PSAPI.DLL
      0x001f0000 - 0x001fe000      C:\Java\j2sdk1.4.2_19\jre\bin\verify.dll
      0x00310000 - 0x00329000      C:\Java\j2sdk1.4.2_19\jre\bin\java.dll
      0x00200000 - 0x0020e000      C:\Java\j2sdk1.4.2_19\jre\bin\zip.dll
      0x005b0000 - 0x005bf000      C:\Java\j2sdk1.4.2_19\jre\bin\net.dll
      0x75b40000 - 0x75b75000      C:\Windows\system32\WS2_32.dll
      0x778c0000 - 0x778c6000      C:\Windows\system32\NSI.dll
      0x751d0000 - 0x7520c000      C:\Windows\system32\mswsock.dll
      0x74d60000 - 0x74d65000      C:\Windows\System32\wshtcpip.dll
      0x03f40000 - 0x04054000      C:\Java\j2sdk1.4.2_19\jre\bin\awt.dll
      0x6d3c0000 - 0x6d411000      C:\Windows\system32\WINSPOOL.DRV
      0x76df0000 - 0x76f4c000      C:\Windows\system32\ole32.dll
      0x74610000 - 0x74650000      C:\Windows\system32\uxtheme.dll
      0x04060000 - 0x040b1000      C:\Java\j2sdk1.4.2_19\jre\bin\fontmanager.dll
      0x69fc0000 - 0x6a0a7000      C:\Windows\system32\ddraw.dll
      0x6dba0000 - 0x6dba6000      C:\Windows\system32\DCIMAN32.dll
      0x76c50000 - 0x76ded000      C:\Windows\system32\SETUPAPI.dll
      0x759e0000 - 0x75a07000      C:\Windows\system32\CFGMGR32.dll
      0x75d20000 - 0x75daf000      C:\Windows\system32\OLEAUT32.dll
      0x758a0000 - 0x758b2000      C:\Windows\system32\DEVOBJ.dll
      0x740e0000 - 0x740f3000      C:\Windows\system32\dwmapi.dll
      0x041e0000 - 0x04288000      C:\Windows\system32\dlumd32.dll
      0x770b0000 - 0x77107000      C:\Windows\system32\SHLWAPI.dll
      0x74e20000 - 0x74e37000      C:\Windows\system32\USERENV.dll
      0x75820000 - 0x7582b000      C:\Windows\system32\profapi.dll
      0x61df0000 - 0x621a1000      C:\Windows\system32\igdumd32.dll
      0x61d20000 - 0x61dec000      C:\Windows\system32\D3DIM700.DLL
      
      VM Arguments:
      jvm_args: -Dfile.encoding=UTF-8
      java_command: org.eclipse.jdt.internal.junit.runner.RemoteTestRunner -version 3 -port 50682 -testLoaderClass org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader -loaderpluginname org.eclipse.jdt.junit.runtime -test ToolkitTest:testTestWToolkit
      Launcher Type: SUN_STANDARD
      
      Environment Variables:
      JAVA_HOME=C:\Java\jdk1.6.0_23
      PATH=C:/Java/jre6/bin/client;C:/Java/jre6/bin;C:/Java/jre6/lib/i386;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Java\jdk1.6.0_23\bin;
      USERNAME=<removed>
      OS=Windows_NT
      PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 Stepping 10, GenuineIntel
      
      
      ---------------  S Y S T E M  ---------------
      
      OS: Windows NT 6.1 Build 7600 
      
      CPU:total 2 family 6, cmov, cx8, fxsr, mmx, sse, sse2
      
      Memory: 4k page, physical 2023668k(705988k free), swap 4047336k(2709988k free)
      
      vm_info: Java HotSpot(TM) Client VM (1.4.2_19-b04) for windows-x86, built on Nov  9 2008 22:01:23 by "java_re" with MS VC++ 6.0
      Edited by: user13469064 on Dec 13, 2010 8:51 AM