Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4639735
Votes 38
Synopsis FullScreen: getDisplayMode() fails, and "Could not get display mode".
Category java:classes_awt
Reported Against 1.4 , merlin-rc1
Release Fixed
State 11-Closed, duplicate of 4636548, bug
Priority: 4-Low
Related Bugs 4636548
Submit Date 19-FEB-2002
Description





java version "1.4.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)

Running on Win2k / Quadro2 Pro / LCD display.

Win2k Pro, Athlon 1.2GHz, Quadro2 Pro, 1024x768 LCD

Although the first time is satisfactory, an error occurs in the 2nd time and it
becomes impossible to change never.

Code:

import java.awt.*;
import java.awt.event.*;

public class Test {

    public DisplayMode orgMode;

    public static void main(String[] args){
        Test test = new Test();
    }

    public Test() {
        GraphicsEnvironment gEnv = 
                     GraphicsEnvironment.getLocalGraphicsEnvironment();
        GraphicsDevice device = gEnv.getDefaultScreenDevice();
        GraphicsConfiguration gConf = device.getDefaultConfiguration();
        
        try {
            orgMode = device.getDisplayMode();
            
            Frame frame = new Frame(gConf);
            frame.setIgnoreRepaint(true);
            frame.setUndecorated(true);
            
System.out.println("# Original Display Mode = " + orgMode.getWidth() + ", " + 
                                                orgMode.getHeight() + ", " + 
                                                orgMode.getBitDepth() + ", " + 
                                                orgMode.getRefreshRate());
            // make an another display mode.
            int width    = 640;
            int height   = 480;
            int bitDepth = 32;
            int refRate  = 60;
//            DisplayMode mode = new DisplayMode(orgMode.getWidth(), 
//                                                orgMode.getHeight(), 
//                                                orgMode.getBitDepth(), 
//                                                orgMode.getRefreshRate());
            DisplayMode mode = new DisplayMode( width, height, 
                                                bitDepth, refRate);
            
System.out.println("# New Display Mode = " + width + ", " + 
                                             height + ", " + 
                                             bitDepth + ", " + 
                                             refRate);
            
            device.setFullScreenWindow(frame);
//Toolkit.getDefaultToolkit().sync();
            if(device.isDisplayChangeSupported()) {
                device.setDisplayMode(mode);    // change
            }
            try { Thread.sleep(3000); } catch(InterruptedException ex) {}
        }
        finally {
            if(device.isDisplayChangeSupported()) {
                device.setDisplayMode(orgMode);
            }
            device.setFullScreenWindow(null);
        }
        System.exit(0);
    }
}


Generated log file at the 2nd time:

Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D3643A6
Function=[Unknown.]
Library=d:\j2sdk1.4.0-beta3\jre\bin\client\jvm.dll

NOTE: We are unable to locate the function name  customer  for the error
      just occurred. Please refer to release documentation for possible
      reason and solutions.


Current Java thread:
	at sun.awt.windows.Win32SurfaceData.initOps(Native Method)
	at sun.awt.windows.Win32SurfaceData.<init>(Win32SurfaceData.java:337)
	at
sun.awt.windows.Win32SurfaceData.createData(Win32SurfaceData.java:220)
	at
sun.awt.windows.WComponentPeer.replaceSurfaceData(WComponentPeer.java:319)
	at
sun.awt.Win32GraphicsDevice.setDisplayMode(Win32GraphicsDevice.java:271)
	- locked <02A87518> (a java.awt.Component$AWTTreeLock)
	- locked <02A80938> (a sun.awt.Win32GraphicsDevice)
	at Test.<init>(Test.java:36)
	at Test.main(Test.java:12)

Dynamic libraries:
0x00400000 - 0x00406000 	d:\j2sdk1.4.0-beta3\bin\java.exe
0x77F80000 - 0x77FFB000 	C:\WINNT\System32\ntdll.dll
0x77D80000 - 0x77DDB000 	C:\WINNT\system32\ADVAPI32.dll
0x77E50000 - 0x77F34000 	C:\WINNT\system32\KERNEL32.DLL
0x77D10000 - 0x77D80000 	C:\WINNT\system32\RPCRT4.DLL
0x78000000 - 0x78046000 	C:\WINNT\system32\MSVCRT.dll
0x6D330000 - 0x6D441000 	d:\j2sdk1.4.0-beta3\jre\bin\client\jvm.dll
0x77DE0000 - 0x77E44000 	C:\WINNT\system32\USER32.dll
0x77F40000 - 0x77F7C000 	C:\WINNT\system32\GDI32.DLL
0x77520000 - 0x77550000 	C:\WINNT\System32\WINMM.dll
0x75DF0000 - 0x75E0A000 	C:\WINNT\System32\IMM32.DLL
0x10000000 - 0x10019000 	C:\WINNT\System32\NVDESK32.DLL
0x6D1D0000 - 0x6D1D7000 	d:\j2sdk1.4.0-beta3\jre\bin\hpi.dll
0x6D300000 - 0x6D30D000 	d:\j2sdk1.4.0-beta3\jre\bin\verify.dll
0x6D210000 - 0x6D227000 	d:\j2sdk1.4.0-beta3\jre\bin\java.dll
0x6D320000 - 0x6D32D000 	d:\j2sdk1.4.0-beta3\jre\bin\zip.dll
0x6D000000 - 0x6D0F6000 	D:\j2sdk1.4.0-beta3\jre\bin\awt.dll
0x777B0000 - 0x777CD000 	C:\WINNT\System32\WINSPOOL.DRV
0x77A20000 - 0x77B16000 	C:\WINNT\system32\ole32.dll
0x6D180000 - 0x6D1D0000 	D:\j2sdk1.4.0-beta3\jre\bin\fontmanager.dll
0x72560000 - 0x72566000 	C:\WINNT\System32\DCIMAN32.dll
0x69500000 - 0x6984B000 	C:\WINNT\System32\nvoglnt.dll
0x51000000 - 0x51044000 	C:\WINNT\System32\ddraw.dll
0x00830000 - 0x0083E000 	D:\bin\VD\VDHOOK.dll
0x785C0000 - 0x78802000 	C:\WINNT\system32\SHELL32.dll
0x77C40000 - 0x77C8A000 	C:\WINNT\system32\SHLWAPI.DLL
0x77B20000 - 0x77BA9000 	C:\WINNT\system32\COMCTL32.DLL
0x17000000 - 0x17014000 	D:\bin\altime\AltIME.DLL
0x5EC80000 - 0x5EE5B000 	C:\WINNT\System32\ATOK14W.IME
0x777D0000 - 0x777D7000 	C:\WINNT\system32\VERSION.dll
0x75940000 - 0x75946000 	C:\WINNT\system32\LZ32.DLL
0x75A30000 - 0x75A38000 	C:\WINNT\System32\SHFOLDER.dll
0x5F000000 - 0x5F05B000 	C:\WINNT\System32\ATOK14DE.dll
0x146F0000 - 0x146F8000
C:\PROGRA~1\Logitech\MOUSEW~1\SYSTEM\LgMousHk.dll
0x778F0000 - 0x77913000 	C:\WINNT\system32\imagehlp.dll
0x726C0000 - 0x726ED000 	C:\WINNT\system32\DBGHELP.dll
0x674B0000 - 0x674BB000 	C:\WINNT\System32\PSAPI.DLL

Local Time = Fri Nov  customer  14:15:40 2001
Elapsed Time = 9
#
# HotSpot Virtual Machine Error : EXCEPTION_ACCESS_VIOLATION
# Error ID : 4F530E43505002BA
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Client VM (1.4.0-beta3-b84 mixed mode)
#


After the 3rd time:

Exception in thread "main" java.lang.InternalError: Could not get display mode
        at sun.awt.Win32GraphicsDevice.getCurrentDisplayMode(Native Method)
        at
sun.awt.Win32GraphicsDevice.getDisplayMode(Win32GraphicsDevice.java:287)
        at Test.<init>(Test.java:19)
        at Test.main(Test.java:12)


With JDK1.4.0, I got the following output.

C:\java Test
Exception in thread "main" java.lang.InternalError: Could not get display mode
        at sun.awt.Win32GraphicsDevice.getCurrentDisplayMode(Native Method)
        at sun.awt.Win32GraphicsDevice.getDisplayMode(Win32GraphicsDevice.java:2
85)
        at Test.<init>(Test.java:19)
        at Test.main(Test.java:9)
(Review ID: 134889) 
======================================================================




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

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

EXTRA RELEVANT SYSTEM CONFIGURATION :
Dual P2 333 Overdrive
geForce 2 MX PCI - drv 23.11

A DESCRIPTION OF THE PROBLEM :
I encountered the bug when making my own full screen application but DisplayModeTest from the Sun web site also exibits the same behavior.  I can enter full screen mode and change resolutions, but as soon as I try to leave full screen mode by calling setFullScreen(null) it always crashes the jvm and I get an error log citing an exception  outside the jvm.  If I run DisplayModeTest and do not change resolutions, just exit after it grabs full screen, the crash does not occur.

IIRC DisplayModeTest worked just fine in 1.4-beta3.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1.Start DisplayModeTest.java
2.Change resolution any number of times, at least that works
3.Click on exit and crash away

EXPECTED VERSUS ACTUAL BEHAVIOR :
I run the Netbeans IDE and when I run DisplayModeTest.java it takes Netbeans down.  Obviously after exiting DisplayModeTest, Netbeans should still be running.

ERROR MESSAGES/STACK TRACES THAT OCCUR :

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D063636
Function=Java_sun_print_Win32PrintJob_printRawData+0x1BB9
Library=I:\j2sdk1.4\jre\bin\awt.dll

