MCA Reborn [Fabric/Forge]

MCA Reborn [Fabric/Forge]

6M Downloads

Server Crashes with errors (logs included)

gamerpotion opened this issue ยท 0 comments

commented

Hi,
I am running this on my 1.18.1 modpack DarkRPG - https://www.curseforge.com/minecraft/modpacks/darkrpg
The modpack has a server as well on which MCA is crashing sometimes

Throughout several parts of the day the server resets due to crashes linked to MCA. Please see 2 logs below. Could these be looked into? we would need it fixed on version 1.18.1 thank you. These 2nd log issue happens more frequently. The null crash happened quite recently due to a Harvesting chore action I think

---- Minecraft Crash Report ----
// I feel sad now :(

Time: 5/20/22, 10:08 AM
Description: Ticking entity

java.lang.NullPointerException: Cannot invoke "net.minecraft.class_1657.method_5998(net.minecraft.class_1268)" because "$$1" is null
	at net.minecraft.class_1792.method_7836(class_1792.java:194)
	at net.minecraft.class_1747.redirect$zbo000$preventItemUseIfBlockItem(class_1747.java:529)
	at net.minecraft.class_1747.method_7884(class_1747.java:54)
	at net.minecraft.class_1799.method_7981(class_1799.java:240)
	at mca.entity.ai.brain.tasks.chore.HarvestingTask.lambda$plantSeeds$7(HarvestingTask.java:230)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
	at java.base/java.util.stream.IntPipeline$1$1.accept(IntPipeline.java:180)
	at java.base/java.util.stream.Streams$RangeIntSpliterator.tryAdvance(Streams.java:82)
	at java.base/java.util.stream.IntPipeline.forEachWithCancel(IntPipeline.java:163)
	at java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:527)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:513)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:150)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:647)
	at mca.entity.ai.brain.tasks.chore.HarvestingTask.plantSeeds(HarvestingTask.java:232)
	at mca.entity.ai.brain.tasks.chore.HarvestingTask.keepRunning(HarvestingTask.java:148)
	at mca.entity.ai.brain.tasks.chore.HarvestingTask.method_18924(HarvestingTask.java:32)
	at net.minecraft.class_4097.method_18923(class_4097.java:63)
	at net.minecraft.class_4095.method_19545(class_4095.java:526)
	at net.minecraft.class_4095.method_19542(class_4095.java:471)
	at net.minecraft.class_1646.method_5958(class_1646.java:273)
	at net.minecraft.class_1308.method_6023(class_1308.java:758)
	at net.minecraft.class_1309.method_6007(class_1309.java:2604)
	at net.minecraft.class_1308.method_6007(class_1308.java:545)
	at net.minecraft.class_1296.method_6007(class_1296.java:127)
	at mca.entity.VillagerEntityMCA.method_6007(VillagerEntityMCA.java:547)
	at net.minecraft.class_1309.method_5773(class_1309.java:2349)
	at net.minecraft.class_1308.method_5773(class_1308.java:345)
	at net.minecraft.class_1646.method_5773(class_1646.java:314)
	at mca.entity.VillagerEntityMCA.method_5773(VillagerEntityMCA.java:603)
	at net.minecraft.class_3218.method_18762(class_3218.java:699)
	at net.minecraft.class_1937.method_18472(class_1937.java:487)
	at net.minecraft.class_3218.method_31420(class_3218.java:360)
	at net.minecraft.class_5574.method_31791(class_5574.java:54)
	at net.minecraft.class_3218.method_18765(class_3218.java:328)
	at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:879)
	at net.minecraft.class_3176.method_3813(class_3176.java:324)
	at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:823)
	at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:684)
	at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:270)
	at java.base/java.lang.Thread.run(Thread.java:833)


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

