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

PIT: D3D: VM crash when running a buffer strategy - FullScreen app and ALT + TABing, Win32

    XMLWordPrintable

Details

    • 2d
    • x86
    • windows_xp

    Description

      I am running a java application that uses a BufferStrategy (java.awt.Component$FlipSubRegionBufferStrategy@2a4983) and page flipping. When the application is running, I am ALT + TABing couple of times and I am getting a VM crash when running this app with D3D pipeline. This is not reproducible with default mode. This is not reproducible on any of the promoted mustang builds.
      I reproduced it on WinXP-sp2 with the following PIT build:

      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 pipeline on WinXP. You would see an undecorated frame on the screen. Keep pressing ALT + TAB or WINDOWS key 2-3 times and you will get the VM crash on the console.

      I filed this bug separately though the behavior appears to be similar to 6275887 because the stack trace found on this crash log is different from the one created for 6275887.

      Here is the crash info:
      #
      # An unexpected error has been detected by HotSpot Virtual Machine:
      #
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7394fb7a, pid=3136, tid=3152
      #
      # Java VM: Java HotSpot(TM) Client VM (1.6.0-ea-b37 mixed mode)
      # Problematic frame:
      # C [D3DIM700.DLL+0xfb7a]
      #

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

      Current thread (0x00036110): JavaThread "main" [_thread_in_native, id=3152]

      siginfo: ExceptionCode=0xc0000005, reading address 0x00000000

      Registers:
      EAX=0x00000000, EBX=0x0007f734, ECX=0x000a78a8, EDX=0x000a1bd4
      ESP=0x0007f584, EBP=0x0007f590, ESI=0x0ad0e0a8, EDI=0x00000000
      EIP=0x7394fb7a, EFLAGS=0x00010202

      Top of Stack: (sp=0x0007f584)
      0x0007f584: 00000000 0ad0e0a8 0007f734 0ad0e36c
      0x0007f594: 0afacf4e 0009e9e0 00000000 000a78a8
      0x0007f5a4: 00036110 000361c4 0007f710 06ebd280
      0x0007f5b4: 44400000 44800000 0ad0e36c 00000001
      0x0007f5c4: 00000006 00000001 00000002 00000000
      0x0007f5d4: 77c42d75 0000007c 0000100f 000001e0
      0x0007f5e4: 00000280 00000a00 00000000 00000000
      0x0007f5f4: 00000000 00000000 00000000 00000000

      Instructions: (pc=0x7394fb7a)
      0x7394fb6a: 55 8b ec 8b 45 10 85 c0 53 56 57 74 0a 8b 40 04
      0x7394fb7a: 8b 00 8b 58 78 eb 02 33 db 8b 7d 08 8b 45 0c 8d


      Stack: [0x00040000,0x00080000), sp=0x0007f584, free space=253k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      C [D3DIM700.DLL+0xfb7a]

      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      j sun.java2d.d3d.D3DContext.setClip(JJLsun/java2d/pipe/Region;ZIIII)V+0
      j sun.java2d.d3d.D3DContext.validate(Lsun/java2d/SurfaceData;Lsun/java2d/SurfaceData;Lsun/java2d/pipe/Region;Ljava/awt/Composite;Ljava/awt/geom/AffineTransform;II)V+240
      j sun.java2d.d3d.D3DContext.getContext(Lsun/java2d/SurfaceData;Lsun/java2d/SurfaceData;Lsun/java2d/pipe/Region;Ljava/awt/Composite;Ljava/awt/geom/AffineTransform;II)J+21
      j sun.java2d.d3d.D3DRenderer.getContext(Lsun/java2d/SunGraphics2D;)J+57
      j sun.java2d.d3d.D3DRenderer.fillRect(Lsun/java2d/SunGraphics2D;IIII)V+17
      j sun.java2d.SunGraphics2D.fillRect(IIII)V+10
      j sun.java2d.SunGraphics2D.clearRect(IIII)V+37
      j sun.awt.image.VolatileSurfaceManager.initContents()V+25
      j sun.awt.image.VolatileSurfaceManager.validate(Ljava/awt/GraphicsConfiguration;)I+174
      j sun.awt.image.SunVolatileImage.validate(Ljava/awt/GraphicsConfiguration;)I+5
      j java.awt.Component$FlipBufferStrategy.revalidate(Z)V+78
      j java.awt.Component$FlipBufferStrategy.revalidate()V+2
      j java.awt.Component$FlipBufferStrategy.getDrawGraphics()Ljava/awt/Graphics;+1
      j BufferStrategyTest.<init>(ILjava/awt/GraphicsDevice;)V+119
      j BufferStrategyTest.main([Ljava/lang/String;)V+83
      v ~StubRoutines::call_stub

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

      Java Threads: ( => current thread )
        0x0ad28358 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=3300]
        0x0ad27150 JavaThread "AWT-Windows" daemon [_thread_in_native, id=3288]
        0x0ad26570 JavaThread "AWT-Shutdown" [_thread_blocked, id=3284]
        0x0ad1f438 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=3280]
        0x00a66158 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2832]
        0x00036970 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2836]
        0x00a631c0 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3160]
        0x00a62738 JavaThread "Attach Listener" daemon [_thread_blocked, id=1400]
        0x00a58100 JavaThread "Finalizer" daemon [_thread_blocked, id=2500]
        0x00a56c88 JavaThread "Reference Handler" daemon [_thread_blocked, id=2940]
      =>0x00036110 JavaThread "main" [_thread_in_native, id=3152]

      Other Threads:
        0x00a0c4f8 VMThread [id=1928]
        0x00a536f0 WatcherThread [id=3204]

      VM state:not at safepoint (normal execution)

      VM Mutex/Monitor currently owned by a thread: None

      Heap
       def new generation total 576K, used 42K [0x02ae0000, 0x02b80000, 0x02fc0000)
        eden space 512K, 8% used [0x02ae0000, 0x02aea838, 0x02b60000)
        from space 64K, 0% used [0x02b70000, 0x02b70000, 0x02b80000)
        to space 64K, 0% used [0x02b60000, 0x02b60000, 0x02b70000)
       tenured generation total 4484K, used 3384K [0x02fc0000, 0x03421000, 0x06ae0000)
         the space 4484K, 75% used [0x02fc0000, 0x0330e340, 0x0330e400, 0x03421000)
       compacting perm gen total 8192K, used 4187K [0x06ae0000, 0x072e0000, 0x0aae0000)
         the space 8192K, 51% used [0x06ae0000, 0x06ef6d58, 0x06ef6e00, 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
      0x0aee0000 - 0x0b06e000 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: BufferStrategyTest
      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(202532k free), swap 1278288k(963120k 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:46:18 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: