Jump to content

Crash/Freezing when loading entities


Slit_bodmod

Recommended Posts

Hi, I was in the middle of porting my mod to 1.17.1 and when adding the attributes to the entities my game would freeze and produce this crash report:

Quote

[15:54:36] [Server thread/ERROR]: Encountered an unexpected exception
net.minecraft.ReportedException: Sending packet
    at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:887) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?]
    at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:819) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?]
    at net.minecraft.client.server.IntegratedServer.tickServer(IntegratedServer.java:85) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?]
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:684) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?]
    at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:258) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?]
    at java.lang.Thread.run(Thread.java:831) [?:?]
Caused by: java.lang.NullPointerException: Cannot invoke "Object.getClass()" because "p_129593_" is null
    at net.minecraft.network.ConnectionProtocol.getProtocolForPacket(ConnectionProtocol.java:486) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?]
    at net.minecraft.network.Connection.sendPacket(Connection.java:179) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?]
    at net.minecraft.network.Connection.send(Connection.java:171) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?]
    at net.minecraft.server.network.ServerGamePacketListenerImpl.send(ServerGamePacketListenerImpl.java:1058) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?]
    at net.minecraft.server.network.ServerGamePacketListenerImpl.send(ServerGamePacketListenerImpl.java:1053) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?]
    at net.minecraft.server.level.ServerEntity.sendPairingData(ServerEntity.java:208) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?]
    at net.minecraft.server.level.ServerEntity.addPairing(ServerEntity.java:196) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?]
    at net.minecraft.server.level.ChunkMap$TrackedEntity.updatePlayer(ChunkMap.java:1160) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?]
    at net.minecraft.server.level.ChunkMap$TrackedEntity.updatePlayers(ChunkMap.java:1188) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?]
    at net.minecraft.server.level.ChunkMap.addEntity(ChunkMap.java:943) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?]
    at net.minecraft.server.level.ServerChunkCache.addEntity(ServerChunkCache.java:441) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?]
    at net.minecraft.server.level.ServerLevel$EntityCallbacks.onTrackingStart(ServerLevel.java:1490) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?]
    at net.minecraft.server.level.ServerLevel$EntityCallbacks.onTrackingStart(ServerLevel.java:1473) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?]
    at net.minecraft.world.level.entity.PersistentEntitySectionManager.startTracking(PersistentEntitySectionManager.java:135) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?]
    at net.minecraft.world.level.entity.PersistentEntitySectionManager.addEntityWithoutEvent(PersistentEntitySectionManager.java:98) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?]
    at net.minecraft.world.level.entity.PersistentEntitySectionManager.addEntity(PersistentEntitySectionManager.java:81) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?]
    at net.minecraft.world.level.entity.PersistentEntitySectionManager.lambda$processPendingLoads$11(PersistentEntitySectionManager.java:259) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?]
    at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) ~[?:?]
    at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762) ~[?:?]
    at net.minecraft.world.level.entity.PersistentEntitySectionManager.processPendingLoads(PersistentEntitySectionManager.java:258) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?]
    at net.minecraft.world.level.entity.PersistentEntitySectionManager.tick(PersistentEntitySectionManager.java:267) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?]
    at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:395) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?]
    at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:883) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?]
    ... 5 more
---- Minecraft Crash Report ----
// I just don't know what went wrong :(

Time: 07/12/2021, 15:54
Description: Sending packet

