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

[gui] The GUI page displays ghosting. #2225

Closed
1 of 3 tasks
ChanChuRen opened this issue Jul 24, 2024 · 5 comments
Closed
1 of 3 tasks

[gui] The GUI page displays ghosting. #2225

ChanChuRen opened this issue Jul 24, 2024 · 5 comments
Labels
bug GUI Issues in jadx-gui module

Comments

@ChanChuRen
Copy link

Issue details

When I use jadx-gui-1.5.0-no-jre-win.exe on a 2k resolution screen, I encounter display component ghosting issues. The problem persists even when I switch the screen to 1080p. However, using jadx-1.4.7.zip works fine at 1080p, but ghosting still occurs when switching to 2k resolution. I haven't found similar issues reported. Initially, I thought it was a problem with my running environment, so I switched between several JDK versions, but the issue persisted. I also tried running two other GUI programs written in Java, and they displayed correctly, which makes me very puzzled. I hope to get an answer from you.
Snipaste_2024-07-24_16-13-40

Jadx version

1.5.0

Java version

11.0.16

OS

  • Windows
  • Linux
  • macOS
@ChanChuRen ChanChuRen added bug GUI Issues in jadx-gui module labels Jul 24, 2024
@jpstotz
Copy link
Collaborator

jpstotz commented Jul 24, 2024

Your screenshot looks a bit like the one in issue #1993.

As you have already tried different Java versions (I assume you tested versions like 17 and 21) you could also check if the used Jadx theme has an impact on your problem (e.g. using default).

In 1080p and 2k resolution what Windows scale factor do you use (100/125/150/175%)?

@ChanChuRen
Copy link
Author

I found the reason. As you mentioned, it is related to the theme. I don't know why the default theme wasn't being used; instead, it was the FlatLaf Light theme. Based on my tests, this theme consistently triggers the ghosting issue when using the search function. This problem is not related to the JDK version, monitor resolution, or scaling. After switching to the default theme, the issue was immediately resolved. Thank you very much.

@jpstotz
Copy link
Collaborator

jpstotz commented Jul 24, 2024

You can also try the latest unstable build https://nightly.link/skylot/jadx/workflows/build-artifacts/master

It uses a newer version of the FlatLaf theme library.

@ChanChuRen
Copy link
Author

Thank you, I will give it a try.

@skylot
Copy link
Owner

skylot commented Jul 24, 2024

@jpstotz I checked latest unstable build (with JRE 21) and this issue appear on 'default' theme as well as on FlatLaf themes.
Also, I tried JVM flags from #1993 (comment) and it resolves the issue 🎉

"-Dsun.java2d.noddraw=true"
"-Dsun.java2d.d3d=false"
"-Dsun.java2d.ddforcevram=true"
"-Dsun.java2d.ddblit=false"
"-Dswing.useflipBufferStrategy=True" 

I will try to investigate these flags and why they help, but at least for now we have a workaround 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug GUI Issues in jadx-gui module
Projects
None yet
Development

No branches or pull requests

3 participants