DivineRPG (Official)

DivineRPG (Official)

2M Downloads

Render thread null pointer exception

zinstack625 opened this issue ยท 1 comments

commented

DivineRPG version
1.8.3-1.8.4, possibly the whole 1.8 subrelease

Describe the bug
Render thread tries calling .toString() on an entity and finds that some anonymous function returns void, thus crashing the game

To reproduce
Go to the nether, aggro an arrow spammer, dunno how it's called. Or just /summon divinerpg:arrow_shot. Reproducible with/without Optifine, online/offline

Expected behavior
Stuff being rendered correctly and game not crashing, duh

Screenshots
I can screenshot a crash :)

Additional context

Obligatory crash report, run from aarch64 java, but the same applies to x86 ---- Minecraft Crash Report ---- // Quite honestly, I wouldn't worry myself about that.

Time: 2/4/22, 5:30 PM
Description: Rendering entity in world

java.lang.NullPointerException: Rendering entity in world
at java.util.Objects.requireNonNull(Objects.java:208) ~[?:?] {}
at java.util.Optional.of(Optional.java:113) ~[?:?] {}
at net.minecraft.client.renderer.RenderState$TextureState.(SourceFile:210) ~[?:?] {re:classloading,pl:accesstransformer:B}
at net.minecraft.client.renderer.RenderType.func_228638_b_(RenderType.java:88) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.renderer.entity.ArrowRenderer.func_225623_a_(SourceFile:48) ~[?:?] {re:classloading}
at net.minecraft.client.renderer.entity.ArrowRenderer.func_225623_a_(SourceFile:14) ~[?:?] {re:classloading}
at net.minecraft.client.renderer.entity.EntityRendererManager.func_229084_a_(EntityRendererManager.java:251) ~[?:?] {re:classloading,pl:accesstransformer:B,xf:fml:twilightforest:renderer,pl:runtimedistcleaner:A}
at net.minecraft.client.renderer.WorldRenderer.func_228418_a_(WorldRenderer.java:1202) ~[?:?] {re:mixin,pl:accesstransformer:B,xf:fml:twilightforest:render,xf:fml:journeymap:WorldRenderer.markForRerender,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,xf:fml:twilightforest:render,xf:fml:journeymap:WorldRenderer.markForRerender,pl:mixin:A,pl:runtimedistcleaner:A}
at net.minecraft.client.renderer.WorldRenderer.func_228426_a_(WorldRenderer.java:1010) ~[?:?] {re:mixin,pl:accesstransformer:B,xf:fml:twilightforest:render,xf:fml:journeymap:WorldRenderer.markForRerender,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,xf:fml:twilightforest:render,xf:fml:journeymap:WorldRenderer.markForRerender,pl:mixin:A,pl:runtimedistcleaner:A}
at net.minecraft.client.renderer.GameRenderer.func_228378_a_(GameRenderer.java:608) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.minecraft.client.renderer.GameRenderer.func_195458_a(GameRenderer.java:425) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft.func_195542_b(Minecraft.java:977) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:607) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.minecraft.client.main.Main.main(Main.java:184) ~[minecraft-1.16.5-client.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {}
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {}
at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {}
at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:51) ~[forge-1.16.5-36.2.22-launcher.jar:36.2] {}
at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.9.jar:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.9.jar:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.9.jar:?] {}
at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.9.jar:?] {}
at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.9.jar:?] {}
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {}
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {}
at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {}
at io.github.zekerzhayard.forgewrapper.installer.Main.main(Main.java:57) [ForgeWrapper-mmc3.jar:mmc3] {}
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {}
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {}
at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {}
at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:210) [NewLaunch.jar:?] {}
at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:245) [NewLaunch.jar:?] {}
at org.multimc.EntryPoint.listen(EntryPoint.java:143) [NewLaunch.jar:?] {}
at org.multimc.EntryPoint.main(EntryPoint.java:34) [NewLaunch.jar:?] {}

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

-- Head --
Thread: Render thread
Stacktrace:
at java.util.Objects.requireNonNull(Objects.java:208) ~[?:?] {}
at java.util.Optional.of(Optional.java:113) ~[?:?] {}
at net.minecraft.client.renderer.RenderState$TextureState.(SourceFile:210) ~[?:?] {re:classloading,pl:accesstransformer:B}
at net.minecraft.client.renderer.RenderType.func_228638_b_(RenderType.java:88) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.renderer.entity.ArrowRenderer.func_225623_a_(SourceFile:48) ~[?:?] {re:classloading}
at net.minecraft.client.renderer.entity.ArrowRenderer.func_225623_a_(SourceFile:14) ~[?:?] {re:classloading}
-- Entity being rendered --
Details:
Entity Type: divinerpg:arrow_shot (divinerpg.entities.projectile.EntityDivineArrow)
Entity ID: 2065
Entity Name: entity.divinerpg.arrow_shot
Entity's Exact location: -106.73, 36.00, -287.11
Entity's Block location: World: (-107,36,-288), Chunk: (at 5,2,0 in -7,-18; contains blocks -112,0,-288 to -97,255,-273), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1)
Entity's Momentum: 0.00, 0.00, 0.00
Entity's Passengers: []
Entity's Vehicle: ERROR NullPointerException: Cannot invoke "net.minecraft.entity.Entity.toString()" because the return value of "net.minecraft.entity.Entity.func_184187_bx()" is null

-- Renderer details --
Details:
Assigned renderer: divinerpg.client.renders.entity.projectile.RenderDivineArrow@6eaa5558
Location: 0.00,-1.62,0.00 - World: (0,-2,0), Chunk: (at 0,-1,0 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)
Rotation: 0.0
Delta: 0.9399875
Stacktrace:
at net.minecraft.client.renderer.entity.EntityRendererManager.func_229084_a_(EntityRendererManager.java:251) ~[?:?] {re:classloading,pl:accesstransformer:B,xf:fml:twilightforest:renderer,pl:runtimedistcleaner:A}
at net.minecraft.client.renderer.WorldRenderer.func_228418_a_(WorldRenderer.java:1202) ~[?:?] {re:mixin,pl:accesstransformer:B,xf:fml:twilightforest:render,xf:fml:journeymap:WorldRenderer.markForRerender,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,xf:fml:twilightforest:render,xf:fml:journeymap:WorldRenderer.markForRerender,pl:mixin:A,pl:runtimedistcleaner:A}
at net.minecraft.client.renderer.WorldRenderer.func_228426_a_(WorldRenderer.java:1010) ~[?:?] {re:mixin,pl:accesstransformer:B,xf:fml:twilightforest:render,xf:fml:journeymap:WorldRenderer.markForRerender,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,xf:fml:twilightforest:render,xf:fml:journeymap:WorldRenderer.markForRerender,pl:mixin:A,pl:runtimedistcleaner:A}
at net.minecraft.client.renderer.GameRenderer.func_228378_a_(GameRenderer.java:608) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}

-- Affected level --
Details:
All players: 1 total; [ClientPlayerEntity['zinstack625'/175, l='ClientLevel', x=-106.73, y=36.00, z=-287.11]]
Chunk stats: Client Chunk Cache: 841, 575
Level dimension: minecraft:the_nether
Level spawn location: World: (-208,74,-48), Chunk: (at 0,4,0 in -13,-3; contains blocks -208,0,-48 to -193,255,-33), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1)
Level time: 9060 game time, 9060 day time
Server brand: forge
Server type: Integrated singleplayer server
Stacktrace:
at net.minecraft.client.world.ClientWorld.func_72914_a(ClientWorld.java:447) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft.func_71396_d(Minecraft.java:2031) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:623) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.minecraft.client.main.Main.main(Main.java:184) ~[minecraft-1.16.5-client.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {}
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {}
at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {}
at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:51) ~[forge-1.16.5-36.2.22-launcher.jar:36.2] {}
at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.9.jar:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.9.jar:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.9.jar:?] {}
at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.9.jar:?] {}
at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.9.jar:?] {}
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {}
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {}
at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {}
at io.github.zekerzhayard.forgewrapper.installer.Main.main(Main.java:57) [ForgeWrapper-mmc3.jar:mmc3] {}
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {}
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {}
at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {}
at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:210) [NewLaunch.jar:?] {}
at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:245) [NewLaunch.jar:?] {}
at org.multimc.EntryPoint.listen(EntryPoint.java:143) [NewLaunch.jar:?] {}
at org.multimc.EntryPoint.main(EntryPoint.java:34) [NewLaunch.jar:?] {}

