Help! I shut down while saving now Stencyl won't run my game!

Noroup

  • *
  • Posts: 134
I was testing my game and when the "Saving" bar came up I shut down my computer. Now I started it back up and it generated these logs and it's stuck on the saving bar forever! Please help!

java.lang.RuntimeException: java.lang.IndexOutOfBoundsException
   at stencyl.sw.app.tasks.StencylWorker.done(StencylWorker.java:74)
   at stencyl.sw.app.tasks.SaveGameTask.done(SaveGameTask.java:56)
   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:756)
   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:76)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
   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
   at java.io.RandomAccessFile.readBytes(Native Method)
   at java.io.RandomAccessFile.read(RandomAccessFile.java:377)
   at javax.imageio.stream.FileImageInputStream.read(FileImageInputStream.java:117)
   at com.sun.imageio.plugins.common.SubImageInputStream.read(SubImageInputStream.java:61)
   at com.sun.imageio.plugins.common.InputStreamAdapter.read(InputStreamAdapter.java:47)
   at java.io.SequenceInputStream.read(SequenceInputStream.java:207)
   at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:238)
   at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
   at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
   at java.io.BufferedInputStream.read(BufferedInputStream.java:265)
   at java.io.FilterInputStream.read(FilterInputStream.java:83)
   at com.sun.imageio.plugins.png.PNGImageReader.decodePass(PNGImageReader.java:1104)
   at com.sun.imageio.plugins.png.PNGImageReader.decodeImage(PNGImageReader.java:1215)
   at com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1330)
   at com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1606)
   at javax.imageio.ImageIO.read(ImageIO.java:1448)
   at javax.imageio.ImageIO.read(ImageIO.java:1308)
   at stencyl.sw.io.write.GameFileWriter.write(GameFileWriter.java:125)
   at stencyl.sw.io.write.MasterWriter.saveGame(MasterWriter.java:81)
   at stencyl.sw.app.tasks.SaveGameTask.doInBackground(SaveGameTask.java:35)
   at stencyl.sw.app.tasks.SaveGameTask.doInBackground(SaveGameTask.java:13)
   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:1142)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   at java.lang.Thread.run(Thread.java:745)



Luyren

  • *
  • Posts: 1754
Run > Clean Project, see if it helps. That's my only guess.
Working.

Noroup

  • *
  • Posts: 134
Run > Clean Project, see if it helps. That's my only guess.
Ugh, it didn't work

Noroup

  • *
  • Posts: 134
Help NOTHING is working!

LIBERADO

  • *
  • Posts: 2659
You have made a fatal error and maybe there is not solution for it. Shutting down the computer when the game is being saved is not very prudent. Instead, make a backup of your games, from today.

« Last Edit: November 12, 2016, 08:14:33 pm by LIBERADO »
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

merrak

  • *
  • Posts: 2496
See if you can export your behaviors and actors so that you can import then in a fresh game. Then start making regular backups. I've made my own share of mistakes over the years, and have always been glad to have them. Be prepared for human nature.

Noroup

  • *
  • Posts: 134
See if you can export your behaviors and actors so that you can import then in a fresh game. Then start making regular backups. I've made my own share of mistakes over the years, and have always been glad to have them. Be prepared for human nature.
I tried that it doesn't let me export the same error pops up.

There MUST be a way to bypass this. Like, by deleting a file or something

merrak

  • *
  • Posts: 2496
Can you attach the full logs?


Noroup

  • *
  • Posts: 134

merrak

  • *
  • Posts: 2496
Toolset errors isn't one of my areas of expertise, but this looks suspicious to me:

Code: [Select]
2016-11-12 23:07:08,291 ERROR [AWT-EventQueue-0] stencyl.core.lib.io.read.SceneReader: Actor "UpButton 2" does not refrence an Actor Type: id = 177
2016-11-12 23:07:08,291 ERROR [AWT-EventQueue-0] stencyl.core.lib.io.read.SceneReader: Could not load actor. Likely an Actor Type that no longer exists.

It appears when both scenes/3.xml and scenes/4.xml are loaded, and is the only error I saw in the loading sequence. Did the "Up Button 2" actor disappear from the loaded game?

This is the only thing I can think of to try, and is basically a guess. So, make a backup before doing this.

Go to debug -> view folder for game, then go into the scenes folder.
Close out of your game.
Open up 3.xml and 4.xml and remove references to actor with id 177.
Load the game. Check the logs for any new "error" flags.
If there aren't any errors, try saving again.

If that doesn't work, I'd suggest going into the chat and asking one of the Stencyl developers if they have any ideas.

Noroup

  • *
  • Posts: 134
Toolset errors isn't one of my areas of expertise, but this looks suspicious to me:

Code: [Select]
2016-11-12 23:07:08,291 ERROR [AWT-EventQueue-0] stencyl.core.lib.io.read.SceneReader: Actor "UpButton 2" does not refrence an Actor Type: id = 177
2016-11-12 23:07:08,291 ERROR [AWT-EventQueue-0] stencyl.core.lib.io.read.SceneReader: Could not load actor. Likely an Actor Type that no longer exists.
I'll try, but I can't make backups as it doesn't let me.

Also, the game was working perfectly fine before I shut down while saving
It appears when both scenes/3.xml and scenes/4.xml are loaded, and is the only error I saw in the loading sequence. Did the "Up Button 2" actor disappear from the loaded game?

This is the only thing I can think of to try, and is basically a guess. So, make a backup before doing this.

Go to debug -> view folder for game, then go into the scenes folder.
Close out of your game.
Open up 3.xml and 4.xml and remove references to actor with id 177.
Load the game. Check the logs for any new "error" flags.
If there aren't any errors, try saving again.

If that doesn't work, I'd suggest going into the chat and asking one of the Stencyl developers if they have any ideas.

Noroup

  • *
  • Posts: 134