-- Head --
Thread: Server thread
Stacktrace:
	at net.minecraft.class_1792.method_7836(class_1792.java:194)
	at net.minecraft.class_1747.redirect$zbo000$preventItemUseIfBlockItem(class_1747.java:529)
	at net.minecraft.class_1747.method_7884(class_1747.java:54)
	at net.minecraft.class_1799.method_7981(class_1799.java:240)
	at mca.entity.ai.brain.tasks.chore.HarvestingTask.lambda$plantSeeds$7(HarvestingTask.java:230)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
	at java.base/java.util.stream.IntPipeline$1$1.accept(IntPipeline.java:180)
	at java.base/java.util.stream.Streams$RangeIntSpliterator.tryAdvance(Streams.java:82)
	at java.base/java.util.stream.IntPipeline.forEachWithCancel(IntPipeline.java:163)
	at java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:527)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:513)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:150)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:647)
	at mca.entity.ai.brain.tasks.chore.HarvestingTask.plantSeeds(HarvestingTask.java:232)
	at mca.entity.ai.brain.tasks.chore.HarvestingTask.keepRunning(HarvestingTask.java:148)
	at mca.entity.ai.brain.tasks.chore.HarvestingTask.method_18924(HarvestingTask.java:32)
	at net.minecraft.class_4097.method_18923(class_4097.java:63)
	at net.minecraft.class_4095.method_19545(class_4095.java:526)
	at net.minecraft.class_4095.method_19542(class_4095.java:471)
	at net.minecraft.class_1646.method_5958(class_1646.java:273)
	at net.minecraft.class_1308.method_6023(class_1308.java:758)
	at net.minecraft.class_1309.method_6007(class_1309.java:2604)
	at net.minecraft.class_1308.method_6007(class_1308.java:545)
	at net.minecraft.class_1296.method_6007(class_1296.java:127)
	at mca.entity.VillagerEntityMCA.method_6007(VillagerEntityMCA.java:547)
	at net.minecraft.class_1309.method_5773(class_1309.java:2349)
	at net.minecraft.class_1308.method_5773(class_1308.java:345)
	at net.minecraft.class_1646.method_5773(class_1646.java:314)
	at mca.entity.VillagerEntityMCA.method_5773(VillagerEntityMCA.java:603)
	at net.minecraft.class_3218.method_18762(class_3218.java:699)
	at net.minecraft.class_1937.method_18472(class_1937.java:487)
	at net.minecraft.class_3218.method_31420(class_3218.java:360)
	at net.minecraft.class_5574.method_31791(class_5574.java:54)
	at net.minecraft.class_3218.method_18765(class_3218.java:328)

-- Entity being ticked --
Details:
	Entity Type: mca:male_villager (mca.entity.VillagerEntityMCA)
	Entity ID: 230
	Entity Name: Alejandro
	Entity's Exact location: 3156.54, 37.94, -2641.72
	Entity's Block location: World: (3156,37,-2642), Section: (at 4,5,14 in 197,2,-166; chunk contains blocks 3152,-64,-2656 to 3167,319,-2641), Region: (6,-6; contains chunks 192,-192 to 223,-161, blocks 3072,-64,-3072 to 3583,319,-2561)
	Entity's Momentum: 0.00, -0.08, 0.00
	Entity's Passengers: []
	Entity's Vehicle: null
Stacktrace:
	at net.minecraft.class_1937.method_18472(class_1937.java:487)
	at net.minecraft.class_3218.method_31420(class_3218.java:360)
	at net.minecraft.class_5574.method_31791(class_5574.java:54)
	at net.minecraft.class_3218.method_18765(class_3218.java:328)
	at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:879)
	at net.minecraft.class_3176.method_3813(class_3176.java:324)
	at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:823)
	at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:684)
	at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:270)
	at java.base/java.lang.Thread.run(Thread.java:833)

-- Affected level --
Details:
	All players: 2 total; [class_3222['Insinfi'/188, l='ServerLevel[1]', x=3155.83, y=38.00, z=-2639.65], class_3222['Kaede_kayano'/279, l='ServerLevel[1]', x=-1264.82, y=98.00, z=621.77]]
	Chunk stats: 4070
	Level dimension: minecraft:overworld
	Level spawn location: World: (225,110,360), Section: (at 1,14,8 in 14,6,22; chunk contains blocks 224,-64,352 to 239,319,367), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,-64,0 to 511,319,511)
	Level time: 38231331 game time, 38153292 day time
	Level name: 1
	Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false
	Level weather: Rain time: 70989 (now: false), thunder time: 21725 (now: false)
	Known server brands: fabric
	Level was modded: true
	Level storage version: 0x04ABD - Anvil
Stacktrace:
	at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:879)
	at net.minecraft.class_3176.method_3813(class_3176.java:324)
	at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:823)
	at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:684)
	at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:270)
	at java.base/java.lang.Thread.run(Thread.java:833)

second log below

---- Minecraft Crash Report ----
// I'm sorry, Dave.

Time: 5/20/22, 4:24 PM
Description: Ticking entity

java.lang.NullPointerException: Ticking entity
	at java.base/java.util.Objects.requireNonNull(Objects.java:208)
	at mca.server.world.data.PlayerSaveData.getFamilyEntry(PlayerSaveData.java:241)
	at mca.server.world.data.PlayerSaveData.sendLetterOfCondolence(PlayerSaveData.java:305)
	at mca.server.world.data.PlayerSaveData.onTragedy(PlayerSaveData.java:135)
	at mca.entity.ai.relationship.EntityRelationship.lambda$onTragedy$0(EntityRelationship.java:47)
	at java.base/java.util.Optional.ifPresent(Optional.java:178)
	at mca.entity.ai.relationship.EntityRelationship.lambda$onTragedy$1(EntityRelationship.java:46)
	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$2$1.accept(ReferencePipeline.java:179)
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	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 mca.entity.ai.relationship.EntityRelationship.onTragedy(EntityRelationship.java:45)
	at mca.entity.ai.Relationship.onTragedy(Relationship.java:166)
	at mca.entity.ai.Relationship.onTragedy(Relationship.java:140)
	at mca.entity.ai.Relationship.lambda$onDeath$8(Relationship.java:122)
	at java.base/java.util.Optional.filter(Optional.java:218)
	at mca.entity.ai.Relationship.onDeath(Relationship.java:118)
	at mca.entity.VillagerEntityMCA.method_6078(VillagerEntityMCA.java:783)
	at net.minecraft.class_1309.method_5643(class_1309.java:1177)
	at mca.entity.VillagerEntityMCA.method_5643(VillagerEntityMCA.java:529)
	at net.minecraft.class_1309.method_5825(class_1309.java:1839)
	at net.minecraft.class_1297.method_31473(class_1297.java:531)
	at net.minecraft.class_1297.method_5670(class_1297.java:514)
	at net.minecraft.class_1309.method_5670(class_1309.java:342)
	at net.minecraft.class_1308.method_5670(class_1308.java:278)
	at net.minecraft.class_1297.method_5773(class_1297.java:452)
	at net.minecraft.class_1309.method_5773(class_1309.java:2311)
	at net.minecraft.class_1308.method_5773(class_1308.java:345)
	at net.minecraft.class_1646.method_5773(class_1646.java:314)
	at mca.entity.VillagerEntityMCA.method_5773(VillagerEntityMCA.java:603)
	at net.minecraft.class_3218.method_18762(class_3218.java:699)
	at net.minecraft.class_1937.method_18472(class_1937.java:487)
	at net.minecraft.class_3218.method_31420(class_3218.java:360)
	at net.minecraft.class_5574.method_31791(class_5574.java:54)
	at net.minecraft.class_3218.method_18765(class_3218.java:328)
	at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:879)
	at net.minecraft.class_3176.method_3813(class_3176.java:324)
	at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:823)
	at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:684)
	at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:270)
	at java.base/java.lang.Thread.run(Thread.java:833)


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

