Cant open actor file to edit

devilnash

  • Posts: 43
hi guys.

as we know this is a on going problem with stencyl. keep getting 90% memory error codes and crashes.

this is the current error im getting

Unexpected problem on thread AWT-EventQueue-0: java.lang.OutOfMemoryError: Java heap space
java.lang.RuntimeException: java.lang.OutOfMemoryError: Java heap space
   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.OpenResourceTask.done(OpenResourceTask.java:77)
   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:744)
   at java.awt.EventQueue.access$400(EventQueue.java:97)
   at java.awt.EventQueue$3.run(EventQueue.java:697)
   at java.awt.EventQueue$3.run(EventQueue.java:691)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:714)
   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.OutOfMemoryError: Java heap space
   at java.awt.image.DataBufferInt.<init>(DataBufferInt.java:75)
   at java.awt.image.Raster.createPackedRaster(Raster.java:467)
   at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1032)
   at java.awt.image.BufferedImage.<init>(BufferedImage.java:340)
   at sun.java2d.loops.GraphicsPrimitive.convertFrom(GraphicsPrimitive.java:557)
   at sun.java2d.loops.GraphicsPrimitive.convertFrom(GraphicsPrimitive.java:541)
   at sun.java2d.loops.MaskBlit$General.MaskBlit(MaskBlit.java:189)
   at sun.java2d.loops.Blit$GeneralMaskBlit.Blit(Blit.java:204)
   at sun.java2d.pipe.DrawImage.blitSurfaceData(DrawImage.java:967)
   at sun.java2d.pipe.DrawImage.renderImageCopy(DrawImage.java:585)
   at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:67)
   at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:1022)
   at sun.java2d.pipe.ValidatePipe.copyImage(ValidatePipe.java:186)
   at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3318)
   at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3296)
   at stencyl.sw.util.gfx.GraphicsUtilities.toCompatibleImage(GraphicsUtilities.java:201)
   at stencyl.sw.data.EditableAnimation.loadImagesInternal(EditableAnimation.java:462)
   at stencyl.sw.data.EditableAnimation.loadImagesInternal(EditableAnimation.java:385)
   at stencyl.sw.data.EditableAnimation.loadScaleImages(EditableAnimation.java:327)
   at stencyl.sw.data.EditableSprite.loadScales(EditableSprite.java:92)
   at stencyl.sw.editors.actor.ActorTab.<init>(ActorTab.java:121)
   at stencyl.sw.app.doc.Workspace.fetchEditorForResource(Workspace.java:679)
   at stencyl.sw.app.doc.Workspace.finishOpenResource(Workspace.java:531)
   at stencyl.sw.app.tasks.OpenResourceTask.doInBackground(OpenResourceTask.java:68)
   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:1142)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   at java.lang.Thread.run(Thread.java:745)

captaincomic

  • *
  • Posts: 6108
Is that actor particularly large or has a lot of sprites and animations?

You can try increasing the max memory setting for your Java VM:
http://www.stencyl.com/help/view/ninety-percent-warning/

devilnash

  • Posts: 43
hi captaincomic

yes the actor is kinda large.  has a big animation

captaincomic

  • *
  • Posts: 6108
Does increasing the max memory help? You can also disable high-res sprites in Settings->Advanced if you don't need them.

devilnash

  • Posts: 43
i tried out the 2gb version of stencyl but its still not enough. the 4gb would help but that link takes me to some tutorial about minecraft and i tried following the instructions but to no luck! i kinda need the art work to be high res so its all poo for me here lol

letmethink

  • *
  • Posts: 2545
If you are aiming for anything other than mobile, the disable high res graphics should be fine to use as They are only used on mobile tablets as far as I know (correct me if I am wrong)
~Letmethink

devilnash

  • Posts: 43
yep i am aiming for mobile and tablet

captaincomic

  • *
  • Posts: 6108
The link to the Minecraft forum is obsolete, doing what was described there should not be necessary anymore. (I updated the article now.)