Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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?

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

  • Author

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"
    }
}

  • Author

A little update: it is a bug in Forge. I've added two more models for items and now the game crashes for the file strawberrycake_slice1.json...

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

Post it here. I have PMs disabled.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.