java.lang.NullPointerException: Cannot invoke "Object.getClass()" because "p_129593_" is null
    at net.minecraft.network.ConnectionProtocol.getProtocolForPacket(ConnectionProtocol.java:486) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at net.minecraft.network.Connection.sendPacket(Connection.java:179) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at net.minecraft.network.Connection.send(Connection.java:171) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at net.minecraft.server.network.ServerGamePacketListenerImpl.send(ServerGamePacketListenerImpl.java:1058) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at net.minecraft.server.network.ServerGamePacketListenerImpl.send(ServerGamePacketListenerImpl.java:1053) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at net.minecraft.server.level.ServerEntity.sendPairingData(ServerEntity.java:208) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at net.minecraft.server.level.ServerEntity.addPairing(ServerEntity.java:196) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at net.minecraft.server.level.ChunkMap$TrackedEntity.updatePlayer(ChunkMap.java:1160) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at net.minecraft.server.level.ChunkMap$TrackedEntity.updatePlayers(ChunkMap.java:1188) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at net.minecraft.server.level.ChunkMap.addEntity(ChunkMap.java:943) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at net.minecraft.server.level.ServerChunkCache.addEntity(ServerChunkCache.java:441) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.server.level.ServerLevel$EntityCallbacks.onTrackingStart(ServerLevel.java:1490) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at net.minecraft.server.level.ServerLevel$EntityCallbacks.onTrackingStart(ServerLevel.java:1473) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at net.minecraft.world.level.entity.PersistentEntitySectionManager.startTracking(PersistentEntitySectionManager.java:135) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at net.minecraft.world.level.entity.PersistentEntitySectionManager.addEntityWithoutEvent(PersistentEntitySectionManager.java:98) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at net.minecraft.world.level.entity.PersistentEntitySectionManager.addEntity(PersistentEntitySectionManager.java:81) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at net.minecraft.world.level.entity.PersistentEntitySectionManager.lambda$processPendingLoads$11(PersistentEntitySectionManager.java:259) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) ~[?:?] {}
    at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762) ~[?:?] {}
    at net.minecraft.world.level.entity.PersistentEntitySectionManager.processPendingLoads(PersistentEntitySectionManager.java:258) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at net.minecraft.world.level.entity.PersistentEntitySectionManager.tick(PersistentEntitySectionManager.java:267) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:395) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:883) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:819) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.client.server.IntegratedServer.tickServer(IntegratedServer.java:85) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A}
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:684) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:258) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading,pl:accesstransformer:B}
    at java.lang.Thread.run(Thread.java:831) ~[?:?] {}


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

-- Head --
Thread: Render thread
Stacktrace:
    at net.minecraft.network.ConnectionProtocol.getProtocolForPacket(ConnectionProtocol.java:486) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at net.minecraft.network.Connection.sendPacket(Connection.java:179) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at net.minecraft.network.Connection.send(Connection.java:171) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
-- Packet being sent --
Details:
    Packet class: ~~ERROR~~ NullPointerException: Cannot invoke "Object.getClass()" because "p_9832_" is null
Stacktrace:
    at net.minecraft.server.network.ServerGamePacketListenerImpl.send(ServerGamePacketListenerImpl.java:1058) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at net.minecraft.server.network.ServerGamePacketListenerImpl.send(ServerGamePacketListenerImpl.java:1053) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at net.minecraft.server.level.ServerEntity.sendPairingData(ServerEntity.java:208) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at net.minecraft.server.level.ServerEntity.addPairing(ServerEntity.java:196) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at net.minecraft.server.level.ChunkMap$TrackedEntity.updatePlayer(ChunkMap.java:1160) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at net.minecraft.server.level.ChunkMap$TrackedEntity.updatePlayers(ChunkMap.java:1188) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at net.minecraft.server.level.ChunkMap.addEntity(ChunkMap.java:943) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at net.minecraft.server.level.ServerChunkCache.addEntity(ServerChunkCache.java:441) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.server.level.ServerLevel$EntityCallbacks.onTrackingStart(ServerLevel.java:1490) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at net.minecraft.server.level.ServerLevel$EntityCallbacks.onTrackingStart(ServerLevel.java:1473) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at net.minecraft.world.level.entity.PersistentEntitySectionManager.startTracking(PersistentEntitySectionManager.java:135) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at net.minecraft.world.level.entity.PersistentEntitySectionManager.addEntityWithoutEvent(PersistentEntitySectionManager.java:98) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at net.minecraft.world.level.entity.PersistentEntitySectionManager.addEntity(PersistentEntitySectionManager.java:81) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at net.minecraft.world.level.entity.PersistentEntitySectionManager.lambda$processPendingLoads$11(PersistentEntitySectionManager.java:259) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) ~[?:?] {}
    at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762) ~[?:?] {}
    at net.minecraft.world.level.entity.PersistentEntitySectionManager.processPendingLoads(PersistentEntitySectionManager.java:258) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at net.minecraft.world.level.entity.PersistentEntitySectionManager.tick(PersistentEntitySectionManager.java:267) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading}
    at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:395) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading,pl:accesstransformer:B}


-- Affected level --
Details:
    All players: 1 total; [ServerPlayer['Dev'/65, l='ServerLevel[New World]', x=250.81, y=11.74, z=231.40]]
    Chunk stats: 2340
    Level dimension: minecraft:overworld
    Level spawn location: World: (16,4,176), Section: (at 0,4,0 in 1,0,11; chunk contains blocks 16,0,176 to 31,255,191), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
    Level time: 133518 game time, 3941 day time
    Level name: New World
    Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
    Level weather: Rain time: 1 (now: false), thunder time: 1 (now: false)
    Known server brands: forge
    Level was modded: true
    Level storage version: 0x04ABD - Anvil
Stacktrace:
    at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:883) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:819) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.client.server.IntegratedServer.tickServer(IntegratedServer.java:85) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A}
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:684) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:258) ~[forge-1.17.1-37.1.0_mapped_official_1.17.1.jar%2374!:?] {re:classloading,pl:accesstransformer:B}
    at java.lang.Thread.run(Thread.java:831) ~[?:?] {}


-- System Details --
Details:
    Minecraft Version: 1.17.1
    Minecraft Version ID: 1.17.1
    Operating System: Mac OS X (x86_64) version 10.15.4
    Java Version: 16.0.1, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode, sharing), Oracle Corporation
    Memory: 225463472 bytes (215 MiB) / 1073741824 bytes (1024 MiB) up to 1073741824 bytes (1024 MiB)
    CPUs: 4
    Processor Vendor: GenuineIntel
    Processor Name: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
    Identifier: Intel64 Family 6 Model 58 Stepping 9
    Microarchitecture: Ivy Bridge (Client)
    Frequency (GHz): 2.50
    Number of physical packages: 1
    Number of physical CPUs: 2
    Number of logical CPUs: 4
    Graphics card #0 name: Intel HD Graphics 4000
    Graphics card #0 vendor: Intel
    Graphics card #0 VRAM (MB): 1536.00
    Graphics card #0 deviceId: 0x0166
    Graphics card #0 versionInfo: Revision ID: 0x0009
    Memory slot #0 capacity (MB): 2048.00
    Memory slot #0 clockSpeed (GHz): 1.60
    Memory slot #0 type: DDR3
    Memory slot #1 capacity (MB): 2048.00
    Memory slot #1 clockSpeed (GHz): 1.60
    Memory slot #1 type: DDR3
    Virtual memory max (MB): 8192.00
    Virtual memory used (MB): 6192.04
    Swap memory total (MB): 4096.00
    Swap memory used (MB): 3069.00
    JVM Flags: 1 total; -Xss1M
    Player Count: 1 / 8; [ServerPlayer['Dev'/65, l='ServerLevel[New World]', x=250.81, y=11.74, z=231.40]]
    Data Packs: vanilla, mod:lotb (incompatible), mod:forge
    Type: Integrated Server (map_client.txt)
    Is Modded: Definitely; Client brand changed to 'forge'
    ModLauncher: 9.0.7+91+master.8569cdf
    ModLauncher launch target: forgeclientuserdev
    ModLauncher naming: mcp
    ModLauncher services: 
         mixin PLUGINSERVICE 
         eventbus PLUGINSERVICE 
         object_holder_definalize PLUGINSERVICE 
         runtime_enum_extender PLUGINSERVICE 
         capability_token_subclass PLUGINSERVICE 
         capability_inject_definalize PLUGINSERVICE 
         accesstransformer PLUGINSERVICE 
         runtimedistcleaner PLUGINSERVICE 
         mixin TRANSFORMATIONSERVICE 
         fml TRANSFORMATIONSERVICE 
    FML Language Providers: 
        [email protected]
        javafml@null
    Mod List: 
        forge-1.17.1-37.1.0_mapped_official_1.17.1.jar    |Minecraft                     |minecraft                     |1.17.1              |DONE      |Manifest: a1:d4:5e:04:4f:d3:d6:e0:7b:37:97:cf:77:b0:de:ad:4a:47:ce:8c:96:49:5f:0a:cf:8c:ae:b2:6d:4b:8a:3f
        resources                                         |Lord Of The Blocks Mod        |lotb                          |0.0NONE             |DONE      |Manifest: NOSIGNATURE
                                                          |Forge                         |forge                         |37.1.0              |DONE      |Manifest: NOSIGNATURE
    Crash Report UUID: 5c4d99fd-0bb2-484a-8699-30af0d2e2550
    FML: 37.1
    Forge: net.minecraftforge:37.1.0
#@!@# Game crashed! Crash report saved to: #@!@# ./crash-reports/crash-2021-12-07_15.54.36-server.txt

Process finished with exit code 137 (interrupted by signal 9: SIGKILL)

I found it very difficult to actually begin working out where the source of the problem is and was wondering if anyone could help me track it down, the github for the latest sourcecode is currently https://github.com/slit-bodmod/LordOfTheBlocks if you want to have a look, or if you could just point me in the right direction, idk

Link to comment
Share on other sites

3 hours ago, diesieben07 said:

Cloned your repository. Badger and deer failed to summon because you have not registered their attribute, with a completely different error that you have shown.

Ah thankyou, yeah sometimes when it's not clear on the stacktrace where the problem started because of nullptrs or lambdas or something I find it quite difficult to work out where to look. Is this what caused the crash and can I simply fix it by adding something like:

modEventBus.addListener(EntityAISetupManager::addEntityAttributes);

to my LotbMod constructor

Link to comment
Share on other sites

hmm, I'm still getting a crash that looks like this:

Quote

[12:56:44] [Worker-Main-4/ERROR] [ne.mi.ev.EventBus/EVENTBUS]: Exception caught during firing event: Cannot invoke "net.minecraft.world.entity.ai.attributes.AttributeMap.getValue(net.minecraft.world.entity.ai.attributes.Attribute)" because the return value of "net.minecraft.world.entity.LivingEntity.getAttributes()" is null
    Index: 1
    Listeners:
        0: NORMAL
        1: ASM: class lotb.common.entities.ai.EntityAISetupManager onEntityConstructed(Lnet/minecraftforge/event/entity/EntityEvent$EntityConstructing;)V
