Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI corruption under Windows + NVidia card #529

Open
Kashouryo opened this issue Jan 31, 2025 · 9 comments
Open

UI corruption under Windows + NVidia card #529

Kashouryo opened this issue Jan 31, 2025 · 9 comments
Labels
bug Something isn't working
Milestone

Comments

@Kashouryo
Copy link

Kashouryo commented Jan 31, 2025

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

@jjazzboss
Copy link
Owner

jjazzboss commented Jan 31, 2025

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

@jjazzboss
Copy link
Owner

jjazzboss commented Jan 31, 2025

Some other users reported this isseu as well. It seems to be a java/Direct3D/NVidia compatibility issue:
JFormDesigner/FlatLaf#887
kaikramer/keystore-explorer#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

@Kashouryo
Copy link
Author

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

@jjazzboss jjazzboss added the bug Something isn't working label Jan 31, 2025
@jjazzboss jjazzboss added this to the 4.1.3 milestone Jan 31, 2025
@jjazzboss jjazzboss reopened this Feb 1, 2025
@jjazzboss
Copy link
Owner

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 jjazzboss changed the title UI corruption under Windows 11 UI corruption under Windows + NVidia card Feb 1, 2025
@SnakyGrain
Copy link

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

@jjazzboss
Copy link
Owner

jjazzboss commented Feb 2, 2025

@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!

@SnakyGrain
Copy link

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.

@jjazzboss
Copy link
Owner

jjazzboss commented Feb 3, 2025

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

@SnakyGrain
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants