Are you running into the corrupt resource (or game.xml) bug?

Rob

  • *
  • Posts: 1268
Yes. I tested it myself. You need to download both sw.jar AND engine.swc (put that one under plat/flash) or you'll get a lot of behavior errors.

I also suggest that you take any existing game, make a little change like perhaps adding a scene, save it and exit and reenter SW to see if it run into any more problems. The next patch by stencyl should relieve this problem as long as you start a new game since the data.xml file will be backed up at that point.
GOLDEN RULE #1 : SAVE YOUR GAMES FREQUENTLY
IOS/XCODE DEBUGGING
http://www.stencyl.com/help/view/xcode-ios-troubleshoot/
WATCH STENCYLWORKS VIDEO TUTORIAL BY SUNRISEKINGDOM
http://www.youtube.com/watch?v=KDfRfjzr9j4&feature=channel_video_title

mGilbee

  • Posts: 26
I tried to download the engine.swc by clicking on the link, but instead of saving the file, it opens it in the browser with a bunch of unreadable text displayed. 
Breaker for Android My first game Breaker is now out for Android!
Get the free version here

Epic428

  • Posts: 1118
right click > save as
James Moore - Official Support & Documentation.
We cannot and will not respond to PM's asking questions. Please make a new thread in the forums if you have any questions, Thank you.
For better support and faster response times, please post your logs regarding any Stencyl related issues. Debug > Logs > Generate Logs

mGilbee

  • Posts: 26
Downloaded and replaced both, but I'm still getting ActionScript errors when I try to run my game. Anyone have an idea why?  :-\
Breaker for Android My first game Breaker is now out for Android!
Get the free version here

Jon

  • *
  • Posts: 17517
Get the official update rather than attempting the manual patch.

ryanjbuzzell

  • Posts: 1
I have had the same problem but mine wiped all of my images. All of them.  >:(  So is there a way to restore them or no? here is my Log file http://min.us/miX3RX here is my game http://min.us/mc1r7dI please help me. thank you.

--Ryan Buzzell

Rob

  • *
  • Posts: 1268
What version of stencylworks are you using? Is it 1.0.2? That version should address the corrupt game.xml problem as long as it happens after you have updated to 1.0.2.
GOLDEN RULE #1 : SAVE YOUR GAMES FREQUENTLY
IOS/XCODE DEBUGGING
http://www.stencyl.com/help/view/xcode-ios-troubleshoot/
WATCH STENCYLWORKS VIDEO TUTORIAL BY SUNRISEKINGDOM
http://www.youtube.com/watch?v=KDfRfjzr9j4&feature=channel_video_title

spolvid

  • Posts: 22
I didn't notice this thread earlier, so I started my own. No one has responded to it yet, however, so I'l link to it here.

http://community.stencyl.com/index.php/topic,1812.0.html

coleislazy

  • *
  • Posts: 2607
I tried to open one of my games today and edit a behavior, but it just hangs with the pop-up saying "Opening". Scenes and Actors still open, but all behaviors, including trying to create a new one just hang. The copy I uploaded to StencylForge has the same problem, apparently. If you want to look it it, its called DungeonGame. Logs are attached. I should also say that I uninstalled and re-installed SW.

Is there any way to recover my behaviors?

« Last Edit: July 09, 2011, 07:11:40 am by coleislazy »

Epic428

  • Posts: 1118
Code: [Select]
java.lang.NullPointerException
at javax.swing.ImageIcon.<init>(Unknown Source)
at stencyl.sw.util.Loader.loadIcon(Loader.java:76)
at stencyl.sw.editors.snippet.designer.Definition.parseForGUIStart(Definition.java:689)
at stencyl.sw.editors.snippet.designer.Palette.createAndAddElement(Palette.java:1709)
at stencyl.sw.editors.snippet.designer.Palette.createAndAddElement(Palette.java:1645)
at stencyl.sw.editors.snippet.designer.Palette.createAdvanced(Palette.java:1330)
at stencyl.sw.editors.snippet.designer.SubcategoryListing.addButton(SubcategoryListing.java:261)
at stencyl.sw.editors.snippet.designer.SubcategoryListing.<init>(SubcategoryListing.java:76)
at stencyl.sw.editors.snippet.designer.SubPaletteContainer.<init>(SubPaletteContainer.java:33)
at stencyl.sw.editors.snippet.designer.CategoryListing.addButton(CategoryListing.java:144)
at stencyl.sw.editors.snippet.designer.CategoryListing.<init>(CategoryListing.java:85)
at stencyl.sw.editors.snippet.designer.PaletteContainer.<init>(PaletteContainer.java:66)
at stencyl.sw.editors.snippet.designer.SnippetDesigner.<init>(SnippetDesigner.java:293)
at stencyl.sw.editors.snippet.SnippetDesignTab.<init>(SnippetDesignTab.java:95)
at stencyl.sw.app.doc.Workspace.fetchEditorForResource(Workspace.java:579)
at stencyl.sw.app.doc.Workspace.finishOpenResource(Workspace.java:436)
at stencyl.sw.app.tasks.OpenResourceTask.doInBackground(OpenResourceTask.java:64)
at stencyl.sw.app.tasks.OpenResourceTask.doInBackground(OpenResourceTask.java:20)
at org.jdesktop.swingworker.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at org.jdesktop.swingworker.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)
java.lang.NullPointerException
at javax.swing.ImageIcon.<init>(Unknown Source)
at stencyl.sw.util.Loader.loadIcon(Loader.java:76)
at stencyl.sw.editors.snippet.designer.Definition.parseForGUIStart(Definition.java:689)
at stencyl.sw.editors.snippet.designer.Palette.createAndAddElement(Palette.java:1709)
at stencyl.sw.editors.snippet.designer.Palette.createAndAddElement(Palette.java:1645)
at stencyl.sw.editors.snippet.designer.Palette.createAdvanced(Palette.java:1331)
at stencyl.sw.editors.snippet.designer.SubcategoryListing.addButton(SubcategoryListing.java:261)
at stencyl.sw.editors.snippet.designer.SubcategoryListing.<init>(SubcategoryListing.java:76)
at stencyl.sw.editors.snippet.designer.SubPaletteContainer.<init>(SubPaletteContainer.java:33)
at stencyl.sw.editors.snippet.designer.CategoryListing.addButton(CategoryListing.java:144)
at stencyl.sw.editors.snippet.designer.CategoryListing.<init>(CategoryListing.java:85)
at stencyl.sw.editors.snippet.designer.PaletteContainer.<init>(PaletteContainer.java:66)
at stencyl.sw.editors.snippet.designer.SnippetDesigner.<init>(SnippetDesigner.java:293)
at stencyl.sw.editors.snippet.SnippetDesignTab.<init>(SnippetDesignTab.java:95)
at stencyl.sw.app.doc.Workspace.fetchEditorForResource(Workspace.java:579)
at stencyl.sw.app.doc.Workspace.finishOpenResource(Workspace.java:436)
at stencyl.sw.app.tasks.OpenResourceTask.doInBackground(OpenResourceTask.java:64)
at stencyl.sw.app.tasks.OpenResourceTask.doInBackground(OpenResourceTask.java:20)
at org.jdesktop.swingworker.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at org.jdesktop.swingworker.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)
java.lang.NullPointerException
at javax.swing.ImageIcon.<init>(Unknown Source)
at stencyl.sw.util.Loader.loadIcon(Loader.java:76)
at stencyl.sw.editors.snippet.designer.Definition.parseForGUIStart(Definition.java:689)
at stencyl.sw.editors.snippet.designer.Palette.createAndAddElement(Palette.java:1709)
at stencyl.sw.editors.snippet.designer.Palette.createAndAddElement(Palette.java:1645)
at stencyl.sw.editors.snippet.designer.Palette.createSceneView(Palette.java:895)
at stencyl.sw.editors.snippet.designer.SubcategoryListing.addButton(SubcategoryListing.java:190)
at stencyl.sw.editors.snippet.designer.SubcategoryListing.<init>(SubcategoryListing.java:76)
at stencyl.sw.editors.snippet.designer.SubPaletteContainer.<init>(SubPaletteContainer.java:33)
at stencyl.sw.editors.snippet.designer.CategoryListing.addButton(CategoryListing.java:144)
at stencyl.sw.editors.snippet.designer.CategoryListing.<init>(CategoryListing.java:86)
at stencyl.sw.editors.snippet.designer.PaletteContainer.<init>(PaletteContainer.java:66)
at stencyl.sw.editors.snippet.designer.SnippetDesigner.<init>(SnippetDesigner.java:293)
at stencyl.sw.editors.snippet.SnippetDesignTab.<init>(SnippetDesignTab.java:95)
at stencyl.sw.app.doc.Workspace.fetchEditorForResource(Workspace.java:579)
at stencyl.sw.app.doc.Workspace.finishOpenResource(Workspace.java:436)
at stencyl.sw.app.tasks.OpenResourceTask.doInBackground(OpenResourceTask.java:64)
at stencyl.sw.app.tasks.OpenResourceTask.doInBackground(OpenResourceTask.java:20)
at org.jdesktop.swingworker.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at org.jdesktop.swingworker.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)
java.lang.NullPointerException
at javax.swing.ImageIcon.<init>(Unknown Source)
at stencyl.sw.util.Loader.loadIcon(Loader.java:76)
at stencyl.sw.editors.snippet.designer.Definition.parseForGUIStart(Definition.java:689)
at stencyl.sw.editors.snippet.designer.Palette.createAndAddElement(Palette.java:1709)
at stencyl.sw.editors.snippet.designer.Palette.createAndAddElement(Palette.java:1645)
at stencyl.sw.editors.snippet.designer.Palette.createSceneView(Palette.java:896)
at stencyl.sw.editors.snippet.designer.SubcategoryListing.addButton(SubcategoryListing.java:190)
at stencyl.sw.editors.snippet.designer.SubcategoryListing.<init>(SubcategoryListing.java:76)
at stencyl.sw.editors.snippet.designer.SubPaletteContainer.<init>(SubPaletteContainer.java:33)
at stencyl.sw.editors.snippet.designer.CategoryListing.addButton(CategoryListing.java:144)
at stencyl.sw.editors.snippet.designer.CategoryListing.<init>(CategoryListing.java:86)
at stencyl.sw.editors.snippet.designer.PaletteContainer.<init>(PaletteContainer.java:66)
at stencyl.sw.editors.snippet.designer.SnippetDesigner.<init>(SnippetDesigner.java:293)
at stencyl.sw.editors.snippet.SnippetDesignTab.<init>(SnippetDesignTab.java:95)
at stencyl.sw.app.doc.Workspace.fetchEditorForResource(Workspace.java:579)
at stencyl.sw.app.doc.Workspace.finishOpenResource(Workspace.java:436)
at stencyl.sw.app.tasks.OpenResourceTask.doInBackground(OpenResourceTask.java:64)
at stencyl.sw.app.tasks.OpenResourceTask.doInBackground(OpenResourceTask.java:20)
at org.jdesktop.swingworker.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at org.jdesktop.swingworker.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)
java.lang.RuntimeException: java.lang.StringIndexOutOfBoundsException: String index out of range: 1
at stencyl.sw.app.tasks.StencylWorker.done(StencylWorker.java:71)
at stencyl.sw.app.tasks.StencylWorker.done(StencylWorker.java:52)
at stencyl.sw.app.tasks.OpenResourceTask.done(OpenResourceTask.java:72)
at org.jdesktop.swingworker.SwingWorker$5.run(Unknown Source)
at org.jdesktop.swingworker.SwingWorker$DoSubmitAccumulativeRunnable.run(Unknown Source)
at org.jdesktop.swingworker.AccumulativeRunnable.run(Unknown Source)
at org.jdesktop.swingworker.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.StringIndexOutOfBoundsException: String index out of range: 1
at java.lang.String.charAt(Unknown Source)
at stencyl.sw.editors.snippet.designer.Definition.parseForGUIStart(Definition.java:695)
at stencyl.sw.editors.snippet.designer.Palette.createAndAddElement(Palette.java:1709)
at stencyl.sw.editors.snippet.designer.Palette.createAndAddElement(Palette.java:1645)
at stencyl.sw.editors.snippet.designer.Palette.createCustom(Palette.java:625)
at stencyl.sw.editors.snippet.designer.SubcategoryListing.addButton(SubcategoryListing.java:341)
at stencyl.sw.editors.snippet.designer.SubcategoryListing.<init>(SubcategoryListing.java:76)
at stencyl.sw.editors.snippet.designer.SubPaletteContainer.<init>(SubPaletteContainer.java:33)
at stencyl.sw.editors.snippet.designer.CategoryListing.addButton(CategoryListing.java:144)
at stencyl.sw.editors.snippet.designer.CategoryListing.<init>(CategoryListing.java:118)
at stencyl.sw.editors.snippet.designer.PaletteContainer.<init>(PaletteContainer.java:66)
at stencyl.sw.editors.snippet.designer.SnippetDesigner.<init>(SnippetDesigner.java:293)
at stencyl.sw.editors.snippet.SnippetDesignTab.<init>(SnippetDesignTab.java:95)
at stencyl.sw.app.doc.Workspace.fetchEditorForResource(Workspace.java:579)
at stencyl.sw.app.doc.Workspace.finishOpenResource(Workspace.java:436)
at stencyl.sw.app.tasks.OpenResourceTask.doInBackground(OpenResourceTask.java:64)
at stencyl.sw.app.tasks.OpenResourceTask.doInBackground(OpenResourceTask.java:20)
at org.jdesktop.swingworker.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at org.jdesktop.swingworker.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)
java.lang.RuntimeException: java.lang.StringIndexOutOfBoundsException: String index out of range: 1
at stencyl.sw.app.tasks.StencylWorker.done(StencylWorker.java:71)
at stencyl.sw.app.tasks.StencylWorker.done(StencylWorker.java:52)
at stencyl.sw.app.tasks.OpenResourceTask.done(OpenResourceTask.java:72)
at org.jdesktop.swingworker.SwingWorker$5.run(Unknown Source)
at org.jdesktop.swingworker.SwingWorker$DoSubmitAccumulativeRunnable.run(Unknown Source)
at org.jdesktop.swingworker.AccumulativeRunnable.run(Unknown Source)
at org.jdesktop.swingworker.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.StringIndexOutOfBoundsException: String index out of range: 1
at java.lang.String.charAt(Unknown Source)
at stencyl.sw.editors.snippet.designer.Definition.parseForGUIStart(Definition.java:695)
at stencyl.sw.editors.snippet.designer.Palette.createAndAddElement(Palette.java:1709)
at stencyl.sw.editors.snippet.designer.Palette.createAndAddElement(Palette.java:1645)
at stencyl.sw.editors.snippet.designer.Palette.createCustom(Palette.java:625)
at stencyl.sw.editors.snippet.designer.SubcategoryListing.addButton(SubcategoryListing.java:341)
at stencyl.sw.editors.snippet.designer.SubcategoryListing.<init>(SubcategoryListing.java:76)
at stencyl.sw.editors.snippet.designer.SubPaletteContainer.<init>(SubPaletteContainer.java:33)
at stencyl.sw.editors.snippet.designer.CategoryListing.addButton(CategoryListing.java:144)
at stencyl.sw.editors.snippet.designer.CategoryListing.<init>(CategoryListing.java:118)
at stencyl.sw.editors.snippet.designer.PaletteContainer.<init>(PaletteContainer.java:66)
at stencyl.sw.editors.snippet.designer.SnippetDesigner.<init>(SnippetDesigner.java:293)
at stencyl.sw.editors.snippet.SnippetDesignTab.<init>(SnippetDesignTab.java:95)
at stencyl.sw.app.doc.Workspace.fetchEditorForResource(Workspace.java:579)
at stencyl.sw.app.doc.Workspace.finishOpenResource(Workspace.java:436)
at stencyl.sw.app.tasks.OpenResourceTask.doInBackground(OpenResourceTask.java:64)
at stencyl.sw.app.tasks.OpenResourceTask.doInBackground(OpenResourceTask.java:20)
at org.jdesktop.swingworker.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at org.jdesktop.swingworker.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)
[LOG] Unexpected problem on thread AWT-EventQueue-0: java.lang.StringIndexOutOfBoundsException: String index out of range: 1

