Minecraft crashes when loading mods

Status
Fixed
Type
Product/platform
MCreator/Windows
Priority
Normal
Issue description

Each time I build a mod an then place the mod into the mods folder to start testing the mod my game crashed after reaching 2/7 mods loaded during the forge startup screen that shows the Mojang symbol.

It seems the problem has something to do with some sort of values being improper but I don't know much about Java scripting and programming so any help would be appreciated

> Process 'command 'F:\Minecraft Mod Development\MCreator 1.8.1 [1.12.2] Windows 64bit\jdk\bin\java.exe'' finished with non-zero exit value -1

At first I thought it has something to do with the way I had set up different mod elements but even when just creating a simple recipe or block etc. the game will still crash with the same problem, I have tried to increase the minimum and maximum RAM usage but this didn't seem to help in any way, I even tried to let the gradle build use multiple cores but once again no luck.

Here is the console log:

Executing gradle command: clean runClient
Build info: MCreator 1.8.1, 64-bit, 8147 MB, Windows 7 - cmd, JVM 1.8.0_172, JAVA_HOME: F:\Minecraft Mod Development\MCreator 1.8.1 [1.12.2] Windows 64bit\.\jdk
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
F:\Minecraft Mod Development\MCreator 1.8.1 [1.12.2] Windows 64bit\forge>gradlew -Dorg.gradle.daemon=false -Dorg.gradle.parallel=true -Dorg.gradle.jvmargs="-Xms612m -Xmx4096m" clean runClient 
Parallel execution is an incubating feature.
This mapping 'snapshot_20171003' was designed for MC 1.12! Use at your own peril.
#################################################
         ForgeGradle 2.3-SNAPSHOT-3996470        
  https://github.com/MinecraftForge/ForgeGradle  
#################################################
                 Powered by MCP                  
             http://modcoderpack.com             
     by: Searge, ProfMobius, R4wk, ZeuX          
     Fesh0r, IngisKahn, bspkrs, LexManos         
