MCreator 1.9.0 won't load anymore my workspace

Upvotes: 1
Issue description

Hello there. Yesterday, I downloaded MCreator 1.9.0, and it worked fine. This morning, I opened it and it was fine too, until suddenly, my computer turned off with a BSoD error. After that, reopening my workspace was impossible. When clicking on the workspace in "recent workspaces", my cursor turned into a loading wheel but, even waiting 10 minutes, wouldn't bring me anywhere.


I am using a x64 bit Windows 7 Ultimate. I also found that some other users have also got this error, but the workaround suggested (deleting the Preferences file) didn't work.


2019-08-04-13:32:36 [main/INFO] [Launcher] Starting MCreator 1.9.0, full version: 1.9.0
2019-08-04-13:32:36 [main/INFO] [Launcher] Java version: 1.8.0_212, specification: 1.8, VM name: LibericaJDK 64-Bit Server VM
2019-08-04-13:32:36 [main/INFO] [Launcher] Current JAVA_HOME for running instance: C:\Users\Cristian\Desktop\MCreator\MCreator190\jdk\jre
2019-08-04-13:32:36 [main/INFO] [Launcher] Installation path: C:\Users\Cristian\Desktop\MCreator\MCreator190
2019-08-04-13:32:36 [main/INFO] [Launcher] User home of MCreator: C:\Users\Cristian\.mcreator\
2019-08-04-13:32:41 [AWT-EventQueue-0/INFO] [Application] Generators loaded: [1.12.2]
2019-08-04-13:32:42 [AWT-EventQueue-0/INFO] [UpdateNotify] Skipping update message ...
2019-08-04-13:32:42 [Thread-7/INFO] [GA] Tracking page: /1.9.0/launch
2019-08-04-13:32:56 [AWT-EventQueue-0/INFO] [MCreator] Opening workspace: C:\Users\Cristian\MCreatorWorkspaces\casamods\casamods.mcreator
2019-08-04-13:32:56 [AWT-EventQueue-0/ERROR] [Exception] Uncaught exception in AWT-EventQueue-0 java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
	at$ ~[gson-2.8.5.jar:?]
	at ~[gson-2.8.5.jar:?]
	at ~[gson-2.8.5.jar:?]
	at ~[gson-2.8.5.jar:?]
	at ~[gson-2.8.5.jar:?]
	at net.mcreator.workspace.c.e(SourceFile:75) ~[mcreator.jar:?]
	at net.mcreator.workspace.c.a(SourceFile:32) ~[mcreator.jar:?]
	at net.mcreator.ui.b.<init>(SourceFile:78) ~[mcreator.jar:?]
	at net.mcreator.ui.g.a(SourceFile:166) ~[mcreator.jar:?]
	at net.mcreator.ui.WorkspaceSelector.a(SourceFile:78) ~[mcreator.jar:?]
	at javax.swing.AbstractButton.fireActionPerformed( ~[?:1.8.0_212]
	at javax.swing.AbstractButton$Handler.actionPerformed( ~[?:1.8.0_212]
	at javax.swing.DefaultButtonModel.fireActionPerformed( ~[?:1.8.0_212]
	at javax.swing.DefaultButtonModel.setPressed( ~[?:1.8.0_212]
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased( ~[?:1.8.0_212]
	at java.awt.Component.processMouseEvent( ~[?:1.8.0_212]
	at javax.swing.JComponent.processMouseEvent( ~[?:1.8.0_212]
	at java.awt.Component.processEvent( ~[?:1.8.0_212]
	at java.awt.Container.processEvent( ~[?:1.8.0_212]
	at java.awt.Component.dispatchEventImpl( ~[?:1.8.0_212]
	at java.awt.Container.dispatchEventImpl( ~[?:1.8.0_212]
	at java.awt.Component.dispatchEvent( ~[?:1.8.0_212]
	at java.awt.LightweightDispatcher.retargetMouseEvent( ~[?:1.8.0_212]
	at java.awt.LightweightDispatcher.processMouseEvent( ~[?:1.8.0_212]
	at java.awt.LightweightDispatcher.dispatchEvent( ~[?:1.8.0_212]
	at java.awt.Container.dispatchEventImpl( ~[?:1.8.0_212]
	at java.awt.Window.dispatchEventImpl( ~[?:1.8.0_212]
	at java.awt.Component.dispatchEvent( ~[?:1.8.0_212]
	at java.awt.EventQueue.dispatchEventImpl( ~[?:1.8.0_212]
	at java.awt.EventQueue.access$500( ~[?:1.8.0_212]
	at java.awt.EventQueue$ ~[?:1.8.0_212]
	at java.awt.EventQueue$ ~[?:1.8.0_212]
	at Method) ~[?:1.8.0_212]
	at$JavaSecurityAccessImpl.doIntersectionPrivilege( ~[?:1.8.0_212]
	at$JavaSecurityAccessImpl.doIntersectionPrivilege( ~[?:1.8.0_212]
	at java.awt.EventQueue$ ~[?:1.8.0_212]
	at java.awt.EventQueue$ ~[?:1.8.0_212]
	at Method) ~[?:1.8.0_212]
	at$JavaSecurityAccessImpl.doIntersectionPrivilege( ~[?:1.8.0_212]
	at java.awt.EventQueue.dispatchEvent( ~[?:1.8.0_212]
	at java.awt.EventDispatchThread.pumpOneEventForFilters( [?:1.8.0_212]
	at java.awt.EventDispatchThread.pumpEventsForFilter( [?:1.8.0_212]
	at java.awt.EventDispatchThread.pumpEventsForHierarchy( [?:1.8.0_212]
	at java.awt.EventDispatchThread.pumpEvents( [?:1.8.0_212]
	at java.awt.EventDispatchThread.pumpEvents( [?:1.8.0_212]
	at [?:1.8.0_212]
Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
	at ~[gson-2.8.5.jar:?]
	at$ ~[gson-2.8.5.jar:?]
	... 45 more

Can someone, especially Klemen, help me?

Issue comments

The workspace was most likely saving at the time of BSOD and got corrupted as it did not completely write. You can go to <workspace folder>/.mcreator/ and there is backups folder. In it you have backups of modid.mcreator file. Use one of the backups before this happened and replace the file modid.mcreator with one of the backups, where modid is modid of your mod.

Submitted by Xedroc on Sun, 12/01/2019 - 18:18

This also helped me, I had the same problem!


You are welcome! I am glad I could help :) If you like what we do, consider donating to us to help us keep this project up.

Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.