-- Head --
Thread: Server thread
Stacktrace:
	at java.base/java.util.Objects.requireNonNull(Objects.java:208)
	at mca.server.world.data.PlayerSaveData.getFamilyEntry(PlayerSaveData.java:241)
	at mca.server.world.data.PlayerSaveData.sendLetterOfCondolence(PlayerSaveData.java:305)
	at mca.server.world.data.PlayerSaveData.onTragedy(PlayerSaveData.java:135)
	at mca.entity.ai.relationship.EntityRelationship.lambda$onTragedy$0(EntityRelationship.java:47)
	at java.base/java.util.Optional.ifPresent(Optional.java:178)
	at mca.entity.ai.relationship.EntityRelationship.lambda$onTragedy$1(EntityRelationship.java:46)
	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$2$1.accept(ReferencePipeline.java:179)
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	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 mca.entity.ai.relationship.EntityRelationship.onTragedy(EntityRelationship.java:45)
	at mca.entity.ai.Relationship.onTragedy(Relationship.java:166)
	at mca.entity.ai.Relationship.onTragedy(Relationship.java:140)
	at mca.entity.ai.Relationship.lambda$onDeath$8(Relationship.java:122)
	at java.base/java.util.Optional.filter(Optional.java:218)
	at mca.entity.ai.Relationship.onDeath(Relationship.java:118)
	at mca.entity.VillagerEntityMCA.method_6078(VillagerEntityMCA.java:783)
	at net.minecraft.class_1309.method_5643(class_1309.java:1177)
	at mca.entity.VillagerEntityMCA.method_5643(VillagerEntityMCA.java:529)
	at net.minecraft.class_1309.method_5825(class_1309.java:1839)
	at net.minecraft.class_1297.method_31473(class_1297.java:531)
	at net.minecraft.class_1297.method_5670(class_1297.java:514)
	at net.minecraft.class_1309.method_5670(class_1309.java:342)
	at net.minecraft.class_1308.method_5670(class_1308.java:278)
	at net.minecraft.class_1297.method_5773(class_1297.java:452)
	at net.minecraft.class_1309.method_5773(class_1309.java:2311)
	at net.minecraft.class_1308.method_5773(class_1308.java:345)
	at net.minecraft.class_1646.method_5773(class_1646.java:314)
	at mca.entity.VillagerEntityMCA.method_5773(VillagerEntityMCA.java:603)
	at net.minecraft.class_3218.method_18762(class_3218.java:699)
	at net.minecraft.class_1937.method_18472(class_1937.java:487)
	at net.minecraft.class_3218.method_31420(class_3218.java:360)
	at net.minecraft.class_5574.method_31791(class_5574.java:54)
	at net.minecraft.class_3218.method_18765(class_3218.java:328)

-- Entity being ticked --
Details:
	Entity Type: mca:female_villager (mca.entity.VillagerEntityMCA)
	Entity ID: 56685
	Entity Name: Evelin
	Entity's Exact location: 152.41, -180.08, 2.69
	Entity's Block location: World: (152,-181,2), Section: (at 8,11,2 in 9,-12,0; chunk contains blocks 144,0,0 to 159,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
	Entity's Momentum: 0.00, -3.26, 0.00
	Entity's Passengers: []
	Entity's Vehicle: null
Stacktrace:
	at net.minecraft.class_1937.method_18472(class_1937.java:487)
	at net.minecraft.class_3218.method_31420(class_3218.java:360)
	at net.minecraft.class_5574.method_31791(class_5574.java:54)
	at net.minecraft.class_3218.method_18765(class_3218.java:328)
	at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:879)
	at net.minecraft.class_3176.method_3813(class_3176.java:324)
	at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:823)
	at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:684)
	at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:270)
	at java.base/java.lang.Thread.run(Thread.java:833)

-- Affected level --
Details:
	All players: 3 total; [class_3222['NebulousNoah'/256, l='ServerLevel[1]', x=254.45, y=52.00, z=1.44], class_3222['TacticalFetus'/184, l='ServerLevel[1]', x=256.08, y=52.00, z=3.69], class_3222['mjoud'/34834, l='ServerLevel[1]', x=149.53, y=5.00, z=3.63]]
	Chunk stats: 1794
	Level dimension: minecraft:the_end
	Derived: true
	Level spawn location: World: (225,110,360), Section: (at 1,14,8 in 14,6,22; chunk contains blocks 224,0,352 to 239,255,367), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
	Level time: 38606821 game time, 38545187 day time
	Level name: 1
	Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false
	Level weather: Rain time: 35012 (now: false), thunder time: 115316 (now: false)
	Known server brands: fabric
	Level was modded: true
	Level storage version: 0x04ABD - Anvil
Stacktrace:
	at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:879)
	at net.minecraft.class_3176.method_3813(class_3176.java:324)
	at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:823)
	at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:684)
	at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:270)
	at java.base/java.lang.Thread.run(Thread.java:833)