JDK-4838169 : Bug in Win32GraphicsDevice for nVidia GeForce 2 GTS
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 1.4.1
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2003-03-26
  • Updated: 2003-03-26
  • Resolved: 2003-03-26
Related Reports
Duplicate :  
Description
Name: gm110360			Date: 03/26/2003


FULL PRODUCT VERSION :
java version "1.4.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1
Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)

FULL OPERATING SYSTEM VERSION : Microsoft Windows 2000
[Version 5.00.2195]


EXTRA RELEVANT SYSTEM CONFIGURATION :
nVidia GeForce 2 GTS with latest drivers.

A DESCRIPTION OF THE PROBLEM :
Calling getDisplay mode (such as in a call
setFullScreenWindow) results in:

Exception in thread "main" java.lang.InternalError: Could
not get display modes
        at sun.awt.Win32GraphicsDevice.enumDisplayModes
(Native Method)
        at sun.awt.Win32GraphicsDevice.getDisplayModes
(Win32GraphicsDevice.java:
330)



STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
call setFullScreenWindow()

EXPECTED VERSUS ACTUAL BEHAVIOR :
Expected display to switch to full screen mode.

The setFullScreenMode() method above generates the
following error:

java.lang.InternalError: Could not get display mode
at sun.awt.Win32GraphicsDevice.getCurrentDisplayMode(Native
Method)
at sun.awt.Win32GraphicsDevice.getDisplayMode
(Win32GraphicsDevice.java:287)
at java.awt.GraphicsDevice.setFullScreenWindow
(GraphicsDevice.java:198)
at sun.awt.Win32GraphicsDevice.setFullScreenWindow
(Win32GraphicsDevice.java:221)
at TestFrame.activate(TestFrame.java:28)
at TestFrame.main(TestFrame.java:49)

ERROR MESSAGES/STACK TRACES THAT OCCUR :
The setFullScreenMode() method above generates the following error:

java.lang.InternalError: Could not get display mode
at sun.awt.Win32GraphicsDevice.getCurrentDisplayMode(Native Method)
at sun.awt.Win32GraphicsDevice.getDisplayMode(Win32GraphicsDevice.java:287)
at java.awt.GraphicsDevice.setFullScreenWindow(GraphicsDevice.java:198)
at sun.awt.Win32GraphicsDevice.setFullScreenWindow(Win32GraphicsDevice.java:221)
at TestFrame.activate(TestFrame.java:28)
at TestFrame.main(TestFrame.java:49)

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
import java.awt.*;
import java.io.*;

public class TestFrame extends Frame
{

GraphicsEnvironment env;
GraphicsDevice device;
Dimension screenSize;

public TestFrame()
{
env = GraphicsEnvironment.getLocalGraphicsEnvironment();
device = env.getDefaultScreenDevice();
screenSize = Toolkit.getDefaultToolkit().getScreenSize();
}

public void activate()
{

if (device.isFullScreenSupported())
{
try
{
device.setFullScreenWindow (this);
}
catch (Error e)
{
e.printStackTrace();
}
}
}



public static void main (String[] args)
{
TestFrame testFrame = new TestFrame();
testFrame.activate();
testFrame.setSize(500,500);
testFrame.setVisible(true);
}
}

---------- END SOURCE ----------
(Review ID: 181406) 
======================================================================