Loading Workspace Data Freeze

Published by tz_scion on
Status
Fixed
Issue description

 When starting up MCreator, it freezes on the part where it loads workspace data.

 

[Tue Jun 25 12:06:28 EDT 2019] [Launcher] Java version: 1.8.0_202, specification: 1.8, VM name: OpenJDK 64-Bit Server VM, VM vendor: BellSoft
[Tue Jun 25 12:06:28 EDT 2019] [Launcher] Current JAVA_HOME for running instance: C:\Pylo\MCreator183\jdk\jre
[Tue Jun 25 12:06:29 EDT 2019] [Launcher] Installation path: C:\Pylo\MCreator183
[Tue Jun 25 12:06:29 EDT 2019] [Launcher] User home of MCreator: C:\Users\[NAME]\.mcreator\
[Tue Jun 25 12:06:29 EDT 2019] [WebIO] Reading from URL: https://mcreator.net/app
[Tue Jun 25 12:06:42 EDT 2019] Skipping update message ...
[Tue Jun 25 12:06:42 EDT 2019] [WebIO] Reading from URL: https://mcreator.net/app/motw
[Tue Jun 25 12:06:42 EDT 2019] [WebIO] Reading from URL: https://mcreator.net/app/news
[Tue Jun 25 12:06:43 EDT 2019] Exception in thread "AWT-EventQueue-0" [Tue Jun 25 12:06:43 EDT 2019] com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
[Tue Jun 25 12:06:43 EDT 2019]  at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:226)
[Tue Jun 25 12:06:43 EDT 2019]  at com.google.gson.Gson.fromJson(Gson.java:927)
[Tue Jun 25 12:06:43 EDT 2019]  at com.google.gson.Gson.fromJson(Gson.java:892)
[Tue Jun 25 12:06:43 EDT 2019]  at com.google.gson.Gson.fromJson(Gson.java:841)
[Tue Jun 25 12:06:43 EDT 2019]  at com.google.gson.Gson.fromJson(Gson.java:813)
[Tue Jun 25 12:06:43 EDT 2019]  at co.pylo.mcreator.workspace.c.e(SourceFile:124)
[Tue Jun 25 12:06:43 EDT 2019]  at co.pylo.mcreator.workspace.c.a(SourceFile:23)
[Tue Jun 25 12:06:43 EDT 2019]  at co.pylo.mcreator.workspace.b.a.c(SourceFile:676)
[Tue Jun 25 12:06:43 EDT 2019]  at co.pylo.mcreator.a.<init>(SourceFile:901)
[Tue Jun 25 12:06:43 EDT 2019]  at co.pylo.mcreator.Launcher.lambda$main$1(SourceFile:151)
[Tue Jun 25 12:06:43 EDT 2019]  at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
[Tue Jun 25 12:06:43 EDT 2019]  at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
[Tue Jun 25 12:06:43 EDT 2019]  at java.awt.EventQueue.access$500(EventQueue.java:97)
[Tue Jun 25 12:06:43 EDT 2019]  at java.awt.EventQueue$3.run(EventQueue.java:709)
[Tue Jun 25 12:06:43 EDT 2019]  at java.awt.EventQueue$3.run(EventQueue.java:703)
[Tue Jun 25 12:06:43 EDT 2019]  at java.security.AccessController.doPrivileged(Native Method)
[Tue Jun 25 12:06:43 EDT 2019]  at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
[Tue Jun 25 12:06:43 EDT 2019]  at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
[Tue Jun 25 12:06:43 EDT 2019]  at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
[Tue Jun 25 12:06:43 EDT 2019]  at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
[Tue Jun 25 12:06:43 EDT 2019]  at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
[Tue Jun 25 12:06:43 EDT 2019]  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
[Tue Jun 25 12:06:43 EDT 2019]  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
[Tue Jun 25 12:06:43 EDT 2019]  at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
[Tue Jun 25 12:06:43 EDT 2019] Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
[Tue Jun 25 12:06:43 EDT 2019]  at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:385)
[Tue Jun 25 12:06:43 EDT 2019]  at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:215)
[Tue Jun 25 12:06:43 EDT 2019]  ... 23 more

 

My workspace.settings

w2=Workspace 2
w1=Workspace 1
selected=wrk1.mcr
w3=Workspace 3
w5=Workspace 4
w6=Workspace 5

 

Issue comments

Try to reinstall MCreator. You most likely forcefully closed it or your computer crashed while MCreator was open. If you have a workspace with mod elements, go to <intall dir>/forge/.mcreator and you can find backups folder there. Replace your workspace.mcreator with one of the backups to restore the mod.

This issue will be resolved completely in MCreator 1.9.0.