Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6275887

PIT:D3D: VM Crashes when using D3D with FullScreen Frame and ALT+TABing a couple of times, Win32

    XMLWordPrintable

Details

    • 2d
    • 6
    • b63
    • x86
    • windows_xp
    • Verified

    Description

      I am running an application that creates many animating balls on the screen when clicking inside a fullscreen frame. I am running this with '-Dsun.java2d.d3d=true' flag. FullScreen frame appears on the screen and I am creating as many balls as I could by clicking on the frame at different locations. When the app is running, I am pressing ALT + TAB 3-4 times and switching back and forth between application and desktop. I am getting a VM crash at the end. Sometimes it happens second time, some other time it happens 4th time.

      This is noticed only on the following PIT build on WinXP (config details given under comments):

      java version "1.6.0-2d.pit-jcg-win-03"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-2d.pit-jcg-win-03-java2d_24_may_2005_00_34-b00)
      Java HotSpot(TM) Client VM (build 1.6.0-ea-b37, mixed mode)

      I have attached a sample test. Execute the sample test with D3D flag. You would see a FullScreen frame. Create as many balls as you like by clicking on the frame. Press ALT+TAB 3-4 times and you would see a VM crash on the console. Here is the crash information:

      #
      # An unexpected error has been detected by HotSpot Virtual Machine:
      #
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x73956201, pid=3344, tid=2788
      #
      # Java VM: Java HotSpot(TM) Client VM (1.6.0-ea-b37 mixed mode)
      # Problematic frame:
      # C [D3DIM700.DLL+0x16201]
      #

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

      Current thread (0x0aec3918): JavaThread "Thread-2" [_thread_in_native, id=2788]

      siginfo: ExceptionCode=0xc0000005, writing address 0x0b5c0700

      Registers:
      EAX=0x0b5c0700, EBX=0x00000870, ECX=0x0000021c, EDX=0x000a0454
      ESP=0x0b25f71c, EBP=0x0b25f728, ESI=0x0ae30030, EDI=0x0b5c0700
      EIP=0x73956201, EFLAGS=0x00010202

      Top of Stack: (sp=0x0b25f71c)
      0x0b25f71c: 00000142 0009e9e0 0009e9e0 0b25f780
      0x0b25f72c: 73957450 0ae30030 0000005a 0009e9e0
      0x0b25f73c: 0000000f 00000022 0b25fbe4 77c35c94
      0x0b25f74c: ffffffff 0af1cfe4 0af1cfc8 77c2c3e7
      0x0b25f75c: 0aebaee0 0ad267cd 0af1cfc8 00000008
      0x0b25f76c: 00000004 0ad26638 0009e9e0 0b25f7ac
      0x0b25f77c: 0b25f7ac 0b25f7ac 73958ee0 00000001
      0x0b25f78c: 0ae9c700 0ae308a0 0000000f 0000005a

      Instructions: (pc=0x73956201)
      0x739561f1: 00 8b d9 8d 96 74 1a 00 00 8b 32 c1 e9 02 8b f8
      0x73956201: f3 a5 8b cb 83 e1 03 f3 a4 89 02 e9 9d 00 00 00


      Stack: [0x0b220000,0x0b260000), sp=0x0b25f71c, free space=253k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      C [D3DIM700.DLL+0x16201]
      C [D3DIM700.DLL+0x17450]
      C [D3DIM700.DLL+0x18ee0]

      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      J sun.java2d.d3d.D3DRenderer.devFillSpans(JJLsun/java2d/pipe/SpanIterator;JII)V
      J sun.java2d.d3d.D3DRenderer.fill(Lsun/java2d/SunGraphics2D;Ljava/awt/Shape;)V
      J sun.java2d.d3d.D3DRenderer.fillOval(Lsun/java2d/SunGraphics2D;IIII)V
      J sun.java2d.SunGraphics2D.fillOval(IIII)V
      J Ball.paint(Ljava/awt/Graphics;Ljava/awt/Color;)V
      J BouncingBalls.renderOffscreen()V
      J BouncingBalls.render(Ljava/awt/Graphics;)V
      j BouncingBalls$BallThread.run()V+13
      v ~StubRoutines::call_stub

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

      Java Threads: ( => current thread )
        0x000360f8 JavaThread "DestroyJavaVM" [_thread_blocked, id=2684]
      =>0x0aec3918 JavaThread "Thread-2" [_thread_in_native, id=2788]
        0x0aeb9120 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=2764]
        0x0aeb44d8 JavaThread "AWT-Windows" daemon [_thread_in_native, id=2872]
        0x0aeb38f8 JavaThread "AWT-Shutdown" [_thread_blocked, id=3488]
        0x0aeabd18 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=3476]
        0x00a66198 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2316]
        0x00036958 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2568]
        0x00a63200 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2732]
        0x00a627d8 JavaThread "Attach Listener" daemon [_thread_blocked, id=2728]
        0x00a580d0 JavaThread "Finalizer" daemon [_thread_blocked, id=2700]
        0x00a56c58 JavaThread "Reference Handler" daemon [_thread_blocked, id=2696]

      Other Threads:
        0x00a0c478 VMThread [id=2692]
        0x00a536c0 WatcherThread [id=2140]

      VM state:not at safepoint (normal execution)

      VM Mutex/Monitor currently owned by a thread: None

      Heap
       def new generation total 576K, used 219K [0x02ae0000, 0x02b80000, 0x02fc0000)
        eden space 512K, 42% used [0x02ae0000, 0x02b16bf0, 0x02b60000)
        from space 64K, 1% used [0x02b60000, 0x02b602c8, 0x02b70000)
        to space 64K, 0% used [0x02b70000, 0x02b70000, 0x02b80000)
       tenured generation total 4180K, used 3398K [0x02fc0000, 0x033d5000, 0x06ae0000)
         the space 4180K, 81% used [0x02fc0000, 0x03311bc0, 0x03311c00, 0x033d5000)
       compacting perm gen total 8192K, used 4191K [0x06ae0000, 0x072e0000, 0x0aae0000)
         the space 8192K, 51% used [0x06ae0000, 0x06ef7fa8, 0x06ef8000, 0x072e0000)
      No shared spaces configured.

      Dynamic libraries:
      0x00400000 - 0x0040c000 y:\disk05\2d-SQE\PIT\2005-05-24.mustang\windows-i586\bin\java.exe
      0x7c900000 - 0x7c9b0000 C:\WINDOWS\system32\ntdll.dll
      0x7c800000 - 0x7c8f4000 C:\WINDOWS\system32\kernel32.dll
      0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
      0x77e70000 - 0x77f01000 C:\WINDOWS\system32\RPCRT4.dll
      0x77c10000 - 0x77c68000 C:\WINDOWS\system32\MSVCRT.dll
      0x6d710000 - 0x6d8a0000 y:\disk05\2d-SQE\PIT\2005-05-24.mustang\windows-i586\jre\bin\client\jvm.dll
      0x77d40000 - 0x77dd0000 C:\WINDOWS\system32\USER32.dll
      0x77f10000 - 0x77f56000 C:\WINDOWS\system32\GDI32.dll
      0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
      0x10000000 - 0x10008000 y:\disk05\2d-SQE\PIT\2005-05-24.mustang\windows-i586\jre\bin\hpi.dll
      0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL
      0x003c0000 - 0x003cc000 y:\disk05\2d-SQE\PIT\2005-05-24.mustang\windows-i586\jre\bin\verify.dll
      0x003d0000 - 0x003ed000 y:\disk05\2d-SQE\PIT\2005-05-24.mustang\windows-i586\jre\bin\java.dll
      0x003f0000 - 0x003ff000 y:\disk05\2d-SQE\PIT\2005-05-24.mustang\windows-i586\jre\bin\zip.dll
      0x0ace0000 - 0x0ae6e000 Y:\disk05\2d-SQE\PIT\2005-05-24.mustang\windows-i586\jre\bin\awt.dll
      0x73000000 - 0x73026000 C:\WINDOWS\system32\WINSPOOL.DRV
      0x76390000 - 0x763ad000 C:\WINDOWS\system32\IMM32.dll
      0x774e0000 - 0x7761d000 C:\WINDOWS\system32\ole32.dll
      0x73760000 - 0x737a9000 C:\WINDOWS\system32\ddraw.dll
      0x73bc0000 - 0x73bc6000 C:\WINDOWS\system32\DCIMAN32.dll
      0x73940000 - 0x73a10000 C:\WINDOWS\system32\D3DIM700.DLL
      0x0b0b0000 - 0x0b100000 Y:\disk05\2d-SQE\PIT\2005-05-24.mustang\windows-i586\jre\bin\fontmanager.dll

      VM Arguments:
      jvm_args: -Dsun.java2d.d3d=True
      java_command: BouncingBalls
      Launcher Type: generic

      Environment Variables:
      PATH=y:\disk05\2d-SQE\PIT\2005-05-24.mustang\windows-i586\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;C:\PROGRA~1\MKSTOO~1\bin;C:\PROGRA~1\MKSTOO~1\bin\x11;C:\PROGRA~1\MKSTOO~1\mksnt;C:\PROGRA~1\ULTRAE~1
      USERNAME=praveen
      SHELL=C:/PROGRA~1/MKSTOO~1/mksnt/sh.exe
      DISPLAY=:0.0
      OS=Windows_NT
      PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 9, GenuineIntel



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

      OS: Windows XP Build 2600 Service Pack 2

      CPU:total 1 family 15, cmov, cx8, fxsr, mmx, ht

      Memory: 4k page, physical 522992k(235992k free), swap 1278288k(971316k free)

      vm_info: Java HotSpot(TM) Client VM (1.6.0-ea-b37) for windows-x86, built on May 19 2005 01:42:56 by "java_re" with MS VC++ 6.0


      ###@###.### 2005-05-25 13:26:21 GMT

      Attachments

        Issue Links

          Activity

            People

              tdv Dmitri Trembovetski (Inactive)
              pmohansunw Praveen Mohan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: