Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.1.3 constant server crash - ConcurrentModificationException #406

Open
twothe opened this issue Sep 18, 2023 · 25 comments
Open

0.1.3 constant server crash - ConcurrentModificationException #406

twothe opened this issue Sep 18, 2023 · 25 comments
Labels
Crash Game Crash

Comments

@twothe
Copy link

twothe commented Sep 18, 2023

When updating from 0.1.2 to 0.1.3 suddenly the otherwise stable running server now crashes on every chunk saving.

crash-2023-09-19_01.19.24-server.txt
crash-2023-09-19_01.29.23-server.txt

@TigerWalts
Copy link

We have had this crash reported a lot recently. It has been observed in ATM8 and ATM9 - Here's the stack trace so that people searching for this bug have a chance to find this ticket:

java.util.ConcurrentModificationException: null
	at java.util.HashMap$HashIterator.nextNode(HashMap.java:1597) ~[?:?] {}
	at java.util.HashMap$KeyIterator.next(HashMap.java:1620) ~[?:?] {}
	at java.lang.Iterable.forEach(Iterable.java:74) ~[?:?] {re:mixin}
	at net.minecraft.server.level.DistanceManager.m_140805_(DistanceManager.java:119) ~[server-1.20.1-20230612.114412-srg.jar%23755!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
	at net.minecraft.server.level.ServerChunkCache.m_8489_(ServerChunkCache.java:273) ~[server-1.20.1-20230612.114412-srg.jar%23755!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:cupboard.mixins.json:ChunkLoadDebug,pl:mixin:APP:gtceu-common.mixins.json:ServerChunkProviderMixin,pl:mixin:APP:modernfix-common.mixins.json:bugfix.chunk_deadlock.ServerChunkCacheMixin,pl:mixin:APP:modernfix-forge.mixins.json:bugfix.chunk_deadlock.ServerChunkCache_CurrentLoadingMixin,pl:mixin:A}
	at net.minecraft.server.level.ServerChunkCache$MainThreadExecutor.m_7245_(ServerChunkCache.java:545) ~[server-1.20.1-20230612.114412-srg.jar%23755!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
	at net.minecraft.server.level.ServerChunkCache.m_8466_(ServerChunkCache.java:269) ~[server-1.20.1-20230612.114412-srg.jar%23755!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:cupboard.mixins.json:ChunkLoadDebug,pl:mixin:APP:gtceu-common.mixins.json:ServerChunkProviderMixin,pl:mixin:APP:modernfix-common.mixins.json:bugfix.chunk_deadlock.ServerChunkCacheMixin,pl:mixin:APP:modernfix-forge.mixins.json:bugfix.chunk_deadlock.ServerChunkCache_CurrentLoadingMixin,pl:mixin:A}
	at net.minecraft.server.MinecraftServer.m_129961_(MinecraftServer.java:758) ~[server-1.20.1-20230612.114412-srg.jar%23755!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:kubejs-common.mixins.json:MinecraftServerMixin,pl:mixin:APP:kubejs-common.mixins.json:inject_resources.MinecraftServerMixin,pl:mixin:APP:modernfix-common.mixins.json:perf.dedicated_reload_executor.MinecraftServerMixin,pl:mixin:APP:balm.mixins.json:MinecraftServerMixin,pl:mixin:APP:ae2.mixins.json:spatial.MinecraftServerMixin,pl:mixin:APP:citadel.mixins.json:MinecraftServerMixin,pl:mixin:APP:dankstorage.mixins.json:MinecraftServerAccess,pl:mixin:A}
	at net.minecraft.server.MinecraftServer.m_7245_(MinecraftServer.java:747) ~[server-1.20.1-20230612.114412-srg.jar%23755!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:kubejs-common.mixins.json:MinecraftServerMixin,pl:mixin:APP:kubejs-common.mixins.json:inject_resources.MinecraftServerMixin,pl:mixin:APP:modernfix-common.mixins.json:perf.dedicated_reload_executor.MinecraftServerMixin,pl:mixin:APP:balm.mixins.json:MinecraftServerMixin,pl:mixin:APP:ae2.mixins.json:spatial.MinecraftServerMixin,pl:mixin:APP:citadel.mixins.json:MinecraftServerMixin,pl:mixin:APP:dankstorage.mixins.json:MinecraftServerAccess,pl:mixin:A}
	at net.minecraft.util.thread.BlockableEventLoop.m_18699_(BlockableEventLoop.java:115) ~[server-1.20.1-20230612.114412-srg.jar%23755!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
	at net.minecraft.server.MinecraftServer.m_130012_(MinecraftServer.java:732) ~[server-1.20.1-20230612.114412-srg.jar%23755!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:kubejs-common.mixins.json:MinecraftServerMixin,pl:mixin:APP:kubejs-common.mixins.json:inject_resources.MinecraftServerMixin,pl:mixin:APP:modernfix-common.mixins.json:perf.dedicated_reload_executor.MinecraftServerMixin,pl:mixin:APP:balm.mixins.json:MinecraftServerMixin,pl:mixin:APP:ae2.mixins.json:spatial.MinecraftServerMixin,pl:mixin:APP:citadel.mixins.json:MinecraftServerMixin,pl:mixin:APP:dankstorage.mixins.json:MinecraftServerAccess,pl:mixin:A}
	at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:665) ~[server-1.20.1-20230612.114412-srg.jar%23755!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:kubejs-common.mixins.json:MinecraftServerMixin,pl:mixin:APP:kubejs-common.mixins.json:inject_resources.MinecraftServerMixin,pl:mixin:APP:modernfix-common.mixins.json:perf.dedicated_reload_executor.MinecraftServerMixin,pl:mixin:APP:balm.mixins.json:MinecraftServerMixin,pl:mixin:APP:ae2.mixins.json:spatial.MinecraftServerMixin,pl:mixin:APP:citadel.mixins.json:MinecraftServerMixin,pl:mixin:APP:dankstorage.mixins.json:MinecraftServerAccess,pl:mixin:A}
	at net.minecraft.server.MinecraftServer.m_206580_(MinecraftServer.java:251) ~[server-1.20.1-20230612.114412-srg.jar%23755!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:kubejs-common.mixins.json:MinecraftServerMixin,pl:mixin:APP:kubejs-common.mixins.json:inject_resources.MinecraftServerMixin,pl:mixin:APP:modernfix-common.mixins.json:perf.dedicated_reload_executor.MinecraftServerMixin,pl:mixin:APP:balm.mixins.json:MinecraftServerMixin,pl:mixin:APP:ae2.mixins.json:spatial.MinecraftServerMixin,pl:mixin:APP:citadel.mixins.json:MinecraftServerMixin,pl:mixin:APP:dankstorage.mixins.json:MinecraftServerAccess,pl:mixin:A}
	at java.lang.Thread.run(Thread.java:833) ~[?:?] {re:mixin}

The most likely cause is that a chunk is being added to the Chunk Cache in an unsafe manner. As best I can tell the CME is triggered while lighting on the chunks is being updated.

As this is being triggered by players I suspect that a mod on the client is requesting chunk data for a chunk that is not in the cache and on the server that mod is getting that chunk loaded into the cache.

JourneyMap was mentioned by a player as being possibly involved but we have also seen the crash happen when players join and haven't had a chance to open the map.


I'm going to try a few things to see if I can re-create the crash. Possibly having a client view distance greater than the server's distance settings will trigger it.

@TigerWalts
Copy link

I have been unable to re-create the crash by increasing the view distance and using the JourneyMap map screen. I have tried on 0.1.7 and on 0.1.3 in a location where this was happening previously.

I'm starting to think that it may be related to world generation. Not chunk generation itself but possibly some sort of lazy population that may happen later. Something that only triggers once a player comes near but also requires chunks to be loaded to complete.

The scenario would be:

  1. A player gets close to a structure
  2. All the chunks for the structure and the structure parts are all placed
  3. The player moves away and the chunks unload
  4. The player later gets closer to the structure and triggers a custom feature population for the structure that applies to the whole structure and triggers chunk loads

There is a very large dungeon placed by the Dungeon Crawl mod under the location that was crashing on the 0.1.3. I'll check the mod's issue tracker to see if anything similar has been reported with it.

@TigerWalts
Copy link

TigerWalts commented Sep 26, 2023

Didn't spot anything in Dungeon Crawl issues or code that could be related, so I checked the debug log for the time of the crash:

The player is part of a team that has forced chunks. When one of these chunks it appears to be triggering world generation. ModernFix reports that is is using cached structure files that have been data-fixed:

[25Sep2023 12:46:09.515] [Server thread/DEBUG] [FTB Chunks/]: force chunk (forge): mod=ftbchunks owner=6c9551a6-xxxx-xxxx-xxxx-xxxxxxxxxxxx, c=(-57,-204), load=true, success=true
[25Sep2023 12:46:09.590] [Server thread/DEBUG] [ModernFix/]: Using cached upgraded version of structory:ruin/taiga_surface/tower2
[25Sep2023 12:46:09.626] [Server thread/DEBUG] [ModernFix/]: Using cached upgraded version of irons_spellbooks:catacombs/origin_throne_room
[25Sep2023 12:46:09.637] [Server thread/DEBUG] [ModernFix/]: Using cached upgraded version of irons_spellbooks:catacombs/hallway_straight_trapped
[25Sep2023 12:46:09.641] [Server thread/DEBUG] [ModernFix/]: Using cached upgraded version of irons_spellbooks:catacombs/hallway_tee_1
...plus many more

This chunk is actually at the location of the player when they crashed. This supports the idea that this is world-gen related. Will need to see if Structory and Iron's Spellbooks do anything extra with their structures.

@wedgevic
Copy link

I wanted to bump this issue as it is something that I have run into quite a lot as well

@LovGo
Copy link

LovGo commented Nov 3, 2023

We get the same issue on 0.2.11, just keep crashing every minutes on an integrated server. The crash log seems a lot like the one uploaded earlier

@shBLOCK
Copy link

shBLOCK commented Dec 9, 2023

I'm facing the same problem. Can't figure out exactly which mod is causing this. So I quickly made a simple mod that just replaces the problematic HashSet with a ConcurrentHashSet instead whenever a ServerLevel is loaded.
This solved the problem for me, and doesn't seem to cause any other problems. Until the actual cause is figured out, this can be a temporary solution.
(Decompress the zip to get the jar, github doesn't support uploading jar directly)
distancemanager_concurrent_fix-1.0.zip

@ImVexed
Copy link

ImVexed commented Jan 16, 2024

I'm seeing a similar concurrent modification crash when a friend attacked a Apotheosis boss skeleton:

ftb-atm9-mc-1    | net.minecraft.ReportedException: Ticking entity
ftb-atm9-mc-1    |      at net.minecraft.server.MinecraftServer.m_5703_(MinecraftServer.java:897) ~[server-1.20.1-20230612.114412-srg.jar%23881!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:kubejs-common.mixins.json:MinecraftServerMixin,pl:mixin:APP:kubejs-common.mixins.json:inject_resources.MinecraftServerMixin,pl:mixin:APP:modernfix-common.mixins.json:perf.dedicated_reload_executor.MinecraftServerMixin,pl:mixin:APP:ae2.mixins.json:spatial.MinecraftServerMixin,pl:mixin:APP:citadel.mixins.json:MinecraftServerMixin,pl:mixin:APP:gtceu-common.mixins.json:MinecraftServerMixin,pl:mixin:APP:balm.mixins.json:MinecraftServerMixin,pl:mixin:APP:dankstorage.mixins.json:MinecraftServerAccess,pl:mixin:A}
ftb-atm9-mc-1    |      at net.minecraft.server.dedicated.DedicatedServer.m_5703_(DedicatedServer.java:283) ~[server-1.20.1-20230612.114412-srg.jar%23881!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:mixins/common/nochatreports.mixins.json:server.MixinDedicatedServer,pl:mixin:APP:tombstone.mixins.json:DedicatedServerMixin,pl:mixin:A}
ftb-atm9-mc-1    |      at net.minecraft.server.MinecraftServer.m_5705_(MinecraftServer.java:814) ~[server-1.20.1-20230612.114412-srg.jar%23881!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:kubejs-common.mixins.json:MinecraftServerMixin,pl:mixin:APP:kubejs-common.mixins.json:inject_resources.MinecraftServerMixin,pl:mixin:APP:modernfix-common.mixins.json:perf.dedicated_reload_executor.MinecraftServerMixin,pl:mixin:APP:ae2.mixins.json:spatial.MinecraftServerMixin,pl:mixin:APP:citadel.mixins.json:MinecraftServerMixin,pl:mixin:APP:gtceu-common.mixins.json:MinecraftServerMixin,pl:mixin:APP:balm.mixins.json:MinecraftServerMixin,pl:mixin:APP:dankstorage.mixins.json:MinecraftServerAccess,pl:mixin:A}
ftb-atm9-mc-1    |      at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:661) ~[server-1.20.1-20230612.114412-srg.jar%23881!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:kubejs-common.mixins.json:MinecraftServerMixin,pl:mixin:APP:kubejs-common.mixins.json:inject_resources.MinecraftServerMixin,pl:mixin:APP:modernfix-common.mixins.json:perf.dedicated_reload_executor.MinecraftServerMixin,pl:mixin:APP:ae2.mixins.json:spatial.MinecraftServerMixin,pl:mixin:APP:citadel.mixins.json:MinecraftServerMixin,pl:mixin:APP:gtceu-common.mixins.json:MinecraftServerMixin,pl:mixin:APP:balm.mixins.json:MinecraftServerMixin,pl:mixin:APP:dankstorage.mixins.json:MinecraftServerAccess,pl:mixin:A}
ftb-atm9-mc-1    |      at net.minecraft.server.MinecraftServer.m_206580_(MinecraftServer.java:251) ~[server-1.20.1-20230612.114412-srg.jar%23881!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:kubejs-common.mixins.json:MinecraftServerMixin,pl:mixin:APP:kubejs-common.mixins.json:inject_resources.MinecraftServerMixin,pl:mixin:APP:modernfix-common.mixins.json:perf.dedicated_reload_executor.MinecraftServerMixin,pl:mixin:APP:ae2.mixins.json:spatial.MinecraftServerMixin,pl:mixin:APP:citadel.mixins.json:MinecraftServerMixin,pl:mixin:APP:gtceu-common.mixins.json:MinecraftServerMixin,pl:mixin:APP:balm.mixins.json:MinecraftServerMixin,pl:mixin:APP:dankstorage.mixins.json:MinecraftServerAccess,pl:mixin:A}
ftb-atm9-mc-1    |      at java.lang.Thread.run(Thread.java:1583) ~[?:?] {re:mixin}
ftb-atm9-mc-1    | Caused by: java.util.ConcurrentModificationException
ftb-atm9-mc-1    |      at java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:1023) ~[?:?] {}
ftb-atm9-mc-1    |      at java.util.LinkedHashMap$LinkedKeyIterator.next(LinkedHashMap.java:1046) ~[?:?] {}
ftb-atm9-mc-1    |      at net.minecraft.world.entity.ai.goal.GoalSelector.m_186081_(GoalSelector.java:118) ~[server-1.20.1-20230612.114412-srg.jar%23881!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
ftb-atm9-mc-1    |      at net.minecraft.world.entity.Mob.m_6140_(Mob.java:753) ~[server-1.20.1-20230612.114412-srg.jar%23881!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:botania_xplat.mixins.json:MobAccessor,pl:mixin:APP:tombstone.mixins.json:MobMixin,pl:mixin:APP:ad_astra-common.mixins.json:MobMixin,pl:mixin:APP:bookshelf.common.mixins.json:accessors.entity.AccessorMob,pl:mixin:APP:mixins.artifacts.common.json:accessors.MobAccessor,pl:mixin:APP:mixins.pneumaticcraft.json:accessors.MobAccess,pl:mixin:APP:ars_nouveau.mixins.json:jar.MobAccessorMixin,pl:mixin:APP:aether.mixins.json:common.MobMixin,pl:mixin:APP:naturalist-common.mixins.json:MobMixin,pl:mixin:APP:mixins.letmedespawn.json:MobMixin,pl:mixin:APP:moonlight-common.mixins.json:EntityMixin,pl:mixin:A}
ftb-atm9-mc-1    |      at net.minecraft.world.entity.LivingEntity.m_8107_(LivingEntity.java:2548) ~[server-1.20.1-20230612.114412-srg.jar%23881!/:?] {re:mixin,pl:accesstransformer:B,xf:fml:voidscape:attributes,re:classloading,pl:accesstransformer:B,xf:fml:voidscape:attributes,pl:mixin:APP:kubejs-common.mixins.json:LivingEntityMixin,pl:mixin:APP:ad_astra_giselle_addon.mixin.common.json:minecraft.LivingEntityMixin,pl:mixin:APP:apotheosis.mixins.json:LivingEntityInvoker,pl:mixin:APP:apotheosis.mixins.json:LivingEntityMixin,pl:mixin:APP:apotheosis.mixins.json:MHFMixinLivingEntity,pl:mixin:APP:supplementaries-common.mixins.json:LivingEntityMixin,pl:mixin:APP:botania_xplat.mixins.json:LivingEntityAccessor,pl:mixin:APP:attributeslib.mixins.json:LivingEntityMixin,pl:mixin:APP:tombstone.mixins.json:LivingEntityMixin,pl:mixin:APP:caelus.mixins.json:MixinLivingEntity,pl:mixin:APP:mixins.cofhcore.json:LivingEntityMixin,pl:mixin:APP:ad_astra-common.mixins.json:LivingEntityMixin,pl:mixin:APP:ad_astra-common.mixins.json:gravity.LivingEntityGravityMixin,pl:mixin:APP:bookshelf.common.mixins.json:accessors.entity.AccessorLivingEntity,pl:mixin:APP:bookshelf.common.mixins.json:patches.entity.MixinLivingEntity,pl:mixin:APP:mixins.shetiphiancore.json:SPC_ThinBlockHandler$_LivingEntity,pl:mixin:APP:citadel.mixins.json:LivingEntityMixin,pl:mixin:APP:cataclysm.mixins.json:LivingEntityMixin,pl:mixin:APP:caupona.mixins.json:LivingEntityMixin,pl:mixin:APP:mixins.artifacts.common.json:item.hurtsound.LivingEntityMixin,pl:mixin:APP:endermanoverhaul-common.mixins.json:common.LivingEntityMixin,pl:mixin:APP:mixins.enderio.json:LivingEntityMixin,pl:mixin:APP:mixins.irons_spellbooks.json:LivingEntityMixin,pl:mixin:APP:enhancedcelestials.mixins.json:MixinLivingEntity,pl:mixin:APP:charmofundying.mixins.json:MixinLivingEntity,pl:mixin:APP:lost_aether_content.mixins.json:LivingEntityMixin,pl:mixin:APP:curios.mixins.json:MixinLivingEntity,pl:mixin:APP:mixins.pneumaticcraft.json:coremods.LivingEntityMixin,pl:mixin:APP:ars_nouveau.mixins.json:elytra.MixinLivingEntity,pl:mixin:APP:ars_nouveau.mixins.json:perks.PerkLivingEntity,pl:mixin:APP:ars_nouveau.mixins.json:LivingAccessor,pl:mixin:APP:blue_skies.mixins.json:LivingEntityMixin,pl:mixin:APP:netherportalfix.mixins.json:LivingEntityAccessor,pl:mixin:APP:eidolon.mixins.json:LivingEntityMixin,pl:mixin:APP:aether.mixins.json:common.LivingEntityMixin,pl:mixin:APP:aether.mixins.json:common.accessor.LivingEntityAccessor,pl:mixin:APP:voidtotem.mixins.json:LivingEntityMixin,pl:mixin:APP:betterdeserttemples.mixins.json:PharaohKilledMixin,pl:mixin:APP:expandability.mixins.json:swimming.LivingEntityMixin,pl:mixin:APP:expandability-common.mixins.json:swimming.LivingEntityMixin,pl:mixin:APP:create.mixins.json:CustomItemUseEffectsMixin,pl:mixin:APP:create.mixins.json:LavaSwimmingMixin,pl:mixin:APP:create.mixins.json:accessor.LivingEntityAccessor,pl:mixin:A}
ftb-atm9-mc-1    |      at net.minecraft.world.entity.Mob.m_8107_(Mob.java:536) ~[server-1.20.1-20230612.114412-srg.jar%23881!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:botania_xplat.mixins.json:MobAccessor,pl:mixin:APP:tombstone.mixins.json:MobMixin,pl:mixin:APP:ad_astra-common.mixins.json:MobMixin,pl:mixin:APP:bookshelf.common.mixins.json:accessors.entity.AccessorMob,pl:mixin:APP:mixins.artifacts.common.json:accessors.MobAccessor,pl:mixin:APP:mixins.pneumaticcraft.json:accessors.MobAccess,pl:mixin:APP:ars_nouveau.mixins.json:jar.MobAccessorMixin,pl:mixin:APP:aether.mixins.json:common.MobMixin,pl:mixin:APP:naturalist-common.mixins.json:MobMixin,pl:mixin:APP:mixins.letmedespawn.json:MobMixin,pl:mixin:APP:moonlight-common.mixins.json:EntityMixin,pl:mixin:A}
ftb-atm9-mc-1    |      at net.minecraft.world.entity.monster.Monster.m_8107_(Monster.java:42) ~[server-1.20.1-20230612.114412-srg.jar%23881!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:tombstone.mixins.json:MonsterMixin,pl:mixin:APP:naturalist-common.mixins.json:MonsterMixin,pl:mixin:A}
ftb-atm9-mc-1    |      at net.minecraft.world.entity.monster.AbstractSkeleton.m_8107_(AbstractSkeleton.java:116) ~[server-1.20.1-20230612.114412-srg.jar%23881!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:supplementaries-common.mixins.json:AbstractSkeletonMixin,pl:mixin:A}
ftb-atm9-mc-1    |      at net.minecraft.world.entity.LivingEntity.m_8119_(LivingEntity.java:2298) ~[server-1.20.1-20230612.114412-srg.jar%23881!/:?] {re:mixin,pl:accesstransformer:B,xf:fml:voidscape:attributes,re:classloading,pl:accesstransformer:B,xf:fml:voidscape:attributes,pl:mixin:APP:kubejs-common.mixins.json:LivingEntityMixin,pl:mixin:APP:ad_astra_giselle_addon.mixin.common.json:minecraft.LivingEntityMixin,pl:mixin:APP:apotheosis.mixins.json:LivingEntityInvoker,pl:mixin:APP:apotheosis.mixins.json:LivingEntityMixin,pl:mixin:APP:apotheosis.mixins.json:MHFMixinLivingEntity,pl:mixin:APP:supplementaries-common.mixins.json:LivingEntityMixin,pl:mixin:APP:botania_xplat.mixins.json:LivingEntityAccessor,pl:mixin:APP:attributeslib.mixins.json:LivingEntityMixin,pl:mixin:APP:tombstone.mixins.json:LivingEntityMixin,pl:mixin:APP:caelus.mixins.json:MixinLivingEntity,pl:mixin:APP:mixins.cofhcore.json:LivingEntityMixin,pl:mixin:APP:ad_astra-common.mixins.json:LivingEntityMixin,pl:mixin:APP:ad_astra-common.mixins.json:gravity.LivingEntityGravityMixin,pl:mixin:APP:bookshelf.common.mixins.json:accessors.entity.AccessorLivingEntity,pl:mixin:APP:bookshelf.common.mixins.json:patches.entity.MixinLivingEntity,pl:mixin:APP:mixins.shetiphiancore.json:SPC_ThinBlockHandler$_LivingEntity,pl:mixin:APP:citadel.mixins.json:LivingEntityMixin,pl:mixin:APP:cataclysm.mixins.json:LivingEntityMixin,pl:mixin:APP:caupona.mixins.json:LivingEntityMixin,pl:mixin:APP:mixins.artifacts.common.json:item.hurtsound.LivingEntityMixin,pl:mixin:APP:endermanoverhaul-common.mixins.json:common.LivingEntityMixin,pl:mixin:APP:mixins.enderio.json:LivingEntityMixin,pl:mixin:APP:mixins.irons_spellbooks.json:LivingEntityMixin,pl:mixin:APP:enhancedcelestials.mixins.json:MixinLivingEntity,pl:mixin:APP:charmofundying.mixins.json:MixinLivingEntity,pl:mixin:APP:lost_aether_content.mixins.json:LivingEntityMixin,pl:mixin:APP:curios.mixins.json:MixinLivingEntity,pl:mixin:APP:mixins.pneumaticcraft.json:coremods.LivingEntityMixin,pl:mixin:APP:ars_nouveau.mixins.json:elytra.MixinLivingEntity,pl:mixin:APP:ars_nouveau.mixins.json:perks.PerkLivingEntity,pl:mixin:APP:ars_nouveau.mixins.json:LivingAccessor,pl:mixin:APP:blue_skies.mixins.json:LivingEntityMixin,pl:mixin:APP:netherportalfix.mixins.json:LivingEntityAccessor,pl:mixin:APP:eidolon.mixins.json:LivingEntityMixin,pl:mixin:APP:aether.mixins.json:common.LivingEntityMixin,pl:mixin:APP:aether.mixins.json:common.accessor.LivingEntityAccessor,pl:mixin:APP:voidtotem.mixins.json:LivingEntityMixin,pl:mixin:APP:betterdeserttemples.mixins.json:PharaohKilledMixin,pl:mixin:APP:expandability.mixins.json:swimming.LivingEntityMixin,pl:mixin:APP:expandability-common.mixins.json:swimming.LivingEntityMixin,pl:mixin:APP:create.mixins.json:CustomItemUseEffectsMixin,pl:mixin:APP:create.mixins.json:LavaSwimmingMixin,pl:mixin:APP:create.mixins.json:accessor.LivingEntityAccessor,pl:mixin:A}
ftb-atm9-mc-1    |      at net.minecraft.world.entity.Mob.m_8119_(Mob.java:337) ~[server-1.20.1-20230612.114412-srg.jar%23881!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:botania_xplat.mixins.json:MobAccessor,pl:mixin:APP:tombstone.mixins.json:MobMixin,pl:mixin:APP:ad_astra-common.mixins.json:MobMixin,pl:mixin:APP:bookshelf.common.mixins.json:accessors.entity.AccessorMob,pl:mixin:APP:mixins.artifacts.common.json:accessors.MobAccessor,pl:mixin:APP:mixins.pneumaticcraft.json:accessors.MobAccess,pl:mixin:APP:ars_nouveau.mixins.json:jar.MobAccessorMixin,pl:mixin:APP:aether.mixins.json:common.MobMixin,pl:mixin:APP:naturalist-common.mixins.json:MobMixin,pl:mixin:APP:mixins.letmedespawn.json:MobMixin,pl:mixin:APP:moonlight-common.mixins.json:EntityMixin,pl:mixin:A}
ftb-atm9-mc-1    |      at net.minecraft.server.level.ServerLevel.track(ServerLevel.java:6669) ~[server-1.20.1-20230612.114412-srg.jar%23881!/:?] {re:mixin,pl:accesstransformer:B,xf:fml:libx:level_load,re:classloading,pl:accesstransformer:B,xf:fml:libx:level_load,pl:mixin:APP:cupboard.mixins.json:ServerAddEntityMixin,pl:mixin:APP:betterendisland.mixins.json:ServerLevelMixin,pl:mixin:APP:kubejs-common.mixins.json:ServerLevelMixin,pl:mixin:APP:modernfix-common.mixins.json:bugfix.chunk_deadlock.ServerLevelMixin,pl:mixin:APP:modernfix-common.mixins.json:perf.cache_strongholds.ServerLevelMixin,pl:mixin:APP:supplementaries-common.mixins.json:ServerLevelMixin,pl:mixin:APP:botania_xplat.mixins.json:ServerLevelMixin,pl:mixin:APP:corgilib.mixins.json:MixinServerLevel,pl:mixin:APP:ad_astra-common.mixins.json:ServerLevelMixin,pl:mixin:APP:citadel.mixins.json:ServerLevelMixin,pl:mixin:APP:observable.common.json:ServerLevelMixin,pl:mixin:APP:ars_elemental.mixins.json:ServerLevelMixin,pl:mixin:APP:enhancedcelestials.mixins.json:MixinServerWorld,pl:mixin:APP:immersiveengineering.mixins.json:coremods.ServerWorldMixin,pl:mixin:APP:hyperbox.mixins.json:ServerLevelMixin,pl:mixin:APP:aether.mixins.json:common.accessor.ServerLevelAccessor,pl:mixin:APP:betterdeserttemples.mixins.json:ServerLevelMixin,pl:mixin:APP:create.mixins.json:accessor.ServerLevelAccessor,pl:mixin:APP:betterendisland.mixins.json:EndergeticExpansionMixins,pl:mixin:A}
ftb-atm9-mc-1    |      at net.minecraft.server.level.ServerLevel.redirect$bhj000$onTickNonPassenger(ServerLevel.java:6685) ~[server-1.20.1-20230612.114412-srg.jar%23881!/:?] {re:mixin,pl:accesstransformer:B,xf:fml:libx:level_load,re:classloading,pl:accesstransformer:B,xf:fml:libx:level_load,pl:mixin:APP:cupboard.mixins.json:ServerAddEntityMixin,pl:mixin:APP:betterendisland.mixins.json:ServerLevelMixin,pl:mixin:APP:kubejs-common.mixins.json:ServerLevelMixin,pl:mixin:APP:modernfix-common.mixins.json:bugfix.chunk_deadlock.ServerLevelMixin,pl:mixin:APP:modernfix-common.mixins.json:perf.cache_strongholds.ServerLevelMixin,pl:mixin:APP:supplementaries-common.mixins.json:ServerLevelMixin,pl:mixin:APP:botania_xplat.mixins.json:ServerLevelMixin,pl:mixin:APP:corgilib.mixins.json:MixinServerLevel,pl:mixin:APP:ad_astra-common.mixins.json:ServerLevelMixin,pl:mixin:APP:citadel.mixins.json:ServerLevelMixin,pl:mixin:APP:observable.common.json:ServerLevelMixin,pl:mixin:APP:ars_elemental.mixins.json:ServerLevelMixin,pl:mixin:APP:enhancedcelestials.mixins.json:MixinServerWorld,pl:mixin:APP:immersiveengineering.mixins.json:coremods.ServerWorldMixin,pl:mixin:APP:hyperbox.mixins.json:ServerLevelMixin,pl:mixin:APP:aether.mixins.json:common.accessor.ServerLevelAccessor,pl:mixin:APP:betterdeserttemples.mixins.json:ServerLevelMixin,pl:mixin:APP:create.mixins.json:accessor.ServerLevelAccessor,pl:mixin:APP:betterendisland.mixins.json:EndergeticExpansionMixins,pl:mixin:A}
ftb-atm9-mc-1    |      at net.minecraft.server.level.ServerLevel.m_8647_(ServerLevel.java:693) ~[server-1.20.1-20230612.114412-srg.jar%23881!/:?] {re:mixin,pl:accesstransformer:B,xf:fml:libx:level_load,re:classloading,pl:accesstransformer:B,xf:fml:libx:level_load,pl:mixin:APP:cupboard.mixins.json:ServerAddEntityMixin,pl:mixin:APP:betterendisland.mixins.json:ServerLevelMixin,pl:mixin:APP:kubejs-common.mixins.json:ServerLevelMixin,pl:mixin:APP:modernfix-common.mixins.json:bugfix.chunk_deadlock.ServerLevelMixin,pl:mixin:APP:modernfix-common.mixins.json:perf.cache_strongholds.ServerLevelMixin,pl:mixin:APP:supplementaries-common.mixins.json:ServerLevelMixin,pl:mixin:APP:botania_xplat.mixins.json:ServerLevelMixin,pl:mixin:APP:corgilib.mixins.json:MixinServerLevel,pl:mixin:APP:ad_astra-common.mixins.json:ServerLevelMixin,pl:mixin:APP:citadel.mixins.json:ServerLevelMixin,pl:mixin:APP:observable.common.json:ServerLevelMixin,pl:mixin:APP:ars_elemental.mixins.json:ServerLevelMixin,pl:mixin:APP:enhancedcelestials.mixins.json:MixinServerWorld,pl:mixin:APP:immersiveengineering.mixins.json:coremods.ServerWorldMixin,pl:mixin:APP:hyperbox.mixins.json:ServerLevelMixin,pl:mixin:APP:aether.mixins.json:common.accessor.ServerLevelAccessor,pl:mixin:APP:betterdeserttemples.mixins.json:ServerLevelMixin,pl:mixin:APP:create.mixins.json:accessor.ServerLevelAccessor,pl:mixin:APP:betterendisland.mixins.json:EndergeticExpansionMixins,pl:mixin:A}
ftb-atm9-mc-1    |      at net.minecraft.world.level.Level.m_46653_(Level.java:479) ~[server-1.20.1-20230612.114412-srg.jar%23881!/:?] {re:mixin,pl:accesstransformer:B,xf:fml:twilightforest:cloud,re:computing_frames,pl:accesstransformer:B,xf:fml:twilightforest:cloud,re:classloading,pl:accesstransformer:B,xf:fml:twilightforest:cloud,pl:mixin:APP:kubejs-common.mixins.json:LevelMixin,pl:mixin:APP:create_new_age.mixins.json:LevelMixin,pl:mixin:APP:botania_xplat.mixins.json:LevelAccessor,pl:mixin:APP:utilitix.mixins.json:MixinLevel,pl:mixin:APP:citadel.mixins.json:LevelMixin,pl:mixin:APP:observable.common.json:LevelMixin,pl:mixin:APP:gtceu-common.mixins.json:LevelMixin,pl:mixin:APP:enhancedcelestials.mixins.json:MixinWorld,pl:mixin:APP:sliceanddice.mixins.json:LevelMixin,pl:mixin:APP:aether.mixins.json:common.accessor.LevelAccessor,pl:mixin:A}
ftb-atm9-mc-1    |      at net.minecraft.server.level.ServerLevel.m_184063_(ServerLevel.java:343) ~[server-1.20.1-20230612.114412-srg.jar%23881!/:?] {re:mixin,pl:accesstransformer:B,xf:fml:libx:level_load,re:classloading,pl:accesstransformer:B,xf:fml:libx:level_load,pl:mixin:APP:cupboard.mixins.json:ServerAddEntityMixin,pl:mixin:APP:betterendisland.mixins.json:ServerLevelMixin,pl:mixin:APP:kubejs-common.mixins.json:ServerLevelMixin,pl:mixin:APP:modernfix-common.mixins.json:bugfix.chunk_deadlock.ServerLevelMixin,pl:mixin:APP:modernfix-common.mixins.json:perf.cache_strongholds.ServerLevelMixin,pl:mixin:APP:supplementaries-common.mixins.json:ServerLevelMixin,pl:mixin:APP:botania_xplat.mixins.json:ServerLevelMixin,pl:mixin:APP:corgilib.mixins.json:MixinServerLevel,pl:mixin:APP:ad_astra-common.mixins.json:ServerLevelMixin,pl:mixin:APP:citadel.mixins.json:ServerLevelMixin,pl:mixin:APP:observable.common.json:ServerLevelMixin,pl:mixin:APP:ars_elemental.mixins.json:ServerLevelMixin,pl:mixin:APP:enhancedcelestials.mixins.json:MixinServerWorld,pl:mixin:APP:immersiveengineering.mixins.json:coremods.ServerWorldMixin,pl:mixin:APP:hyperbox.mixins.json:ServerLevelMixin,pl:mixin:APP:aether.mixins.json:common.accessor.ServerLevelAccessor,pl:mixin:APP:betterdeserttemples.mixins.json:ServerLevelMixin,pl:mixin:APP:create.mixins.json:accessor.ServerLevelAccessor,pl:mixin:APP:betterendisland.mixins.json:EndergeticExpansionMixins,pl:mixin:A}
ftb-atm9-mc-1    |      at net.minecraft.world.level.entity.EntityTickList.m_156910_(EntityTickList.java:54) ~[server-1.20.1-20230612.114412-srg.jar%23881!/:?] {re:classloading}
ftb-atm9-mc-1    |      at net.minecraft.server.level.ServerLevel.m_8793_(ServerLevel.java:323) ~[server-1.20.1-20230612.114412-srg.jar%23881!/:?] {re:mixin,pl:accesstransformer:B,xf:fml:libx:level_load,re:classloading,pl:accesstransformer:B,xf:fml:libx:level_load,pl:mixin:APP:cupboard.mixins.json:ServerAddEntityMixin,pl:mixin:APP:betterendisland.mixins.json:ServerLevelMixin,pl:mixin:APP:kubejs-common.mixins.json:ServerLevelMixin,pl:mixin:APP:modernfix-common.mixins.json:bugfix.chunk_deadlock.ServerLevelMixin,pl:mixin:APP:modernfix-common.mixins.json:perf.cache_strongholds.ServerLevelMixin,pl:mixin:APP:supplementaries-common.mixins.json:ServerLevelMixin,pl:mixin:APP:botania_xplat.mixins.json:ServerLevelMixin,pl:mixin:APP:corgilib.mixins.json:MixinServerLevel,pl:mixin:APP:ad_astra-common.mixins.json:ServerLevelMixin,pl:mixin:APP:citadel.mixins.json:ServerLevelMixin,pl:mixin:APP:observable.common.json:ServerLevelMixin,pl:mixin:APP:ars_elemental.mixins.json:ServerLevelMixin,pl:mixin:APP:enhancedcelestials.mixins.json:MixinServerWorld,pl:mixin:APP:immersiveengineering.mixins.json:coremods.ServerWorldMixin,pl:mixin:APP:hyperbox.mixins.json:ServerLevelMixin,pl:mixin:APP:aether.mixins.json:common.accessor.ServerLevelAccessor,pl:mixin:APP:betterdeserttemples.mixins.json:ServerLevelMixin,pl:mixin:APP:create.mixins.json:accessor.ServerLevelAccessor,pl:mixin:APP:betterendisland.mixins.json:EndergeticExpansionMixins,pl:mixin:A}
ftb-atm9-mc-1    |      at net.minecraft.server.MinecraftServer.m_5703_(MinecraftServer.java:893) ~[server-1.20.1-20230612.114412-srg.jar%23881!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:kubejs-common.mixins.json:MinecraftServerMixin,pl:mixin:APP:kubejs-common.mixins.json:inject_resources.MinecraftServerMixin,pl:mixin:APP:modernfix-common.mixins.json:perf.dedicated_reload_executor.MinecraftServerMixin,pl:mixin:APP:ae2.mixins.json:spatial.MinecraftServerMixin,pl:mixin:APP:citadel.mixins.json:MinecraftServerMixin,pl:mixin:APP:gtceu-common.mixins.json:MinecraftServerMixin,pl:mixin:APP:balm.mixins.json:MinecraftServerMixin,pl:mixin:APP:dankstorage.mixins.json:MinecraftServerAccess,pl:mixin:A}
ftb-atm9-mc-1    |      ... 5 more

This is causing the server to crash any time someone loads into the dimension the skeleton is in.

Edit: Deleting the dimension didn't help. It's still crashing when the person in question that was fighting the mob logs in.
Edit2: Logging into other dimensions wasn't an issue, so I logged in first and teleported the person in question out of the dimension the moment I saw their name appear as online. Then they were able to re-enter the dimension away from where the mob is located. And for now we're just staying away from that area. until there's a fix.

@shBLOCK
Copy link

shBLOCK commented Jan 16, 2024

@ImVexed
This isn't the same though, the original problem was caused by the set DistanceManager.chunksToUpdateFutures being accessed concurrently.
I added this one to my fixer mod, try adding it. (Remember to backup your world, just in case.)
atm9_fixes-1.0.zip (decompress to get the jar)

@ImVexed
Copy link

ImVexed commented Jan 16, 2024

@shBLOCK is the source available for these fixes somewhere? I try to make it a habit to not download pre-compiled binaries.

@shBLOCK
Copy link

shBLOCK commented Jan 16, 2024

@ImVexed Yes, that is a good habit.
A github repo would be overkill though, so here you go!
ATM9Fixes.zip

@ImVexed
Copy link

ImVexed commented Jan 17, 2024

@shBLOCK appreciate it, haven't had any crashes yet doing the same activity anymore.

@glektarssza
Copy link

I'm facing the same problem. Can't figure out exactly which mod is causing this. So I quickly made a simple mod that just replaces the problematic HashSet with a ConcurrentHashSet instead whenever a ServerLevel is loaded. This solved the problem for me, and doesn't seem to cause any other problems. Until the actual cause is figured out, this can be a temporary solution. (Decompress the zip to get the jar, github doesn't support uploading jar directly) distancemanager_concurrent_fix-1.0.zip

Can confirm that this fix worked for me. I was starting to see this on the latest version (at time of writing, 0.2.51) on my dedicated server whenever a player logged in.

@Carlton-Perkins
Copy link

Going to bump this issue, appears the fix provided works!

Thanks for that @shBLOCK!

Going to leave my logs here in case that helps someone find the underlying issue:
Discord reference: https://discord.com/channels/254530689225981953/1202017477874155580/1213328825656680549

Last server logs: https://mclo.gs/857DZaN
Watchdog error crash log: https://mclo.gs/zMdLthH
Exception ticking world java.util.ConcurrentModificationException: null : https://mclo.gs/AZmrRXC

@abanobna11
Copy link

I'm facing the same problem. Can't figure out exactly which mod is causing this. So I quickly made a simple mod that just replaces the problematic HashSet with a ConcurrentHashSet instead whenever a ServerLevel is loaded. This solved the problem for me, and doesn't seem to cause any other problems. Until the actual cause is figured out, this can be a temporary solution. (Decompress the zip to get the jar, github doesn't support uploading jar directly) distancemanager_concurrent_fix-1.0.zip

Pretty weird bug...

Thank you so much @shBLOCK! This seems to have resolved the issue for me as well.

@lightnessking
Copy link

Going to bump this issue, appears the fix provided works!

Thanks for that @shBLOCK!

Going to leave my logs here in case that helps someone find the underlying issue: Discord reference: https://discord.com/channels/254530689225981953/1202017477874155580/1213328825656680549

Last server logs: https://mclo.gs/857DZaN Watchdog error crash log: https://mclo.gs/zMdLthH Exception ticking world java.util.ConcurrentModificationException: null : https://mclo.gs/AZmrRXC

How does one install it on a dedicated server, does every player need to install the jar?

@Carlton-Perkins
Copy link

How does one install it on a dedicated server, does every player need to install the jar?

Just the server needs it, copy the .jar file into the mods folder on the server.

@lightnessking
Copy link

Thanks for the quick reply, will try :)

@KingKottlewing
Copy link

I'm facing the same problem. Can't figure out exactly which mod is causing this. So I quickly made a simple mod that just replaces the problematic HashSet with a ConcurrentHashSet instead whenever a ServerLevel is loaded. This solved the problem for me, and doesn't seem to cause any other problems. Until the actual cause is figured out, this can be a temporary solution. (Decompress the zip to get the jar, github doesn't support uploading jar directly) distancemanager_concurrent_fix-1.0.zip

Hi, I'm not sure if I can ask here, but I'm having the exact same issue on 1.18.2, is there any way I could get this fix for that version?

@glektarssza
Copy link

I'm facing the same problem. Can't figure out exactly which mod is causing this. So I quickly made a simple mod that just replaces the problematic HashSet with a ConcurrentHashSet instead whenever a ServerLevel is loaded. This solved the problem for me, and doesn't seem to cause any other problems. Until the actual cause is figured out, this can be a temporary solution. (Decompress the zip to get the jar, github doesn't support uploading jar directly) distancemanager_concurrent_fix-1.0.zip

Hi, I'm not sure if I can ask here, but I'm having the exact same issue on 1.18.2, is there any way I could get this fix for that version?

You can give the following a try. I've just taken the files provided by @shBLOCK and recompiled them for 1.18.2.

Built JAR: atm9_fixes-1.18.2-1.0.zip
Source: ATM9Fixes.zip

No guarantees but I think this will work.

@KingKottlewing
Copy link

I'm facing the same problem. Can't figure out exactly which mod is causing this. So I quickly made a simple mod that just replaces the problematic HashSet with a ConcurrentHashSet instead whenever a ServerLevel is loaded. This solved the problem for me, and doesn't seem to cause any other problems. Until the actual cause is figured out, this can be a temporary solution. (Decompress the zip to get the jar, github doesn't support uploading jar directly) distancemanager_concurrent_fix-1.0.zip

Hi, I'm not sure if I can ask here, but I'm having the exact same issue on 1.18.2, is there any way I could get this fix for that version?

You can give the following a try. I've just taken the files provided by @shBLOCK and recompiled them for 1.18.2.

Built JAR: atm9_fixes-1.18.2-1.0.zip Source: ATM9Fixes.zip

No guarantees but I think this will work.

Thank you so much! The mod seems to load properly, I'll let you know if it works :)

@glektarssza
Copy link

I'm facing the same problem. Can't figure out exactly which mod is causing this. So I quickly made a simple mod that just replaces the problematic HashSet with a ConcurrentHashSet instead whenever a ServerLevel is loaded. This solved the problem for me, and doesn't seem to cause any other problems. Until the actual cause is figured out, this can be a temporary solution. (Decompress the zip to get the jar, github doesn't support uploading jar directly) distancemanager_concurrent_fix-1.0.zip

Hi, I'm not sure if I can ask here, but I'm having the exact same issue on 1.18.2, is there any way I could get this fix for that version?

You can give the following a try. I've just taken the files provided by @shBLOCK and recompiled them for 1.18.2.
Built JAR: atm9_fixes-1.18.2-1.0.zip Source: ATM9Fixes.zip
No guarantees but I think this will work.

Thank you so much! The mod seems to load properly, I'll let you know if it works :)