-- System Details --
Details:
Minecraft Version: 1.16.5
Minecraft Version ID: 1.16.5
Operating System: Mac OS X (aarch64) version 12.1
Java Version: 17.0.1, Homebrew
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode, sharing), Homebrew
Memory: 894285600 bytes (852 MB) / 2634022912 bytes (2512 MB) up to 3221225472 bytes (3072 MB)
CPUs: 8
JVM Flags: 2 total; -Xms512m -Xmx3072m
ModLauncher: 8.0.9+86+master.3cf110c
ModLauncher launch target: fmlclient
ModLauncher naming: srg
ModLauncher services:
/mixin-0.8.4.jar mixin PLUGINSERVICE
/eventbus-4.0.0.jar eventbus PLUGINSERVICE
/forge-1.16.5-36.2.22-launcher.jar object_holder_definalize PLUGINSERVICE
/forge-1.16.5-36.2.22-launcher.jar runtime_enum_extender PLUGINSERVICE
/forge-1.16.5-36.2.22-launcher.jar capability_inject_definalize PLUGINSERVICE
/accesstransformers-3.0.1.jar accesstransformer PLUGINSERVICE
/forge-1.16.5-36.2.22-launcher.jar runtimedistcleaner PLUGINSERVICE
/mixin-0.8.4.jar mixin TRANSFORMATIONSERVICE
/forge-1.16.5-36.2.22-launcher.jar fml TRANSFORMATIONSERVICE
FML: 36.2
Forge: net.minecraftforge:36.2.22
FML Language Providers:
[email protected]
minecraft@1
Mod List:
forge-1.16.5-36.2.22-client.jar |Minecraft |minecraft |1.16.5 |DONE |Manifest: NOSIGNATURE
YungsExtras-Forge-1.16.4-1.0.jar |YUNG's Extras |yungsextras |Forge-1.16.4-1.0 |DONE |Manifest: NOSIGNATURE
YungsApi-1.16.4-Forge-13.jar |YUNG's API |yungsapi |1.16.4-Forge-13 |DONE |Manifest: NOSIGNATURE
BetterDungeons-1.16.4-1.2.1.jar |YUNG's Better Dungeons |betterdungeons |1.16.4-1.2.1 |DONE |Manifest: NOSIGNATURE
BetterStrongholds-1.16.4-1.2.1.jar |YUNG's Better Strongholds |betterstrongholds |1.16.4-1.2.1 |DONE |Manifest: NOSIGNATURE
MekanismTools-1.16.5-10.1.0.455.jar |Mekanism: Tools |mekanismtools |10.1.0 |DONE |Manifest: NOSIGNATURE
MekanismAdditions-1.16.5-10.1.0.455.jar |Mekanism: Additions |mekanismadditions |10.1.0 |DONE |Manifest: NOSIGNATURE
Morpheus-1.16.5-4.2.70.jar |Morpheus |morpheus |4.2.70 |DONE |Manifest: NOSIGNATURE
MekanismGenerators-1.16.5-10.1.0.455.jar |Mekanism: Generators |mekanismgenerators |10.1.0 |DONE |Manifest: NOSIGNATURE
jei-1.16.5-7.7.1.145.jar |Just Enough Items |jei |7.7.1.145 |DONE |Manifest: NOSIGNATURE
iChunUtil-1.16.5-10.5.1.jar |iChunUtil |ichunutil |10.5.1 |DONE |Manifest: NOSIGNATURE
YungsBridges-Forge-1.16.4-1.0.1.jar |YUNG's Bridges |yungsbridges |1.16.4-1.0.1 |DONE |Manifest: NOSIGNATURE
Mekanism-1.16.5-10.1.0.455.jar |Mekanism |mekanism |10.1.0 |DONE |Manifest: NOSIGNATURE
forge-1.16.5-36.2.22-universal.jar |Forge |forge |36.2.22 |DONE |Manifest: 22:af:21:d8:19:82:7f:93:94:fe:2b:ac:b7:e4:41:57:68:39:87:b1:a7:5c:c6:44:f9:25:74:21:14:f5:0d:90
simpletomb-1.16.5-1.0.9.jar |Simple Tombstone |simpletomb |1.16.5-1.0.9 |DONE |Manifest: 1f:47:ac:b1:61:82:96:b8:47:19:16:d2:61:81:11:60:3a:06:4b:61:31:56:7d:44:31:1e:0c:6f:22:5b:4c:ed
twilightforest-1.16.5-4.0.546-universal.jar |The Twilight Forest |twilightforest |NONE |DONE |Manifest: NOSIGNATURE
BetterMineshafts-Forge-1.16.4-2.0.4.jar |YUNG's Better Mineshafts |bettermineshafts |1.16.4-2.0.4 |DONE |Manifest: NOSIGNATURE
BetterCaves-Forge-1.16.4-1.1.2.jar |YUNG's Better Caves |bettercaves |1.16.4-1.1.2 |DONE |Manifest: NOSIGNATURE
DivineRPG-1.8.4.jar |DivineRPG |divinerpg |1.8.4 |DONE |Manifest: NOSIGNATURE
journeymap-1.16.5-5.7.3.jar |Journeymap |journeymap |5.7.3 |DONE |Manifest: NOSIGNATURE
ironchest-1.16.5-11.2.21.jar |Iron Chests |ironchest |1.16.5-11.2.21 |DONE |Manifest: NOSIGNATURE
appliedenergistics2-8.4.5.jar |Applied Energistics 2 |appliedenergistics2 |8.4.5 |DONE |Manifest: 95:58:cc:83:9d:a8:fa:4f:e9:f3:54:90:66:61:c8:ae:9c:08:88:11:52:52:df:2d:28:5f:05:d8:28:57:0f:98
Crash Report UUID: 704980eb-b38e-48af-ab92-bd8e2b0bae1f
Launched Version: MultiMC5
Backend library: LWJGL version 3.2.3 SNAPSHOT
Backend API: Apple M1 GL version 2.1 Metal - 76.3, Apple
GL Caps: Using framebuffer using ARB_framebuffer_object extension
Using VBOs: Yes
Is Modded: Definitely; Client brand changed to 'forge'
Type: Client (map_client.txt)
GPU Warnings: version: 2.1
Graphics mode: fast
Resource Packs: vanilla, file/PureBDcraft 128x MC116.zip
Current Language: English (US)
CPU: 8x Apple M1

commented

Fixed in a654135 Locomen found the fix