JJazzLab icon indicating copy to clipboard operation
JJazzLab copied to clipboard

UI corruption under Windows + NVidia card

Open Kashouryo opened this issue 10 months ago • 9 comments

Version: 4.1.2 release System: Windows 11 Pro Workstations 22H2 GPU: Nvidia RTX A2000 Laptop 8GB CPU: Intel Xeon W-1290P

The UI corrupts when you interact with the song part panel. Which it will render the window content at wherever your cursor is.

Image

Kashouryo avatar Jan 31 '25 00:01 Kashouryo

When it happens please check the log file. Any exception ? Does the program works despite this ?

jjazzboss avatar Jan 31 '25 07:01 jjazzboss

Some other users reported this isseu as well. It seems to be a java/Direct3D/NVidia compatibility issue: https://github.com/JFormDesigner/FlatLaf/issues/887 https://github.com/kaikramer/keystore-explorer/issues/497

Please try and tell me if it works:

  • edit file etc/jjazzlab.conf in your JJazzLab installation directory
  • add -J-Dsun.java2d.d3d.onscreen=false in the default_options variable
  • start JJazzLab

jjazzboss avatar Jan 31 '25 14:01 jjazzboss

The issue no longer presents after disabling direct3d in the config file. Thank you!

Kashouryo avatar Jan 31 '25 20:01 Kashouryo

Disabling d3d is a workaround, I hope it does not impact JJazzLab in other ways. Are you sure you have the latest driver for you graphics card ?

jjazzboss avatar Feb 01 '25 14:02 jjazzboss

I don't know if any of this is relevant but I had exactly the same problem, which has suddenly stopped (without disabling d3d). Perhaps the improvement is only termporary and problem will return, but these are the things I had tried:

1] I wasn't running the latest nVidia drivers, so I updated them to the current release (572.16 - Jan 30 2025). I reloaded JJazzLab (once) but still encountered the window-redrawing problem.

2] I then tried something else. I currently run two monitors, my main monitor at 1920x1200 and a second at 1280x1024. The dual monitor set-up has caused problems for some apps, so I tried disabling the second monitor. I was then able to run JJazzlab several times without any problems. I re-enabled the second monitor, expecting the redrawing problem to re-appear, but the problem still has not come back and things still seem to be working OK without disabling d3d.

If the problem comes back I will post another message.

My system: Version: 4.1.2 release System: Windows 10 Education (10.0.19045) GPU: Nvidia GeForce GTX1660 CPU: Intel Core i7-11700

SnakyGrain avatar Feb 02 '25 15:02 SnakyGrain

@SnakyGrain @Kashouryo

JJazzLab 4.1.2 uses Java 17. Next version will use Java 23. It's possible that this java version also solves your issue without having to disable D3D. Could you please try to run the test package below ?

https://github.com/jjazzboss/JJazzLab/releases/download/4.1.3-SNAPSHOT-JDK23-TEST/JJazzLab-4.1.3-SNAPSHOT-UI-Corruption-Test-JDK23.zip

It won't install anything. Just unzip and double-click on bin/jjazzlab64.exe.

Thanks!

jjazzboss avatar Feb 02 '25 19:02 jjazzboss

I thought the problem might have gone away with 4.1.2 but unfortunately it returned - once the program had been running for a while and I had opened and closed various windows several times and zoomed in and out a bit, the constant window-redrawing started up again.

Sadly the same thing happened with the latest snapshot that you linked to, so it looks like Java 23 does not solve the problem.

SnakyGrain avatar Feb 03 '25 09:02 SnakyGrain

@SnakyGrain But I assume -J-Dsun.java2d.d3d.onscreen=false solves the issue right ?

jjazzboss avatar Feb 03 '25 20:02 jjazzboss

Yes sorry I should have made that clear - disabling d3d does seem to do the trick.

SnakyGrain avatar Feb 04 '25 08:02 SnakyGrain