3.2 build said "Ouch!" when I tried to convert game to 3.2 format (from b. 7376)

BMJ

  • Posts: 278
I tried d'loading the latest build (Stencyl 3.2) and received this error/warning:

"OUCH! That shouldn't have happened. Let us know about it on the forums and proceed with caution."

Unexpected problem on thread AWT-EventQueue-0: java.lang.NullPointerException
java.lang.RuntimeException: java.lang.NullPointerException
   at stencyl.sw.app.tasks.StencylWorker.done(StencylWorker.java:72)
   at stencyl.sw.app.tasks.StencylWorker.done(StencylWorker.java:52)
   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.NullPointerException
   at stencyl.core.lib.actor.ActorInstance.setLayer(ActorInstance.java:160)
   at stencyl.sw.editors.scene.EditorSceneModel.addActor(EditorSceneModel.java:928)
   at stencyl.sw.editors.scene.EditorSceneModel.<init>(EditorSceneModel.java:202)
   at stencyl.sw.app.tasks.UpdateScenesTask.doInBackground(UpdateScenesTask.java:38)
   at stencyl.sw.app.tasks.UpdateScenesTask.doInBackground(UpdateScenesTask.java:11)
   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)

When I tried to run the game anyway it wouldn't run and a whole bunch of errors opened up, including many in the "Events Manager".  Fortunately, I make multiple backups frequently, so I didn't lose anything, but I would love to be able to use the new build, particularly for the improvements to the tileset editor.

FWIW, I have occasionally received a "null pointer exception" error in my log for a while now when I test the game (probably because I'm a lousy programmer), though most times I do not. I don't know what this error means (also probably because I'm a lousy programmer), but it's never prevented the game from running before or caused any real problems other than me saying, "Hey, there's that error message again.")

Anyhow, I've reverted to 3.1 so I can keep working, but I was asked to post this, so I did. :)

captaincomic

  • *
  • Posts: 6108
Would you mind sharing your project (here or in private) so I can take a look?

ceosol

  • *
  • Posts: 2279
I've found the newest builds are very strict with pointing out errors and crashing. In an older version of stencyl, disable all extensions before converting the game in the latest build. Also try displacing the code blocks in critical behaviors (not delete, just pull them out). Once the convert is successful, you can keep putting the behaviors back together and trying to build the game each time.