Unexpected problem when I import background.

purplelava

  • Posts: 82
I have also gotten it in another occasion but can't remember what it was. Importing something.

Can't import my background.

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 stencyl.sw.app.tasks.FrameImportTask.done(FrameImportTask.java:40)
   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:749)
   at java.awt.EventQueue.access$500(EventQueue.java:97)
   at java.awt.EventQueue$3.run(EventQueue.java:702)
   at java.awt.EventQueue$3.run(EventQueue.java:696)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:719)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109)
   at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:184)
   at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:229)
   at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:227)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:227)
   at java.awt.Dialog.show(Dialog.java:1084)
   at java.awt.Component.show(Component.java:1654)
   at java.awt.Component.setVisible(Component.java:1606)
   at java.awt.Window.setVisible(Window.java:1014)
   at java.awt.Dialog.setVisible(Dialog.java:1005)
   at stencyl.sw.editors.background.BackgroundPage.newFrame(BackgroundPage.java:1191)
   at stencyl.sw.editors.background.BackgroundPage.importStrip(BackgroundPage.java:1204)
   at stencyl.sw.editors.animation.AnimationEditor$7.mousePressed(AnimationEditor.java:211)
   at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:280)
   at java.awt.Component.processMouseEvent(Component.java:6522)
   at javax.swing.JComponent.processMouseEvent(JComponent.java:3322)
   at java.awt.Component.processEvent(Component.java:6290)
   at java.awt.Container.processEvent(Container.java:2234)
   at java.awt.Component.dispatchEventImpl(Component.java:4881)
   at java.awt.Container.dispatchEventImpl(Container.java:2292)
   at java.awt.Component.dispatchEvent(Component.java:4703)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898)
   at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4530)
   at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)
   at java.awt.Container.dispatchEventImpl(Container.java:2278)
   at java.awt.Window.dispatchEventImpl(Window.java:2739)
   at java.awt.Component.dispatchEvent(Component.java:4703)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:751)
   at java.awt.EventQueue.access$500(EventQueue.java:97)
   at java.awt.EventQueue$3.run(EventQueue.java:702)
   at java.awt.EventQueue$3.run(EventQueue.java:696)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
   at java.awt.EventQueue$4.run(EventQueue.java:724)
   at java.awt.EventQueue$4.run(EventQueue.java:722)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:721)
   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.NullPointerException
   at stencyl.sw.data.EditableAnimation.addFrame(EditableAnimation.java:642)
   at stencyl.sw.editors.animation.FrameImportDialog.runImport(FrameImportDialog.java:1164)
   at stencyl.sw.app.tasks.FrameImportTask.doInBackground(FrameImportTask.java:32)
   at stencyl.sw.app.tasks.FrameImportTask.doInBackground(FrameImportTask.java:8)
   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)

purplelava

  • Posts: 82
happens only when I import the actor by scaling it. If I preserve the original size, I can import.

purplelava

  • Posts: 82
Getting the error also when creating a background layer in the scene with that actor I finally imported...

letmethink

  • *
  • Posts: 2545
Are you sure it is exactly the same error? I doubt it is.
~Letmethink

purplelava

  • Posts: 82
I think it still said "AWT event" so I assumed it was the same...but you're right, probably it wasn't.

Anyhow, this doesn't happen if I start with a blank game. I can import everything there.

This happens if I start with a game that uses the "run and jump" kit. I have just gotten an error just for selecting a layer in the scene included with the kit. Maybe a problem because of updating from previous version of Stencyl? When I use that template, it tells me I have to update the project.

Edit: I have tried again, and after it gave me the error, eventually I could still select the layer and continue. I could even import the background I couldn't import earlier in another project. Going to try again now there.

« Last Edit: January 25, 2015, 03:00:36 pm by purplelava »

purplelava

  • Posts: 82
Mysteriously, I can now import the backgrounds I couldn't yesterday.