Current Java thread:
	at sun.awt.windows.Win32SurfaceData.initOps(Native Method)
	at sun.awt.windows.Win32SurfaceData.<init>(Win32SurfaceData.java:335)
	at sun.awt.windows.Win32SurfaceData.createData
(Win32SurfaceData.java:218)
	at sun.awt.windows.WComponentPeer.replaceSurfaceData
(WComponentPeer.java:321)
	- locked <039F6D80> (a sun.awt.windows.WFramePeer)
	at sun.awt.windows.WComponentPeer.displayChanged
(WComponentPeer.java:350)
	at sun.awt.windows.WCanvasPeer.displayChanged(WCanvasPeer.java:42)
	at sun.awt.windows.WPanelPeer.displayChanged(WPanelPeer.java:118)
	at sun.awt.windows.WWindowPeer.displayChanged(WWindowPeer.java:175)
	at sun.awt.SunDisplayChanger.notifyListeners(SunDisplayChanger.java:102)
	at sun.awt.Win32GraphicsDevice.displayChanged
(Win32GraphicsDevice.java:333)
	at sun.awt.Win32GraphicsEnvironment.displayChanged
(Win32GraphicsEnvironment.java:90)
	at sun.awt.windows.WToolkit$4.run(WToolkit.java:717)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:443)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:190)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:144)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)

Dynamic libraries:
0x00400000 - 0x0041F000 	I:\netbeans\bin\runide.exe
0x77F80000 - 0x77FFB000 	C:\WINNT\System32\ntdll.dll
0x77E80000 - 0x77F35000 	C:\WINNT\system32\KERNEL32.dll
0x77E10000 - 0x77E74000 	C:\WINNT\system32\USER32.dll
0x77F40000 - 0x77F7C000 	C:\WINNT\system32\GDI32.DLL
0x77DB0000 - 0x77E0B000 	C:\WINNT\system32\ADVAPI32.dll
0x77D40000 - 0x77DB0000 	C:\WINNT\system32\RPCRT4.DLL
0x10000000 - 0x10019000 	C:\WINNT\System32\NVDESK32.DLL
0x6D330000 - 0x6D442000 	I:\j2sdk1.4\jre\bin\client\jvm.dll
0x77570000 - 0x775A0000 	C:\WINNT\System32\WINMM.dll
0x78000000 - 0x78046000 	C:\WINNT\system32\MSVCRT.dll
0x681A0000 - 0x681A7000 	C:\WINNT\System32\serwvdrv.dll
0x66740000 - 0x66747000 	C:\WINNT\System32\umdmxfrm.dll
0x6D1D0000 - 0x6D1D7000 	I:\j2sdk1.4\jre\bin\hpi.dll
0x6D300000 - 0x6D30D000 	I:\j2sdk1.4\jre\bin\verify.dll
0x6D210000 - 0x6D228000 	I:\j2sdk1.4\jre\bin\java.dll
0x6D320000 - 0x6D32D000 	I:\j2sdk1.4\jre\bin\zip.dll
0x6D000000 - 0x6D0F6000 	I:\j2sdk1.4\jre\bin\awt.dll
0x77800000 - 0x7781D000 	C:\WINNT\System32\WINSPOOL.DRV
0x75E60000 - 0x75E7A000 	C:\WINNT\System32\IMM32.dll
0x77A50000 - 0x77B46000 	C:\WINNT\system32\ole32.dll
0x6D180000 - 0x6D1D0000 	I:\j2sdk1.4\jre\bin\fontmanager.dll
0x728A0000 - 0x728A6000 	C:\WINNT\System32\DCIMAN32.dll
0x0DA00000 - 0x0DD54000 	C:\WINNT\System32\nvoglnt.dll
0x51000000 - 0x51044000 	C:\WINNT\System32\ddraw.dll
0x6D2D0000 - 0x6D2DD000 	I:\j2sdk1.4\jre\bin\net.dll
0x75050000 - 0x75058000 	C:\WINNT\system32\WSOCK32.dll
0x75030000 - 0x75043000 	C:\WINNT\system32\WS2_32.DLL
0x75020000 - 0x75028000 	C:\WINNT\system32\WS2HELP.DLL
0x74FD0000 - 0x74FEF000 	C:\WINNT\system32\msafd.dll
0x75010000 - 0x75017000 	C:\WINNT\System32\wshtcpip.dll
0x77920000 - 0x77943000 	C:\WINNT\system32\imagehlp.dll
0x72A00000 - 0x72A2D000 	C:\WINNT\system32\DBGHELP.dll
0x690A0000 - 0x690AB000 	C:\WINNT\System32\PSAPI.DLL

Local Time = Mon Feb 18 01:56:05 2002
Elapsed Time = 135
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.0-b92 mixed mode)
#


This bug can be reproduced always.

