Forge startup crashing while running my mod

Started by niskiENDERMAN on

Topic category: Troubleshooting, bugs, and solutions

Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Forge startup crashing while running my mod

I made a very simple mod, the build is fine, while i can't run the mod using the test feature either normally. The error log:
 

Executing gradle command: runClient
Build info: MCreator 1.8.3, 64-bit, 8097 MB, Windows 10 - cmd, JVM 1.8.0_202, JAVA_HOME: C:\Pylo\MCreator183\jdk
(c) 2018 Microsoft Corporation. Wszelkie prawa zastrzeľone.
C:\Pylo\MCreator183\forge>gradlew -Dorg.gradle.java.home="C:/Pylo/MCreator183/jdk" -Dorg.gradle.parallel=false -Dorg.gradle.jvmargs="-Xms625m -Xmx2048m" runClient 
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
:getVersionJson
:extractNatives SKIPPED
:extractUserdev UP-TO-DATE
:getAssetIndex UP-TO-DATE
:getAssets
Current status: 1060/1305   81%
Current status: 1144/1305   87%
:makeStart
:runClient
20:58.10 [main/INFO] [GradleStart]: Extra: []
20:58.11 [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Szymon/.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:58.11 [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
20:58.11 [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
20:58.11 [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
20:58.11 [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
20:58.11 [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2768 for Minecraft 1.12.2 loading
20:58.11 [main/INFO] [FML]: Java is OpenJDK 64-Bit Server VM, version 1.8.0_202, running on Windows 10:amd64:10.0, installed at C:\Pylo\MCreator183\jdk\jre
20:58.11 [main/ERROR] [FML]: Apache Maven library folder was not in the format expected. Using default libraries directory.
20:58.11 [main/ERROR] [FML]: Full: C:\Users\Szymon\.mcreator\gradle\caches\modules-2\files-2.1\org.apache.maven\maven-artifact\3.5.3\7dc72b6d6d8a6dced3d294ed54c2cc3515ade9f4\maven-artifact-3.5.3.jar
20:58.11 [main/ERROR] [FML]: Trimmed: c:/users/szymon/.mcreator/gradle/caches/modules-2/files-2.1/org.apache.maven/maven-artifact/3.5.3/
20:58.11 [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
20:58.11 [main/INFO] [FML]: Detected deobfuscated environment, loading log configs for colored console logs.
2019-04-12 20:58:12,192 main WARN Disabling terminal, you're running in an unsupported environment.
20:58.12 [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:58.12 [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:58.12 [main/INFO] [FML]: Searching C:\Pylo\MCreator183\forge\run\.\mods for mods
20:58.12 [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
20:58.12 [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
20:58.12 [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
20:58.12 [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
20:58.12 [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
20:58.12 [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
20:58.12 [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
20:58.12 [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
20:58.12 [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
20:58.13 [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
20:58.13 [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
20:58.13 [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
20:58.13 [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
20:58.13 [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
20:58.13 [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
20:58.13 [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
20:58.14 [main/INFO] [minecraft/Minecraft]: Setting user: Player968
20:58.17 [main/INFO] [minecraft/Minecraft]: LWJGL Version: 2.9.4
20:58.17 [main/INFO] [FML]: -- System Details --
Details:
   Minecraft Version: 1.12.2
   Operating System: Windows 10 (amd64) version 10.0
   Java Version: 1.8.0_202, BellSoft
   Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), BellSoft
   Memory: 226539288 bytes (216 MB) / 381681664 bytes (364 MB) up to 1888485376 bytes (1801 MB)
   JVM Flags: 0 total; 
   IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
   FML: 
   Loaded coremods (and transformers): 
   GL info: ' Vendor: 'Intel' Version: '4.3.0 - Build 20.19.15.4835' Renderer: 'Intel(R) HD Graphics 4600'
20:58.17 [main/INFO] [FML]: MinecraftForge v14.23.5.2768 Initialized
20:58.17 [main/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients.
20:58.18 [main/INFO] [FML]: Replaced 1036 ore ingredients
20:58.18 [main/INFO] [FML]: Searching C:\Pylo\MCreator183\forge\run\.\mods for mods
20:58.20 [main/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
20:58.20 [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, a] at CLIENT
20:58.20 [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, a] at SERVER
20:58.20 [Thread-3/INFO] [FML]: Using sync timing. 200 frames of Display.update took 508087700 nanos
20:58.20 [main/INFO] [minecraft/SimpleReloadableResourceManager]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:geramy
20:58.21 [main/INFO] [FML]: Processing ObjectHolder annotations
20:58.21 [main/INFO] [FML]: Found 1169 ObjectHolder annotations
20:58.21 [main/INFO] [FML]: Identifying ItemStackHolder annotations
20:58.21 [main/INFO] [FML]: Found 0 ItemStackHolder annotations
20:58.21 [main/INFO] [FML]: Configured a dormant chunk cache size of 0
20:58.21 [main/INFO] [FML]: OBJLoader: Domain a has been added.
20:58.21 [main/INFO] [FML]: Applying holder lookups
20:58.21 [main/INFO] [FML]: Holder lookups applied
20:58.21 [main/ERROR] [FML]: Exception caught during firing event net.minecraftforge.event.RegistryEvent$Register@2cfde5a4:
java.lang.NullPointerException: null
   at mod.mcreator.mcreator_antigrav.lambda$new$1(mcreator_antigrav.java:38) ~[mcreator_antigrav.class:?]
-> Jump to the exception line
   at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[?:1.8.0_202]
   at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382) ~[?:1.8.0_202]
   at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[?:1.8.0_202]
   at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[?:1.8.0_202]
   at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:545) ~[?:1.8.0_202]
   at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260) ~[?:1.8.0_202]
   at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:438) ~[?:1.8.0_202]
   at mod.mcreator.a.registerItems(a.java:81) ~[a.class:?]
   at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_13_a_registerItems_Register.invoke(.dynamic) ~[?:?]
   at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
   at net.minecraftforge.fml.common.eventhandler.EventBus$1.invoke(EventBus.java:144) ~[EventBus$1.class:?]
   at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) [EventBus.class:?]
   at net.minecraftforge.registries.GameData.fireRegistryEvents(GameData.java:782) [GameData.class:?]
   at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:628) [Loader.class:?]
   at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:252) [FMLClientHandler.class:?]
   at net.minecraft.client.Minecraft.init(Minecraft.java:513) [Minecraft.class:?]
   at net.minecraft.client.Minecraft.run(Minecraft.java:421) [Minecraft.class:?]
   at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_202]
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_202]
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_202]
   at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_202]
   at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
   at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_202]
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_202]
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_202]
   at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_202]
   at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
   at GradleStart.main(GradleStart.java:25) [start/:?]
20:58.21 [main/ERROR] [FML]: Index: 3 Listeners:
20:58.21 [main/ERROR] [FML]: 0: NORMAL
20:58.21 [main/ERROR] [FML]: 1: net.minecraftforge.fml.common.eventhandler.EventBus$1@23595dd9
20:58.21 [main/ERROR] [FML]: 2: net.minecraftforge.fml.common.eventhandler.EventBus$1@28f307ca
20:58.21 [main/ERROR] [FML]: 3: net.minecraftforge.fml.common.eventhandler.EventBus$1@5a0d25ba
20:58.21 [main/ERROR] [FML]: 4: net.minecraftforge.fml.common.eventhandler.EventBus$1@72e89ce2
20:58.21 [main/ERROR] [FML]: 5: net.minecraftforge.fml.common.eventhandler.EventBus$1@1bb6b0f3
20:58.21 [main/ERROR] [FML]: 6: net.minecraftforge.fml.common.eventhandler.EventBus$1@2b4b3918
20:58.21 [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotio…
20:58.21 [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629 ---- Minecraft Crash Report ----
// Hey, that tickles! Hehehe!
Time: 4/12/19 8:58 PM
Description: Initializing game
java.lang.NullPointerException: Initializing game
   at mod.mcreator.mcreator_antigrav.lambda$new$1(mcreator_antigrav.java:38)
-> Jump to the exception line
   at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
   at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
   at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
   at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
   at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:545)
   at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260)
   at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:438)
   at mod.mcreator.a.registerItems(a.java:81)
   at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_13_a_registerItems_Register.invoke(.dynamic)
   at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
   at net.minecraftforge.fml.common.eventhandler.EventBus$1.invoke(EventBus.java:144)
   at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182)
   at net.minecraftforge.registries.GameData.fireRegistryEvents(GameData.java:782)
   at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:628)
   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:
---------------------------------------------------------------------------------------
-- Head --
Thread: Client thread
Stacktrace:
   at mod.mcreator.mcreator_antigrav.lambda$new$1(mcreator_antigrav.java:38)
-> Jump to the exception line
   at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
   at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
   at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
   at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
   at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:545)
   at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260)
   at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:438)
   at mod.mcreator.a.registerItems(a.java:81)
   at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_13_a_registerItems_Register.invoke(.dynamic)
   at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
   at net.minecraftforge.fml.common.eventhandler.EventBus$1.invoke(EventBus.java:144)
   at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182)
   at net.minecraftforge.registries.GameData.fireRegistryEvents(GameData.java:782)
   at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:628)
   at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:252)
   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.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)
-- System Details --
Details:
   Minecraft Version: 1.12.2
   Operating System: Windows 10 (amd64) version 10.0
   Java Version: 1.8.0_202, BellSoft
   Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), BellSoft
   Memory: 286664832 bytes (273 MB) / 549978112 bytes (524 MB) up to 1888485376 bytes (1801 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 5 mods loaded, 5 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   | a         | 1.0.0        | modid-1.0.jar                    | None      |
   Loaded coremods (and transformers): 
   GL info: ' Vendor: 'Intel' Version: '4.3.0 - Build 20.19.15.4835' Renderer: 'Intel(R) HD Graphics 4600'
   Launched Version: 1.12.2
   LWJGL: 2.9.4
   OpenGL: Intel(R) HD Graphics 4600 GL version 4.3.0 - Build 20.19.15.4835, Intel
   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: 4x Intel(R) Core(TM) i7-4610M CPU @ 3.00GHz
20:58.21 [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629 #@!@# Game crashed! Crash report saved to: #@!@# C:\Pylo\MCreator183\forge\run\.\crash-reports\crash-2019-04-12_20.58.21-client.txt
:runClient FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':runClient'.
> Process 'command 'C:\Pylo\MCreator183\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 17s
13 actionable tasks: 7 executed, 6 up-to-date
C:\Pylo\MCreator183\forge>
Task completed with return code 0 in 20075 milliseconds

Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
are you running just your…
Sun, 04/21/2019 - 20:14

are you running just your mod?