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 230959 - Dialogs are not painted correctly on Gnome 3/Linux/Nvidia
Summary: Dialogs are not painted correctly on Gnome 3/Linux/Nvidia
Status: VERIFIED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-07 21:40 UTC by everflux
Modified: 2015-01-23 16:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stuck installer window after clicking randomly inside the dialog (53.57 KB, image/png)
2013-06-07 21:42 UTC, everflux
Details
Same on intel graphics card / Ubuntu 13.04 with Gnome 3 (71.94 KB, image/png)
2013-06-08 11:52 UTC, everflux
Details
editor window missing elements which appear on mouse-over (34.37 KB, image/png)
2013-06-08 13:33 UTC, everflux
Details

Note You need to log in before you can comment on or make changes to this bug.
Description everflux 2013-06-07 21:40:07 UTC
[ BUILD # : 201306062301 ]
[ JDK VERSION : 1.7.0_21 ]

I have the issue that dialogs are not painted correctly on Gnome 3/Linux/Nvidia
graphics hardware. (Not tested on other machines... yet)

The issue can lead to the assumption that f.e. the installer is stuck, in fact
it is finished only the dialog is not (re)painted.

When I click somewhere in the dialog it gets repainted in that area. Switching
to other virtual desktops or putting a another window above the dialog does not
help with the repainting.

This seems to be especially triggered when a paint occurs while working on a
different virtual desktop. (F.e. start installer, check mail on other desktop,
switch back - dialog does not get repainted.)
Comment 1 everflux 2013-06-07 21:42:08 UTC
Created attachment 135528 [details]
stuck installer window after clicking randomly inside the dialog

You can see that the area around the mouse is repainted when I clicked.

Resizing immediately leads to correct painting.
Comment 2 everflux 2013-06-08 11:52:27 UTC
Created attachment 135534 [details]
Same on intel graphics card / Ubuntu 13.04 with Gnome 3

Notice how the "next" button is displayed correctly but the remainder of the dialog is frozen in time.
Comment 3 everflux 2013-06-08 13:33:58 UTC
Created attachment 135535 [details]
editor window missing elements which appear on mouse-over

this is from the main editor window - it does not happen only in the installer.

May be a generic JRE/Swing issue?
Comment 4 Stanislav Aubrecht 2013-08-01 10:02:07 UTC
Reporter, is this happening also in a plain Swing app? E.g. SwingSet demo...
Can you reproduce on a different hardware?
Also please attach your IDE log and reopen, thanks.
Comment 5 everflux 2013-08-03 08:47:16 UTC
Used the swing demo from http://swinglabs-demos.java.net/ (webstart)

Paints happening "off screen" (while on a different virtual desktop) are not materialized. Have not tested with a different machine, this is Gnome 3.8 with JDK 7u25 and Nvidia graphics card/drivers.
Comment 6 fistons 2014-02-06 09:22:26 UTC
I have the exact same problem on my machine: ArchLinux, Gnome 3 and an Intel Chipset.
Comment 7 everflux 2014-03-29 11:23:26 UTC
I assume this is due to Java 8 enbabling the xrender extension by default. I have serious graphics issues with Netbeans 8/Java 8 on Nvidia machine, flickering, windows only scrolling partly etc.

I added the following flag to the netbeans startup options:
-J-Dsun.java2d.opengl=true 

this seemed to mitigate the problems, at least during a 10 minute test period. I encourage other users experiencing graphics problems to test it and report their results.
Comment 8 toby_pde 2015-01-23 16:20:08 UTC
(In reply to everflux from comment #7)
>I encourage other users experiencing graphics problems to test it
> and report their results.

I also had severe rendering problems using Ubuntu on a NVidia machine. Adding the proposed flag fixed it for me. Thanks.