java3d
  1. java3d
  2. JAVA3D-644

Crash in Mixed Mode Rendering with OpenGL renderer

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.5.2
    • Fix Version/s: not determined
    • Component/s: j3d-core
    • Labels:
      None
    • Environment:

      Operating System: Windows XP
      Platform: PC
      URL: http://www.sweethome3d.eu

    • Issuezilla Id:
      644

      Description

      Hi,

      I used Mixed Mode Rendering from version 2.3 of Sweet Home 3D to display some navigation arrows in
      the top left of the 3D view, as seen in the following image:
      http://www.sweethome3d.eu/blog/images/2.3/navigationArrows.png
      Miserably, some users reported that this feature makes Sweet Home 3D crash when the Canvas3D
      using Mixed Mode Rendering is resized. This bug seems to be fixed under Windows when renderer is
      forced to DirectX, so it's probably related to J3DGraphics2D implementation in OpenGL renderer.

      The Mixed Mode Rendering I use in Canvases is programmed in the getCanvas3D method described at:
      http://sweethome3d.cvs.sf.net/viewvc/sweethome3d/SweetHome3D/src/com/eteks/sweethome3d/j3d
      /Component3DManager.java?revision=1.7&view=markup#l_139
      and the rendering done in Canvas3D#postRender method is implemented at line 244 in:
      http://sweethome3d.cvs.sf.net/viewvc/sweethome3d/SweetHome3D/src/com/eteks/sweethome3d/swi
      ng/HomeComponent3D.java?revision=1.105&view=markup#l_ 236
      using a J3DGraphics2D instance.

      See also bug report about this issue here:
      http://sourceforge.net/tracker/?func=detail&aid=2976587&group_id=152568&atid=784665
      and forum discussion here:
      http://www.sweethome3d.eu/support/forum/viewthread_thread,1413

      For your information, Sweet Home 3D with default renderer can be run with
      http://www.sweethome3d.eu/SweetHome3D.jnlp
      Sweet Home 3D with DirectX renderer can be run with http://www.sweethome3d.eu/SweetHome3D-
      DirectX.jnlp

        Activity

        Hide
        puybaret added a comment -

        A user reported the hs_err log file he got for his bug. Here it is:
        --------------------------------------------------
        #

        1. A fatal error has been detected by the Java Runtime Environment:
          #
        2. EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x08664dcd, pid=2352, tid=508
          #
        3. JRE version: 6.0_19-b04
        4. Java VM: Java HotSpot(TM) Client VM (16.2-b04 mixed mode, sharing windows-x86 )
        5. Problematic frame:
        6. C [extension105815763305391408.dll+0x4dcd]
          #
        7. If you would like to submit a bug report, please visit:
        8. http://java.sun.com/webapps/bugreport/crash.jsp
        9. The crash happened outside the Java Virtual Machine in native code.
        10. See problematic frame for where to report the bug.
          #

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

        Current thread (0x06c95800): JavaThread "J3D-Renderer-1" [_thread_in_native, id=508,
        stack(0x07ff0000,0x08040000)]

        siginfo: ExceptionCode=0xc0000005, reading address 0xfffffffc

        Registers:
        EAX=0xffffffff, EBX=0x00000000, ECX=0xffffffff, EDX=0x00000000
        ESP=0x0803f7a0, EBP=0x00000000, ESI=0x049159e0, EDI=0x08b79578
        EIP=0x08664dcd, EFLAGS=0x00210246

        Top of Stack: (sp=0x0803f7a0)
        0x0803f7a0: 06c95800 34278d60 0803f854 34278d60
        0x0803f7b0: 00000001 00000011 0803f860 0803f828
        0x0803f7c0: 0803f854 01f72603 01f78269 34278d60
        0x0803f7d0: 0803f8a4 0803f7dc 01f725d7 01f79f47
        0x0803f7e0: 06c95910 0803f8a4 08b79578 00000000
        0x0803f7f0: 00000000 00000000 0000003c 00000000
        0x0803f800: 0000003c 00000001 00000400 00000001
        0x0803f810: 00000290 00000004 ffffffff 0803f86c

        Instructions: (pc=0x08664dcd)
        0x08664dbd: 51 e8 2d eb ff ff 8b 97 b0 02 00 00 8b 44 24 78
        0x08664dcd: 8b 04 82 85 c0 89 44 24 7c 75 24 a1 b4 3c 71 08

        Stack: [0x07ff0000,0x08040000], sp=0x0803f7a0, free space=13d0803f2d4k
        Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        C [extension105815763305391408.dll+0x4dcd]

        [error occurred during error reporting (printing native stack), id 0xc0000005]

        Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
        j javax.media.j3d.NativePipeline.texturemapping(JIIIIIIIIIII[BII)V+0
        j javax.media.j3d.NativePipeline.texturemapping(Ljavax/media/j3d/Context;IIIIIIIIIII[BII)V+32
        j javax.media.j3d.Canvas3D.texturemapping(Ljavax/media/j3d/Context;IIIIIIIIIII[BII)V+30
        j javax.media.j3d.J3DGraphics2DImpl.copyDataToCanvas(IIIIIIII)V+188
        j javax.media.j3d.J3DGraphics2DImpl.doFlush()V+227
        j javax.media.j3d.J3DGraphics2DImpl.flush(Z)V+52
        j
        com.eteks.sweethome3d.swing.HomeComponent3D$1.canvas3DPostRendered(Ljavax/media/j3d/Canv
        as3D;)V+31
        j com.eteks.sweethome3d.j3d.Component3DManager$1.postRender()V+12
        j javax.media.j3d.Renderer.doWork(J)V+6111
        j javax.media.j3d.J3dThread.run()V+19
        v ~StubRoutines::call_stub

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

        Java Threads: ( => current thread )
        0x091e6000 JavaThread "TimerQueue" daemon [_thread_blocked, id=4080,
        stack(0x0ac30000,0x0ac80000)]
        0x091e5c00 JavaThread "J3D-InputDeviceScheduler-1" [_thread_blocked, id=3592,
        stack(0x09f60000,0x09fb0000)]
        0x091e5400 JavaThread "J3D-SoundSchedulerUpdateThread-1" [_thread_blocked, id=3896,
        stack(0x09c10000,0x09c60000)]
        0x06c99c00 JavaThread "J3D-RenderStructureUpdateThread-1" [_thread_blocked, id=3972,
        stack(0x09bc0000,0x09c10000)]
        0x06c99400 JavaThread "J3D-BehaviorScheduler-1" [_thread_blocked, id=3924,
        stack(0x09b70000,0x09bc0000)]
        0x06c99000 JavaThread "J3D-TransformStructureUpdateThread-1" [_thread_blocked, id=4076,
        stack(0x09b20000,0x09b70000)]
        0x06c98800 JavaThread "J3D-RenderingEnvironmentStructureUpdateThread-1" [_thread_blocked,
        id=3176, stack(0x09ad0000,0x09b20000)]
        0x06c98000 JavaThread "J3D-SoundStructureUpdateThread-1" [_thread_blocked, id=4040,
        stack(0x09a80000,0x09ad0000)]
        0x06c97c00 JavaThread "J3D-GeometryStructureUpdateThread-1" [_thread_blocked, id=3000,
        stack(0x08c20000,0x08c70000)]
        0x06c97400 JavaThread "J3D-BehaviorStructureUpdateThread-1" [_thread_blocked, id=4032,
        stack(0x08bd0000,0x08c20000)]
        0x06c96800 JavaThread "AWT-EventQueue-1" [_thread_blocked, id=2972,
        stack(0x08af0000,0x08b40000)]
        0x06c96400 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=492,
        stack(0x08aa0000,0x08af0000)]
        0x06c95c00 JavaThread "AWT-Shutdown" [_thread_blocked, id=484,
        stack(0x08a50000,0x08aa0000)]
        =>0x06c95800 JavaThread "J3D-Renderer-1" [_thread_in_native, id=508,
        stack(0x07ff0000,0x08040000)]
        0x06c95000 JavaThread "J3D-MasterControl-1" [_thread_blocked, id=3948,
        stack(0x07f00000,0x07f50000)]
        0x06c94c00 JavaThread "J3D-NotificationThread" [_thread_blocked, id=3244,
        stack(0x071e0000,0x07230000)]
        0x06c93800 JavaThread "J3D-TimerThread" [_thread_blocked, id=2996,
        stack(0x07140000,0x07190000)]
        0x06c94000 JavaThread "J3D-RenderingAttributesStructureUpdateThread" [_thread_blocked, id=500,
        stack(0x06d60000,0x06db0000)]
        0x06c94400 JavaThread "Thread-10" [_thread_in_native, id=268, stack(0x06e00000,0x06e50000)]
        0x06c92c00 JavaThread "Keep-Alive-Timer" daemon [_thread_blocked, id=3976,
        stack(0x07e60000,0x07eb0000)]
        0x06c92800 JavaThread "TimerQueue" daemon [_thread_blocked, id=176,
        stack(0x07780000,0x077d0000)]
        0x06c92000 JavaThread "D3D Screen Updater" daemon [_thread_blocked, id=3936,
        stack(0x07330000,0x07380000)]
        0x01e3c800 JavaThread "CacheCleanUpThread" daemon [_thread_blocked, id=1496,
        stack(0x070a0000,0x070f0000)]
        0x01e3c000 JavaThread "CacheMemoryCleanUpThread" daemon [_thread_blocked, id=2880,
        stack(0x07050000,0x070a0000)]
        0x01d0b400 JavaThread "DestroyJavaVM" [_thread_blocked, id=2356,
        stack(0x007b0000,0x00800000)]
        0x01e3a000 JavaThread "Javaws Secure Thread" daemon [_thread_blocked, id=3828,
        stack(0x06db0000,0x06e00000)]
        0x01e39800 JavaThread "AWT-Windows" daemon [_thread_in_native, id=2296,
        stack(0x01c00000,0x01d00000)]
        0x01e38800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=2456,
        stack(0x06a90000,0x06ae0000)]
        0x01dfa400 JavaThread "traceMsgQueueThread" daemon [_thread_blocked, id=3156,
        stack(0x069f0000,0x06a40000)]
        0x01dd1c00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2400,
        stack(0x05e40000,0x05e90000)]
        0x01dce400 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2192,
        stack(0x05df0000,0x05e40000)]
        0x01dcd400 JavaThread "Attach Listener" daemon [_thread_blocked, id=2712,
        stack(0x05da0000,0x05df0000)]
        0x01dca400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2204,
        stack(0x05d50000,0x05da0000)]
        0x01d84c00 JavaThread "Finalizer" daemon [_thread_blocked, id=2220,
        stack(0x043e0000,0x04430000)]
        0x01d83800 JavaThread "Reference Handler" daemon [_thread_blocked, id=2268,
        stack(0x042d0000,0x04320000)]

        Other Threads:
        0x01d82000 VMThread [stack: 0x01f10000,0x01f60000] [id=1484]
        0x01dd7000 WatcherThread [stack: 0x05f30000,0x05f80000] [id=2284]

        VM state:not at safepoint (normal execution)

        VM Mutex/Monitor currently owned by a thread: None

        Heap
        def new generation total 5056K, used 3072K [0x13f00000, 0x14470000, 0x1e9a0000)
        eden space 4544K, 58% used [0x13f00000, 0x14193718, 0x14370000)
        from space 512K, 84% used [0x143f0000, 0x1445c970, 0x14470000)
        to space 512K, 0% used [0x14370000, 0x14370000, 0x143f0000)
        tenured generation total 10944K, used 5393K [0x1e9a0000, 0x1f450000, 0x33f00000)
        the space 10944K, 49% used [0x1e9a0000, 0x1eee45f8, 0x1eee4600, 0x1f450000)
        compacting perm gen total 12288K, used 9470K [0x33f00000, 0x34b00000, 0x37f00000)
        the space 12288K, 77% used [0x33f00000, 0x3483fad8, 0x3483fc00, 0x34b00000)
        ro space 10240K, 51% used [0x37f00000, 0x3842ae00, 0x3842ae00, 0x38900000)
        rw space 12288K, 54% used [0x38900000, 0x38f972d8, 0x38f97400, 0x39500000)

        Dynamic libraries:
        0x00400000 - 0x00424000 C:\Program Files\Java\jre6\bin\javaw.exe
        0x77d00000 - 0x77e27000 C:\Windows\system32\ntdll.dll
        0x77e40000 - 0x77f1b000 C:\Windows\system32\kernel32.dll
        0x76ef0000 - 0x76fb6000 C:\Windows\system32\ADVAPI32.dll
        0x765d0000 - 0x76693000 C:\Windows\system32\RPCRT4.dll
        0x76e50000 - 0x76eed000 C:\Windows\system32\USER32.dll
        0x76580000 - 0x765cb000 C:\Windows\system32\GDI32.dll
        0x76fc0000 - 0x76fde000 C:\Windows\system32\IMM32.DLL
        0x76d20000 - 0x76de8000 C:\Windows\system32\MSCTF.dll
        0x77140000 - 0x771ea000 C:\Windows\system32\msvcrt.dll
        0x77e30000 - 0x77e39000 C:\Windows\system32\LPK.DLL
        0x766f0000 - 0x7676d000 C:\Windows\system32\USP10.dll
        0x7c340000 - 0x7c396000 C:\Program Files\Java\jre6\bin\msvcr71.dll
        0x6d800000 - 0x6da97000 C:\Program Files\Java\jre6\bin\client\jvm.dll
        0x74170000 - 0x741a2000 C:\Windows\system32\WINMM.dll
        0x76800000 - 0x76944000 C:\Windows\system32\ole32.dll
        0x76770000 - 0x767fd000 C:\Windows\system32\OLEAUT32.dll
        0x74130000 - 0x74169000 C:\Windows\system32\OLEACC.dll
        0x763b0000 - 0x763dc000 C:\Windows\system32\apphelp.dll
        0x6d7b0000 - 0x6d7bc000 C:\Program Files\Java\jre6\bin\verify.dll
        0x6d330000 - 0x6d34f000 C:\Program Files\Java\jre6\bin\java.dll
        0x6d000000 - 0x6d14a000 C:\Program Files\Java\jre6\bin\awt.dll
        0x71c80000 - 0x71cc2000 C:\Windows\system32\WINSPOOL.DRV
        0x75300000 - 0x7549e000 C:\Windows\WinSxS\x86_microsoft.windows.common-
        controls_6595b64144ccf1df_6.0.6001.18000_none_5cdbaa5a083979cc\COMCTL32.dll
        0x76cc0000 - 0x76d18000 C:\Windows\system32\SHLWAPI.dll
        0x6d290000 - 0x6d298000 C:\Program Files\Java\jre6\bin\hpi.dll
        0x764e0000 - 0x764e7000 C:\Windows\system32\PSAPI.DLL
        0x74e20000 - 0x74e5f000 C:\Windows\system32\uxtheme.dll
        0x6d7f0000 - 0x6d7ff000 C:\Program Files\Java\jre6\bin\zip.dll
        0x70050000 - 0x7020a000 C:\Windows\system32\d3d9.dll
        0x75cc0000 - 0x75cc8000 C:\Windows\system32\VERSION.dll
        0x71900000 - 0x71906000 C:\Windows\system32\d3d8thk.dll
        0x73f90000 - 0x73f9c000 C:\Windows\system32\dwmapi.dll
        0x6e560000 - 0x6e568000 C:\Windows\system32\atiu9pag.dll
        0x6c970000 - 0x6ccfe000 C:\Windows\system32\atiumdag.dll
        0x6c670000 - 0x6c962000 C:\Windows\system32\atiumdva.dll
        0x6d1d0000 - 0x6d1e3000 C:\Program Files\Java\jre6\bin\deploy.dll
        0x75ec0000 - 0x75fb1000 C:\Windows\system32\CRYPT32.dll
        0x76020000 - 0x76032000 C:\Windows\system32\MSASN1.dll
        0x76430000 - 0x7644e000 C:\Windows\system32\USERENV.dll
        0x76410000 - 0x76424000 C:\Windows\system32\Secur32.dll
        0x771f0000 - 0x77cff000 C:\Windows\system32\SHELL32.dll
        0x76ae0000 - 0x76baf000 C:\Windows\system32\WININET.dll
        0x76e40000 - 0x76e43000 C:\Windows\system32\Normaliz.dll
        0x76df0000 - 0x76e35000 C:\Windows\system32\iertutil.dll
        0x76fe0000 - 0x77108000 C:\Windows\system32\urlmon.dll
        0x6d610000 - 0x6d623000 C:\Program Files\Java\jre6\bin\net.dll
        0x77110000 - 0x7713d000 C:\Windows\system32\WS2_32.dll
        0x77f20000 - 0x77f26000 C:\Windows\system32\NSI.dll
        0x75bb0000 - 0x75beb000 C:\Windows\system32\mswsock.dll
        0x75cb0000 - 0x75cb5000 C:\Windows\System32\wship6.dll
        0x6d630000 - 0x6d639000 C:\Program Files\Java\jre6\bin\nio.dll
        0x6d6b0000 - 0x6d6f4000 C:\Program Files\Java\jre6\bin\regutils.dll
        0x6d230000 - 0x6d284000 C:\Program Files\Java\jre6\bin\fontmanager.dll
        0x75890000 - 0x75895000 C:\Windows\System32\wshtcpip.dll
        0x71460000 - 0x714aa000 C:\Windows\system32\RASAPI32.dll
        0x743a0000 - 0x743b4000 C:\Windows\system32\rasman.dll
        0x76270000 - 0x762e5000 C:\Windows\system32\NETAPI32.dll
        0x711c0000 - 0x711f1000 C:\Windows\system32\TAPI32.dll
        0x74f90000 - 0x74f9c000 C:\Windows\system32\rtutils.dll
        0x71870000 - 0x71876000 C:\Windows\system32\sensapi.dll
        0x75ce0000 - 0x75ce7000 C:\Windows\system32\credssp.dll
        0x759e0000 - 0x75a24000 C:\Windows\system32\schannel.dll
        0x758d0000 - 0x758f1000 C:\Windows\system32\NTMARTA.DLL
        0x766a0000 - 0x766ea000 C:\Windows\system32\WLDAP32.dll
        0x76040000 - 0x76051000 C:\Windows\system32\SAMLIB.dll
        0x757c0000 - 0x757cf000 C:\Windows\system32\NLAapi.dll
        0x75e20000 - 0x75e39000 C:\Windows\system32\IPHLPAPI.DLL
        0x75de0000 - 0x75e15000 C:\Windows\system32\dhcpcsvc.DLL
        0x76060000 - 0x7608c000 C:\Windows\system32\DNSAPI.dll
        0x75dd0000 - 0x75dd7000 C:\Windows\system32\WINNSI.DLL
        0x75da0000 - 0x75dc1000 C:\Windows\system32\dhcpcsvc6.DLL
        0x735a0000 - 0x735af000 C:\Windows\system32\napinsp.dll
        0x73580000 - 0x73592000 C:\Windows\system32\pnrpnsp.dll
        0x73540000 - 0x73548000 C:\Windows\System32\winrnr.dll
        0x73520000 - 0x73526000 C:\Windows\system32\rasadhlp.dll
        0x759a0000 - 0x759db000 C:\Windows\system32\rsaenh.dll
        0x10000000 - 0x1000e000 C:\Users\�лек�ей
        \AppData\Local\Temp\extension8505230814731185991.dll
        0x6bf20000 - 0x6bfeb000 C:\Windows\system32\OPENGL32.dll
        0x75050000 - 0x75073000 C:\Windows\system32\GLU32.dll
        0x6df90000 - 0x6e075000 C:\Windows\system32\DDRAW.dll
        0x74390000 - 0x74396000 C:\Windows\system32\DCIMAN32.dll
        0x76950000 - 0x76ada000 C:\Windows\system32\SETUPAPI.dll
        0x75090000 - 0x75097000 C:\Windows\system32\atiglpxx.dll
        0x69030000 - 0x69df7000 C:\Windows\system32\atioglxx.dll
        0x75040000 - 0x75047000 C:\Windows\system32\atigktxx.dll
        0x07eb0000 - 0x07eea000 C:\Windows\system32\atiadlxx.dll
        0x75700000 - 0x7572d000 C:\Windows\system32\WINTRUST.dll
        0x77f30000 - 0x77f59000 C:\Windows\system32\imagehlp.dll
        0x6d360000 - 0x6d366000 C:\Program Files\Java\jre6\bin\jawt.dll
        0x08660000 - 0x08733000 C:\Users\�лек�ей
        \AppData\Local\Temp\extension105815763305391408.dll
        0x6d1a0000 - 0x6d1c3000 C:\Program Files\Java\jre6\bin\dcpr.dll

        VM Arguments:
        jvm_args: -Xbootclasspath/a:C:\Program Files\Java\jre6\lib\javaws.jar;C:\Program
        Files\Java\jre6\lib\deploy.jar;C:\Program Files\Java\jre6\lib\plugin.jar -
        Djava.security.policy=file:C:\Program Files\Java\jre6\lib\security\javaws.policy -DtrustProxy=true -
        Xverify:remote -Djnlpx.home=C:\Program Files\Java\jre6\bin -Dsun.awt.warmup=true -
        Djnlpx.origFilenameArg=C:\Users\�лек�ей
        \AppData\LocalLow\Sun\Java\Deployment\cache\6.0\17\6db71e91-2effb448 -Djnlpx.remove=false -
        Xmx512m -Djnlpx.heapsize=NULL,512m -Djnlpx.splashport=49255 -Djnlpx.jvm=C:\Program
        Files\Java\jre6\bin\javaw.exe
        java_command: com.sun.javaws.Main -offline C:\Users\�лек�ей
        \AppData\LocalLow\Sun\Java\Deployment\cache\6.0\17\6db71e91-2effb448
        Launcher Type: SUN_STANDARD

        Environment Variables:
        CLASSPATH=.;C:\Program Files\QuickTime\QTSystem\QTJava.zip
        PATH=C:\Program
        Files\Java\jre6\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program
        Files\QuickTime\QTSystem\;C:\Program Files\Common Files\DivX Shared\;D:\php-5.3.1;C:\Program
        Files\MySQL\MySQL Server 5.1\bin;C:\Program Files\Sun\JavaDB\bin;"C:\Program Files\Java\jre6\bin"
        USERNAME=�лек�ей
        OS=Windows_NT
        PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 11, GenuineIntel

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

        OS: Windows Vista Build 6001 Service Pack 1

        CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 15 stepping 11, cmov, cx8, fxsr, mmx,
        sse, sse2, sse3, ssse3

        Memory: 4k page, physical 3142344k(1942128k free), swap 6539720k(5477936k free)

        vm_info: Java HotSpot(TM) Client VM (16.2-b04) for windows-x86 JRE (1.6.0_19-b04), built on Mar 9
        2010 00:48:41 by "java_re" with MS VC++ 7.1 (VS2003)

        time: Thu Apr 15 08:54:09 2010
        elapsed time: 16 seconds

        Show
        puybaret added a comment - A user reported the hs_err log file he got for his bug. Here it is: -------------------------------------------------- # A fatal error has been detected by the Java Runtime Environment: # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x08664dcd, pid=2352, tid=508 # JRE version: 6.0_19-b04 Java VM: Java HotSpot(TM) Client VM (16.2-b04 mixed mode, sharing windows-x86 ) Problematic frame: C [extension105815763305391408.dll+0x4dcd] # If you would like to submit a bug report, please visit: http://java.sun.com/webapps/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 (0x06c95800): JavaThread "J3D-Renderer-1" [_thread_in_native, id=508, stack(0x07ff0000,0x08040000)] siginfo: ExceptionCode=0xc0000005, reading address 0xfffffffc Registers: EAX=0xffffffff, EBX=0x00000000, ECX=0xffffffff, EDX=0x00000000 ESP=0x0803f7a0, EBP=0x00000000, ESI=0x049159e0, EDI=0x08b79578 EIP=0x08664dcd, EFLAGS=0x00210246 Top of Stack: (sp=0x0803f7a0) 0x0803f7a0: 06c95800 34278d60 0803f854 34278d60 0x0803f7b0: 00000001 00000011 0803f860 0803f828 0x0803f7c0: 0803f854 01f72603 01f78269 34278d60 0x0803f7d0: 0803f8a4 0803f7dc 01f725d7 01f79f47 0x0803f7e0: 06c95910 0803f8a4 08b79578 00000000 0x0803f7f0: 00000000 00000000 0000003c 00000000 0x0803f800: 0000003c 00000001 00000400 00000001 0x0803f810: 00000290 00000004 ffffffff 0803f86c Instructions: (pc=0x08664dcd) 0x08664dbd: 51 e8 2d eb ff ff 8b 97 b0 02 00 00 8b 44 24 78 0x08664dcd: 8b 04 82 85 c0 89 44 24 7c 75 24 a1 b4 3c 71 08 Stack: [0x07ff0000,0x08040000] , sp=0x0803f7a0, free space=13d0803f2d4k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [extension105815763305391408.dll+0x4dcd] [error occurred during error reporting (printing native stack), id 0xc0000005] Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j javax.media.j3d.NativePipeline.texturemapping(JIIIIIIIIIII[BII)V+0 j javax.media.j3d.NativePipeline.texturemapping(Ljavax/media/j3d/Context;IIIIIIIIIII[BII)V+32 j javax.media.j3d.Canvas3D.texturemapping(Ljavax/media/j3d/Context;IIIIIIIIIII[BII)V+30 j javax.media.j3d.J3DGraphics2DImpl.copyDataToCanvas(IIIIIIII)V+188 j javax.media.j3d.J3DGraphics2DImpl.doFlush()V+227 j javax.media.j3d.J3DGraphics2DImpl.flush(Z)V+52 j com.eteks.sweethome3d.swing.HomeComponent3D$1.canvas3DPostRendered(Ljavax/media/j3d/Canv as3D;)V+31 j com.eteks.sweethome3d.j3d.Component3DManager$1.postRender()V+12 j javax.media.j3d.Renderer.doWork(J)V+6111 j javax.media.j3d.J3dThread.run()V+19 v ~StubRoutines::call_stub --------------- P R O C E S S --------------- Java Threads: ( => current thread ) 0x091e6000 JavaThread "TimerQueue" daemon [_thread_blocked, id=4080, stack(0x0ac30000,0x0ac80000)] 0x091e5c00 JavaThread "J3D-InputDeviceScheduler-1" [_thread_blocked, id=3592, stack(0x09f60000,0x09fb0000)] 0x091e5400 JavaThread "J3D-SoundSchedulerUpdateThread-1" [_thread_blocked, id=3896, stack(0x09c10000,0x09c60000)] 0x06c99c00 JavaThread "J3D-RenderStructureUpdateThread-1" [_thread_blocked, id=3972, stack(0x09bc0000,0x09c10000)] 0x06c99400 JavaThread "J3D-BehaviorScheduler-1" [_thread_blocked, id=3924, stack(0x09b70000,0x09bc0000)] 0x06c99000 JavaThread "J3D-TransformStructureUpdateThread-1" [_thread_blocked, id=4076, stack(0x09b20000,0x09b70000)] 0x06c98800 JavaThread "J3D-RenderingEnvironmentStructureUpdateThread-1" [_thread_blocked, id=3176, stack(0x09ad0000,0x09b20000)] 0x06c98000 JavaThread "J3D-SoundStructureUpdateThread-1" [_thread_blocked, id=4040, stack(0x09a80000,0x09ad0000)] 0x06c97c00 JavaThread "J3D-GeometryStructureUpdateThread-1" [_thread_blocked, id=3000, stack(0x08c20000,0x08c70000)] 0x06c97400 JavaThread "J3D-BehaviorStructureUpdateThread-1" [_thread_blocked, id=4032, stack(0x08bd0000,0x08c20000)] 0x06c96800 JavaThread "AWT-EventQueue-1" [_thread_blocked, id=2972, stack(0x08af0000,0x08b40000)] 0x06c96400 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=492, stack(0x08aa0000,0x08af0000)] 0x06c95c00 JavaThread "AWT-Shutdown" [_thread_blocked, id=484, stack(0x08a50000,0x08aa0000)] =>0x06c95800 JavaThread "J3D-Renderer-1" [_thread_in_native, id=508, stack(0x07ff0000,0x08040000)] 0x06c95000 JavaThread "J3D-MasterControl-1" [_thread_blocked, id=3948, stack(0x07f00000,0x07f50000)] 0x06c94c00 JavaThread "J3D-NotificationThread" [_thread_blocked, id=3244, stack(0x071e0000,0x07230000)] 0x06c93800 JavaThread "J3D-TimerThread" [_thread_blocked, id=2996, stack(0x07140000,0x07190000)] 0x06c94000 JavaThread "J3D-RenderingAttributesStructureUpdateThread" [_thread_blocked, id=500, stack(0x06d60000,0x06db0000)] 0x06c94400 JavaThread "Thread-10" [_thread_in_native, id=268, stack(0x06e00000,0x06e50000)] 0x06c92c00 JavaThread "Keep-Alive-Timer" daemon [_thread_blocked, id=3976, stack(0x07e60000,0x07eb0000)] 0x06c92800 JavaThread "TimerQueue" daemon [_thread_blocked, id=176, stack(0x07780000,0x077d0000)] 0x06c92000 JavaThread "D3D Screen Updater" daemon [_thread_blocked, id=3936, stack(0x07330000,0x07380000)] 0x01e3c800 JavaThread "CacheCleanUpThread" daemon [_thread_blocked, id=1496, stack(0x070a0000,0x070f0000)] 0x01e3c000 JavaThread "CacheMemoryCleanUpThread" daemon [_thread_blocked, id=2880, stack(0x07050000,0x070a0000)] 0x01d0b400 JavaThread "DestroyJavaVM" [_thread_blocked, id=2356, stack(0x007b0000,0x00800000)] 0x01e3a000 JavaThread "Javaws Secure Thread" daemon [_thread_blocked, id=3828, stack(0x06db0000,0x06e00000)] 0x01e39800 JavaThread "AWT-Windows" daemon [_thread_in_native, id=2296, stack(0x01c00000,0x01d00000)] 0x01e38800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=2456, stack(0x06a90000,0x06ae0000)] 0x01dfa400 JavaThread "traceMsgQueueThread" daemon [_thread_blocked, id=3156, stack(0x069f0000,0x06a40000)] 0x01dd1c00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2400, stack(0x05e40000,0x05e90000)] 0x01dce400 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2192, stack(0x05df0000,0x05e40000)] 0x01dcd400 JavaThread "Attach Listener" daemon [_thread_blocked, id=2712, stack(0x05da0000,0x05df0000)] 0x01dca400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2204, stack(0x05d50000,0x05da0000)] 0x01d84c00 JavaThread "Finalizer" daemon [_thread_blocked, id=2220, stack(0x043e0000,0x04430000)] 0x01d83800 JavaThread "Reference Handler" daemon [_thread_blocked, id=2268, stack(0x042d0000,0x04320000)] Other Threads: 0x01d82000 VMThread [stack: 0x01f10000,0x01f60000] [id=1484] 0x01dd7000 WatcherThread [stack: 0x05f30000,0x05f80000] [id=2284] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None Heap def new generation total 5056K, used 3072K [0x13f00000, 0x14470000, 0x1e9a0000) eden space 4544K, 58% used [0x13f00000, 0x14193718, 0x14370000) from space 512K, 84% used [0x143f0000, 0x1445c970, 0x14470000) to space 512K, 0% used [0x14370000, 0x14370000, 0x143f0000) tenured generation total 10944K, used 5393K [0x1e9a0000, 0x1f450000, 0x33f00000) the space 10944K, 49% used [0x1e9a0000, 0x1eee45f8, 0x1eee4600, 0x1f450000) compacting perm gen total 12288K, used 9470K [0x33f00000, 0x34b00000, 0x37f00000) the space 12288K, 77% used [0x33f00000, 0x3483fad8, 0x3483fc00, 0x34b00000) ro space 10240K, 51% used [0x37f00000, 0x3842ae00, 0x3842ae00, 0x38900000) rw space 12288K, 54% used [0x38900000, 0x38f972d8, 0x38f97400, 0x39500000) Dynamic libraries: 0x00400000 - 0x00424000 C:\Program Files\Java\jre6\bin\javaw.exe 0x77d00000 - 0x77e27000 C:\Windows\system32\ntdll.dll 0x77e40000 - 0x77f1b000 C:\Windows\system32\kernel32.dll 0x76ef0000 - 0x76fb6000 C:\Windows\system32\ADVAPI32.dll 0x765d0000 - 0x76693000 C:\Windows\system32\RPCRT4.dll 0x76e50000 - 0x76eed000 C:\Windows\system32\USER32.dll 0x76580000 - 0x765cb000 C:\Windows\system32\GDI32.dll 0x76fc0000 - 0x76fde000 C:\Windows\system32\IMM32.DLL 0x76d20000 - 0x76de8000 C:\Windows\system32\MSCTF.dll 0x77140000 - 0x771ea000 C:\Windows\system32\msvcrt.dll 0x77e30000 - 0x77e39000 C:\Windows\system32\LPK.DLL 0x766f0000 - 0x7676d000 C:\Windows\system32\USP10.dll 0x7c340000 - 0x7c396000 C:\Program Files\Java\jre6\bin\msvcr71.dll 0x6d800000 - 0x6da97000 C:\Program Files\Java\jre6\bin\client\jvm.dll 0x74170000 - 0x741a2000 C:\Windows\system32\WINMM.dll 0x76800000 - 0x76944000 C:\Windows\system32\ole32.dll 0x76770000 - 0x767fd000 C:\Windows\system32\OLEAUT32.dll 0x74130000 - 0x74169000 C:\Windows\system32\OLEACC.dll 0x763b0000 - 0x763dc000 C:\Windows\system32\apphelp.dll 0x6d7b0000 - 0x6d7bc000 C:\Program Files\Java\jre6\bin\verify.dll 0x6d330000 - 0x6d34f000 C:\Program Files\Java\jre6\bin\java.dll 0x6d000000 - 0x6d14a000 C:\Program Files\Java\jre6\bin\awt.dll 0x71c80000 - 0x71cc2000 C:\Windows\system32\WINSPOOL.DRV 0x75300000 - 0x7549e000 C:\Windows\WinSxS\x86_microsoft.windows.common- controls_6595b64144ccf1df_6.0.6001.18000_none_5cdbaa5a083979cc\COMCTL32.dll 0x76cc0000 - 0x76d18000 C:\Windows\system32\SHLWAPI.dll 0x6d290000 - 0x6d298000 C:\Program Files\Java\jre6\bin\hpi.dll 0x764e0000 - 0x764e7000 C:\Windows\system32\PSAPI.DLL 0x74e20000 - 0x74e5f000 C:\Windows\system32\uxtheme.dll 0x6d7f0000 - 0x6d7ff000 C:\Program Files\Java\jre6\bin\zip.dll 0x70050000 - 0x7020a000 C:\Windows\system32\d3d9.dll 0x75cc0000 - 0x75cc8000 C:\Windows\system32\VERSION.dll 0x71900000 - 0x71906000 C:\Windows\system32\d3d8thk.dll 0x73f90000 - 0x73f9c000 C:\Windows\system32\dwmapi.dll 0x6e560000 - 0x6e568000 C:\Windows\system32\atiu9pag.dll 0x6c970000 - 0x6ccfe000 C:\Windows\system32\atiumdag.dll 0x6c670000 - 0x6c962000 C:\Windows\system32\atiumdva.dll 0x6d1d0000 - 0x6d1e3000 C:\Program Files\Java\jre6\bin\deploy.dll 0x75ec0000 - 0x75fb1000 C:\Windows\system32\CRYPT32.dll 0x76020000 - 0x76032000 C:\Windows\system32\MSASN1.dll 0x76430000 - 0x7644e000 C:\Windows\system32\USERENV.dll 0x76410000 - 0x76424000 C:\Windows\system32\Secur32.dll 0x771f0000 - 0x77cff000 C:\Windows\system32\SHELL32.dll 0x76ae0000 - 0x76baf000 C:\Windows\system32\WININET.dll 0x76e40000 - 0x76e43000 C:\Windows\system32\Normaliz.dll 0x76df0000 - 0x76e35000 C:\Windows\system32\iertutil.dll 0x76fe0000 - 0x77108000 C:\Windows\system32\urlmon.dll 0x6d610000 - 0x6d623000 C:\Program Files\Java\jre6\bin\net.dll 0x77110000 - 0x7713d000 C:\Windows\system32\WS2_32.dll 0x77f20000 - 0x77f26000 C:\Windows\system32\NSI.dll 0x75bb0000 - 0x75beb000 C:\Windows\system32\mswsock.dll 0x75cb0000 - 0x75cb5000 C:\Windows\System32\wship6.dll 0x6d630000 - 0x6d639000 C:\Program Files\Java\jre6\bin\nio.dll 0x6d6b0000 - 0x6d6f4000 C:\Program Files\Java\jre6\bin\regutils.dll 0x6d230000 - 0x6d284000 C:\Program Files\Java\jre6\bin\fontmanager.dll 0x75890000 - 0x75895000 C:\Windows\System32\wshtcpip.dll 0x71460000 - 0x714aa000 C:\Windows\system32\RASAPI32.dll 0x743a0000 - 0x743b4000 C:\Windows\system32\rasman.dll 0x76270000 - 0x762e5000 C:\Windows\system32\NETAPI32.dll 0x711c0000 - 0x711f1000 C:\Windows\system32\TAPI32.dll 0x74f90000 - 0x74f9c000 C:\Windows\system32\rtutils.dll 0x71870000 - 0x71876000 C:\Windows\system32\sensapi.dll 0x75ce0000 - 0x75ce7000 C:\Windows\system32\credssp.dll 0x759e0000 - 0x75a24000 C:\Windows\system32\schannel.dll 0x758d0000 - 0x758f1000 C:\Windows\system32\NTMARTA.DLL 0x766a0000 - 0x766ea000 C:\Windows\system32\WLDAP32.dll 0x76040000 - 0x76051000 C:\Windows\system32\SAMLIB.dll 0x757c0000 - 0x757cf000 C:\Windows\system32\NLAapi.dll 0x75e20000 - 0x75e39000 C:\Windows\system32\IPHLPAPI.DLL 0x75de0000 - 0x75e15000 C:\Windows\system32\dhcpcsvc.DLL 0x76060000 - 0x7608c000 C:\Windows\system32\DNSAPI.dll 0x75dd0000 - 0x75dd7000 C:\Windows\system32\WINNSI.DLL 0x75da0000 - 0x75dc1000 C:\Windows\system32\dhcpcsvc6.DLL 0x735a0000 - 0x735af000 C:\Windows\system32\napinsp.dll 0x73580000 - 0x73592000 C:\Windows\system32\pnrpnsp.dll 0x73540000 - 0x73548000 C:\Windows\System32\winrnr.dll 0x73520000 - 0x73526000 C:\Windows\system32\rasadhlp.dll 0x759a0000 - 0x759db000 C:\Windows\system32\rsaenh.dll 0x10000000 - 0x1000e000 C:\Users\�лек�ей \AppData\Local\Temp\extension8505230814731185991.dll 0x6bf20000 - 0x6bfeb000 C:\Windows\system32\OPENGL32.dll 0x75050000 - 0x75073000 C:\Windows\system32\GLU32.dll 0x6df90000 - 0x6e075000 C:\Windows\system32\DDRAW.dll 0x74390000 - 0x74396000 C:\Windows\system32\DCIMAN32.dll 0x76950000 - 0x76ada000 C:\Windows\system32\SETUPAPI.dll 0x75090000 - 0x75097000 C:\Windows\system32\atiglpxx.dll 0x69030000 - 0x69df7000 C:\Windows\system32\atioglxx.dll 0x75040000 - 0x75047000 C:\Windows\system32\atigktxx.dll 0x07eb0000 - 0x07eea000 C:\Windows\system32\atiadlxx.dll 0x75700000 - 0x7572d000 C:\Windows\system32\WINTRUST.dll 0x77f30000 - 0x77f59000 C:\Windows\system32\imagehlp.dll 0x6d360000 - 0x6d366000 C:\Program Files\Java\jre6\bin\jawt.dll 0x08660000 - 0x08733000 C:\Users\�лек�ей \AppData\Local\Temp\extension105815763305391408.dll 0x6d1a0000 - 0x6d1c3000 C:\Program Files\Java\jre6\bin\dcpr.dll VM Arguments: jvm_args: -Xbootclasspath/a:C:\Program Files\Java\jre6\lib\javaws.jar;C:\Program Files\Java\jre6\lib\deploy.jar;C:\Program Files\Java\jre6\lib\plugin.jar - Djava.security.policy= file:C:\Program Files\Java\jre6\lib\security\javaws.policy -DtrustProxy=true - Xverify:remote -Djnlpx.home=C:\Program Files\Java\jre6\bin -Dsun.awt.warmup=true - Djnlpx.origFilenameArg=C:\Users\�лек�ей \AppData\LocalLow\Sun\Java\Deployment\cache\6.0\17\6db71e91-2effb448 -Djnlpx.remove=false - Xmx512m -Djnlpx.heapsize=NULL,512m -Djnlpx.splashport=49255 -Djnlpx.jvm=C:\Program Files\Java\jre6\bin\javaw.exe java_command: com.sun.javaws.Main -offline C:\Users\�лек�ей \AppData\LocalLow\Sun\Java\Deployment\cache\6.0\17\6db71e91-2effb448 Launcher Type: SUN_STANDARD Environment Variables: CLASSPATH=.;C:\Program Files\QuickTime\QTSystem\QTJava.zip PATH=C:\Program Files\Java\jre6\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Common Files\DivX Shared\;D:\php-5.3.1;C:\Program Files\MySQL\MySQL Server 5.1\bin;C:\Program Files\Sun\JavaDB\bin;"C:\Program Files\Java\jre6\bin" USERNAME=�лек�ей OS=Windows_NT PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 11, GenuineIntel --------------- S Y S T E M --------------- OS: Windows Vista Build 6001 Service Pack 1 CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 15 stepping 11, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3 Memory: 4k page, physical 3142344k(1942128k free), swap 6539720k(5477936k free) vm_info: Java HotSpot(TM) Client VM (16.2-b04) for windows-x86 JRE (1.6.0_19-b04), built on Mar 9 2010 00:48:41 by "java_re" with MS VC++ 7.1 (VS2003) time: Thu Apr 15 08:54:09 2010 elapsed time: 16 seconds
        Hide
        aces added a comment -

        From your HomeComponent3D code, at canvas3DPostRendered()
        check image status before you try to flush it.

        The following line in report:
        siginfo: ExceptionCode=0xc0000005, reading address 0xfffffffc

        is a kind of Null Pointer Exception, possibly because the image you try to draw
        is null, or with invalid size.

        244 public void canvas3DPostRendered(Canvas3D canvas3D) {
        245 // Render navigation panel upon canvas 3D if it exists
        246 if (navigationPanelImage != null)

        { 247 J3DGraphics2D g2D = canvas3D.getGraphics2D(); 248 g2D.drawImage(navigationPanelImage, null, 0, 0); 249 g2D.flush(true); 250 }

        251 }

        Check

        Show
        aces added a comment - From your HomeComponent3D code, at canvas3DPostRendered() check image status before you try to flush it. The following line in report: siginfo: ExceptionCode=0xc0000005, reading address 0xfffffffc is a kind of Null Pointer Exception, possibly because the image you try to draw is null, or with invalid size. 244 public void canvas3DPostRendered(Canvas3D canvas3D) { 245 // Render navigation panel upon canvas 3D if it exists 246 if (navigationPanelImage != null) { 247 J3DGraphics2D g2D = canvas3D.getGraphics2D(); 248 g2D.drawImage(navigationPanelImage, null, 0, 0); 249 g2D.flush(true); 250 } 251 } Check
        Hide
        puybaret added a comment -

        Thank you very much for your inquiry.
        I checked again and you could be right:
        navigationPanelImage could be null even after the "navigationPanelImage != null" test, because Canvas3D#postRender isn't called in the same thread as the HomeComponent3D#updateNavigationPanelImage method which updates navigationPanelImage when
        component is resized. This would be really bad luck, but after all, why not...

        I'm going to modify the code to make it thread safe, and see with Sweet Home 3D users if it works better.

        If this is a problem in Sweet Home 3D, sorry for bothering you with this.

        Show
        puybaret added a comment - Thank you very much for your inquiry. I checked again and you could be right: navigationPanelImage could be null even after the "navigationPanelImage != null" test, because Canvas3D#postRender isn't called in the same thread as the HomeComponent3D#updateNavigationPanelImage method which updates navigationPanelImage when component is resized. This would be really bad luck, but after all, why not... I'm going to modify the code to make it thread safe, and see with Sweet Home 3D users if it works better. If this is a problem in Sweet Home 3D, sorry for bothering you with this.
        Hide
        aces added a comment -

        I'll change native code to better support null pointers.
        It's not acceptable to have JVM crashing due so simple issue.

        Show
        aces added a comment - I'll change native code to better support null pointers. It's not acceptable to have JVM crashing due so simple issue.

          People

          • Assignee:
            java3d-issues
            Reporter:
            puybaret
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: