You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Jerome Lelasseux <le...@yahoo.com.INVALID> on 2025/01/31 20:17:29 UTC
Corrupted display NB230+Nvidia ?
Hi,
I released a new version of my NB app early january with Java 17+NB230.
I have several users who recently reported a severe repainting issue on Windows 10/11 when using NVidia card: https://github.com/jjazzboss/JJazzLab/issues/529
It seems I'm not the only one impacted (see links in the Issue). I can not reproduce on my setup, so I hope the suggested workaround will work. If anyone knows more about this...
Thanks
Jerome
Re: Corrupted display NB230+Nvidia ?
Posted by Eirik Bakke <eb...@ultorg.com.INVALID>.
I saw the FlatLAF issue https://github.com/JFormDesigner/FlatLaf/issues/887 suggested the corruption could relate to FlatLAF's rounded popup menu feature. Perhaps some screen/component coordinate conversion is going wrong somewhere, e.g. due to HiDPI scaling and multiple monitors.
In my own NetBeans Platform app, and in my working NetBeans IDE, I found that the rounded popup menus made popups slightly sluggish on Windows (I could see them being drawn for a moment when they open). So I just disabled them in my custom build.
Unless people specifically like the rounded style, we might consider just switching to non-rounded menus in NetBeans.
-- Eirik
From: Jerome Lelasseux <le...@yahoo.com.INVALID>
Date: Saturday, February 1, 2025 at 9:15 AM
To: NetBeans Mailing List <us...@netbeans.apache.org>
Subject: Re: Corrupted display NB230+Nvidia ?
Thanks!
Le samedi 1 février 2025 à 11:35:09 UTC+1, Neil C Smith <ne...@apache.org> a écrit :
On Sat, 1 Feb 2025 at 04:15, Michael Bien <mb...@gmail.com>> wrote:
> -J-Dsun.java2d.d3d.onscreen=false will likely solve it right away, but
> it essentially turns off hardware acceleration on windows. Ideally a
> driver update should fix it.
It turns off a subset of acceleration. Not completely sure what as
the flag seems a little under-documented*
On the other hand, the IDE ships with -J-Dsun.java2d.noddraw=true in
netbeans.conf so does turn everything off by default.
* although there is
https://github.com/openjdk/jdk/blob/master/src/java.desktop/windows/classes/sun/java2d/d3d/D3DScreenUpdateManager.java#L185
Best wishes,
Neil
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org<ma...@netbeans.apache.org>
For additional commands, e-mail: users-help@netbeans.apache.org<ma...@netbeans.apache.org>
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Corrupted display NB230+Nvidia ?
Posted by Jerome Lelasseux <le...@yahoo.com.INVALID>.
Thanks!
Le samedi 1 février 2025 à 11:35:09 UTC+1, Neil C Smith <ne...@apache.org> a écrit :
On Sat, 1 Feb 2025 at 04:15, Michael Bien <mb...@gmail.com> wrote:
> -J-Dsun.java2d.d3d.onscreen=false will likely solve it right away, but
> it essentially turns off hardware acceleration on windows. Ideally a
> driver update should fix it.
It turns off a subset of acceleration. Not completely sure what as
the flag seems a little under-documented*
On the other hand, the IDE ships with -J-Dsun.java2d.noddraw=true in
netbeans.conf so does turn everything off by default.
* although there is
https://github.com/openjdk/jdk/blob/master/src/java.desktop/windows/classes/sun/java2d/d3d/D3DScreenUpdateManager.java#L185
Best wishes,
Neil
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Corrupted display NB230+Nvidia ?
Posted by Neil C Smith <ne...@apache.org>.
On Sat, 1 Feb 2025 at 04:15, Michael Bien <mb...@gmail.com> wrote:
> -J-Dsun.java2d.d3d.onscreen=false will likely solve it right away, but
> it essentially turns off hardware acceleration on windows. Ideally a
> driver update should fix it.
It turns off a subset of acceleration. Not completely sure what as
the flag seems a little under-documented*
On the other hand, the IDE ships with -J-Dsun.java2d.noddraw=true in
netbeans.conf so does turn everything off by default.
* although there is
https://github.com/openjdk/jdk/blob/master/src/java.desktop/windows/classes/sun/java2d/d3d/D3DScreenUpdateManager.java#L185
Best wishes,
Neil
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Corrupted display NB230+Nvidia ?
Posted by Michael Bien <mb...@gmail.com>.
Hi Jerome,
driver bugs are certainly possible but I don't remember any recent bug
reports in that area. I think there were 1-2 wayland specific issues but
thats it.
The screenshot looks like buffer/memory problems, however this could
also be caused by a hardware issues. I once had a PSU which made the GPU
produce similar looking artifacts - swapped it out due to unrelated
reasons and the same system works fine still to this day. (this doesn't
mean that i advise to swap out the PSU - I only mentioned this since it
really could be anything)
i would try the following in that order:
- update drivers and JDK to the latest supported major version and
latest update release
- disable "window decorations" in the flatlaf settings
- switch to one of the old fallback LAFs like metal to check if it is
still reproducible there
-J-Dsun.java2d.d3d.onscreen=false will likely solve it right away, but
it essentially turns off hardware acceleration on windows. Ideally a
driver update should fix it.
best regards,
michael
On 31.01.25 21:17, Jerome Lelasseux wrote:
> Hi,
>
> I released a new version of my NB app early january with Java 17+NB230.
>
> I have several users who recently reported a severe repainting issue
> on Windows 10/11 when using NVidia card:
> https://github.com/jjazzboss/JJazzLab/issues/529
>
> It seems I'm not the only one impacted (see links in the Issue). I can
> not reproduce on my setup, so I hope the suggested workaround will
> work. If anyone knows more about this...
>
> Thanks
> Jerome
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists