1
Ask a Question / unable to save after runtimeexception
« on: September 09, 2022, 11:18:38 pm »
i ran into this when trying to save multiple tilesets without waiting for the previous one to finish saving, now i am unable to save, which is very irritating. since i am unable to save, after closing the file, i am unable to reopen it. i see this same error was posted 7 years ago in the forums. possibly more synchronization around saving could fix this issue? One thing i notice is after reopening, while all the changes i made are gone, the image preview of the scene is still there, even though the scene is empty.
java.lang.RuntimeException: java.lang.IllegalArgumentException: The given item is not part of this model.
at stencyl.sw.app.tasks.StencylWorker.done(StencylWorker.java:74)
at stencyl.sw.app.tasks.SaveGameTask.done(SaveGameTask.java:58)
at java.desktop/javax.swing.SwingWorker$5.run(Unknown Source)
at java.desktop/javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(Unknown Source)
at java.desktop/sun.swing.AccumulativeRunnable.run(Unknown Source)
at java.desktop/javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(Unknown Source)
at java.desktop/javax.swing.Timer.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.Timer$DoPostEvent.run(Unknown Source)
at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: The given item is not part of this model.
at com.explodingpixels.macwidgets.SourceListModel.validateItemIsInModel(SourceListModel.java:225)
at com.explodingpixels.macwidgets.SourceListModel.removeItemFromCategory(SourceListModel.java:146)
at stencyl.sw.app.center.GameLibrary.refreshFolders(GameLibrary.java:380)
at stencyl.sw.app.doc.Workspace.onCreateResource(Workspace.java:1050)
at stencyl.sw.app.doc.Workspace.broadcastEvent(Workspace.java:1001)
at stencyl.sw.app.doc.Workspace.saveResource(Workspace.java:1880)
at stencyl.sw.app.doc.Workspace.saveResourceToMemory(Workspace.java:1890)
at stencyl.sw.io.write.ResourcePackWriter.writeResourcesFile(ResourcePackWriter.java:103)
at stencyl.sw.io.write.ResourcePackWriter.write(ResourcePackWriter.java:49)
at stencyl.sw.io.write.MasterWriter.saveGame(MasterWriter.java:89)
at stencyl.sw.app.tasks.SaveGameTask.doInBackground(SaveGameTask.java:35)
at stencyl.sw.app.tasks.SaveGameTask.doInBackground(SaveGameTask.java:15)
at java.desktop/javax.swing.SwingWorker$1.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.desktop/javax.swing.SwingWorker.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
java.lang.RuntimeException: java.lang.IllegalArgumentException: The given item is not part of this model.
at stencyl.sw.app.tasks.StencylWorker.done(StencylWorker.java:74)
at stencyl.sw.app.tasks.SaveGameTask.done(SaveGameTask.java:58)
at java.desktop/javax.swing.SwingWorker$5.run(Unknown Source)
at java.desktop/javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(Unknown Source)
at java.desktop/sun.swing.AccumulativeRunnable.run(Unknown Source)
at java.desktop/javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(Unknown Source)
at java.desktop/javax.swing.Timer.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.Timer$DoPostEvent.run(Unknown Source)
at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: The given item is not part of this model.
at com.explodingpixels.macwidgets.SourceListModel.validateItemIsInModel(SourceListModel.java:225)
at com.explodingpixels.macwidgets.SourceListModel.removeItemFromCategory(SourceListModel.java:146)
at stencyl.sw.app.center.GameLibrary.refreshFolders(GameLibrary.java:380)
at stencyl.sw.app.doc.Workspace.onCreateResource(Workspace.java:1050)
at stencyl.sw.app.doc.Workspace.broadcastEvent(Workspace.java:1001)
at stencyl.sw.app.doc.Workspace.saveResource(Workspace.java:1880)
at stencyl.sw.app.doc.Workspace.saveResourceToMemory(Workspace.java:1890)
at stencyl.sw.io.write.ResourcePackWriter.writeResourcesFile(ResourcePackWriter.java:103)
at stencyl.sw.io.write.ResourcePackWriter.write(ResourcePackWriter.java:49)
at stencyl.sw.io.write.MasterWriter.saveGame(MasterWriter.java:89)
at stencyl.sw.app.tasks.SaveGameTask.doInBackground(SaveGameTask.java:35)
at stencyl.sw.app.tasks.SaveGameTask.doInBackground(SaveGameTask.java:15)
at java.desktop/javax.swing.SwingWorker$1.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.desktop/javax.swing.SwingWorker.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)