java.lang.IndexOutOfBoundsException: Index: 3, Size: 0

AlexVsCoding

  • *
  • Posts: 186
Been having this issues on a number of projects now, I was able to work around it, but the HMTL5 projects that I'm exporting are crashing people's computers/browsers. When I open the project, this is the error I immediately have pop up:

Can't really proceed until I get to the bottom of it, on the latest version of Stencyl as far as I know (10522). Tested on both mac and windows, same issues/errors occur. Any help would be appreciated. 

Code: [Select]
java.lang.RuntimeException: java.lang.IndexOutOfBoundsException: Index: 3, Size: 0
at stencyl.sw.app.tasks.StencylWorker.done(StencylWorker.java:74)
at stencyl.sw.app.tasks.StencylWorker.done(StencylWorker.java:54)
at java.desktop/javax.swing.SwingWorker$5.run(Unknown Source)
at java.desktop/javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(Unknown Source)
at java.desktop/sun.swing.AccumulativeRunnable.run(Unknown Source)
at java.desktop/javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(Unknown Source)
at java.desktop/javax.swing.Timer.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.Timer$DoPostEvent.run(Unknown Source)
at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.IndexOutOfBoundsException: Index: 3, Size: 0
at java.base/java.util.ArrayList.rangeCheckForAdd(Unknown Source)
at java.base/java.util.ArrayList.add(Unknown Source)
at stencyl.sw.editors.scene.layerviews.ActorLayer.addActorToLayer(ActorLayer.java:208)
at stencyl.sw.editors.scene.layerviews.InteractiveLayerView.addActorToLayer(InteractiveLayerView.java:79)
at stencyl.sw.editors.scene.liteview.LiteEditorSceneModel.addActorToBuckets(LiteEditorSceneModel.java:345)
at stencyl.sw.editors.scene.liteview.LiteEditorSceneModel.addActor(LiteEditorSceneModel.java:397)
at stencyl.sw.editors.scene.liteview.LiteEditorSceneModel.<init>(LiteEditorSceneModel.java:81)
at stencyl.sw.editors.scene.liteview.LiteDesigner.<init>(LiteDesigner.java:81)
at stencyl.sw.app.tasks.OpenGameTask$PreloadCacheTask.doInBackground(OpenGameTask.java:227)
at stencyl.sw.app.tasks.OpenGameTask$PreloadCacheTask.doInBackground(OpenGameTask.java:185)
at java.desktop/javax.swing.SwingWorker$1.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.desktop/javax.swing.SwingWorker.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)

Justin

  • *
  • Posts: 4506
This issue was posted on the issue tracker (#1823: OutOfBound error when saving game under new name), and was fixed earlier this month. The latest private build is b10558.

That being said, if you try the new build and you still have a similar problem, let me know and I'll try to get it fixed up as soon as possible.
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)