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.
Dear Sir/Madam, It is found that after using XGL inside the Linux (SUSE Linux 10.1), the IDE window of netbeans 5.0 and 5.5 beta are completely in blank. Regards.
Does it happen only in NetBeans or in all java application. What version of JDK do you use?
I have been able to reproduce the bug in both Gentoo and on the Korora Live CD. Both Eclipse and and simple JFrames and JButtons seem to work fine. In both versions of netbeans ctrl+n launches the new project dialog box but nothing is rendered in the box. The startup splash screen renders correctly.
Searching around I have found several other forums that also indicate the same problem. Some have suggested that the issue is related to compiz. However, I have found that simply launching Xgl in a rootless session and then launching netbeans in that session also produces the same bug. I have tried both sun-jdk-1.4.2.10 and sun-jdk-1.5.0.06. Both seem to have the same problem. Thanks.
I tested the jfc SwingSet2, Java2D, and Metalworks demos under Xgl and all seem to work correctly. It really seems like a Netbeans specific problem.
After looking into the problem further I discovered that I make the component under the mouse temporarily (at least partially) appear: ./netbeans -J-Dawt.nativeDoubleBuffering=true I hope this starts to help. Thanks.
Hi, jiriprox, I encountered almost exactly same as josephg2006 mentioned. - Tested with Sun JDK 1.5.0_06. - Splash screen of netbeans could be rendered and displayed correctly. IDE window is completely in blank. - Other Java IDE environment tested like Rational Application Developer 6.0 and JBoss IDE (based on Eclipse 3.x) - Seems not related to compiz, even not starting it (I'm using in KDE), still encounter this problem. The complete workaround need to restore back all shortcuts and restore displaymanager to "Xorg". I found that most XGL users encountered this kind of problems for some games. Thus, is that possible caused by some native drawing APIs using by the netbeans IDE? regards.
Ok, could you try this switch : -J-Dsun.java2d.noddraw=true Please let me know it works or not. Thanks in advance.
That does not seem to resolve the problem. I noticed no change in performance. I really appreciate the help. I found that the Kororaa live CD (if you have enough ram on which to install netbeans) is sufficient to test the netbeans environment with various flags. However I don't mind testing them. http://kororaa.org/static.php?page=static060318-181203 Hopefully this helps. -Joey
./netbeans -J-Dawt.nativeDoubleBuffering=true I only got several scroll bars appearing...cannot count as workaround
./netbeans -J-Dawt.nativeDoubleBuffering=true -> Some scroll bars re-appear ./netbeans -J-Dsun.java2d.noddraw=true -> still completely blank
./netbeans -J-Dawt.nativeDoubleBuffering=true -> Some scroll bars re-appear ./netbeans -J-Dsun.java2d.noddraw=false -> still completely blank
jackysiu, please try to run SwingSet demo bundled in JDK demos - is it blank as well? That way we can find if this is netbeans specific or more general - Swing related problem. Thanks.
I tested this already and found that all the JFC stuff I tested worked fine in Xgl. I tested the jfc SwingSet2, Java2D, and Metalworks demos under Xgl and all seem to work correctly. It really seems like a Netbeans specific problem. Is there any clever rendering that Netbeans does. From the earlier suggestions it seems like some direct draw is used. I should note that eclipse seems to work fine under XGL. Thanks -Joey
Nope, there is no clever painting in netbeans, we are using just standard swing techniques... Could you try with newest development build (Milestone1 of 6.0 is enough) on JDK 1.6.0 (early access)? We did some little magic to prevent main window from flickering on JDK 1.5 and older. I disabled this hack for 1.6, this in the only thing I can think of that may cause problems... Reporter, could you also attach messages.log from broken session to see if if there are some exceptions etc? Thanks.
*** Issue 84570 has been marked as a duplicate of this issue. ***
Comments from issue 84570 : After searching this issue, I found that using adding AWT_TOOLKIT=MToolkit in the environment fixes this. Is it possible to do this automatically so that netbeans just work out of the box?
Adding AWT_TOOLKIT=MToolkit didn't help in my case. But it helped when I removed 2 lines from file 'netbeans-5.0/platform6/lib/nbexec'. These are the lines: J2D_PIXMAPS=shared export J2D_PIXMAPS I hope it helps.
Removal of the J2D_PIXMAPS commands works for me also. Ubuntu 6.06 LTS, Xgl + Beryl 0.1
*** Issue 87712 has been marked as a duplicate of this issue. ***
*** Issue 86253 has been marked as a duplicate of this issue. ***
Some related references: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6429775 (jdk bug marked as fixed in JDK1.6U1). http://blogs.sun.com/superpat/entry/access_manager_7_1_beta : ...Start NetBeans and... Oh. NetBeans just shows me a blank window. That's not good. Google Google Google... Ah. I have XGL and Compiz eye candy installed. This forum post gives the answer - run the Xnest nested X server, the icewm window manager and then run NetBeans in the nested X session. Fair enough. Ubuntu recommends Xephyr rather than Xnest, so I grab that, icewm and.. great - we have NetBeans! [UPDATE: See this comment for a handy little script I wrote to run NetBeans in a nested X session.] ...
Passing to Marek, probably we should close this as wontfix, or is there anything more we can do?
JDK problem. According to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6429775 it was fixed in JDK 6u1.