minh2908 Posted August 20, 2016 Share Posted August 20, 2016 This is a recurring crash that happens randomly. It doesn't seems to have anything to do with my mod, so it is just plain annoying whenever I need to test something. Anybody knows why? ---- Minecraft Crash Report ---- // Everything's going to plan. No, really, that was supposed to happen. Time: 8/20/16 11:52 AM Description: Unexpected error java.lang.NullPointerException: Unexpected error at net.minecraft.world.World.getSkyColorBody(World.java:1589) at net.minecraft.world.WorldProvider.getSkyColor(WorldProvider.java:447) at net.minecraft.world.World.getSkyColor(World.java:1580) at net.minecraft.client.renderer.EntityRenderer.updateFogColor(EntityRenderer.java:1753) at net.minecraft.client.renderer.EntityRenderer.renderWorldPass(EntityRenderer.java:1296) at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1282) at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1091) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1139) at net.minecraft.client.Minecraft.run(Minecraft.java:406) 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:26) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Client thread Stacktrace: at net.minecraft.world.World.getSkyColorBody(World.java:1589) at net.minecraft.world.WorldProvider.getSkyColor(WorldProvider.java:447) at net.minecraft.world.World.getSkyColor(World.java:1580) at net.minecraft.client.renderer.EntityRenderer.updateFogColor(EntityRenderer.java:1753) at net.minecraft.client.renderer.EntityRenderer.renderWorldPass(EntityRenderer.java:1296) at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1282) -- Affected level -- Details: Level name: MpServer All players: 0 total; [] Chunk stats: MultiplayerChunkCache: 0, 0 Level seed: 0 Level generator: ID 01 - flat, ver 0. Features enabled: false Level generator options: Level spawn location: World: (8,64,, Chunk: (at 8,4,8 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511) Level time: 0 game time, 0 day time Level dimension: 0 Level storage version: 0x00000 - Unknown? Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false) Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false Forced entities: 0 total; [] Retry entities: 0 total; [] Server brand: ~~ERROR~~ NullPointerException: null Server type: Integrated singleplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:450) at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2779) at net.minecraft.client.Minecraft.run(Minecraft.java:435) 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:26) -- System Details -- Details: Minecraft Version: 1.10.2 Operating System: Windows 10 (x86) version 10.0 Java Version: 1.8.0_91, Oracle Corporation Java VM Version: Java HotSpot Client VM (mixed mode), Oracle Corporation Memory: 684766872 bytes (653 MB) / 1046937600 bytes (998 MB) up to 1046937600 bytes (998 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP 9.32 Powered by Forge 12.18.1.2011 4 mods loaded, 4 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCHIJAAAAAAAAA mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) UCHIJAAAAAAAAA FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.10.2-12.18.1.2011.jar) UCHIJAAAAAAAAA Forge{12.18.1.2011} [Minecraft Forge] (forgeSrc-1.10.2-12.18.1.2011.jar) UCHIJAAAAAAAAA mp{1.0} [More Potions] (bin) Loaded coremods (and transformers): GL info: ' Vendor: 'Intel' Version: '4.3.0 - Build 20.19.15.4331' Renderer: 'Intel® HD Graphics 4400' Launched Version: 1.10.2 LWJGL: 2.9.4 OpenGL: Intel® HD Graphics 4400 GL version 4.3.0 - Build 20.19.15.4331, 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: No 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® Core i5-4200U CPU @ 1.60GHz Quote Link to comment Share on other sites More sharing options...
TheGreyGhost Posted August 20, 2016 Share Posted August 20, 2016 Hi I don't know why, that's a weird one because it seems to mean that minecraft.getRenderViewEntity() is null which is never supposed to happen on the client thread. Are you sure your mod isn't doing something weird with threads or the mod initialisation sequence, or overwriting the Minecraft.renderViewEntity? If not, I'd suggest you put a debugger break on NullPointerException or alternatively a conditional break in Minecraft.getRenderViewEntity() if the renderViewEntity is null, then trace up the stack to see if you can find out why it's null. It's likely to take a bit of detective work to track it down, I think. Failing that, you could try disabling parts of your mod's code until you find a combination that stops the crashing. -TGG Quote Link to comment Share on other sites More sharing options...
minh2908 Posted August 20, 2016 Author Share Posted August 20, 2016 Well, I suck at debugging , so mind explaining what you mean? Also, This gets printed out in the console before the crash report, repetitively: [17:24:16] [Client thread/FATAL]: Error executing task java.util.concurrent.ExecutionException: java.lang.NullPointerException at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_91] at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_91] at net.minecraft.util.Util.runTask(Util.java:26) [util.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1108) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:406) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_91] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_91] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_91] 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_91] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_91] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_91] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_91] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] Caused by: java.lang.NullPointerException at net.minecraft.client.renderer.RenderGlobal.markBlocksForUpdate(RenderGlobal.java:2067) ~[RenderGlobal.class:?] at net.minecraft.client.renderer.RenderGlobal.markBlockRangeForRenderUpdate(RenderGlobal.java:2088) ~[RenderGlobal.class:?] at net.minecraft.world.World.markBlockRangeForRenderUpdate(World.java:519) ~[World.class:?] at net.minecraft.client.network.NetHandlerPlayClient.handleChunkData(NetHandlerPlayClient.java:789) ~[NetHandlerPlayClient.class:?] at net.minecraft.network.play.server.SPacketChunkData.processPacket(SPacketChunkData.java:110) ~[sPacketChunkData.class:?] at net.minecraft.network.play.server.SPacketChunkData.processPacket(SPacketChunkData.java:20) ~[sPacketChunkData.class:?] at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:15) ~[PacketThreadUtil$1.class:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_91] at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_91] at net.minecraft.util.Util.runTask(Util.java:25) ~[util.class:?] ... 15 more Quote Link to comment Share on other sites More sharing options...
Animefan8888 Posted August 20, 2016 Share Posted August 20, 2016 We can't do anything without the code. Do you ever use Minecraft.getMinecraft().theplayer? Quote VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator. Link to comment Share on other sites More sharing options...
minh2908 Posted August 22, 2016 Author Share Posted August 22, 2016 Sorry for the late reply. No, I never use Minecraft.getMinecraft().theplayer in my code. I also don't really know what to post exactly, because the error never said anything about my code. Quote Link to comment Share on other sites More sharing options...
Mark136 Posted August 22, 2016 Share Posted August 22, 2016 can you show whats in the proxies( i mean the pre-init, init and post-init methods)? Quote my Mod: Extended RPG [W.I.P] Link to comment Share on other sites More sharing options...
minh2908 Posted August 23, 2016 Author Share Posted August 23, 2016 Client Proxy: public class ClientProxy extends CommonProxy{ @Override public void register(){ MinecraftForge.EVENT_BUS.register(new ClientSideEvent()); } } Common Proxy: public class CommonProxy { public void register() { } } Main class: @Mod(modid = Reference.MOD_ID, name = Reference.MOD_NAME, version = Reference.VERSION) public class MorePotionsMod { @Instance public static MorePotionsMod instance = new MorePotionsMod(); @SidedProxy(clientSide = Reference.CLINET_PROXY_CLASS, serverSide = Reference.SERVER_PROXY_CLASS) public static CommonProxy proxy; @EventHandler public void preInit(FMLPreInitializationEvent event) { CustomPotion.init(); CustomPotionTypes.init(); MinecraftForge.EVENT_BUS.register(new EventSubscriber()); InstantPotion.init(); } @EventHandler public void init(FMLInitializationEvent event) { proxy.register(); } @EventHandler public void postInit(FMLPostInitializationEvent event) {BrewingRecipeRegistry.addRecipe(new PotionRecipes(PotionUtils.addPotionToItemStack(new ItemStack(Items.POTIONITEM,1), CustomPotionTypes.resistance), new ItemStack(Items.FERMENTED_SPIDER_EYE,1), PotionUtils.addPotionToItemStack(new ItemStack(Items.POTIONITEM,1), CustomPotionTypes.weakening))); BrewingRecipeRegistry.addRecipe(new PotionRecipes(PotionUtils.addPotionToItemStack(new ItemStack(Items.POTIONITEM,1), PotionTypes.AWKWARD), new ItemStack(Items.IRON_INGOT,1), PotionUtils.addPotionToItemStack(new ItemStack(Items.POTIONITEM,1), CustomPotionTypes.resistance))); BrewingRecipeRegistry.addRecipe(new PotionRecipes(PotionUtils.addPotionToItemStack(new ItemStack(Items.POTIONITEM,1), PotionTypes.LEAPING), new ItemStack(Items.BEETROOT,1), PotionUtils.addPotionToItemStack(new ItemStack(Items.POTIONITEM,1), CustomPotionTypes.gravity))); BrewingRecipeRegistry.addRecipe(new PotionRecipes(PotionUtils.addPotionToItemStack(new ItemStack(Items.POTIONITEM,1), CustomPotionTypes.gravity), new ItemStack(Items.FERMENTED_SPIDER_EYE,1), PotionUtils.addPotionToItemStack(new ItemStack(Items.POTIONITEM,1), CustomPotionTypes.levitation))); } } Quote Link to comment Share on other sites More sharing options...
Mark136 Posted August 24, 2016 Share Posted August 24, 2016 Why are your recipes in post init? have you tried to put them in the normal Init? i mean: @EventHandler public void preInit(FMLPreInitializationEvent event) { not here } @EventHandler public void init(FMLInitializationEvent event) { [u][b]here[/b][/u] } @EventHandler public void postInit(FMLPostInitializationEvent event) { Not Here } Quote my Mod: Extended RPG [W.I.P] Link to comment Share on other sites More sharing options...
minh2908 Posted August 29, 2016 Author Share Posted August 29, 2016 private final PlayerReachDistance connection= new PlayerReachDistance(Minecraft.getMinecraft(), Minecraft.getMinecraft().getConnection()); ; @SubscribeEvent public void onPlayerTick(TickEvent.PlayerTickEvent event) { if (event.player.isPotionActive(CustomPotion.reach)) { if (event.player instanceof EntityPlayerMP) { EntityPlayerMP mplayer = (EntityPlayerMP) event.player; mplayer.interactionManager.setBlockReachDistance(100); } Minecraft.getMinecraft().playerController = connection; } } This code seems to trigger the error, but I still don't know what is wrong. And the init stuff doesn't seem to effect the code that much, but it's good to know. Quote Link to comment Share on other sites More sharing options...
imadnsn Posted August 29, 2016 Share Posted August 29, 2016 Minecraft.getMinecraft() is client-sided only, you use it in a field and a method that can get called in server Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.