---------- BEGIN SOURCE ----------
http://java.sun.com/docs/books/tutorial/extra/fullscreen/example.html
---------- END SOURCE ----------
(Review ID: 139844)
======================================================================





EXTRA RELEVANT SYSTEM CONFIGURATION :
I am using an Nvidia Riva TNT2 Ultra.  Since this is a problem with awt.dll I thought that might be relevant. 

DESCRIPTION OF THE PROBLEM :
Whenever I run a program in fullscreen mode, e.g. running Windows Media Player 7.1 and setting the visualizations to fullscreen, or playing mame32 which defaults to fullscreen, it causes any java apps running to crash.

(Review ID: 139580)
======================================================================




FULL PRODUCT VERSION :
java version "1.4.0"
java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)


FULL OPERATING SYSTEM VERSION :
 customer  Windows 2000 [Version 5.00.2195]
 * No Service Pack
 * Service Pack 1
 * Service Pack 2

EXTRA RELEVANT SYSTEM CONFIGURATION :
Tested on:
 * PC running ASUS GeForce2 MX
 * Laptop running SiS 630/730 series

A DESCRIPTION OF THE PROBLEM :
Switching to fullscreen mode using the java fullscreen api while running other java applications causes the other applications to terminate, and the fullscreen application to crash.

However, the fullscreen application crashing behaivior seems to be a separate problem, as it occurs also when using alt tab to switch from its window to another application, regardless of whether there are other java applications running or not.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Start up a "normal", windowed java application, such as SwingSet2, or NetBeans.

2. Start up another application which uses the fullscreen API to switch modes, eg: DisplayModeTest from the fullscreen tutorials.

3. Use DisplayModeTest to change the DisplayMode.

EXPECTED VERSUS ACTUAL BEHAVIOR :
Expected results is for the display mode to change and the application to continue as normal. If there are no other java applications running, this is what occurs.

The actual outcome is that the application minimises, and the java application (SwingSet2, in this case) closes, leaving an error log. DisplayModeTest is now inaccessable (probably unrelated)

ERROR MESSAGES/STACK TRACES THAT OCCUR :
Here is the error log produced by SwingSet when it closed:
--------------------------------------------------------------------

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D063636
Function=Java_sun_print_Win32PrintJob_printRawData+0x1BB9
Library=C:\Program Files\Java\j2re1.4.0\bin\awt.dll

Current Java thread:
	at sun.awt.windows.Win32SurfaceData.initOps(Native Method)
	at sun.awt.windows.Win32SurfaceData.<init>(Win32SurfaceData.java:335)
	at sun.awt.windows.Win32SurfaceD
ata.createData
(Win32SurfaceData.java:218)
	at sun.awt.windows.WComponentPeer.replaceSurfaceData
(WComponentPeer.java:321)
	- locked <030095B0> (a sun.awt.windows.WFramePeer)
	at sun.awt.windows.WComponentPeer.displayChanged
(WComponentPeer.java:350)
	at sun.awt.windows.WCanvasPeer.displayChanged(WCanvasPeer.java:42)
	at sun.awt.windows.WPanelPeer.displayChanged(WPanelPeer.java:118)
	at sun.awt.windows.WWindowPeer.displayChanged(WWindowPeer.java:175)
	at sun.awt.SunDisplayChanger.notifyListeners(SunDisplayChanger.java:102)
	at sun.awt.Win32GraphicsDevice.displayChanged
(Win32GraphicsDevice.java:333)
	at sun.awt.Win32GraphicsEnvironment.displayChanged
(Win32GraphicsEnvironment.java:90)
	at sun.awt.windows.WToolkit$4.run(WToolkit.java:717)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:443)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:190)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:144)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)

Dynamic libraries:
0x00400000 - 0x00406000 	C:\Program Files\Java\j2re1.4.0\bin\javaw.exe
0x77F80000 - 0x77FFB000 	C:\WINNT\System32\ntdll.dll
0x77DB0000 - 0x77E0B000 	C:\WINNT\system32\ADVAPI32.dll
0x77E80000 - 0x77F35000 	C:\WINNT\system32\KERNEL32.DLL
0x77D40000 - 0x77DB0000 	C:\WINNT\system32\RPCRT4.DLL
0x77E10000 - 0x77E74000 	C:\WINNT\system32\USER32.dll
0x77F40000 - 0x77F7C000 	C:\WINNT\system32\GDI32.DLL
0x78000000 - 0x78046000 	C:\WINNT\system32\MSVCRT.dll
0x10000000 - 0x10012000 	C:\WINNT\System32\NVDESK32.DLL
0x6D330000 - 0x6D442000 	C:\Program Files\Java\j2re1.4.0
\bin\client\jvm.dll
0x77570000 - 0x775A0000 	C:\WINNT\System32\WINMM.dll
0x6D1D0000 - 0x6D1D7000 	C:\Program Files\Java\j2re1.4.0\bin\hpi.dll
0x6D300000 - 0x6D30D000 	C:\Program Files\Java\j2re1.4.0\bin\verify.dll
0x6D210000 - 0x6D228000 	C:\Program Files\Java\j2re1.4.0\bin\java.dll
0x6D320000 - 0x6D32D000 	C:\Program Files\Java\j2re1.4.0\bin\zip.dll
0x6D000000 - 0x6D0F6000 	C:\Program Files\Java\j2re1.4.0\bin\awt.dll
0x77800000 - 0x7781D000 	C:\WINNT\System32\WINSPOOL.DRV
0x75E60000 - 0x75E7A000 	C:\WINNT\System32\IMM32.dll
0x77A50000 - 0x77B46000 	C:\WINNT\system32\ole32.dll
0x6D180000 - 0x6D1D0000 	C:\Program Files\Java\j2re1.4.0
\bin\fontmanager.dll
0x728A0000 - 0x728A6000 	C:\WINNT\System32\DCIMAN32.dll
0x0CE50000 - 0x0CFD6000 	C:\WINNT\System32\nvoglnt.dll
0x6E420000 - 0x6E426000 	C:\WINNT\System32\INDICDLL.dll
0x61210000 - 0x6121C000 	C:\Program Files\Microsoft
Hardware\Mouse\POINT32.dll
0x6D280000 - 0x6D29E000 	C:\Program Files\Java\j2re1.4.0\bin\jpeg.dll
0x72800000 - 0x72846000 	C:\WINNT\System32\ddraw.dll
0x61220000 - 0x6122E000 	C:\Program Files\Microsoft
Hardware\Mouse\MSH_ZWF.dll
0x77920000 - 0x77943000 	C:\WINNT\system32\imagehlp.dll
0x72A00000 - 0x72A2D000 	C:\WINNT\system32\DBGHELP.dll
0x690A0000 - 0x690AB000 	C:\WINNT\System32\PSAPI.DLL

Local Time = Mon Feb 18 12:39:57 2002
Elapsed Time = 44
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.0-b92 mixed mode)
#


This bug can be reproduced often.

CUSTOMER WORKAROUND :
Writing your own native library to interface with DirectX to provide the required funcionality works (this is how I dealt with fullscreen requirements in 1.3) but is not really desirable, from a portability point of view.
(Review ID: 139800)
======================================================================




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

FULL OPERATING SYSTEM VERSION :
Microsoft Windows XP [Version 5.1.2600], Windows 2000

EXTRA RELEVANT SYSTEM CONFIGURATION :
Processor:  700Mhz Pentium III-E (133Mhz bus)
GPU:        nVidia GeForce256 (32Mb SDRAM)
RAM:        512Mb
HD:         40Gb 7200RPM / 30Gb 5400RPM
Resolution: 1280x768

A DESCRIPTION OF THE PROBLEM :
When a JFrame is active (and whether or not a UIManager is being used), it crashes when Netmeeting is activated and produces the error log below

The JFrame that I am creating uses a JMenubar, a row of buttons, and has 2 splitpanes, splitting the top half into 2 components (like the layout in a mail client). Each component for the splitpanes is dynamically loaded as a
class in an inner directory of the same dir as where the program is being run.


STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Create a JFrame
2. Once the JFrame is visible, start Netmeeting (default version in Windows XP)

EXPECTED VERSUS ACTUAL BEHAVIOR :
Expected Result: JFrame will continue to run as normal

Actual Result:
JFrame application closes with a errorlog created.

ERROR MESSAGES/STACK TRACES THAT OCCUR :
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D06363B
Function=Java_sun_print_Win32PrintJob_printRawData+0x1BBE
Library=C:\Program Files\Java\j2re1.4.0\bin\awt.dll

Current Java thread:
	at sun.awt.windows.Win32SurfaceData.initOps(Native Method)
	at sun.awt.windows.Win32SurfaceData.<init>(Win32SurfaceData.java:335)
	at sun.awt.windows.Win32SurfaceData.createData
(Win32SurfaceData.java:218)
	at sun.awt.windows.WComponentPeer.replaceSurfaceData
(WComponentPeer.java:321)
	- locked <029EB1C8> (a sun.awt.windows.WDialogPeer)
	at sun.awt.windows.WComponentPeer.displayChanged
(WComponentPeer.java:350)
	at sun.awt.windows.WCanvasPeer.displayChanged(WCanvasPeer.java:42)
	at sun.awt.windows.WPanelPeer.displayChanged(WPanelPeer.java:118)
	at sun.awt.windows.WWindowPeer.displayChanged(WWindowPeer.java:175)
	at sun.awt.SunDisplayChanger.notifyListeners
(SunDisplayChanger.java:102)
	at sun.awt.Win32GraphicsDevice.displayChanged
(Win32GraphicsDevice.java:333)
	at sun.awt.Win32GraphicsEnvironment.displayChanged
