0 Replies Latest reply: Feb 3, 2011 4:23 PM by 836673 RSS

    JVM crashes when initializing D3D pipeline

    836673
      My JVM repeatedly crashes when my application tries to open its first window when there is already a game running in fullscreen mode.
      Can anyone confirm this behaviour? Is this a known bug? (Please move thread if needed)

      Environment:
      Windows Vista, Service Pack 2
      Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
      Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)
      NVIDIA display drivers version 260.99
      DirectX 11

      Steps to reproduce:
      1: Start application (see code below).

      2: Start full screen game.
      So far, I've tried with Dead Space (1) and Super Meat Boy.
      Bug does not occur when games are run in windowed mode.

      3: Wait up to 60 seconds, then exit game.

      Expected result:
      A running JVM and a window at the center of the screen.
      If completely unable to produce a window, throw an exception.

      Actual result:
      JVM exits with code "-1073741819".

      Attachments:

      Code:
      import javax.swing.*;
      
      public class D3DFail {
           public static void main(String[] args) throws Throwable {
                Thread.sleep(60*1000);
                JFrame frame = new JFrame("fail");
                frame.pack();
                frame.setLocationRelativeTo(null);
                frame.setVisible(true);
           }
      }
      D3D trace: (J2D_TRACE_LEVEL=4)
       D3DInitializer::InitImpl
      [I] OS Version = OS_VISTA or newer
      [I] CheckAdaptersInfo
      [I] ------------------
      [I] Adapter Ordinal : 0
      [I] Adapter Handle : 0x3dcd09f3
      [I] Description : NVIDIA GeForce GTX 280
      [I] GDI Name, Driver : \\.\DISPLAY2, nvd3dumx.dll
      [I] Vendor Id : 0x10de
      [I] Device Id : 0x05e1
      [I] SubSys Id : 0x24001682
      [I] Driver Version : 8.17.12.6099
      [I] GUID : {D7B71E3E-46A1-11CF-E162-0C041FC2C535}
      [I] D3DPPLM::CheckDeviceCaps: adapter 0: Passed
      [I] ------------------
      [I] Adapter Ordinal : 1
      [I] Adapter Handle : 0x3b1e15ab
      [I] Description : NVIDIA GeForce GTX 280
      [I] GDI Name, Driver : \\.\DISPLAY1, nvd3dumx.dll
      [I] Vendor Id : 0x10de
      [I] Device Id : 0x05e1
      [I] SubSys Id : 0x24001682
      [I] Driver Version : 8.17.12.6099
      [I] GUID : {D7B71E3E-46A1-11CF-E162-0C041FC2C535}
      [I] D3DPPLM::CheckDeviceCaps: adapter 1: Passed
      [I] ------------------
      [I] >>D3DAdapterInitializer::InitImpl(0)
      [I] D3DContext::InitContext device 0
      [I] D3DContext::ConfigureContext device 0
      [V] dwBehaviorFlags=D3DCREATE_FPU_PRESERVE|D3DCREATE_HARDWARE_VERTEXPROCESSING
      [I] D3DGD_getDeviceCapsNative
      [I] D3DContext::InitContext device 1
      [I] D3DContext::ConfigureContext device 1
      [V] dwBehaviorFlags=D3DCREATE_FPU_PRESERVE|D3DCREATE_HARDWARE_VERTEXPROCESSING
      [E] D3DPPLM::GetD3DContext: failed to create context for adapter=1
      [E] D3DGD_getDeviceCapsNative: device 1 disabled
      [I] D3DGD_getDeviceCapsNative
      [I] D3DContext::InitContext device 0
      [I] D3DContext::ConfigureContext device 0
      [V] dwBehaviorFlags=D3DCREATE_FPU_PRESERVE|D3DCREATE_HARDWARE_VERTEXPROCESSING
      [E] D3DPPLM::GetD3DContext: failed to create context for adapter=0
      [E] D3DGD_getDeviceCapsNative: device 0 disabled
      [I] D3DInitializer::CleanImpl (normal)