You have a Massive error as shown above. I'm not sure what causes this error, so hopefully someone else can inform you how to correct it. The error was located in 07-09-2011_0847_AM.log.
James Moore - Official Support & Documentation.
We cannot and will not respond to PM's asking questions. Please make a new thread in the forums if you have any questions, Thank you.
For better support and faster response times, please post your logs regarding any Stencyl related issues. Debug > Logs > Generate Logs

Alexin

  • *
  • Posts: 3132
It's missing an icon for some reason. Open list.xml, in the snippets folder and find the ID of the faulty behavior. Then copy one of the icons and rename it so it matches the ID.
"Find the fun"
alexin@stencyl.com

Darkhog

  • Posts: 1243
Stencyl should put "exclamation mark in triangle" if there is no icon, as it's do for animations if there is no frames. Or revert to default for specific resource type (e.g. saw and hammer for behaviors).

There are no impossible things. There is only lack of skills.
Don't click this if your computer has less than 641 kilobytes of RAM.
Stencyl stencyling stencylish stencylers :D

coleislazy

  • *
  • Posts: 2607
It's missing an icon for some reason. Open list.xml, in the snippets folder and find the ID of the faulty behavior. Then copy one of the icons and rename it so it matches the ID.

All the icons are present. If I remove one of my behaviors, the rest will open. Unfortunately, the one I have to remove is the one I want to save the most. :(

KungFuFurby

  • *
  • Posts: 487
Extended sessions on StencylWorks are not good at the moment for my computer or possibly your computer. I have a very serious report here that may link to this bug. I ran into the same error, though it didn't corrupt my game to my knowledge (it opened when I restarted it)...

Code: [Select]
java.lang.OutOfMemoryError
at sun.misc.Unsafe.allocateMemory(Native Method)
at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:99)
at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:288)
at apple.awt.OSXSurfaceData.getBufferOfSize(OSXSurfaceData.java:2180)
at apple.awt.OSXSurfaceData$DrawingQueue.<init>(OSXSurfaceData.java:1613)
at apple.awt.OSXSurfaceData.<init>(OSXSurfaceData.java:68)
at apple.awt.OSXSurfaceData.<init>(OSXSurfaceData.java:48)
at sun.awt.image.BufImgSurfaceData.<init>(BufImgSurfaceData.java:344)
at apple.awt.OSXOffScreenSurfaceData.<init>(OSXOffScreenSurfaceData.java:610)
at apple.awt.OSXOffScreenSurfaceData.createDataIC(OSXOffScreenSurfaceData.java:494)
at apple.awt.OSXOffScreenSurfaceData.createDataIC(OSXOffScreenSurfaceData.java:515)
at apple.awt.OSXOffScreenSurfaceData.createNewSurface(OSXOffScreenSurfaceData.java:148)
at apple.awt.OSXOffScreenSurfaceData.createData(OSXOffScreenSurfaceData.java:109)
at sun.awt.image.BufImgSurfaceData.createData(BufImgSurfaceData.java:61)
at apple.awt.CGraphicsEnvironment.createGraphics(CGraphicsEnvironment.java:316)
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1159)
at stencyl.sw.util.gfx.GraphicsUtilities.createThumbnail(GraphicsUtilities.java:451)
at stencyl.sw.editors.actor.appearance.AnimationListRenderer.getListCellRendererComponent(AnimationListRenderer.java:69)
at javax.swing.plaf.basic.BasicListUI.paintCell(BasicListUI.java:189)
at javax.swing.plaf.basic.BasicListUI.paint(BasicListUI.java:290)
at javax.swing.plaf.ComponentUI.update(ComponentUI.java:154)
at javax.swing.JComponent.paintComponent(JComponent.java:743)
at javax.swing.JComponent.paint(JComponent.java:1006)
at javax.swing.JComponent._paintImmediately(JComponent.java:4890)
at javax.swing.JComponent.paintImmediately(JComponent.java:4676)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:477)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:114)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
java.lang.OutOfMemoryError
at sun.misc.Unsafe.allocateMemory(Native Method)
at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:99)
at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:288)
at apple.awt.OSXSurfaceData.getBufferOfSize(OSXSurfaceData.java:2180)
at apple.awt.OSXSurfaceData$DrawingQueue.<init>(OSXSurfaceData.java:1613)
at apple.awt.OSXSurfaceData.<init>(OSXSurfaceData.java:68)
at apple.awt.OSXSurfaceData.<init>(OSXSurfaceData.java:48)
at sun.awt.image.BufImgSurfaceData.<init>(BufImgSurfaceData.java:344)
at apple.awt.OSXOffScreenSurfaceData.<init>(OSXOffScreenSurfaceData.java:610)
at apple.awt.OSXOffScreenSurfaceData.createDataIC(OSXOffScreenSurfaceData.java:494)
at apple.awt.OSXOffScreenSurfaceData.createDataIC(OSXOffScreenSurfaceData.java:515)
at apple.awt.OSXOffScreenSurfaceData.createNewSurface(OSXOffScreenSurfaceData.java:148)
at apple.awt.OSXOffScreenSurfaceData.createData(OSXOffScreenSurfaceData.java:109)
at sun.awt.image.BufImgSurfaceData.createData(BufImgSurfaceData.java:61)
at apple.awt.CGraphicsEnvironment.createGraphics(CGraphicsEnvironment.java:316)
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1159)
at stencyl.sw.util.gfx.GraphicsUtilities.createThumbnail(GraphicsUtilities.java:451)
at stencyl.sw.editors.actor.appearance.AnimationListRenderer.getListCellRendererComponent(AnimationListRenderer.java:69)
at javax.swing.plaf.basic.BasicListUI.paintCell(BasicListUI.java:189)
at javax.swing.plaf.basic.BasicListUI.paint(BasicListUI.java:290)
at javax.swing.plaf.ComponentUI.update(ComponentUI.java:154)
at javax.swing.JComponent.paintComponent(JComponent.java:743)
at javax.swing.JComponent.paint(JComponent.java:1006)
at javax.swing.JComponent._paintImmediately(JComponent.java:4890)
at javax.swing.JComponent.paintImmediately(JComponent.java:4676)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:477)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:114)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
[LOG] Unexpected problem on thread AWT-EventQueue-0: null
Before the application actually crashed on me, the log file had gotten littered with Out of Memory errors, pretty much the same thing over and over again. To me... that is quite a lot for my computer. The log file itself is 22 MB, most of it Out of Memory errors. The first approx. 5 MB of it is perfectly normal, but beyond that, all heck breaks loose. The session lasted about an hour. It is the biggest log file that I have by far: the second-to-biggest log file is 2.1 MB from a month ago, and that doesn't have out of memory errors.
Hi, all! I'm KungFuFurby, music composer. If you're looking for some music for your game, just PM me.
My Works List for Non-Stencyl Games
My Works List for Stencyl Games

Jon

  • *
  • Posts: 17517
Yes, we've pretty much determined with near certainty that running out of memory is the root cause. Recent versions warn you at 90% usage, and Alexin has made a little extension for 1.1 that reports exactly how much is in use and lets you reduce it to some degree by clicking a button (we don't automate that because it would lead to random pauses).

The real solution is to reduce the memory footprint by attacking the main cause - resources hold on to things much longer than they should due to lots of cross referencing. If we didn't have the individual document saving model, this wouldn't be a problem.