(Win32GraphicsEnvironment.java:90)
	at sun.awt.windows.WToolkit$4.run(WToolkit.java:717)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:443)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:190)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:144)
	at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:138)
	at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:130)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)

Dynamic libraries:
0x00400000 - 0x00406000 	C:\WINNT\system32\java.exe
0x77F50000 - 0x77FF9000 	C:\WINNT\System32\ntdll.dll
0x77E60000 - 0x77F45000 	C:\WINNT\system32\kernel32.dll
0x77DD0000 - 0x77E5B000 	C:\WINNT\system32\ADVAPI32.dll
0x77CC0000 - 0x77D35000 	C:\WINNT\system32\RPCRT4.dll
0x77C10000 - 0x77C63000 	C:\WINNT\system32\MSVCRT.dll
0x6D330000 - 0x6D442000 	C:\Program Files\Java\j2re1.4.0
\bin\client\jvm.dll
0x77D40000 - 0x77DCD000 	C:\WINNT\system32\USER32.dll
0x77C70000 - 0x77CB0000 	C:\WINNT\system32\GDI32.dll
0x76B40000 - 0x76B6C000 	C:\WINNT\system32\WINMM.dll
0x10000000 - 0x10019000 	C:\WINNT\system32\NVDESK32.DLL
0x6D1D0000 - 0x6D1D7000 	C:\Program Files\Java\j2re1.4.0\bin\hpi.dll
0x6D300000 - 0x6D30D000 	C:\Program Files\Java\j2re1.4.0\bin\verify.dll
0x6D210000 - 0x6D228000 	C:\Program Files\Java\j2re1.4.0\bin\java.dll
0x6D320000 - 0x6D32D000 	C:\Program Files\Java\j2re1.4.0\bin\zip.dll
0x6D000000 - 0x6D0F6000 	C:\Program Files\Java\j2re1.4.0\bin\awt.dll
0x73000000 - 0x73023000 	C:\WINNT\system32\WINSPOOL.DRV
0x76390000 - 0x763AA000 	C:\WINNT\system32\IMM32.dll
0x771B0000 - 0x772CA000 	C:\WINNT\system32\ole32.dll
0x5AD70000 - 0x5ADA4000 	C:\WINNT\system32\uxtheme.dll
0x6D180000 - 0x6D1D0000 	C:\Program Files\Java\j2re1.4.0
\bin\fontmanager.dll
0x73BC0000 - 0x73BC6000 	C:\WINNT\system32\DCIMAN32.dll
0x69500000 - 0x69854000 	C:\WINNT\system32\nvoglnt.dll
0x73760000 - 0x737A5000 	C:\WINNT\system32\ddraw.dll
0x1C000000 - 0x1C009000 	C:\Program Files\AIM95\idlemon.dll
0x76C90000 - 0x76CB2000 	C:\WINNT\system32\imagehlp.dll
0x6D510000 - 0x6D58C000 	C:\WINNT\system32\DBGHELP.dll
0x77C00000 - 0x77C07000 	C:\WINNT\system32\VERSION.dll
0x76BF0000 - 0x76BFB000 	C:\WINNT\system32\PSAPI.DLL

Local Time = Tue Mar 12 11:05:36 2002
Elapsed Time = 14
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.0-b92 mixed mode)
#


An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D063547
Function=Java_sun_print_Win32PrintJob_printRawData+0x1ACA
Library=C:\j2sdk1.4.0\jre\bin\awt.dll

Current Java thread:
        at sun.awt.windows.Win32OffScreenSurfaceData.initSurface(Native Method)
        at sun.awt.windows.Win32OffScreenSurfaceData.createData(Win32OffScreenSu
rfaceData.java:114)
        at sun.awt.windows.WVolatileImage.createHWData(WVolatileImage.java:87)
        at sun.awt.windows.WVolatileImage.initAcceleratedBackground(WVolatileIma
ge.java:99)
        at sun.awt.image.SunVolatileImage.validate(SunVolatileImage.java:264)
        at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4681)
        at javax.swing.JComponent.paint(JComponent.java:794)
        at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21)

        at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:
60)
        at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97
)
        at java.awt.Container.paint(Container.java:1123)
        at sun.awt.RepaintArea.paint(RepaintArea.java:180)
        at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:260)
        at java.awt.Component.dispatchEventImpl(Component.java:3586)
        at java.awt.Container.dispatchEventImpl(Container.java:1437)
        at java.awt.Window.dispatchEventImpl(Window.java:1566)
        at java.awt.Component.dispatchEvent(Component.java:3367)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:190)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:144)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)

        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)

        at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)

