Bug Issue: Cannot re-open any scene after have made changes


Pages: 1

FMStudioGameDev

  • Subscriber - Stencyl Studio
  • *
March 13, 2019, 06:46:38 am
Suddently everytime I save and close a scene I am not able to re-open it anymore, getting the following error:
Code: [Select]
Unexpected problem on thread AWT-EventQueue-0: java.lang.IndexOutOfBoundsException: Index: 3, Size: 0

Throwable: 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 stencyl.sw.app.tasks.OpenResourceTask.done(OpenResourceTask.java:76)
at javax.swing.SwingWorker$5.run(SwingWorker.java:737)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(SwingWorker.java:832)
at sun.swing.AccumulativeRunnable.run(AccumulativeRunnable.java:112)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(SwingWorker.java:842)
at javax.swing.Timer.fireActionPerformed(Timer.java:313)
at javax.swing.Timer$DoPostEvent.run(Timer.java:245)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.IndexOutOfBoundsException: Index: 3, Size: 0
at java.util.ArrayList.rangeCheckForAdd(ArrayList.java:665)
at java.util.ArrayList.add(ArrayList.java:477)
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.EditorSceneModel.addActorToBuckets(EditorSceneModel.java:893)
at stencyl.sw.editors.scene.EditorSceneModel.addActor(EditorSceneModel.java:945)
at stencyl.sw.editors.scene.EditorSceneModel.<init>(EditorSceneModel.java:206)
at stencyl.sw.editors.scene.Designer.<init>(Designer.java:559)
at stencyl.sw.editors.scene.SceneMainPage.initDesigner(SceneMainPage.java:307)
at stencyl.sw.editors.scene.SceneMainPage.<init>(SceneMainPage.java:134)
at stencyl.sw.editors.scene.SceneTab.init(SceneTab.java:140)
at stencyl.sw.editors.scene.SceneTab.<init>(SceneTab.java:122)
at stencyl.sw.app.doc.Workspace.fetchEditorForResource(Workspace.java:832)
at stencyl.sw.app.doc.Workspace.finishOpenResource(Workspace.java:679)
at stencyl.sw.app.tasks.OpenResourceTask.doInBackground(OpenResourceTask.java:67)
at stencyl.sw.app.tasks.OpenResourceTask.doInBackground(OpenResourceTask.java:20)
at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at javax.swing.SwingWorker.run(SwingWorker.java:334)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

This started suddenly on Stencyl 4.0.1 (b10305 ) on Windows 10 , tried exporting the project and open on a Mac running Stencyl b10312 but with no luck, I am still unable to open modified scenes.
What's weird is that when testing the game the scene is running flawlessly. If I duplicate the scene I cannot open  the clone too.
It's a simple scene with tileset, a couple of actors and no behaviours attached.
Attaching logs.
« Last Edit: March 13, 2019, 07:38:59 am by FMStudioGameDev »


New attachment added by FMStudioGameDev - March 13, 2019, 06:46:52 am


FMStudioGameDev

  • Subscriber - Stencyl Studio
  • *
March 13, 2019, 08:18:49 am
Tried to open the project with an old Stencyl build (b10259) and despite the warning (Unsupported Format The game was written with a newer version of Stencyl...) the scenes open correctly. But there's no way to open it in a newer build.
It might be something that has been changed between that version and b10300


FMStudioGameDev

  • Subscriber - Stencyl Studio
  • *
March 14, 2019, 03:26:47 am
Noticed that the bug doesn't happen every time I close  a scene but happens more often when changing layer to an actor.


FMStudioGameDev

  • Subscriber - Stencyl Studio
  • *
March 19, 2019, 08:42:32 am
I started a new project from scratch (the previous one was from the JumpandRun kit), making new behaviors, custom blocks, tilesets... but the issue happened again. Really need someone to have a look into this.
This is the "new" error:
Code: [Select]
Unexpected problem on thread AWT-EventQueue-0: java.lang.IndexOutOfBoundsException: Index: 4, Size: 1

Throwable: java.lang.RuntimeException: java.lang.IndexOutOfBoundsException: Index: 4, Size: 1
at stencyl.sw.app.tasks.StencylWorker.done(StencylWorker.java:74)
at stencyl.sw.app.tasks.StencylWorker.done(StencylWorker.java:54)
at stencyl.sw.app.tasks.OpenResourceTask.done(OpenResourceTask.java:76)
at javax.swing.SwingWorker$5.run(SwingWorker.java:737)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(SwingWorker.java:832)
at sun.swing.AccumulativeRunnable.run(AccumulativeRunnable.java:112)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(SwingWorker.java:842)
at javax.swing.Timer.fireActionPerformed(Timer.java:313)
at javax.swing.Timer$DoPostEvent.run(Timer.java:245)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.IndexOutOfBoundsException: Index: 4, Size: 1
at java.util.ArrayList.rangeCheckForAdd(ArrayList.java:665)
at java.util.ArrayList.add(ArrayList.java:477)
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.EditorSceneModel.addActorToBuckets(EditorSceneModel.java:893)
at stencyl.sw.editors.scene.EditorSceneModel.addActor(EditorSceneModel.java:945)
at stencyl.sw.editors.scene.EditorSceneModel.<init>(EditorSceneModel.java:206)
at stencyl.sw.editors.scene.Designer.<init>(Designer.java:559)
at stencyl.sw.editors.scene.SceneMainPage.initDesigner(SceneMainPage.java:307)
at stencyl.sw.editors.scene.SceneMainPage.<init>(SceneMainPage.java:134)
at stencyl.sw.editors.scene.SceneTab.init(SceneTab.java:140)
at stencyl.sw.editors.scene.SceneTab.<init>(SceneTab.java:122)
at stencyl.sw.app.doc.Workspace.fetchEditorForResource(Workspace.java:832)
at stencyl.sw.app.doc.Workspace.finishOpenResource(Workspace.java:679)
at stencyl.sw.app.tasks.OpenResourceTask.doInBackground(OpenResourceTask.java:67)
at stencyl.sw.app.tasks.OpenResourceTask.doInBackground(OpenResourceTask.java:20)
at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at javax.swing.SwingWorker.run(SwingWorker.java:334)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

It is definitely something related with tiles and layers because I never had any issue with other games not using tiles.


FMStudioGameDev

  • Subscriber - Stencyl Studio
  • *
March 23, 2019, 04:49:24 am
Bumping this again because the same things happened in another game, not using tiles.
This is exactly what I did:
Opened a scene, added a newly created actor, sent this actor back, sent this to back in layer. Closed the scene.
When I tried reopening the scene I got this error, impossible to open it again.
Code: [Select]
Unexpected problem on thread AWT-EventQueue-0: java.lang.IndexOutOfBoundsException: Index: 1, Size: 0

Throwable: java.lang.RuntimeException: java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
at stencyl.sw.app.tasks.StencylWorker.done(StencylWorker.java:74)
at stencyl.sw.app.tasks.StencylWorker.done(StencylWorker.java:54)
at stencyl.sw.app.tasks.OpenResourceTask.done(OpenResourceTask.java:76)
at javax.swing.SwingWorker$5.run(SwingWorker.java:737)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(SwingWorker.java:832)
at sun.swing.AccumulativeRunnable.run(AccumulativeRunnable.java:112)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(SwingWorker.java:842)
at javax.swing.Timer.fireActionPerformed(Timer.java:313)
at javax.swing.Timer$DoPostEvent.run(Timer.java:245)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
at java.util.ArrayList.rangeCheckForAdd(ArrayList.java:665)
at java.util.ArrayList.add(ArrayList.java:477)
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.EditorSceneModel.addActorToBuckets(EditorSceneModel.java:893)
at stencyl.sw.editors.scene.EditorSceneModel.addActor(EditorSceneModel.java:945)
at stencyl.sw.editors.scene.EditorSceneModel.<init>(EditorSceneModel.java:206)
at stencyl.sw.editors.scene.Designer.<init>(Designer.java:559)
at stencyl.sw.editors.scene.SceneMainPage.initDesigner(SceneMainPage.java:307)
at stencyl.sw.editors.scene.SceneMainPage.<init>(SceneMainPage.java:134)
at stencyl.sw.editors.scene.SceneTab.init(SceneTab.java:140)
at stencyl.sw.editors.scene.SceneTab.<init>(SceneTab.java:122)
at stencyl.sw.app.doc.Workspace.fetchEditorForResource(Workspace.java:832)
at stencyl.sw.app.doc.Workspace.finishOpenResource(Workspace.java:679)
at stencyl.sw.app.tasks.OpenResourceTask.doInBackground(OpenResourceTask.java:67)
at stencyl.sw.app.tasks.OpenResourceTask.doInBackground(OpenResourceTask.java:20)
at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at javax.swing.SwingWorker.run(SwingWorker.java:334)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

Stencyl b10316 on Mac High Sierra (happened on windows as well)


FMStudioGameDev

  • Subscriber - Stencyl Studio
  • *
March 25, 2019, 01:34:59 am
Another user is experiencing the same bug http://community.stencyl.com/index.php/index.php?topic=58331.msg307099#msg307099

I can see in his logs the same error:
 
Code: [Select]
Unexpected problem on thread AWT-EventQueue-0: java.lang.IndexOutOfBoundsException: Index: 3, Size: 0
« Last Edit: March 25, 2019, 01:36:20 am by FMStudioGameDev »


rob1221

  • Master Stencyler
  • *
March 26, 2019, 07:57:55 am
This error is avoided in b10318 by constraining the index to the length of the array and providing a warning in the logs when that happens.  This may result in a different order of actors within the same layer, although I haven't seen that in testing.  A more proper fix can be done at a later time.
  • Status changed from New to Confirmed


meownoi

  • Subscriber - Stencyl Studio
  • *
April 13, 2019, 10:34:08 pm
I got the same error and cannot open some scenes.  I've tried editing the xml of that scene and randomly put some <actor> tags.  Some actors are loaded without error but some actors cause error.  The <actor> tags look ok but the scene cannot be loaded and gives me just the java.lang.IndexOutOfBoundsException.

I really love Stencyl and waiting to the fixes very soon.


FMStudioGameDev

  • Subscriber - Stencyl Studio
  • *
April 14, 2019, 12:46:19 am
I got the same error and cannot open some scenes.  I've tried editing the xml of that scene and randomly put some <actor> tags.  Some actors are loaded without error but some actors cause error.  The <actor> tags look ok but the scene cannot be loaded and gives me just the java.lang.IndexOutOfBoundsException.

I really love Stencyl and waiting to the fixes very soon.
Which Stencyl build are you using? I haven't experienced the issue anymore from b10318 on.
« Last Edit: April 14, 2019, 12:46:36 am by FMStudioGameDev »


Redbot42

  • Junior Stencyler
May 16, 2019, 11:48:02 pm
Have the same issue


Justin

  • Master Stencyler
  • *
June 25, 2019, 04:12:26 am
This was fixed in b10338.
  • Status changed from Confirmed to Resolved


Issue updated by Justin - June 27, 2019, 05:11:56 pm
  • Issue Assigned from (none) to Justin


Pages: 1

Details

  • Reported
    March 13, 2019, 06:46:38 am
  • Updated
    June 27, 2019, 05:11:56 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    Resolved
  • Priority
    Normal
  • Version
    Stencyl 3.5, 3.5.0 beta 1
  • Fixed in
    (none)
  • Assigned to
    Justin
  • Category
    Scene Designer

Tags


Attachments

* log-2019-03-13.zip (23.92 kB - downloaded 79 times.)