vassalengine / vassal

VASSAL, the open-source boardgame engine
https://vassalengine.org
GNU Lesser General Public License v2.1
419 stars 99 forks source link

[Commands & Colors Epic Napoleonics] NullPointerException: Cannot invoke "java.awt.Image.getWidth(java.awt.image.ImageObserver)" because the return value of "java.awt.image.AbstractMultiResolutionImage.getBaseImage()" is null #10886

Open uckelman opened 2 years ago

uckelman commented 2 years ago
ABR
Version 3.6.1
Reporter paulkt@gmail.com
Error Log 26269 bytes
I was doing nothing, watching other people playing....

Commands & Colors Epic Napoleonics v3.0.0a69 3.6.1

java.lang.NullPointerException: Cannot invoke "java.awt.Image.getWidth(java.awt.image.ImageObserver)" because the return value of "java.awt.image.AbstractMultiResolutionImage.getBaseImage()" is null
 at java.desktop/java.awt.image.AbstractMultiResolutionImage.getWidth(AbstractMultiResolutionImage.java:84)
 at java.desktop/sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3420)
 at java.desktop/sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3406)
 at java.desktop/javax.swing.ImageIcon.paintIcon(ImageIcon.java:442)
uckelman commented 2 years ago

It looks like there are some bad images in the module?

riverwanderer commented 2 years ago

We are all using the same module ok fine in an 8 player online game. However, when this player reconnected at one point he started getting loads of bad data messages to do with missing image and sound files (for files that are definately in the module). He disconnected and re-connected again and has been ok since.

riverwanderer commented 2 years ago

Is this particular incident a Vassal v3.6 variation of this issue that I have experienced under v3.5 and possibly earlier? The common theme being images that are in the module but the user session doesn't recognise/find.

BrentEaston commented 1 year ago

There is no actual VASSAL code in any of these errorlogs. Possible Java bug?

AsaiToshiya commented 1 year ago

I would like to take up this issue.

BrentEaston commented 1 year ago

Fantastic, it would be great if you could sort this out.