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

User reports crash when opening the tool window #9

Open
gabrielchl opened this issue Aug 18, 2024 · 0 comments
Open

User reports crash when opening the tool window #9

gabrielchl opened this issue Aug 18, 2024 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@gabrielchl
Copy link
Owner

Initial report

  • user using Windows, IntelliJ IDEA v2024.1.4
  • pets plugin v0.1.7
  • toolwindow crash on being opened, with the following thread dump provided:
"AWT-EventQueue-0" prio=0 tid=0x0 nid=0x0 waiting on condition
     java.lang.Thread.State: WAITING
 on java.awt.MediaTracker@23cc6195
	at [email protected]/java.lang.Object.wait(Native Method)
	at java.desktop/java.awt.MediaTracker.waitForID(MediaTracker.java:681)
	at java.desktop/java.awt.MediaTracker.waitForID(MediaTracker.java:634)
	at dev.gabrielchl.intellijPets.utils.Utilities.waitForImageToLoad(utils.kt:15)
	at dev.gabrielchl.intellijPets.toolWindow.Pet.<init>(Pet.kt:64)
	at dev.gabrielchl.intellijPets.toolWindow.PetsToolWindowFactory$PetsToolWindowContentPanel.createPets(PetsToolWindowFactory.kt:72)
	at dev.gabrielchl.intellijPets.toolWindow.PetsToolWindowFactory$PetsToolWindowContentPanel.<init>(PetsToolWindowFactory.kt:44)
	at dev.gabrielchl.intellijPets.toolWindow.PetsToolWindowFactory$PetsToolWindowContent.<init>(PetsToolWindowFactory.kt:28)
	at dev.gabrielchl.intellijPets.toolWindow.PetsToolWindowFactory.createToolWindowContent(PetsToolWindowFactory.kt:21)
	at com.intellij.openapi.wm.impl.ToolWindowImpl.createContentIfNeeded(ToolWindowImpl.kt:596)
	at com.intellij.openapi.wm.impl.ToolWindowImpl.scheduleContentInitializationIfNeeded

Attempted fix with v0.1.9

  • following the report, and with the info in the thread dump it seems like it got stuck loading the spritsheet images
  • updated the code to use a sync image loading API 404c48f, released in v0.1.9
  • we verified that the spritesheet resources does exist on user machine and plugin config file appears normal
  • user provided new thread dump:
java.lang.IllegalArgumentException: input == null!
	at java.desktop/javax.imageio.ImageIO.read(ImageIO.java:1402)
	at dev.gabrielchl.intellijPets.toolWindow.Pet.<init>(Pet.kt:55)
	at dev.gabrielchl.intellijPets.toolWindow.PetsToolWindowFactory$PetsToolWindowContentPanel.createPets(PetsToolWindowFactory.kt:103)
	at dev.gabrielchl.intellijPets.toolWindow.PetsToolWindowFactory$PetsToolWindowContentPanel.<init>(PetsToolWindowFactory.kt:47)
	at dev.gabrielchl.intellijPets.toolWindow.PetsToolWindowFactory$PetsToolWindowContent.<init>(PetsToolWindowFactory.kt:31)
	at dev.gabrielchl.intellijPets.toolWindow.PetsToolWindowFactory.createToolWindowContent(PetsToolWindowFactory.kt:24)

Not sure how to proceed :(
@gabrielchl gabrielchl added the help wanted Extra attention is needed label Aug 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant