You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
Initial report
Attempted fix with v0.1.9
javaClass.getResource()
is returning null: https://github.com/gabrielchl/intellij-pets/blob/main/src/main/kotlin/dev/gabrielchl/intellijPets/toolWindow/Pet.kt#L56Not sure how to proceed :(
The text was updated successfully, but these errors were encountered: