LtxProgrammer / LtxProgrammer/Changed-Minecraft-Mod

Geting crashed from server at net.ltxprogrammer.changed.server.ServerTransfurVariantInstance.tickScare

Open
#1,824 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

compatibility crash
Dominant language
Java
Stars
83
Forks
58
Avg merge
1d 16h
Merged PRs (30d)
2

Description

I have like 8 villagers in my basement base and when i enter inside it as Latex (not organic) get crashed from this.
Modpack have Changed mod, CA+, Furmutage. (All latest version)
Idk how fix it, being not latex helps (or while have luminara flower effect from CA+) but i don't wanna always use laex totems (from CA+) to untransfur before enter into basement

[Full crash log form console]

[14:18:40] [Server thread/WARN] [neruina/]: Neruina caught an exception, see below for cause
net.minecraft.ReportedException: Ticking player
	at net.minecraft.server.level.ServerPlayer.m_9240_(ServerPlayer.java:530) ~[server-1.20.1-20230612.114412-srg.jar%23321!/:?]
	at net.minecraft.server.network.ServerGamePacketListenerImpl.mixinextras$bridge$m_9240_$133(ServerGamePacketListenerImpl.java) ~[server-1.20.1-20230612.114412-srg.jar%23321!/:?]
	at com.bawnorton.neruina.handler.TickHandler.safelyTickPlayer(TickHandler.java:122) ~[Neruina-2.1.2-forge+1.20.1.jar%23292!/:?]
	at net.minecraft.server.network.ServerGamePacketListenerImpl.wrapOperation$zpo000$catchTickingPlayer$notTheCauseOfTickLag(ServerGamePacketListenerImpl.java:4800) ~[server-1.20.1-20230612.114412-srg.jar%23321!/:?]
	at net.minecraft.server.network.ServerGamePacketListenerImpl.m_9933_(ServerGamePacketListenerImpl.java:262) ~[server-1.20.1-20230612.114412-srg.jar%23321!/:?]
	at net.minecraft.network.Connection.m_129483_(Connection.java:263) ~[server-1.20.1-20230612.114412-srg.jar%23321!/:?]
	at net.minecraft.server.network.ServerConnectionListener.m_9721_(ServerConnectionListener.java:142) ~[server-1.20.1-20230612.114412-srg.jar%23321!/:?]
	at net.minecraft.server.MinecraftServer.m_5703_(MinecraftServer.java:907) ~[server-1.20.1-20230612.114412-srg.jar%23321!/:?]
	at net.minecraft.server.dedicated.DedicatedServer.m_5703_(DedicatedServer.java:283) ~[server-1.20.1-20230612.114412-srg.jar%23321!/:?]
	at net.minecraft.server.MinecraftServer.m_5705_(MinecraftServer.java:814) ~[server-1.20.1-20230612.114412-srg.jar%23321!/:?]
	at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:661) ~[server-1.20.1-20230612.114412-srg.jar%23321!/:?]
	at net.minecraft.server.MinecraftServer.m_206580_(MinecraftServer.java:251) ~[server-1.20.1-20230612.114412-srg.jar%23321!/:?]
	at java.lang.Thread.run(Thread.java:840) ~[?:?]
Caused by: java.util.ConcurrentModificationException
	at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:1013) ~[?:?]
	at java.util.ArrayList$Itr.next(ArrayList.java:967) ~[?:?]
	at java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1055) ~[?:?]
	at net.minecraft.world.level.entity.EntitySection.m_188348_(EntitySection.java:48) ~[server-1.20.1-20230612.114412-srg.jar%23321!/:?]
	at net.minecraft.world.level.entity.EntitySectionStorage.m_260795_(EntitySectionStorage.java:126) ~[server-1.20.1-20230612.114412-srg.jar%23321!/:?]
	at net.minecraft.world.level.entity.EntitySectionStorage.m_188362_(EntitySectionStorage.java:65) ~[server-1.20.1-20230612.114412-srg.jar%23321!/:?]
	at net.minecraft.world.level.entity.EntitySectionStorage.m_261191_(EntitySectionStorage.java:126) ~[server-1.20.1-20230612.114412-srg.jar%23321!/:?]
	at net.minecraft.world.level.entity.LevelEntityGetterAdapter.m_142137_(LevelEntityGetterAdapter.java:48) ~[server-1.20.1-20230612.114412-srg.jar%23321!/:?]
	at net.minecraft.world.level.Level.m_260826_(Level.java:676) ~[server-1.20.1-20230612.114412-srg.jar%23321!/:?]
	at net.minecraft.world.level.Level.m_261153_(Level.java:671) ~[server-1.20.1-20230612.114412-srg.jar%23321!/:?]
	at net.minecraft.world.level.Level.m_142425_(Level.java:666) ~[server-1.20.1-20230612.114412-srg.jar%23321!/:?]
	at net.minecraft.world.level.EntityGetter.m_6443_(EntityGetter.java:27) ~[server-1.20.1-20230612.114412-srg.jar%23321!/:?]
	at net.ltxprogrammer.changed.server.ServerTransfurVariantInstance.tickScare(ServerTransfurVariantInstance.java:147) ~[Changed-m1.20.1-v0.15.7-all.jar%23228!/:v0.15.7]
	at net.ltxprogrammer.changed.server.ServerTransfurVariantInstance.tick(ServerTransfurVariantInstance.java:133) ~[Changed-m1.20.1-v0.15.7-all.jar%23228!/:v0.15.7]
	at net.ltxprogrammer.changed.entity.variant.TransfurVariantInstance.lambda$onPlayerTick$15(TransfurVariantInstance.java:421) ~[Changed-m1.20.1-v0.15.7-all.jar%23228!/:v0.15.7]
	at net.ltxprogrammer.changed.process.ProcessTransfur.ifPlayerTransfurred(ProcessTransfur.java:645) ~[Changed-m1.20.1-v0.15.7-all.jar%23228!/:v0.15.7]
	at net.ltxprogrammer.changed.entity.variant.TransfurVariantInstance.onPlayerTick(TransfurVariantInstance.java:415) ~[Changed-m1.20.1-v0.15.7-all.jar%23228!/:v0.15.7]
	at net.ltxprogrammer.changed.entity.variant.__TransfurVariantInstance_onPlayerTick_PlayerTickEvent.invoke(.dynamic) ~[Changed-m1.20.1-v0.15.7-all.jar%23228!/:v0.15.7]
	at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:73) ~[eventbus-6.0.5.jar%2352!/:?]
	at net.minecraftforge.eventbus.EventBus.post(EventBus.java:315) ~[eventbus-6.0.5.jar%2352!/:?]
	at net.minecraftforge.eventbus.EventBus.post(EventBus.java:296) ~[eventbus-6.0.5.jar%2352!/:?]
	at net.minecraftforge.event.ForgeEventFactory.onPlayerPostTick(ForgeEventFactory.java:945) ~[forge-1.20.1-47.4.10-universal.jar%23326!/:?]
	at net.minecraft.world.entity.player.Player.m_8119_(Player.java:285) ~[server-1.20.1-20230612.114412-srg.jar%23321!/:?]
	at net.minecraft.server.level.ServerPlayer.m_9240_(ServerPlayer.java:467) ~[server-1.20.1-20230612.114412-srg.jar%23321!/:?]
	... 12 more

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at ServerTransfurVariantInstance.java:147 in tickScare and review the surrounding tick path shown in the crash log. Reproduce the crash with a latex player entering an area containing villagers, then determine what prevents the ConcurrentModificationException during the player tick. Done means the scenario no longer crashes the server.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.