java.lang.NullPointerException: Cannot invoke "net.minecraft.world.entity.ai.attributes.AttributeMap.getValue(net.minecraft.world.entity.ai.attributes.Attribute)" because the return value of "net.minecraft.world.entity.LivingEntity.getAttributes()" is null
    at TRANSFORMER/[email protected]/net.minecraft.world.entity.LivingEntity.getAttributeValue(LivingEntity.java:1806)
    at TRANSFORMER/[email protected]/net.minecraft.world.entity.ai.goal.target.TargetGoal.getFollowDistance(TargetGoal.java:77)
    at TRANSFORMER/[email protected]/net.minecraft.world.entity.ai.goal.target.NearestAttackableTargetGoal.<init>(NearestAttackableTargetGoal.java:35)
    at TRANSFORMER/[email protected]/lotb.common.entities.ai.EntityAISetupManager.onEntityConstructed(EntityAISetupManager.java:31)
    at net.minecraftforge.eventbus.ASMEventHandler_1_EntityAISetupManager_onEntityConstructed_EntityConstructing.invoke(.dynamic)
    at MC-BOOTSTRAP/[email protected]/net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85)
    at MC-BOOTSTRAP/[email protected]/net.minecraftforge.eventbus.EventBus.post(EventBus.java:302)
    at MC-BOOTSTRAP/[email protected]/net.minecraftforge.eventbus.EventBus.post(EventBus.java:283)
    at TRANSFORMER/[email protected]/net.minecraft.world.entity.Entity.<init>(Entity.java:247)
    at TRANSFORMER/[email protected]/net.minecraft.world.entity.LivingEntity.<init>(LivingEntity.java:228)
    at TRANSFORMER/[email protected]/net.minecraft.world.entity.Mob.<init>(Mob.java:112)
    at TRANSFORMER/[email protected]/net.minecraft.world.entity.PathfinderMob.<init>(PathfinderMob.java:12)
    at TRANSFORMER/[email protected]/net.minecraft.world.entity.AgeableMob.<init>(AgeableMob.java:28)
    at TRANSFORMER/[email protected]/net.minecraft.world.entity.animal.Animal.<init>(Animal.java:37)
    at TRANSFORMER/[email protected]/net.minecraft.world.entity.TamableAnimal.<init>(TamableAnimal.java:29)
    at TRANSFORMER/[email protected]/net.minecraft.world.entity.animal.Cat.<init>(Cat.java:116)
    at TRANSFORMER/[email protected]/net.minecraft.world.entity.EntityType.create(EntityType.java:460)
    at TRANSFORMER/[email protected]/net.minecraft.world.entity.EntityType.lambda$create$1(EntityType.java:470)
    at java.base/java.util.Optional.map(Optional.java:260)
    at TRANSFORMER/[email protected]/net.minecraft.world.entity.EntityType.create(EntityType.java:469)
    at TRANSFORMER/[email protected]/net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.createEntityIgnoreException(StructureTemplate.java:442)
    at TRANSFORMER/[email protected]/net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.addEntitiesToWorld(StructureTemplate.java:425)
    at TRANSFORMER/[email protected]/net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.placeInWorld(StructureTemplate.java:343)
    at TRANSFORMER/[email protected]/net.minecraft.world.level.levelgen.feature.structures.SinglePoolElement.place(SinglePoolElement.java:112)
    at TRANSFORMER/[email protected]/net.minecraft.world.level.levelgen.structure.PoolElementStructurePiece.place(PoolElementStructurePiece.java:88)
    at TRANSFORMER/[email protected]/net.minecraft.world.level.levelgen.structure.PoolElementStructurePiece.postProcess(PoolElementStructurePiece.java:84)
    at TRANSFORMER/[email protected]/net.minecraft.world.level.levelgen.structure.StructureStart.placeInChunk(StructureStart.java:87)
    at TRANSFORMER/[email protected]/net.minecraft.world.level.biome.Biome.lambda$generate$21(Biome.java:244)
    at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
    at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
    at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
    at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
    at java.base/java.util.PrimitiveIterator$OfLong.forEachRemaining(PrimitiveIterator.java:189)
    at MC-BOOTSTRAP/[email protected]/it.unimi.dsi.fastutil.longs.LongIterator.forEachRemaining(LongIterator.java:53)
    at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
    at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
    at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
    at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
    at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
    at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
    at TRANSFORMER/[email protected]/net.minecraft.world.level.biome.Biome.generate(Biome.java:243)
    at TRANSFORMER/[email protected]/net.minecraft.world.level.chunk.ChunkGenerator.applyBiomeDecoration(ChunkGenerator.java:245)
    at TRANSFORMER/[email protected]/net.minecraft.world.level.chunk.ChunkStatus.lambda$static$10(ChunkStatus.java:87)
    at TRANSFORMER/[email protected]/net.minecraft.world.level.chunk.ChunkStatus.generate(ChunkStatus.java:208)
    at TRANSFORMER/[email protected]/net.minecraft.server.level.ChunkMap.lambda$scheduleChunkGeneration$18(ChunkMap.java:517)
    at MC-BOOTSTRAP/[email protected]/com.mojang.datafixers.util.Either$Left.map(Either.java:38)
    at TRANSFORMER/[email protected]/net.minecraft.server.level.ChunkMap.lambda$scheduleChunkGeneration$20(ChunkMap.java:515)
    at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1146)
    at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478)
    at TRANSFORMER/[email protected]/net.minecraft.server.level.ChunkTaskPriorityQueueSorter.lambda$message$1(ChunkTaskPriorityQueueSorter.java:58)
    at TRANSFORMER/[email protected]/net.minecraft.util.thread.ProcessorMailbox.pollTask(ProcessorMailbox.java:91)
    at TRANSFORMER/[email protected]/net.minecraft.util.thread.ProcessorMailbox.pollUntil(ProcessorMailbox.java:146)
    at TRANSFORMER/[email protected]/net.minecraft.util.thread.ProcessorMailbox.run(ProcessorMailbox.java:102)
    at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1434)
    at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295)
    at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016)
    at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665)
    at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598)
    at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
 

I can't figure out why the getAttributes would return null as it just returns the attributes field which is final and should always be set upon construction.

