help error opening game

joeldom

  • Posts: 35
Unexpected problem on thread AWT-EventQueue-0: java.lang.IndexOutOfBoundsException
java.lang.RuntimeException: java.lang.IndexOutOfBoundsException
   at stencyl.sw.app.tasks.StencylWorker.done(StencylWorker.java:72)
   at stencyl.sw.app.tasks.StencylWorker.done(StencylWorker.java:52)
   at stencyl.sw.app.tasks.OpenGameTask.done(OpenGameTask.java:169)
   at javax.swing.SwingWorker$5.run(Unknown Source)
   at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(Unknown Source)
   at sun.swing.AccumulativeRunnable.run(Unknown Source)
   at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(Unknown Source)
   at javax.swing.Timer.fireActionPerformed(Unknown Source)
   at javax.swing.Timer$DoPostEvent.run(Unknown Source)
   at java.awt.event.InvocationEvent.dispatch(Unknown Source)
   at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
   at java.awt.EventQueue.access$000(Unknown Source)
   at java.awt.EventQueue$1.run(Unknown Source)
   at java.awt.EventQueue$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
   at java.awt.EventQueue.dispatchEvent(Unknown Source)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.IndexOutOfBoundsException
   at java.io.RandomAccessFile.readBytes(Native Method)
   at java.io.RandomAccessFile.read(Unknown Source)
   at javax.imageio.stream.FileImageInputStream.read(Unknown Source)
   at com.sun.imageio.plugins.common.SubImageInputStream.read(Unknown Source)
   at com.sun.imageio.plugins.common.InputStreamAdapter.read(Unknown Source)
   at java.io.SequenceInputStream.read(Unknown Source)
   at java.util.zip.InflaterInputStream.fill(Unknown Source)
   at java.util.zip.InflaterInputStream.read(Unknown Source)
   at java.io.BufferedInputStream.fill(Unknown Source)
   at java.io.BufferedInputStream.read(Unknown Source)
   at java.io.FilterInputStream.read(Unknown Source)
   at com.sun.imageio.plugins.png.PNGImageReader.decodePass(Unknown Source)
   at com.sun.imageio.plugins.png.PNGImageReader.decodeImage(Unknown Source)
   at com.sun.imageio.plugins.png.PNGImageReader.readImage(Unknown Source)
   at com.sun.imageio.plugins.png.PNGImageReader.read(Unknown Source)
   at javax.imageio.ImageIO.read(Unknown Source)
   at javax.imageio.ImageIO.read(Unknown Source)
   at stencyl.core.lib.Game.loadSnippet(Game.java:2337)
   at stencyl.core.lib.Game.loadSnippet(Game.java:2256)
   at stencyl.core.lib.Game.loadSnippets(Game.java:2248)
   at stencyl.core.lib.Game.<init>(Game.java:1801)
   at stencyl.core.lib.Game.create(Game.java:790)
   at stencyl.sw.app.tasks.OpenGameTask.doInBackground(OpenGameTask.java:95)
   at stencyl.sw.app.tasks.OpenGameTask.doInBackground(OpenGameTask.java:34)
   at javax.swing.SwingWorker$1.call(Unknown Source)
   at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
   at java.util.concurrent.FutureTask.run(Unknown Source)
   at javax.swing.SwingWorker.run(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)

help please


Husenica

  • Posts: 54
Got same issue on one of my games with difference in

   at stencyl.core.lib.Game.loadSnippet(Game.java:2249)
   at stencyl.core.lib.Game.loadSnippet(Game.java:2170)
   at stencyl.core.lib.Game.loadSnippets(Game.java:2162)
   at stencyl.core.lib.Game.<init>(Game.java:1715)
   at stencyl.core.lib.Game.create(Game.java:763)

captaincomic

  • *
  • Posts: 6108
@joeldom If you still have the issue, could you share your game? (Here, or per PM.)

@Husenica Please post your full logs, Debug -> Logs -> Generate Logs.

Husenica

  • Posts: 54
Managed to open game.

1.  Open
Users\Your User Name\AppData\Roaming\Stencyl\stencylworks\games\Your Game Name\snippets\list.xml

2. Comment out snippet by snippet and try to open game - repeat  until it opens.

Now I'm getting weird errors on compiling(fkd up brackets):

event.otherActor.applyImpulseInDirection(Utils.DEG * (cast((scripts.Design_40_40_DistanceandAngle._customBlock_actorToActorAngle(actor,event.otherActor)), Float), 35);

Logs attached

Husenica

  • Posts: 54
After messing with snippets list.xml i was able to open game but got errors.

To fix error during compilation I had to remove custom block behavior, save and close game.
Another interesting thing was all Actors being stripped of behaviors.

Got it running now :)



captaincomic

  • *
  • Posts: 6108
@Husenica glad you got it running :)

@joeldom Your error is also reported here http://community.stencyl.com/index.php/topic,36085.0.html