question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Width (400) and height (0) cannot be <= 0

See original GitHub issue

Installed and opened blob with Ghidra. The file is raw XML file. The graphview is visible but error message still pops up each time I run the script.

Uncaught Exception! 
IllegalArgumentException - Width (400) and height (0) cannot be <= 0
java.lang.IllegalArgumentException: Width (400) and height (0) cannot be <= 0
	at java.desktop/java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1016)
	at java.desktop/java.awt.image.BufferedImage.<init>(BufferedImage.java:324)
	at BitMapSliderUI.makeBitmap(BitMapSliderUI.java:106)
	at BitMapSliderUI.lambda$new$0(BitMapSliderUI.java:41)
	at java.base/java.lang.Thread.run(Thread.java:834)

---------------------------------------------------
Build Date: 2020-Feb-12 1149 EST
Ghidra Version: 9.1.2
Java Home: C:\Program Files\Amazon Corretto\jdk11.0.7_10
JVM Version: Amazon.com Inc. 11.0.7
OS: Windows 10 10.0 amd64
Workstation: hostname

See image below:

2020-07-25 10_54_45-e

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sengi12commented, Oct 15, 2020

@duraki I apologize for the delay as I’ve been quite preoccupied with school. I think I fixed your issue though as I was able to recreate it in a Windows VM and isolated the issue to a couple lines within BitMapSliderUI.java. It simply had to do with the file being so small that some math was done incorrectly. It should work once my pull request goes through!

0reactions
durakicommented, Oct 16, 2020

Awesome! Thanks a lot for PR.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Width (0) and height (0) cannot be <= 0 : IDEA-129609
java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0. Relates to 4 Duplicates 1. Relates to 4 issues (0 unresolved).
Read more >
IllegalArgumentException - Width (0) and height (0) cannot be ...
I personally have this error on an Ubuntu 22.04 machine when any java application is visible on the screen and I disconnect and...
Read more >
RuntimeException : Width (0) and height (0) cannot be <= 0
I have got this type of error, How may I resolve this issue. java.lang.RuntimeException: java.lang.RuntimeException: Error while processing D:\ ...
Read more >
The live view is not visible due t… | Apple Developer Forums
After starting the code Playground displays an error "The live view is not visible due to having zero width and zero height". There...
Read more >
Exception width and height can not be <0 - java - Daniweb
2) I may have a counting error, trying to print some page not there. I tried throwing in pdf with successively larger page...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found