MCreator Build Failed error: Minecraft crashes immediately after it opens in the test environment.

Started by BigYajuu on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 16:50, 7. Aug 2021
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
MCreator Build Failed error: Minecraft crashes immediately after it opens in the test environment.

Allow me to elaborate on this situation under a very specific scenario.

I am using MCreator 2020.2 (I know it is very old and buggy, but I have to use it to support Minecraft 1.12.2. I have a creative project on this version.)

Three months ago I made a 1.0 version of my mod. It is cool and all was working fine. Then I just finished updating it to v1.1 recently. After I attempted to change the 'Mod Display Name' in the workshop setting this time, the test Minecraft quits immediately after it opens. It is just a NAME CHANGE. I did not change anything else.

And when I changed the name back nothing was fixed. I just don't understand. A name change would cause a catastrophic error for the entire mod?? What should I do to fix it???

I see the stem of the problem is that in the "build" folder it includes multiple duplicated Class and Java files. You see, in there exists one batch of class files named after the original mod name, and another batch of the same duplicate class files but named after the new mod name.

So I try to fix the problem by deleting all files with the original mod name (since I am keeping the new mod name at that moment.) It did not work. When I execute the test environment all of these duplicated class files are regenerated back again. It is impossible to delete them completely.

Please, I spent so long to put up this project. I cannot let it go to waste. Please tell me the solution. Thanks.

The Gradle report for the execution is shown below:


 
Executing Gradle task: runClient 
Build info: MCreator 2020.2.14217, 1.12.2, 64-bit, 16222 MB, Windows 10, JVM 1.8.0_232, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk 
This mapping 'snapshot_20171003' was designed for MC 1.12! Use at your own peril. 
:deobfCompileDummyTask 
:deobfProvidedDummyTask 
:sourceApiJava UP-TO-DATE 
:compileApiJava NO-SOURCE 
:processApiResources NO-SOURCE 
:apiClasses UP-TO-DATE 
:sourceMainJava UP-TO-DATE 
:compileJava UP-TO-DATE 
:processResources UP-TO-DATE 
:classes UP-TO-DATE 
:jar UP-TO-DATE 
:getVersionJson 
:extractNatives SKIPPED 
:extractUserdev UP-TO-DATE 
:getAssetIndex UP-TO-DATE 
:getAssets 
Current status: 73/1305   5% 
Current status: 134/1305   10% 
Current status: 255/1305   19% 
Current status: 384/1305   29% 
Current status: 526/1305   40% 
Current status: 653/1305   50% 
Current status: 802/1305   61% 
Current status: 910/1305   69% 
Current status: 1038/1305   79% 
Current status: 1064/1305   81% 
Current status: 1071/1305   82% 
Current status: 1112/1305   85% 
Current status: 1230/1305   94% 
:makeStart 
:runClient 
23:57.34 [main/INFO] [GradleStart]: Extra: [] 
23:57.34 [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Win10/.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] 
23:57.34 [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker 
23:57.34 [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker 
23:57.34 [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker 
23:57.34 [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker 
23:57.34 [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2768 for Minecraft 1.12.2 loading 
23:57.34 [main/INFO] [FML]: Java is OpenJDK 64-Bit Server VM, version 1.8.0_232, running on Windows 10:amd64:10.0, installed at C:\Program Files\Pylo\MCreator\jdk\jre 
23:57.34 [main/ERROR] [FML]: Apache Maven library folder was not in the format expected. Using default libraries directory. 
23:57.34 [main/ERROR] [FML]: Full: C:\Users\Win10\.mcreator\gradle\caches\modules-2\files-2.1\org.apache.maven\maven-artifact\3.5.3\7dc72b6d6d8a6dced3d294ed54c2cc3515ade9f4\maven-artifact-3.5.3.jar 
23:57.34 [main/ERROR] [FML]: Trimmed: c:/users/win10/.mcreator/gradle/caches/modules-2/files-2.1/org.apache.maven/maven-artifact/3.5.3/ 
23:57.34 [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation 
23:57.34 [main/INFO] [FML]: Detected deobfuscated environment, loading log configs for colored console logs. 
23:57.35 [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 
23:57.35 [main/INFO] [FML]: Ignoring missing certificate for coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin), we are in deobf and it's a forge core plugin 
23:57.35 [main/INFO] [FML]: Searching F:\Minecraft Related Items\MCreator Workshop Files\EMCB32v1.1\run\.\mods for mods 
23:57.35 [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker 
23:57.35 [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin 
23:57.35 [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin 
23:57.35 [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker 
23:57.35 [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker 
23:57.35 [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker 
23:57.35 [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker 
23:57.35 [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker 
23:57.35 [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper 
23:57.36 [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing 
23:57.36 [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper 
23:57.36 [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker 
23:57.36 [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker 
23:57.36 [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker 
23:57.36 [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker 
23:57.36 [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} 
23:57.37 [main/INFO] [minecraft/Minecraft]: Setting user: Player171 
23:57.40 [main/INFO] [minecraft/Minecraft]: LWJGL Version: 2.9.4 
23:57.46 [main/INFO] [FML]: -- System Details -- 
Details: 
   Minecraft Version: 1.12.2 
   Operating System: Windows 10 (amd64) version 10.0 
   Java Version: 1.8.0_232, BellSoft 
   Java VM Version: OpenJDK 64-Bit Server VM (mixed mode),  
   Memory: 131455816 bytes (125 MB) / 482869248 bytes (460 MB) up to 3780640768 bytes (3605 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 460.89' Renderer: 'GeForce GTX 950M/PCIe/SSE2' 
23:57.46 [main/INFO] [FML]: MinecraftForge v14.23.5.2768 Initialized 
23:57.46 [main/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients. 
23:57.46 [main/INFO] [FML]: Replaced 1036 ore ingredients 
23:57.47 [main/INFO] [FML]: Searching F:\Minecraft Related Items\MCreator Workshop Files\EMCB32v1.1\run\.\mods for mods 
23:57.48 [Thread-3/INFO] [FML]: Using sync timing. 200 frames of Display.update took 241058600 nanos 
23:57.49 [main/INFO] [minecraft/SimpleReloadableResourceManager]: Reloading ResourceManager: Default 
23:57.51 [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629 ---- Minecraft Crash Report ---- 
// There are four lights! 
Time: 12/17/20 11:57 PM 
Description: Initializing game 
java.lang.IllegalArgumentException: Multiple entries with same key: essensialmodernconstructionblock=FMLMod:essensialmodernconstructionblock{1.1.0} and essensialmodernconstructionblock=FMLMod:essensialmodernconstructionblock{1.1.0}. To index multiple values under a key, use Multimaps.index. 
   at com.google.common.collect.Maps.uniqueIndex(Maps.java:1385) 
   at com.google.common.collect.Maps.uniqueIndex(Maps.java:1385) 
   at com.google.common.collect.Maps.uniqueIndex(Maps.java:1341) 
   at com.google.common.collect.Maps.uniqueIndex(Maps.java:1341) 
   at net.minecraftforge.fml.common.Loader.identifyMods(Loader.java:427) 
   at net.minecraftforge.fml.common.Loader.identifyMods(Loader.java:427) 
   at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:566) 
   at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:566) 
   at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:232) 
   at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:232) 
   at net.minecraft.client.Minecraft.init(Minecraft.java:513) 
   at net.minecraft.client.Minecraft.init(Minecraft.java:513) 
   at net.minecraft.client.Minecraft.run(Minecraft.java:421) 
   at net.minecraft.client.Minecraft.run(Minecraft.java:421) 
   at net.minecraft.client.main.Main.main(Main.java:118) 
   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.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
   at java.lang.reflect.Method.invoke(Method.java:498) 
   at java.lang.reflect.Method.invoke(Method.java:498) 
   at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) 
   at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) 
   at net.minecraft.launchwrapper.Launch.main(Launch.java:28) 
   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.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
   at java.lang.reflect.Method.invoke(Method.java:498) 
   at java.lang.reflect.Method.invoke(Method.java:498) 
   at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) 
   at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) 
   at GradleStart.main(GradleStart.java:25) 
   at GradleStart.main(GradleStart.java:25) 
A detailed walkthrough of the error, its code path and all known details is as follows: 
--------------------------------------------------------------------------------------- 
-- Head -- 
Thread: Client thread 
Stacktrace: 
   at com.google.common.collect.Maps.uniqueIndex(Maps.java:1385) 
   at com.google.common.collect.Maps.uniqueIndex(Maps.java:1385) 
   at com.google.common.collect.Maps.uniqueIndex(Maps.java:1341) 
   at com.google.common.collect.Maps.uniqueIndex(Maps.java:1341) 
   at net.minecraftforge.fml.common.Loader.identifyMods(Loader.java:427) 
   at net.minecraftforge.fml.common.Loader.identifyMods(Loader.java:427) 
   at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:566) 
   at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:566) 
   at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:232) 
   at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:232) 
   at net.minecraft.client.Minecraft.init(Minecraft.java:513) 
   at net.minecraft.client.Minecraft.init(Minecraft.java:513) 
-- Initialization -- 
Details: 
Stacktrace: 
   at net.minecraft.client.Minecraft.run(Minecraft.java:421) 
   at net.minecraft.client.Minecraft.run(Minecraft.java:421) 
   at net.minecraft.client.main.Main.main(Main.java:118) 
   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.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
   at java.lang.reflect.Method.invoke(Method.java:498) 
   at java.lang.reflect.Method.invoke(Method.java:498) 
   at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) 
   at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) 
   at net.minecraft.launchwrapper.Launch.main(Launch.java:28) 
   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.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
   at java.lang.reflect.Method.invoke(Method.java:498) 
   at java.lang.reflect.Method.invoke(Method.java:498) 
   at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) 
   at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) 
   at GradleStart.main(GradleStart.java:25) 
   at GradleStart.main(GradleStart.java:25) 
-- System Details -- 
Details: 
   Minecraft Version: 1.12.2 
   Operating System: Windows 10 (amd64) version 10.0 
   Java Version: 1.8.0_232, BellSoft 
   Java VM Version: OpenJDK 64-Bit Server VM (mixed mode),  
   Memory: 562979144 bytes (536 MB) / 713031680 bytes (680 MB) up to 3780640768 bytes (3605 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, 0 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 | 
   |:----- |:-------------------------------- |:------------ |:-------------------------------- |:--------- | 
   |       | minecraft                        | 1.12.2       | minecraft.jar                    | None      | 
   |       | mcp                              | 9.42         | minecraft.jar                    | None      | 
   |       | FML                              | 8.0.99.99    | forgeSrc-1.12.2-14.23.5.2768.jar | None      | 
   |       | forge                            | 14.23.5.2768 | forgeSrc-1.12.2-14.23.5.2768.jar | None      | 
   |       | essensialmodernconstructionblock | 1.1.0        | modid-1.0.jar                    | None      | 
   |       | essensialmodernconstructionblock | 1.1.0        | modid-1.0.jar                    | None      | 
   Loaded coremods (and transformers):  
   GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.6.0 NVIDIA 460.89' Renderer: 'GeForce GTX 950M/PCIe/SSE2' 
   Launched Version: 1.12.2 
   LWJGL: 2.9.4 
   OpenGL: GeForce GTX 950M/PCIe/SSE2 GL version 4.6.0 NVIDIA 460.89, NVIDIA Corporation 
   GL Caps: Using GL 1.3 multitexturing. 
Using GL 1.3 texture combiners. 
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. 
Shaders are available because OpenGL 2.1 is supported. 
VBOs are available because OpenGL 1.5 is supported. 
   Using VBOs: Yes 
   Is Modded: Definitely; Client brand changed to 'fml,forge' 
   Type: Client (map_client.txt) 
   Resource Packs:  
   Current Language: English (US) 
   Profiler Position: N/A (disabled) 
   CPU: 8x Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz 
23:57.51 [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629 #@!@# Game crashed! Crash report saved to: #@!@# F:\Minecraft Related Items\MCreator Workshop Files\EMCB32v1.1\run\.\crash-reports\crash-2020-12-17_23.57.51-client.txt 
:runClient FAILED 
FAILURE: Build failed with an exception. 
* What went wrong: 
Execution failed for task ':runClient'. 
> Process 'command 'C:\Program Files\Pylo\MCreator\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. Run with --scan to get full insights. 
* Get more help at https://help.gradle.org 
BUILD FAILED in 1m 0s 
13 actionable tasks: 6 executed, 7 up-to-date 
BUILD FAILED 
Task completed in 61036 milliseconds 

 

Last seen on 16:50, 7. Aug 2021
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
And just to let yall know, I…
Fri, 12/18/2020 - 08:17

And just to let yall know, I will do anything based on the instruction to fix the mod. Fiddling with the source code or anything is ok.

Last seen on 16:50, 7. Aug 2021
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Anyone?? Help....
Fri, 12/18/2020 - 16:22

Anyone?? Help....

Last seen on 16:50, 7. Aug 2021
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok, I didn't know that was a…
Sat, 12/19/2020 - 04:34

Ok, I didn't know that was a thing. Thnaks!