#################################################
:clean
:deobfCompileDummyTask
:deobfProvidedDummyTask
:sourceApiJava
:compileApiJava UP-TO-DATE
:processApiResources UP-TO-DATE
:apiClasses UP-TO-DATE
:sourceMainJava
:compileJava
:processResources
:classes
:jar
:getVersionJson
:extractNatives SKIPPED
:extractUserdev
:getAssetIndex UP-TO-DATE
:getAssets
Current status: 1114/1305   85%
:makeStart
:runClient
[20:19:15] [main/INFO] [GradleStart]: Extra: []
[20:19:15] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Filimon/.mcreator/gradle/caches/minecraft/assets, --assetIndex, 1.12, --accessToken{REDACTED}, --version, 1.12.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[20:19:15] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[20:19:15] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[20:19:15] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[20:19:15] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[20:19:15] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2768 for Minecraft 1.12.2 loading
[20:19:15] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_172, running on Windows 7:amd64:6.1, installed at F:\Minecraft Mod Development\MCreator 1.8.1 [1.12.2] Windows 64bit\jdk\jre
[20:19:15] [main/ERROR] [FML]: Apache Maven library folder was not in the format expected. Using default libraries directory.
[20:19:15] [main/ERROR] [FML]: Full: C:\Users\Filimon\.mcreator\gradle\caches\modules-2\files-2.1\org.apache.maven\maven-artifact\3.5.3\7dc72b6d6d8a6dced3d294ed54c2cc3515ade9f4\maven-artifact-3.5.3.jar
[20:19:15] [main/ERROR] [FML]: Trimmed: c:/users/filimon/.mcreator/gradle/caches/modules-2/files-2.1/org.apache.maven/maven-artifact/3.5.3/
[20:19:15] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[20:19:15] [main/INFO] [FML]: Detected deobfuscated environment, loading log configs for colored console logs.
2018-11-25 20:19:16,316 main WARN Disabling terminal, you're running in an unsupported environment.
[20:19:16] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin), we are in deobf and it's a forge core plugin
[20:19:16] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin), we are in deobf and it's a forge core plugin
[20:19:16] [main/INFO] [FML]: Searching F:\Minecraft Mod Development\MCreator 1.8.1 [1.12.2] Windows 64bit\forge\run\.\mods for mods
[20:19:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[20:19:16] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[20:19:16] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[20:19:16] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[20:19:16] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[20:19:16] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[20:19:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[20:19:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[20:19:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[20:19:17] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[20:19:17] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[20:19:17] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[20:19:17] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[20:19:17] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[20:19:17] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[20:19:17] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[20:19:17] [main/INFO] [minecraft/Minecraft]: Setting user: Player828
[20:19:20] [main/WARN] [minecraft/GameSettings]: Skipping bad option: lastServer:
[20:19:20] [main/INFO] [minecraft/Minecraft]: LWJGL Version: 2.9.4
[20:19:20] [main/INFO] [FML]: -- System Details --
Details:
   Minecraft Version: 1.12.2
   Operating System: Windows 7 (amd64) version 6.1
   Java Version: 1.8.0_172, Oracle Corporation
   Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
   Memory: 421235336 bytes (401 MB) / 530055168 bytes (505 MB) up to 1900019712 bytes (1812 MB)
   JVM Flags: 0 total; 
   IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
   FML: 
   Loaded coremods (and transformers): 
   GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.6.0 NVIDIA 399.07' Renderer: 'GeForce GTX 1060 3GB/PCIe/SSE2'
[20:19:21] [main/INFO] [FML]: MinecraftForge v14.23.5.2768 Initialized
[20:19:21] [main/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients.
[20:19:21] [main/INFO] [FML]: Replaced 1036 ore ingredients
[20:19:21] [main/INFO] [FML]: Searching F:\Minecraft Mod Development\MCreator 1.8.1 [1.12.2] Windows 64bit\forge\run\.\mods for mods
[20:19:22] [main/INFO] [FML]: Mod testenvironmentmod is missing the required element 'name'. Substituting testenvironmentmod
[20:19:22] [main/INFO] [FML]: Forge Mod Loader has identified 6 mods to load
[20:19:22] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, testenvironmentmod, craftablesaddles] at CLIENT
[20:19:22] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, testenvironmentmod, craftablesaddles] at SERVER
[20:19:22] [main/INFO] [minecraft/SimpleReloadableResourceManager]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:testenvironmentmod, FMLFileResourcePack:Craftable Saddles
[20:19:22] [main/INFO] [FML]: Processing ObjectHolder annotations
[20:19:22] [main/INFO] [FML]: Found 1168 ObjectHolder annotations
[20:19:22] [main/INFO] [FML]: Identifying ItemStackHolder annotations
[20:19:22] [main/INFO] [FML]: Found 0 ItemStackHolder annotations
[20:19:22] [main/INFO] [FML]: Configured a dormant chunk cache size of 0
[20:19:22] [main/INFO] [FML]: OBJLoader: Domain testenvironmentmod has been added.
[20:19:22] [main/INFO] [FML]: OBJLoader: Domain craftablesaddles has been added.
[20:19:22] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[20:19:23] [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629 ---- Minecraft Crash Report ----
// You should try our sister game, Minceraft!
Time: 11/25/18 8:19 PM
Description: There was a severe problem during mod loading that has caused the game to fail
net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from Craftable Saddles (craftablesaddles)
Caused by: java.lang.ClassCastException: mod.mcreator.mcreator_saddle cannot be cast to mod.mcreator.craftablesaddles$ModElement
   at java.util.ArrayList.forEach(ArrayList.java:1257)
   at mod.mcreator.craftablesaddles.preInit(craftablesaddles.java:77)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
   at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:626)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
   at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
   at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
   at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
   at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
   at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
   at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
   at com.google.common.eventbus.EventBus.post(EventBus.java:217)
   at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:218)
   at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:196)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
   at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
   at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
   at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
   at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
   at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
   at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
   at com.google.common.eventbus.EventBus.post(EventBus.java:217)
   at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:135)
   at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:627)
   at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:252)
   at net.minecraft.client.Minecraft.init(Minecraft.java:513)
   at net.minecraft.client.Minecraft.run(Minecraft.java:421)
   at net.minecraft.client.main.Main.main(Main.java:118)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
   at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
   at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
   at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
   at GradleStart.main(GradleStart.java:25)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
   Minecraft Version: 1.12.2
   Operating System: Windows 7 (amd64) version 6.1
   Java Version: 1.8.0_172, Oracle Corporation
   Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
   Memory: 380017360 bytes (362 MB) / 672137216 bytes (641 MB) up to 1900019712 bytes (1812 MB)
   JVM Flags: 0 total; 
   IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
   FML: MCP 9.42 Powered by Forge 14.23.5.2768 6 mods loaded, 6 mods active
   States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
   | State | ID                 | Version      | Source                           | Signature |
   |:----- |:------------------ |:------------ |:-------------------------------- |:--------- |
   | UCH   | minecraft          | 1.12.2       | minecraft.jar                    | None      |
   | UCH   | mcp                | 9.42         | minecraft.jar                    | None      |
   | UCH   | FML                | 8.0.99.99    | forgeSrc-1.12.2-14.23.5.2768.jar | None      |
   | UCH   | forge              | 14.23.5.2768 | forgeSrc-1.12.2-14.23.5.2768.jar | None      |
   | UCH   | testenvironmentmod | 1.0          | modid-1.0.jar                    | None      |
   | UCEE  | craftablesaddles   | 1.0.0        | Saddles.zip                      | None      |
   Loaded coremods (and transformers): 
   GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.6.0 NVIDIA 399.07' Renderer: 'GeForce GTX 1060 3GB/PCIe/SSE2'
[20:19:23] [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629 #@!@# Game crashed! Crash report saved to: #@!@# F:\Minecraft Mod Development\MCreator 1.8.1 [1.12.2] Windows 64bit\forge\run\.\crash-reports\crash-2018-11-25_20.19.23-client.txt
:runClient FAILED
BUILD FAILED
Total time: 25.828 secs
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':runClient'.
> Process 'command 'F:\Minecraft Mod Development\MCreator 1.8.1 [1.12.2] Windows 64bit\jdk\bin\java.exe'' finished with non-zero exit value -1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
F:\Minecraft Mod Development\MCreator 1.8.1 [1.12.2] Windows 64bit\forge>
Task completed with return code 0 in 26210 milliseconds

 

Issue comments

Is there option that you attach your exported workspace in .mcr format here so I can try to replicate this on my computer? Thanks!

I have imported your workspace and exported the mod again. Now it works. I have attached the workspace I exported too. I suggest you to try the same thing. It seems that this way the bug gets resolved.

This bug will be fixed with next update as it will introduce fixed workspace names.

Unfortunately I am still having the problem despite trying to re-import the workspace, I've also tried to rename the workspace to see if that was the problem but nothing seems to be working. I'll try to re-install the program all together to see if that works as a final ditch attempt to fix it but otherwise I may have to wait for the next update to try MCreator out.

Thank you for you help though and I am glad that you are making a fix for this! I appreciate it



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.