NationalSecurityAgency / ghidra

Ghidra is a software reverse engineering (SRE) framework
https://www.nsa.gov/ghidra
Apache License 2.0
51.9k stars 5.89k forks source link

Can't view text in certain windows of Ghidra on RHEL 9.4 #6831

Closed itsallmathematics closed 1 month ago

itsallmathematics commented 3 months ago

Describe the bug I am unable to view the text in Listing, Decompile, and Console - Scripting Windows nor am I able to view the text in the "Dragon logo" splash screen at startup. In fact, I was unable to even view The Ghidra & Java versions on the splash screen, but retrieved them using an alternate method. The only notable change I've made to the system recently is that I upgraded from RHEL 9.2 to RHEL 9.4.

NOTE: The text glitches in and out when I scroll around the affected windows/highlight with the cursor, but this is completely breaking because at no point is any significant amount of text visible, it is maybe a string or 2 at a time at most, and the string that is visible is not necessarily the one I have highlighted with the cursor. Also, yes, I have tried rebooting a few times to make sure it wasn't a strange one-off glitch.

To Reproduce Start ghidra using ./GhidraRun and the behavior occurs at the splash screen, and subsequently on the Decompiler, Listing, and Console - Scripting windows.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Attachments Ghidra_GUI_Bug

Environment:

Additional context If it is known which component is having the bug, I am willing to try debug steps and/or workarounds. I am just not familiar which component that could be causing this, but I could guess some sort of bug between the GUI framework and display renderer or video driver?

astrelsky commented 3 months ago

I suspect this may be a theme issue. Try playing with the theme configuration to see if it helps. It is available in the edit menu of the first window you get when you open Ghidra.

Edit: I'm not sure why the problem would appear only after updating your OS though.

ryanmkurtz commented 2 months ago

@itsallmathematics I cannot reproduce this. Are you still having the issue?

Life-sec commented 2 months ago

@ryanmkurtz I got this issue too. I tried switching themes even to old one but it didn't help.

ryanmkurtz commented 2 months ago

Are you on RHEL too?

Life-sec commented 2 months ago

@ryanmkurtz no Ubuntu 24.04 LTS

Life-sec commented 2 months ago

I tried rolling to 11.1 and 10.3 and it still happened. Not sure if it's related to eclipse or some other dependency related to gui

Life-sec commented 2 months ago

update: I just visited the website and this bug is addressed in the following excerpt (will quote it here in case someone stumbles upon my comment first): " GUI icons may not render correctly in some configurations of Linux. Setting VMARGS=-Dsun.java2d.opengl to true in /support/launch.properties may fix this issue. " from https://htmlpreview.github.io/?https://github.com/NationalSecurityAgency/ghidra/blob/stable/GhidraDocs/InstallationGuide.html#KnownIssues

ryanmkurtz commented 2 months ago

@itsallmathematics can you try setting VMARGS=-Dsun.java2d.opengl=false in support/launch.properties to true to see if that has any effect?