Jump to content

Recommended Posts

Posted (edited)

Okay, I have been troubleshooting this for hours. I honestly have no clue what is wrong here.

Code:

https://github.com/venrob/RobsStuff-mcmod/tree/emeraldToolsAndArmor

Crash report:

Spoiler


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Client thread
Stacktrace:
    at com.venrob.robsstuff.blocks.BlockBase.<init>(BlockBase.java:30)
    at com.venrob.robsstuff.init.ModBlocks.<clinit>(ModBlocks.java:18)
    at com.venrob.robsstuff.util.handlers.RegistryHandler.onBlockRegister(RegistryHandler.java:28)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_10_RegistryHandler_onBlockRegister_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:734)
    at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:628)
    at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:245)
    at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:466)

-- Initialization --
Details:
Stacktrace:
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:377)
    at net.minecraft.client.main.Main.main(SourceFile:123)
    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:483)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

-- System Details --
Details:
    Minecraft Version: 1.12.2
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_25, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 416996176 bytes (397 MB) / 873988096 bytes (833 MB) up to 5726797824 bytes (5461 MB)
    JVM Flags: 4 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx6144m -Xms256m -XX:PermSize=256m
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: MCP 9.42 Powered by Forge 14.23.3.2691 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    | forge-1.12.2-14.23.3.2691.jar | e3c3d50c7c986df74c645c0ac54639741c90a557 |
    | UCH   | forge     | 14.23.3.2691 | forge-1.12.2-14.23.3.2691.jar | e3c3d50c7c986df74c645c0ac54639741c90a557 |
    | UCH   | robsstuff | 1.0.1        | robsstuff-1.0.1.jar           | None                                     |
    | UCH   | rum       | 1.1          | RobUtils-1.1.jar              | None                                     |

    Loaded coremods (and transformers): 
    GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13399 Compatibility Profile Context 15.200.1065.0' Renderer: 'ATI Radeon HD 5570'
    Launched Version: forge-14.23.3.2691
    LWJGL: 2.9.4
    OpenGL: ATI Radeon HD 5570 GL version 4.5.13399 Compatibility Profile Context 15.200.1065.0, ATI Technologies Inc.
    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: 6x AMD Phenom(tm) II X6 1045T Processor
[17:11:01] [main/INFO]: [net.minecraft.init.Bootstrap:func_179870_a:553]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Robert\Documents\Curse\Minecraft\Instances\tester\crash-reports\crash-2018-06-27_17.11.01-client.txt

The error clearly points me to my block registry of the star_block (nether star block), yet the nether star block code has not changed at all since the last time that I had it working. Also, if I comment out the Item EMERALD_AXE in ModItems, everything works again with no issues. I cannot see anything wrong with the Emerald Axe item, and honestly have no clue what could be going on here. Can anyone help?

Edited by Venrob
Posted

Thank you! I'm still confused why the error would point toward my block registry, but that was indeed the actual issue!

Posted

Because of static initializers. In order for your BlockBase class to add its ItemBlock to ModItems.ITEMS, all your other static fields have to be initialized. But it can't, and there's no line number because of how static initializers are constructed. 

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

  • 3 years later...
  • Guest locked this topic
Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.