Dynamic libraries:
0x00400000 - 0x00406000         c:\j2sdk1.4.0\bin\java.exe
0x77F80000 - 0x77FF9000         C:\WINNT\System32\ntdll.dll
0x77DB0000 - 0x77E0A000         C:\WINNT\system32\ADVAPI32.dll
0x77E80000 - 0x77F36000         C:\WINNT\system32\KERNEL32.DLL
0x77D40000 - 0x77DAF000         C:\WINNT\system32\RPCRT4.DLL
0x78000000 - 0x78046000         C:\WINNT\system32\MSVCRT.dll
0x6D330000 - 0x6D442000         c:\j2sdk1.4.0\jre\bin\client\jvm.dll
0x77E10000 - 0x77E75000         C:\WINNT\system32\USER32.dll
0x77F40000 - 0x77F7C000         C:\WINNT\system32\GDI32.DLL
0x77570000 - 0x775A0000         C:\WINNT\System32\WINMM.dll
0x6D1D0000 - 0x6D1D7000         c:\j2sdk1.4.0\jre\bin\hpi.dll
0x6D300000 - 0x6D30D000         c:\j2sdk1.4.0\jre\bin\verify.dll
0x6D210000 - 0x6D228000         c:\j2sdk1.4.0\jre\bin\java.dll
0x6D320000 - 0x6D32D000         c:\j2sdk1.4.0\jre\bin\zip.dll
0x6D000000 - 0x6D0F6000         C:\j2sdk1.4.0\jre\bin\awt.dll
0x77800000 - 0x7781D000         C:\WINNT\System32\WINSPOOL.DRV
0x75E60000 - 0x75E7A000         C:\WINNT\System32\IMM32.dll
0x77A50000 - 0x77B45000         C:\WINNT\system32\ole32.dll
0x6D180000 - 0x6D1D0000         C:\j2sdk1.4.0\jre\bin\fontmanager.dll
0x51000000 - 0x5104A000         C:\WINNT\System32\DDRAW.dll
0x728A0000 - 0x728A6000         C:\WINNT\System32\DCIMAN32.dll
0x69000000 - 0x691CF000         C:\WINNT\System32\atio2kag.dll
0x20000000 - 0x20011000         C:\Reflection\RXCTRL.dll
0x775A0000 - 0x777E0000         C:\WINNT\system32\SHELL32.dll
0x77C70000 - 0x77CBA000         C:\WINNT\system32\SHLWAPI.DLL
0x77B50000 - 0x77BDA000         C:\WINNT\system32\COMCTL32.DLL
0x770F0000 - 0x772AD000         C:\WINNT\System32\Msi.dll
0x77920000 - 0x77942000         C:\WINNT\system32\imagehlp.dll
0x72A00000 - 0x72A2D000         C:\WINNT\system32\DBGHELP.dll
0x0D2A0000 - 0x0D2AB000         C:\WINNT\System32\PSAPI.DLL

Local Time = Tue Mar 12 23:39:37 2002
Elapsed Time = 12
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.0-b92 mixed mode)
#
# An error report file has been saved as hs_err_pid1604.log.
# Please refer to the file for further information.
#


This bug can be reproduced always.

---------- BEGIN SOURCE ----------
import javax.swing.*;
import java.awt.*;

public class TestFrame extends JFrame {
    
    public TestFrame() {
        super("Test Frame");
        setSize(320,240);
        this.getContentPane().setLayout(new BorderLayout());
        this.getContentPane().add(new JLabel("Test Label"));
        setVisible(true);
    }
    
    public static void main (String[] args) {
        TestFrame tf = new TestFrame();
    }
}
---------- END SOURCE ----------
(Review ID: 144062)
======================================================================




 DESCRIPTION OF THE PROBLEM :

