triplea-game / triplea

TripleA is a turn based strategy game and board game engine, similar to Axis & Allies or Risk.
https://triplea-game.org/
GNU General Public License v3.0
1.35k stars 399 forks source link

2.5.22294: TileImageFactory#loadUnblendedImage:255 - java.lang.ArrayIndexOutOfBoundsException #12982

Closed tripleabuilderbot closed 1 week ago

tripleabuilderbot commented 2 weeks ago

Map

a_song_of_ice_and_fire

Log Message

Could not load image, url: jar:file:/Users/sid/triplea/downloadedMaps/a_song_of_ice_and_fire-master.zip!/a_song_of_ice_and_fire-master/map/baseTiles/28_14.png

TripleA Version

2.5.22294

Java Version

11.0.6

Operating System

Mac OS X

Memory

Heap utilization statistics [MB] Used Memory: 942 Free memory: 1105 Total memory: 2048 Max memory: 2048

Stack Trace

Exception: javax.imageio.IIOExceptionCaught exception during read: 
java.lang.Exception
    at java.desktop/com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1817)
    at java.desktop/javax.imageio.ImageIO.read(ImageIO.java:1468)
    at java.desktop/javax.imageio.ImageIO.read(ImageIO.java:1420)
    at games.strategy.triplea.image.TileImageFactory.loadUnblendedImage(TileImageFactory.java:255)
    at games.strategy.triplea.image.TileImageFactory.loadImage(TileImageFactory.java:189)
    at games.strategy.triplea.image.TileImageFactory.getImage(TileImageFactory.java:160)
    at games.strategy.triplea.image.TileImageFactory.getBaseTile(TileImageFactory.java:137)
    at games.strategy.triplea.ui.screen.drawable.BaseMapDrawable.getImage(BaseMapDrawable.java:17)
    at games.strategy.triplea.ui.screen.drawable.MapTileDrawable.draw(MapTileDrawable.java:39)
    at games.strategy.triplea.ui.screen.Tile.draw(Tile.java:69)
    at games.strategy.triplea.ui.screen.Tile.drawImage(Tile.java:54)
    at games.strategy.triplea.ui.panels.map.MapPanel.lambda$paint$7(MapPanel.java:742)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:834)

Exception: java.lang.ArrayIndexOutOfBoundsException 
TheDog-GH commented 1 week ago

2.5 is not supported upgrade to 2.7

Using the unzipping version of the zip will work