Link to comment
Share on other sites

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • rftoolsbuilder:shielding_cutout (from lostcities-1.19-6.0.24.jar),rftoolsstorage:crafting_manager (from lostcities-1.19-6.0.24.jar),deepresonance:dense_glass (from lostcities-1.19-6.0.24.jar),restrictions:oneway (from lostcities-1.19-6.0.24.jar),restrictions:oneway_wall (from lostcities-1.19-6.0.24.jar),lostruins:glassgray3x2_complete (from lostcities-1.19-6.0.24.jar),lostruins:glassgray3x2_pane_complete (from lostcities-1.19-6.0.24.jar),lostruins:glassgray3x2_mossy (from lostcities-1.19-6.0.24.jar),lostruins:glassgray3x2_pane_mossy (from lostcities-1.19-6.0.24.jar),lostruins:glassgray3x2_broken (from lostcities-1.19-6.0.24.jar),lostruins:glassgray3x2_pane_broken (from lostcities-1.19-6.0.24.jar),lostruins:glassgray3x2_broken_mossy (from lostcities-1.19-6.0.24.jar),lostruins:glassgray3x2_pane_broken_mossy (from lostcities-1.19-6.0.24.jar),lostruins:glassgray3x2_vines (from lostcities-1.19-6.0.24.jar),lostruins:glassgray3x2_pane_vines (from lostcities-1.19-6.0.24.jar)[13:50:17] [main/INFO] [minecraft/RecipeManager]: Skipping loading recipe supplementaries:inspirations/blackboard_clear as it's serializer returned null[13:50:17] [main/INFO] [minecraft/RecipeManager]: Skipping loading recipe supplementaries:inspirations/flag_dye as it's serializer returned null[13:50:17] [main/INFO] [minecraft/RecipeManager]: Skipping loading recipe supplementaries:inspirations/flag_clear as it's serializer returned null[13:50:17] [main/INFO] [minecraft/RecipeManager]: Loaded 36 recipes[13:50:17] [main/INFO] [Spartan Weaponry/]: Adding Diamond Weapons to the End City Treasure Loot Table![13:50:17] [main/INFO] [Spartan Weaponry/]: Adding Longbow and Heavy Crossbow related loot to the Village Fletcher Loot Table![13:50:18] [main/INFO] [Spartan Weaponry/]: Adding Iron Weapons to the Village Weaponsmith Loot Table![13:50:18] [main/ERROR] [minecraft/ServerFunctionLibrary]: Failed to load function watching:checkjava.util.concurrent.CompletionException: java.lang.IllegalArgumentException: Whilst parsing command on line 1: Unknown or incomplete command, see below for error at position 0: <--[HERE]at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) ~[?:?] {re:mixin}at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) ~[?:?] {re:mixin}at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770) ~[?:?] {}at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?] {}at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?] {}at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?] {}at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?] {re:computing_frames}at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?] {re:computing_frames}at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?] {}Caused by: java.lang.IllegalArgumentException: Whilst parsing command on line 1: Unknown or incomplete command, see below for error at position 0: <--[HERE]at net.minecraft.commands.CommandFunction.m_77984_(CommandFunction.java:63) ~[server-1.19.2-20220805.130853-srg.jar%23299!/:?] {re:classloading}at net.minecraft.server.ServerFunctionLibrary.m_214320_(ServerFunctionLibrary.java:85) ~[server-1.19.2-20220805.130853-srg.jar%23299!/:?] {re:classloading}at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?] {}... 6 more[13:50:18] [main/INFO] [quark/]: [Automatic Recipe Unlock] Removed 3712 recipe advancements[13:50:18] [main/INFO] [minecraft/AdvancementList]: Loaded 684 advancements[13:50:18] [main/INFO] [at.dy.se.ItemLightLevels/]: Clearing item tag to light level mapping cache[13:50:18] [main/INFO] [sl.ma.fl.tr.FluidContainerTransferManager/]: Loaded 0 dynamic modifiers in 0.246528 ms[13:50:18] [main/INFO] [quark/]: Modified advancement minecraft:husbandry/wax_on with 2 patches[13:50:18] [main/INFO] [quark/]: Modified advancement minecraft:adventure/kill_a_mob with 3 patches[13:50:18] [main/INFO] [quark/]: Modified advancement minecraft:husbandry/bred_all_animals with 3 patches[13:50:18] [main/INFO] [quark/]: Modified advancement minecraft:adventure/kill_all_mobs with 3 patches[13:50:18] [main/INFO] [quark/]: Modified advancement minecraft:husbandry/make_a_sign_glow with 1 patches[13:50:18] [main/INFO] [quark/]: Modified advancement minecraft:husbandry/balanced_diet with 3 patches[13:50:18] [main/INFO] [quark/]: Modified advancement minecraft:husbandry/plant_seed with 1 patches[13:50:18] [main/INFO] [quark/]: Modified advancement minecraft:nether/all_effects with 2 patches[13:50:18] [main/INFO] [quark/]: Modified advancement minecraft:husbandry/wax_off with 2 patches[13:50:18] [main/INFO] [quark/]: Modified advancement minecraft:adventure/adventuring_time with 1 patches[13:50:18] [main/INFO] [quark/]: Modified advancement minecraft:nether/all_potions with 1 patches[13:50:18] [main/INFO] [supplementaries/]: Loaded 8 flute songs[13:50:20] [main/INFO] [Spartan Weaponry/]: Finished initialising Weapon Traits & Attributes! Took 11.202781ms[13:50:20] [main/INFO] [supplementaries/]: Finished additional setup in 103 ms[13:50:20] [main/WARN] [minecraft/DedicatedServerProperties]: Failed to parse level-type biomesoplenty, defaulting to minecraft:normal[13:50:20] [Server thread/INFO] [minecraft/DedicatedServer]: Starting minecraft server version 1.19.2[13:50:20] [Server thread/INFO] [minecraft/DedicatedServer]: Loading properties[13:50:20] [Server thread/INFO] [minecraft/DedicatedServer]: Default game type: SURVIVAL[13:50:20] [Server thread/INFO] [minecraft/MinecraftServer]: Generating keypair[13:50:21] [Server thread/INFO] [minecraft/DedicatedServer]: Starting Minecraft server on :::25983[13:50:21] [Server thread/INFO] [minecraft/ServerConnectionListener]: Using epoll channel type[13:50:21] [Thread-0/INFO] [de.ca.ca.CaveDweller/]: Server configuration has been reloaded[13:50:21] [Thread-0/INFO] [de.ca.ca.CaveDweller/]: Server configuration has been reloaded[13:50:21] [Thread-0/INFO] [de.ca.st.SteveDweller/]: Server configuration has been reloaded[13:50:21] [Thread-0/INFO] [de.ca.st.SteveDweller/]: Server configuration has been reloaded[13:50:21] [Thread-0/INFO] [de.ca.sk.Skinstalker/]: Server configuration has been reloaded[13:50:21] [Thread-0/INFO] [de.ca.sk.SkinwalkerOverhaul/]: Server configuration has been reloaded[13:50:21] [Thread-0/INFO] [de.ca.sk.SkinwalkerOverhaul/]: Server configuration has been reloaded[13:50:21] [Thread-0/INFO] [de.ca.go.Goatman/]: Server configuration has been reloaded[13:50:21] [Thread-0/INFO] [de.ca.go.Goatman/]: Server configuration has been reloaded[13:50:21] [Server thread/INFO] [at.dy.se.mo.PlayerSelfLightSource/]: item config parser identified itemstack 1 torch[13:50:21] [Server thread/INFO] [at.dy.se.mo.PlayerSelfLightSource/]: item config parser identified itemstack 1 glowstone[13:50:21] [Server thread/INFO] [at.dy.se.mo.PlayerSelfLightSource/]: item config parser finished, item count: 2[13:50:21] [Server thread/INFO] [at.dy.se.mo.PlayerSelfLightSource/]: item config parser identified itemstack 1 torch[13:50:21] [Server thread/INFO] [at.dy.se.mo.PlayerSelfLightSource/]: item config parser finished, item count: 1[13:50:21] [Server thread/INFO] [at.dy.se.mo.DroppedItemsLightSource/]: item config parser identified itemstack 1 torch[13:50:21] [Server thread/INFO] [at.dy.se.mo.DroppedItemsLightSource/]: item config parser identified itemstack 1 glowstone[13:50:21] [Server thread/INFO] [at.dy.se.mo.DroppedItemsLightSource/]: item config parser finished, item count: 2[13:50:21] [Server thread/INFO] [at.dy.se.mo.DroppedItemsLightSource/]: item config parser identified itemstack 1 torch[13:50:21] [Server thread/INFO] [at.dy.se.mo.DroppedItemsLightSource/]: item config parser finished, item count: 1[13:50:21] [Server thread/INFO] [Framework/]: Loading server configs...[13:50:22] [Server thread/INFO] [terrablender/]: Initialized TerraBlender biomes for level stem minecraft:overworld[13:50:22] [Server thread/INFO] [terrablender/]: Initialized TerraBlender biomes for level stem minecraft:the_nether[13:50:22] [Server thread/INFO] [minecraft/DedicatedServer]: Preparing level "world"[13:50:35] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing start region for dimension minecraft:overworld[13:50:40] [Worker-Main-1/INFO] [minecraft/LoggerChunkProgressListener]: Preparing spawn area: 0%[13:50:40] [Worker-Main-1/INFO] [minecraft/LoggerChunkProgressListener]: Preparing spawn area: 0%[13:50:40] [Worker-Main-1/INFO] [minecraft/LoggerChunkProgressListener]: Preparing spawn area: 0%[13:50:40] [Worker-Main-1/INFO] [minecraft/LoggerChunkProgressListener]: Preparing spawn area: 0%[13:50:40] [Worker-Main-1/INFO] [minecraft/LoggerChunkProgressListener]: Preparing spawn area: 0%[13:50:40] [Worker-Main-1/INFO] [minecraft/LoggerChunkProgressListener]: Preparing spawn area: 0%[13:50:40] [Worker-Main-1/INFO] [minecraft/LoggerChunkProgressListener]: Preparing spawn area: 0%[13:50:40] [Worker-Main-1/INFO] [minecraft/LoggerChunkProgressListener]: Preparing spawn area: 0%[13:50:40] [Worker-Main-1/INFO] [minecraft/LoggerChunkProgressListener]: Preparing spawn area: 0%[13:50:40] [Worker-Main-1/INFO] [minecraft/LoggerChunkProgressListener]: Preparing spawn area: 0%[13:50:40] [Worker-Main-1/INFO] [minecraft/LoggerChunkProgressListener]: Preparing spawn area: 0%[13:50:40] [Worker-Main-1/INFO] [minecraft/LoggerChunkProgressListener]: Preparing spawn area: 0%[13:50:41] [Worker-Main-1/INFO] [minecraft/LoggerChunkProgressListener]: Preparing spawn area: 0%[13:50:41] [Worker-Main-1/INFO] [minecraft/LoggerChunkProgressListener]: Preparing spawn area: 0%[13:50:42] [Worker-Main-1/INFO] [minecraft/LoggerChunkProgressListener]: Preparing spawn area: 17%[13:50:42] [Server thread/INFO] [minecraft/LoggerChunkProgressListener]: Time elapsed: 7618 ms[13:50:42] [Server thread/INFO] [minecraft/DedicatedServer]: Done (21.501s)! For help, type "help"[13:50:42] [Server thread/INFO] [minecraft/DedicatedServer]: Starting GS4 status listener[13:50:42] [Server thread/INFO] [minecraft/GenericThread]: Thread Query Listener started[13:50:42] [Query Listener #1/INFO] [minecraft/QueryThreadGs4]: Query running on :::25983[13:50:42] [Server thread/INFO] [ne.mi.se.pe.PermissionAPI/]: Successfully initialized permission handler forge:default_handler
    • Visit WEB:  https://www.strongspellcaster.us.com New York City, NY's love spells +27732318372 *To Get Back Ex Lover* Black magic cleansing.  
    • +27732318372 MOST GIFTED VOODOO MAGIC LOST LOVE SPELLS TO BRING BACK AN EX LOVER << USA CANADA USA .. >> visit website (https://www.strongspellcaster.us.com) s.
    • The conflict arises from discrepancies between different versions of GSON. My suggestion would be to remove your dependency on GSON 2.8.6 and opt for a different approach. Instead of using the static method JsonParser.parseString, you can create a JsonParser object and then use the parse method.   JsonParser jsonParser = new JsonParser(); jsonParser.parse(jsonString)  
  • Topics

×
×
  • Create New...

Important Information

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