Slyvr/Multiverse — Issue #1: InitMusic.init() Causes OutOfMemoryError
Author: zechdc
Created: 2012-01-29 01:09:07+00:00
State: open

In the Initializer.java class, line 21 makes the game take forever to load and finally crashed with this error. I will look into but I'm still trying to read through all your code and wrap my head around whats going on.

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2786)
at java.io.ByteArrayOutputStream.toByteArray(ByteArrayOutputStream.java:133)
at org.newdawn.slick.openal.OggDecoder.getData(OggDecoder.java:322)
at org.newdawn.slick.openal.SoundStore.getOgg(SoundStore.java:835)
at org.newdawn.slick.openal.SoundStore.getOgg(SoundStore.java:793)
at org.newdawn.slick.Music.(Music.java:135)
at org.newdawn.slick.Music.(Music.java:74)
at com.slyvr.init.InitMusic.init(InitMusic.java:15)
at com.slyvr.init.Initializer.init(Initializer.java:21)
at com.slyvr.Main.init(Main.java:27)
at org.newdawn.slick.AppGameContainer.setup(AppGameContainer.java:390)
at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:314)
at com.slyvr.Main.main(Main.java:44)