Yeah, definitely let me know. If it works I might create a repository, with @shBLOCK's permission, to hold the code for the various different versions of this patch. Especially since this seems to be a greater issue than just with ATM9.

@KingKottlewing
Copy link

I'm facing the same problem. Can't figure out exactly which mod is causing this. So I quickly made a simple mod that just replaces the problematic HashSet with a ConcurrentHashSet instead whenever a ServerLevel is loaded. This solved the problem for me, and doesn't seem to cause any other problems. Until the actual cause is figured out, this can be a temporary solution. (Decompress the zip to get the jar, github doesn't support uploading jar directly) distancemanager_concurrent_fix-1.0.zip

Hi, I'm not sure if I can ask here, but I'm having the exact same issue on 1.18.2, is there any way I could get this fix for that version?

You can give the following a try. I've just taken the files provided by @shBLOCK and recompiled them for 1.18.2.
Built JAR: atm9_fixes-1.18.2-1.0.zip Source: ATM9Fixes.zip
No guarantees but I think this will work.

Thank you so much! The mod seems to load properly, I'll let you know if it works :)

Yeah, definitely let me know. If it works I might create a repository, with @shBLOCK's permission, to hold the code for the various different versions of this patch. Especially since this seems to be a greater issue than just with ATM9.

Yup, it works great, thank you again! :)

