MCreator suddenly not opening at all

Status
Fixed
Issue description

For a few days now, I cannot open MCreator. I have tried uninstalling and reinstalling it, have tried the same with java and even have tried to open it as administrator, but it still refuses to open.Oh, I also use java 8. Can somebody help me please? (The photo below may help solving the problem)

WORKAROUND:

Delete the file <user home>/.mcreator/preferences and run MCreator again.

Issue comments

In this case, go to <user home/.mcreator/logs and paste the contents of the latest log file here.

019-07-09-16:12:37 [main/INFO] [Launcher] Starting MCreator 1.9.0, full version: 1.9.0
2019-07-09-16:12:37 [main/INFO] [Launcher] Java version: 1.8.0_212, specification: 1.8, VM name: LibericaJDK 64-Bit Server VM
2019-07-09-16:12:37 [main/INFO] [Launcher] Current JAVA_HOME for running instance: C:\Program Files\Pylo\MCreator\jdk\jre
2019-07-09-16:12:37 [main/ERROR] [Exception] Uncaught exception in main
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:226) ~[gson-2.8.5.jar:?]
    at com.google.gson.Gson.fromJson(Gson.java:927) ~[gson-2.8.5.jar:?]
    at com.google.gson.Gson.fromJson(Gson.java:892) ~[gson-2.8.5.jar:?]
    at com.google.gson.Gson.fromJson(Gson.java:841) ~[gson-2.8.5.jar:?]
    at com.google.gson.Gson.fromJson(Gson.java:813) ~[gson-2.8.5.jar:?]
    at net.mcreator.preferences.c.a(SourceFile:21) ~[mcreator.jar:?]
    at net.mcreator.Launcher.main(SourceFile:81) ~[mcreator.jar:?]
Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
    at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:385) ~[gson-2.8.5.jar:?]
    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:215) ~[gson-2.8.5.jar:?]
    ... 6 more

Could one of the users that have this problem paste the contents of the file <user home>/.mcreator/preferences here?

The only files we can access are the ones in this form: <user home>/.mcreator/workspace/..etc..etc

How can we access the "preferences" type?

<user home (on Windows this folder is your username)>/.mcreator/ there is a file called preferences without any extensions next to some other files and folders such as gradle, logs, ...

Please someone with this issue, tell me the contents of this file. Without this data I can't really help on this issue.

Ok I finally found the file and I will reveal its contents here:

...(uuuh mine is empty)

 

{
  "general": {
    "compileOnSave": true,
    "notifyOfProgress": true,
    "checkUpdates": true
  },
  "backups": {
    "workspaceAutosaveInterval": 30,
    "automatedBackupInterval": 5,
    "numberOfBackupsToStore": 10
  },
  "ui": {
    "interfaceAccentColor": {
      "value": -7092917,
      "falpha": 0.0
    },
    "aatext": true,
    "useSystemAAFontSettings": "on",
    "expandSectionsByDefault": false
  },
  "blockly": {
    "enableComments": true,
    "enableCollapse": true,
    "enableTrashcan": true,
    "maxScale": 100,
    "minScale": 40,
    "scaleSpeed": 105,
    "legacyFont": false
  },
  "ide": {
    "editorTheme": "MCreator",
    "autocomplete": true,
    "autocompleteMode": "Smart",
    "autocompleteDocWindow": true,
    "lineNumbers": true,
    "showErrorStrip": false
  },
  "gradle": {
    "xms": 625,
    "xmx": 2048,
    "parallel": false,
    "offline": false,
    "java_home": {
      "path": ""
    }
  },
  "hidden": {
    "workspaceLargeIcons": true,
    "fullScreen": false,
    "projectTreeSplitPos": 0
  }
}

 

after this the MCreator, has started! yey

IT WORKS it has not let me be on here for about a week now thank you so much!

My preferences file is empty (I opened it with the default windows note pad). I'll delete it and try.

My preferences file is empty (I opened it with the default windows note pad). I'll delete it and try.

That should help.

Then open a new ticket and paste the contents of the terminal when you launch MCreator with mcreator.bat

DID THE SAME THING AND IT DID NOTHING!!!

P.s. This is what I ended up with >:(

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

{
  "ui": {
    "interfaceAccentColor": {
      "value": -7092917,
      "falpha": 0.0
    },
    "aatext": true,
    "useSystemAAFontSettings": "on",
    "expandSectionsByDefault": false,
    "use2DAcceleration": false,
    "autoreloadTabs": true
  },
  "backups": {
    "workspaceAutosaveInterval": 30,
    "automatedBackupInterval": 5,
    "numberOfBackupsToStore": 10
  },
  "remoteworkspace": {
    "useMCreatorUsername": true
  },
  "blockly": {
    "enableComments": true,
    "enableCollapse": true,
    "enableTrashcan": true,
    "maxScale": 100,
    "minScale": 40,
    "scaleSpeed": 105,
    "legacyFont": false
  },
  "ide": {
    "editorTheme": "MCreator",
    "fontSize": 12,
    "autocomplete": true,
    "autocompleteMode": "Smart",
    "autocompleteDocWindow": true,
    "lineNumbers": true,
    "showErrorStrip": false
  },
  "gradle": {
    "compileOnSave": true,
    "xms": 625,
    "xmx": 2048,
    "offline": false,
    "java_home": {
      "path": ""
    }
  },
  "notification": {
    "showWhatsNextPage": true,
    "checkForUpdates": true,
    "checkForPatches": true
  },
  "hidden": {
    "workspaceLargeIcons": true,
    "fullScreen": false,
    "projectTreeSplitPos": 0,
    "workspaceSortAscending": true,
    "workspaceSortType": "CREATED"
  }
}

2021-04-09-14:03:35 [main/INFO] [Launcher] Starting MCreator 2020.5.47520 - 202000547520
2021-04-09-14:03:35 [main/INFO] [Launcher] Java version: 1.8.0_265, specification: 1.8, VM name: OpenJDK 64-Bit Server VM
2021-04-09-14:03:35 [main/INFO] [Launcher] Current JAVA_HOME for running instance: C:\Program Files\Pylo\MCreator\jdk\jre
2021-04-09-14:03:35 [main/DEBUG] [Preferences Manager] Loading preferences from C:\Users\lenovo\.mcreator\preferences
2021-04-09-14:03:35 [main/INFO] [Launcher] Installation path: C:\Program Files\Pylo\MCreator
2021-04-09-14:03:35 [main/INFO] [Launcher] User home of MCreator: C:\Users\lenovo\.mcreator\
2021-04-09-14:03:38 [AWT-EventQueue-0/INFO] [Plugin Loader] Loading plugin: core from .\plugins\mcreator-core.zip, weight: 10
2021-04-09-14:03:38 [AWT-EventQueue-0/INFO] [Plugin Loader] Loading plugin: localization from .\plugins\mcreator-localization.zip, weight: 10
2021-04-09-14:03:38 [AWT-EventQueue-0/INFO] [Plugin Loader] Loading plugin: generator-1.14.4 from .\plugins\generator-1.14.4.zip, weight: 0
2021-04-09-14:03:38 [AWT-EventQueue-0/INFO] [Plugin Loader] Loading plugin: generator-1.15.2 from .\plugins\generator-1.15.2.zip, weight: 0
2021-04-09-14:03:38 [AWT-EventQueue-0/INFO] [Plugin Loader] Loading plugin: generator-addon-1.16.x from .\plugins\generator-addon-1.16.x.zip, weight: 0
2021-04-09-14:03:38 [AWT-EventQueue-0/INFO] [Plugin Loader] Loading plugin: generator-datapack-1.14.x from .\plugins\generator-datapack-1.14.x.zip, weight: 0
2021-04-09-14:03:38 [AWT-EventQueue-0/INFO] [Plugin Loader] Loading plugin: generator-datapack-1.15.x from .\plugins\generator-datapack-1.15.x.zip, weight: 0
2021-04-09-14:03:38 [AWT-EventQueue-0/INFO] [Plugin Loader] Loading plugin: mcreator-link from .\plugins\mcreator-link.zip, weight: 0
2021-04-09-14:03:38 [AWT-EventQueue-0/INFO] [Plugin Loader] Loading plugin: arraylists from C:\Users\lenovo\.mcreator\plugins\PluginArrayLists_0.zip, weight: 0
2021-04-09-14:03:40 [AWT-EventQueue-0/DEBUG] [Mod API manager] Loaded mod API definition: mcreator_link
2021-04-09-14:03:40 [AWT-EventQueue-0/DEBUG] [Blockly loader] Loading blocks for procedures
2021-04-09-14:03:40 [AWT-EventQueue-0/DEBUG] [Blockly loader] Loading blocks for aitasks
2021-04-09-14:03:40 [AWT-EventQueue-0/DEBUG] [Blockly loader] Loading blocks for jsontriggers
2021-04-09-14:03:40 [AWT-EventQueue-0/INFO] [Application] Loading generator: addon-1.16.x/generator.yaml
2021-04-09-14:03:41 [AWT-EventQueue-0/DEBUG] [Data List Loader] Added mapcolors datamap to cache
2021-04-09-14:03:41 [AWT-EventQueue-0/DEBUG] [Data List Loader] Added stepsounds datamap to cache
2021-04-09-14:03:41 [AWT-EventQueue-0/DEBUG] [Data List Loader] Added blocksitems datamap to cache
2021-04-09-14:03:41 [AWT-EventQueue-0/DEBUG] [Data List Loader] Added entities datamap to cache
2021-04-09-14:03:41 [AWT-EventQueue-0/INFO] [Application] Loading generator: datapack-1.14.x/generator.yaml
2021-04-09-14:03:41 [AWT-EventQueue-0/DEBUG] [Data List Loader] Added achievements datamap to cache
2021-04-09-14:03:41 [AWT-EventQueue-0/DEBUG] [Data List Loader] Added biomes datamap to cache
2021-04-09-14:03:41 [AWT-EventQueue-0/INFO] [Application] Loading generator: datapack-1.15.x/generator.yaml
2021-04-09-14:03:41 [AWT-EventQueue-0/INFO] [Application] Loading generator: forge-1.14.4/generator.yaml
2021-04-09-14:03:41 [AWT-EventQueue-0/DEBUG] [Data List Loader] Added keybuttons datamap to cache
2021-04-09-14:03:41 [AWT-EventQueue-0/DEBUG] [Data List Loader] Added enchantmenttypes datamap to cache
2021-04-09-14:03:41 [AWT-EventQueue-0/DEBUG] [Data List Loader] Added tabs datamap to cache
2021-04-09-14:03:41 [AWT-EventQueue-0/DEBUG] [Data List Loader] Added biomedictionarytypes datamap to cache
2021-04-09-14:03:41 [AWT-EventQueue-0/DEBUG] [Data List Loader] Added gamemodes datamap to cache
2021-04-09-14:03:41 [AWT-EventQueue-0/DEBUG] [Data List Loader] Added defaultfeatures datamap to cache
2021-04-09-14:03:41 [AWT-EventQueue-0/DEBUG] [Data List Loader] Added sounds datamap to cache
2021-04-09-14:03:41 [AWT-EventQueue-0/DEBUG] [Data List Loader] Added particles datamap to cache
2021-04-09-14:03:41 [AWT-EventQueue-0/DEBUG] [Data List Loader] Added fluids datamap to cache
2021-04-09-14:03:41 [AWT-EventQueue-0/DEBUG] [Data List Loader] Added types datamap to cache
2021-04-09-14:03:41 [AWT-EventQueue-0/DEBUG] [Data List Loader] Added damagesources datamap to cache
2021-04-09-14:03:41 [AWT-EventQueue-0/DEBUG] [Data List Loader] Added enchantments datamap to cache
2021-04-09-14:03:41 [AWT-EventQueue-0/DEBUG] [Data List Loader] Added mobspawntypes datamap to cache
2021-04-09-14:03:41 [AWT-EventQueue-0/DEBUG] [Data List Loader] Added directions datamap to cache
2021-04-09-14:03:41 [AWT-EventQueue-0/DEBUG] [Data List Loader] Added materials datamap to cache
2021-04-09-14:03:41 [AWT-EventQueue-0/DEBUG] [Data List Loader] Added pathnodetypes datamap to cache
2021-04-09-14:03:41 [AWT-EventQueue-0/DEBUG] [Data List Loader] Added potions datamap to cache
2021-04-09-14:03:41 [AWT-EventQueue-0/DEBUG] [Data List Loader] Added gamerules datamap to cache
2021-04-09-14:03:41 [AWT-EventQueue-0/INFO] [Application] Loading generator: forge-1.15.2/generator.yaml
2021-04-09-14:03:44 [Thread-12/INFO] [GA] Tracking page: /2020.5/launch
2021-04-09-14:03:57 [AWT-EventQueue-0/INFO] [Workspace] Loaded workspace file C:\Users\lenovo\MCreatorWorkspaces\more_food\more_food.mcreator
2021-04-09-14:03:58 [AWT-EventQueue-0/INFO] [MCreator] Opening MCreator workspace: more_food
2021-04-09-14:03:58 [AWT-EventQueue-0/ERROR] [Exception] Uncaught exception in AWT-EventQueue-0
java.lang.NullPointerException: null
    at net.mcreator.ui.MCreatorApplication.getRecentWorkspaces(MCreatorApplication.java:320) ~[mcreator.jar:?]
    at net.mcreator.ui.MainMenuBar.<init>(MainMenuBar.java:75) ~[mcreator.jar:?]
    at net.mcreator.ui.MCreator.<init>(MCreator.java:120) ~[mcreator.jar:?]
    at net.mcreator.ui.MCreatorApplication.openWorkspaceInMCreator(MCreatorApplication.java:219) ~[mcreator.jar:?]
    at net.mcreator.ui.WorkspaceSelector.lambda$new$1(WorkspaceSelector.java:95) ~[mcreator.jar:?]
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) ~[?:1.8.0_265]
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348) ~[?:1.8.0_265]
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) ~[?:1.8.0_265]
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) ~[?:1.8.0_265]
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252) ~[?:1.8.0_265]
    at java.awt.Component.processMouseEvent(Component.java:6539) ~[?:1.8.0_265]
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3324) ~[?:1.8.0_265]
    at java.awt.Component.processEvent(Component.java:6304) ~[?:1.8.0_265]
    at java.awt.Container.processEvent(Container.java:2239) ~[?:1.8.0_265]
    at java.awt.Component.dispatchEventImpl(Component.java:4889) ~[?:1.8.0_265]
    at java.awt.Container.dispatchEventImpl(Container.java:2297) ~[?:1.8.0_265]
    at java.awt.Component.dispatchEvent(Component.java:4711) ~[?:1.8.0_265]
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904) ~[?:1.8.0_265]
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535) ~[?:1.8.0_265]
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476) ~[?:1.8.0_265]
    at java.awt.Container.dispatchEventImpl(Container.java:2283) ~[?:1.8.0_265]
    at java.awt.Window.dispatchEventImpl(Window.java:2746) ~[?:1.8.0_265]
    at java.awt.Component.dispatchEvent(Component.java:4711) ~[?:1.8.0_265]
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760) ~[?:1.8.0_265]
    at java.awt.EventQueue.access$500(EventQueue.java:97) ~[?:1.8.0_265]
    at java.awt.EventQueue$3.run(EventQueue.java:709) ~[?:1.8.0_265]
    at java.awt.EventQueue$3.run(EventQueue.java:703) ~[?:1.8.0_265]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_265]
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) ~[?:1.8.0_265]
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84) ~[?:1.8.0_265]
    at java.awt.EventQueue$4.run(EventQueue.java:733) ~[?:1.8.0_265]
    at java.awt.EventQueue$4.run(EventQueue.java:731) ~[?:1.8.0_265]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_265]
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) ~[?:1.8.0_265]
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:730) ~[?:1.8.0_265]
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) [?:1.8.0_265]
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) [?:1.8.0_265]
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) [?:1.8.0_265]
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) [?:1.8.0_265]
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) [?:1.8.0_265]
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) [?:1.8.0_265]
 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

My MCreator could open. But not openning workspaces. Help!

I'm on mcreator 2020.5, And I uninstall and reinstalled mcreator twice, uninstall and reinstall java twice, AND STILL NOT WORK!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

 I HATE NOT BE ABLE TO OPEN MY FILES, IJUST HATE IT!!!!!!!

Sometimes the workspace quick access list gets corrupted, usually if MCreator is forcefully closed or computer crashes