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

Working at 4k resolution isn't possible #341

Closed
ValonK opened this issue Apr 4, 2019 · 11 comments
Closed

Working at 4k resolution isn't possible #341

ValonK opened this issue Apr 4, 2019 · 11 comments
Assignees
Labels
Type: Bug Something isn't working
Milestone

Comments

@ValonK
Copy link

ValonK commented Apr 4, 2019

Describe the bug
after loading the binary and maximizing the window, Ghidra (UI) completely shits the bed and it becomes unusable, which sucks.

To Reproduce
Steps to reproduce the behavior:
run in 4k

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

Screenshots
https://imgur.com/a/kNz2QFc
https://imgur.com/a/Tceevpo

Attachments
If applicable, please attach any files that caused problems or log files generated by the software.

Environment (please complete the following information):

  • OS: Windows 10 1809 (Build 17763.379)
  • Java Version: 11.0.2 1.8.0_171-b11
  • Ghidra Version: 9.0.2

Additional context
Add any other context about the problem here.

@ValonK ValonK added the Type: Bug Something isn't working label Apr 4, 2019
@arminfelder
Copy link

I guess this is related to #1

@williballenthin
Copy link
Contributor

works for me

image

image

@ryanmkurtz
Copy link
Collaborator

Thanks @williballenthin. What JDK are you using? OpenJDK, Oracle JDK, Amazon JDK?

@ryanmkurtz ryanmkurtz self-assigned this Apr 5, 2019
@williballenthin
Copy link
Contributor

williballenthin commented Apr 5, 2019

image

image

@ryanmkurtz
Copy link
Collaborator

Thanks @williballenthin. @ValonK, you could try the Oracle JDK to see if that fixes it for you. Note that it's up to you to ensure that you meet the licensing requirements for use of the JDK...it can vary from vendor to vendor.

@seritools
Copy link

seritools commented May 18, 2019

Hi, I've encountered the same problem, weirdly with other Java applications as well. Most of the time it seems to be some breakage with java 1.8+ rendering and multimonitor setups.

Examples of other software having the same behavior:
chatty/chatty#27
fesch/Structorizer.Desktop#536
magefree/mage#1514

In Ghidra, the rendering works just fine for me, until I do the very specific thing of hovering over a button, creating a tooltip that crosses the outside of the window frame, like this:

image

Immediately after any tooltip crosses the window, every repaint garbles the screen.

Searching for a solution after giving up last time I've found that this seems to work for me: fesch/Structorizer.Desktop#536 (comment)

I've added the following lines to support\launch.properties:

VMARGS=-Dsun.java2d.noddraw=true
VMARGS=-Dsun.java2d.d3d=false

It seems to run fine now after setting these VM args.

EDIT: This is on Windows 10 Insider Build Fast, with up-to-date Nvidia drivers.

@arminfelder
Copy link

I had the same issue with Ubuntu 19.04, setting

VMARGS=-Dsun.java2d.xrender=true

did the trick for me

@ValonK
Copy link
Author

ValonK commented May 20, 2019

@seritools thanks fixes the problem for me

@ryanmkurtz
Copy link
Collaborator

is setting nodraw to true necessary if d3d is set to false? The documentation for nodraw seems to indicate it may not be necessary.

@seritools
Copy link

Just checked - VMARGS=-Dsun.java2d.d3d=false seems to be enough 👍

@ryanmkurtz
Copy link
Collaborator

Thanks...I'm just trying to narrow down what our default settings should be moving forward, and I can't actually test any of this myself.

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

No branches or pull requests

5 participants