If NetBeans 3.3.1 is left running idle for an extended period of time (two of the three attached logs are from going to sleep with it running), when I return to the computer, the JVM has crashed with the same access violation.  Note, that while the method in question appears to relate to printing, at no time were any print jobs queued, either while working with netbeans or during the
time it was idle.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1.  Start NetBeans 3.3.1 on Win XP with JDK 1.4
2.  Use it for several hours (don't know if this is necessary)
3.  Walk away from the computer, leaving NetBeans running


(Review ID: 145263)
======================================================================




STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1.java -jar Notepad.jar
2.Play the game "StarCraft"
3.press ALT+TAB
4.that notepad Window disapeared


(Review ID: 147111)
======================================================================
Posted Date : 2005-07-22 03:26:14.0
Work Around
N/A
Evaluation
Commit to fix in Mantis (crash).  We should try to fix it for Hopper, 
but we are short of resources and time.  
  xxxxx@xxxxx   2002-04-01

Closing as a duplicate of 4636548.

  xxxxx@xxxxx   2002-06-11
Comments
  
  Include a link with my name & email   

Submitted On 22-FEB-2002
sellhorn
This is a nastybug. I was in another app, playing with 
fullscreen, and when I get out of fullscreen mode, netbeans 
crashes. And netbeans is a separate process, is like 
fullscreen kills all java ui apps !


Submitted On 28-FEB-2002
joshpassenger
This seems to be a problem with most Windows based systems, 
as I see it on NT, and there are reports from XP and 
Windows 2000 users.

Is it an issue with use of VolatileImage by swing required 
access to the shared resources on the graphics adapter?

Is closing fullscreen mode destroying those resources?



Submitted On 28-FEB-2002
bestsss
it seems very important. it happens constantly so it
shouldn't be a real issue to fix it.
i, myself, can't cast my votes for but some of my colugues
will surely do.


Submitted On 28-FEB-2002
pcdennison
I have found, after submitting my report for this bug, that 
the crashes will only occur when an Application Window is 
associated with the DirectX Objects when switching to 
fullscreen. Thus, the native library which I suggested in 
my report will only work if the HWND returned by the 
method "::GetDesktopWindow()" is the window associated with 
the DX Objects.

Attempting to use "::FindWindow(char *)" will find the 
correct window from the title, but produces the same 
results as if the java fullscreen API is used.


Submitted On 28-FEB-2002
sebassabby
Can someone confirm it is also doing that; just opening 
netmeeting will also get things to crash.


Submitted On 28-FEB-2002
sebassabby
Same here, was not too sure why it was doing that but now 
that I read this I realize that whenever I just play games 
fullscreen or use any app fullscreen it will crash.  Very 
nasty bug.  Will go back to 1.3.1 until it is fixed, can't 
have my program crashing every 2 second.  My vote goes to 
fix this bug.


Submitted On 14-APR-2002
pcdennison
So, Sun is acknowledging a very serious bug (Crash), which 
affects all Java applications run in a WinNT environment, 
but are not going to get a fix out for the next release 
(which, incidentally, is still too far away).

When you couple this along with the Non blocking Socket IO 
bugs and the slow DnD, 1.4 becomes a very dissapointing 
platform.


Submitted On 16-APR-2002
joshpassenger
Agreed, 1.4 was to give hope to all those wanting to use 
java technology seriously for gaming since it incorporated 
full screen and NIO but both are fairly much useless due to 
bugs that were noticed prior to 1.4.0 launch.

This bug has implications for all swing based applications, 
not just those wanting to use full screen exclusive mode.  

Surely this should be given priority...


Submitted On 25-APR-2002
WallworkD
Any Java app that uses SWING will crash if you start the 
Java app first and then open NetMeetings.  How serious can 
you get?


Submitted On 13-MAY-2002
smooth3
This is a VERY serious bug.  It happens under Windows XP 
when the screensaver comes on.  I can't verify that this 
is true on ALL windows XP but it happens on a thinkpad 
with an ATI r128 16M.

This makes 1.4.0 useless unless you want to turn off the 
screensaver or restart Swing apps every time it comes on.


Submitted On 03-JUN-2002
dead__eye
I wanna play and use some javaworks at the same time, so 
please fix it!


Submitted On 05-JUN-2002
christian.stein
*sigh* This bug wasn't fixed in 1.4.0_01.
Hope that 1.4.0_02 will include it.


Submitted On 12-JUN-2002
Skeezix666
thx


Submitted On 18-JUN-2002
dakiller
i hope u can fix this bug because i wanns play when my java apps are running !!


Submitted On 18-JUN-2002
theflow
I hope you will fix this bug, because I want to play my 
games, while I'm downloading :>


Submitted On 18-JUN-2002
dumpster
That bug is really annoying, I hope you fix it as fast as 
possible. Don't force me to decide between playing my 
favourite Games and using Java.


Submitted On 23-JUN-2002
Tommy1735
plz fix it


Submitted On 04-JUL-2002
Extasy4u
i run a java server application and it always crashes when i run my wintv in fullscreen mode.
very annoying...i hope it will be fixed.
greetz


Submitted On 08-JUL-2002
kwutzke
Please fix this bug as quickly as possible!

I want to enable the user to put a certain 3D view into
fullscreen mode. However, it is not possible on any machine
I've tried this, which were 5 different computers with 6
graphics cards...

I don't quite understand why this bug is related to 4636548
and even less WHY *this* bug has been closed!


Submitted On 28-JUL-2002
CultVoid
My project needs to run a direct X/C++ application in parallel 
to the core code written in Java. We've gone some way down 
the development road before this bug made its presence felt. 
We've tested on ALL windows platforms, and I can confirm it 
hits Win9x as well as NT and XP.

Why has this bug been closed? It isn't fixed and is a disaster. 
If we have to do major re-engineering to fix this, we certainly 
won't be touching Java again.


Submitted On 04-OCT-2002
Spooky1013
please fix it


Submitted On 27-OCT-2002
ggwy
Just wanted to know if 1.4.1 really fixes this fullscreen bug? 
Cause if it doesn't then I'm not wasting my download 
time/money on getting it. It seems from all these 
workarounds/talkarounds that the problem hasn't been 
rectified in 1.4.1 for AWT programs... this is definitely 
annoying. I wonder why this isn't a very high priority... 
considering how many Java programs use AWT!



PLEASE NOTE: JDK6 is formerly known as Project Mustang