This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 195927 - Exception when exiting full screen mode
Summary: Exception when exiting full screen mode
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 7.0
Hardware: Sun SunOS
: P2 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-24 09:17 UTC by AngeloD
Modified: 2011-03-01 17:50 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description AngeloD 2011-02-24 09:17:15 UTC
Solution to bug #190851 fixed the window dimension in full screen mode in Solaris.

Now whenever I exit from full screen mode I get a NullPointer exception:

at sun.awt.X11GraphicsDevice.setDisplayMode(X11GraphicsDevice.java:358)
at sun.awt.X11GraphicsDevice.setFullScreenWindow(X11GraphicsDevice.java:300)
at java.awt.window$1DisposeAction.run(Window.java:997)
at java.awt.window.doDispose(Window.java:1026)
at java.awt.window.dispose(Window.java:973)
at org.netbeans.core.windows.view.ui.MainWindow.setFullScreenMode(MainWindow.java:652)
...
...
(sorry I retyped the exception, I cannot copy it from the original system)

The main window then completely disappears, making this an high priority bug (IMHO).

The bug is reproducible changing the IDE (version 7.0b2) to full screen and back. (In NB 7.0b1, the exception is not there but bug 190851 is still there).
Comment 1 AngeloD 2011-02-24 10:07:03 UTC
Sorry I forgot to mention that I run the software on the SunRay 2FS terminal.

Running on a normal workstation the exception does not happen (but Bug #190851 is still present).
Comment 2 Stanislav Aubrecht 2011-02-24 10:14:46 UTC
reporter, please clarify:

- when running the latest build of netbeans on a solaris workstation, is bug #190851 still reproducible? is bug #195927 reproducible? which version of solaris do you have on your workstation? which version of java do you have on your workstation?


- when running the latest build of netbeans on sunray terminal, is bug #190851 still reproducible? is bug #195927 reproducible? which version of solaris do you have on your sunray terminal? which version of java do you have on your sunray terminal?
Comment 3 Stanislav Aubrecht 2011-02-25 10:15:26 UTC
waiting for additional info from the reporter
Comment 4 AngeloD 2011-02-25 11:36:17 UTC
I made some additional investigation these are the results.

This bug #195927 applies only to NB 7.0b2 (build 201102140001), it is reproducible on the the following configuration:

User logs in on a Terminal Server 
SunOS version 5.10 Generic _141415-10 i86pc 
Java 1.6.0_22: Java HotSpot client VM 1.7.1-b03


Going to full screen works correctly (so in this configuration bug #190851 appers to be solved) but returning to normal size causes the exception.

---
For what concerns bug #190851, it is still there on the workstation (as I reported in the other entry.

I hope it is clear, I apologize for the incomplete information.
Comment 5 AngeloD 2011-02-25 11:38:15 UTC
I added Jaroslav in CC because he told me to do so.
Comment 6 Stanislav Aubrecht 2011-02-28 12:02:37 UTC
i've added a fix to core-main repo (fdbe81a3ebba) that might prevent the fix.
however i can't verify it so please download a new build when the changeset propagates to the main repo and let me know if the problem is still reproducible, thanks

btw, the stacktrace points to a wrong line in:
org.netbeans.core.windows.view.ui.MainWindow.setFullScreenMode(MainWindow.java:652)
Comment 7 Quality Engineering 2011-03-01 17:50:31 UTC
Integrated into 'main-golden', will be available in build *201103011142* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/fdbe81a3ebba
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #195927 - attempting to prevent NPE