@shBLOCK
Copy link

shBLOCK commented Apr 19, 2024

I'm facing the same problem. Can't figure out exactly which mod is causing this. So I quickly made a simple mod that just replaces the problematic HashSet with a ConcurrentHashSet instead whenever a ServerLevel is loaded. This solved the problem for me, and doesn't seem to cause any other problems. Until the actual cause is figured out, this can be a temporary solution. (Decompress the zip to get the jar, github doesn't support uploading jar directly) distancemanager_concurrent_fix-1.0.zip

Hi, I'm not sure if I can ask here, but I'm having the exact same issue on 1.18.2, is there any way I could get this fix for that version?

You can give the following a try. I've just taken the files provided by @shBLOCK and recompiled them for 1.18.2.
Built JAR: atm9_fixes-1.18.2-1.0.zip Source: ATM9Fixes.zip
No guarantees but I think this will work.

Thank you so much! The mod seems to load properly, I'll let you know if it works :)

Yeah, definitely let me know. If it works I might create a repository, with @shBLOCK's permission, to hold the code for the various different versions of this patch. Especially since this seems to be a greater issue than just with ATM9.

Yes, I do approve that.
I've been busy with school stuff recently so I might not be consistent at maintaining things. It's definitely a good idea to let someone else maintain this since it looks like the fix has been very useful.
Very much appreciated that this simple fix has helped so many people :)

@glektarssza
Copy link

Repository is up at https://github.com/glektarssza/minecraft-distance-manager-concurrent-fix. Currently in the process of setting up builds for 1.18.x but the 1.20.x branch should be live. I'll upload to Modrinth and CurseForge later today.

@TheBedrockMaster TheBedrockMaster added the Crash Game Crash label Oct 3, 2024
@Enterprise12nx01
Copy link

Repository is up at https://github.com/glektarssza/minecraft-distance-manager-concurrent-fix. Currently in the process of setting up builds for 1.18.x but the 1.20.x branch should be live. I'll upload to Modrinth and CurseForge later today.

the repository is gone, im having this issue in my own modpack in the end, can this be ported to 1.19.2? same exact error and crash on loading a chunk, even after deleting the dim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Crash Game Crash
Projects
None yet
Development

No branches or pull requests