Jump to content

Recommended Posts

Posted

Hi, I've noticed a really strange bug while leads to a crash of the game on start while loading a specific block model:

 

java.lang.NullPointerException: Initializing game
at net.minecraft.client.renderer.block.model.FaceBakery.storeVertexData(FaceBakery.java:124)
at net.minecraft.client.renderer.block.model.FaceBakery.fillVertexData(FaceBakery.java:114)
at net.minecraft.client.renderer.block.model.FaceBakery.makeQuadVertexData(FaceBakery.java:57)
at net.minecraft.client.renderer.block.model.FaceBakery.makeBakedQuad(FaceBakery.java:30)
at net.minecraft.client.resources.model.ModelBakery.makeBakedQuad(ModelBakery.java:543)
at net.minecraft.client.resources.model.ModelBakery.bakeModel(ModelBakery.java:528)
at net.minecraftforge.client.model.ModelLoader.access$1100(ModelLoader.java:51)
at net.minecraftforge.client.model.ModelLoader$VanillaModelWrapper.bake(ModelLoader.java:249)
at net.minecraftforge.client.model.ModelLoader$WeightedPartWrapper.bake(ModelLoader.java:295)
at net.minecraftforge.client.model.ModelLoader$WeightedRandomModel.bake(ModelLoader.java:359)
at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:87)
at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29)
at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134)
at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118)
at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:736)
at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:306)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:485)
at net.minecraft.client.Minecraft.run(Minecraft.java:325)
at net.minecraft.client.main.Main.main(Main.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78)
at GradleStart.main(GradleStart.java:45)


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

-- Head --
Stacktrace:
at net.minecraft.client.renderer.block.model.FaceBakery.storeVertexData(FaceBakery.java:124)
at net.minecraft.client.renderer.block.model.FaceBakery.fillVertexData(FaceBakery.java:114)
at net.minecraft.client.renderer.block.model.FaceBakery.makeQuadVertexData(FaceBakery.java:57)
at net.minecraft.client.renderer.block.model.FaceBakery.makeBakedQuad(FaceBakery.java:30)
at net.minecraft.client.resources.model.ModelBakery.makeBakedQuad(ModelBakery.java:543)
at net.minecraft.client.resources.model.ModelBakery.bakeModel(ModelBakery.java:528)
at net.minecraftforge.client.model.ModelLoader.access$1100(ModelLoader.java:51)
at net.minecraftforge.client.model.ModelLoader$VanillaModelWrapper.bake(ModelLoader.java:249)
at net.minecraftforge.client.model.ModelLoader$WeightedPartWrapper.bake(ModelLoader.java:295)
at net.minecraftforge.client.model.ModelLoader$WeightedRandomModel.bake(ModelLoader.java:359)
at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:87)
at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29)
at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134)
at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118)
at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:736)
at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:306)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:485)

-- Initialization --
Details:
Stacktrace:
at net.minecraft.client.Minecraft.run(Minecraft.java:325)
at net.minecraft.client.main.Main.main(Main.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78)
at GradleStart.main(GradleStart.java:45)

 

I've checked the specific block model and there is no error. It is a cake slice model which only differs from the other ones by one number in its json script. I've already replaced it by a nother one but it crashes every time for the given error. Could someone please help me?

Posted

This doesn't seem to be a bug in Forge. It seems to be a issue with your model. Tracking it back either your face or sprite is null.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted

I've checked but my block model is absolutely error free. Here is a comparison between the not working one and a working one:

 

strawberrycake_slice3.json (the errored one)

{
    "parent": "block/cake_slice3",
    "textures": {
        "particle": "minamod:blocks/strawberrycake_side",
        "bottom": "minamod:blocks/strawberrycake_bottom",
        "top": "minamod:blocks/strawberrycake_top",
        "side": "minamod:blocks/strawberrycake_side",
        "inside": "minamod:blocks/strawberrycake_inner"
    }
}

 

strawberrycake_slice4.json (A working one)

{
    "parent": "block/cake_slice4",
    "textures": {
        "particle": "minamod:blocks/strawberrycake_side",
        "bottom": "minamod:blocks/strawberrycake_bottom",
        "top": "minamod:blocks/strawberrycake_top",
        "side": "minamod:blocks/strawberrycake_side",
        "inside": "minamod:blocks/strawberrycake_inner"
    }
}

Posted

Give us a zip of your dev mod then and we can take a look.

It's either your face, or sprite being null.

Also include the exact version of Forge you're using.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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