Cyclic icon indicating copy to clipboard operation
Cyclic copied to clipboard

1.18.2 Artemis Beacon modified logic seems to hang world load with Brutal Bosses installed

Open Raidobw2 opened this issue 3 years ago • 1 comments

Minecraft Version: 1.18.2

Forge Version: 40.1.69

Mod Version: Cyclic 1.7.4+

Single Player or Server: Server


When Cyclic and Brutal Bosses are installed together, the world creation gets stuck between 96 and 98%. I believe the versions of the mods required for that to happen would be:

  • Cyclic 1.7.4+
  • Brutal Bosses 5.4 https://www.curseforge.com/minecraft/mc-mods/brutal-bosses-dungeon/files/3916875

I'm not sure but I think the problem could originate from this commit, though I couldn't precisely understand why https://github.com/Lothrazar/Cyclic/commit/cb49405a75efc9b18d563fca0fc100aa2314c493#diff-87a831f713ac2710a04ac2addcf0fc275b89157a27bd19a5a0a4c67f4729d392

This is the output you get if you run a thread dump with jstack on the hanged process, which leads me to believe something in that commit earlier doesn't play nice with Brutal Bosses, or vice versa. I think Brutal Bosses can spawn with potion effects, they're similar to Apotheosis boss mobs

"Server thread" #99 prio=8 os_prio=1 cpu=3031.25ms elapsed=76.70s tid=0x0000018c3854a380 nid=0x4770 runnable  [0x00000079cf0fd000]
   java.lang.Thread.State: TIMED_WAITING (parking)
        at jdk.internal.misc.Unsafe.park([email protected]/Native Method)
        - parking to wait for  <0x00000006c4200170> (a java.lang.String)
        at java.util.concurrent.locks.LockSupport.parkNanos([email protected]/Unknown Source)
        at net.minecraft.util.thread.BlockableEventLoop.m_5667_([email protected]/BlockableEventLoop.java:152)
        at net.minecraft.util.thread.BlockableEventLoop.m_18701_([email protected]/BlockableEventLoop.java:142)
        at net.minecraft.server.level.ServerChunkCache.m_7587_([email protected]/ServerChunkCache.java:129)
        at net.minecraft.world.level.Level.m_6522_([email protected]/Level.java:169)
        at net.minecraft.world.level.LevelReader.m_46819_([email protected]/LevelReader.java:123)
        at net.minecraft.world.level.Level.m_6325_([email protected]/Level.java:164)
        at net.minecraft.world.level.Level.m_8055_([email protected]/Level.java:390)
        at com.lothrazar.cyclic.util.BlockstatesUtil.findBlocks([email protected]/BlockstatesUtil.java:41)
        at com.lothrazar.cyclic.block.antipotion.BlockAntiBeacon.isPotionApplicable([email protected]/BlockAntiBeacon.java:114)
        at com.lothrazar.cyclic.event.PotionEvents.isPotionApplicable([email protected]/PotionEvents.java:25)
        at net.minecraftforge.eventbus.ASMEventHandler_1672_PotionEvents_isPotionApplicable_PotionApplicableEvent.invoke(.dynamic)
        at net.minecraftforge.eventbus.ASMEventHandler.invoke([email protected]/ASMEventHandler.java:85)
        at net.minecraftforge.eventbus.EventBus$$Lambda$4543/0x0000000801824cf8.invoke([email protected]/Unknown Source)
        at net.minecraftforge.eventbus.EventBus.post([email protected]/EventBus.java:302)
        at net.minecraftforge.eventbus.EventBus.post([email protected]/EventBus.java:283)
        at net.minecraft.world.entity.LivingEntity.m_7301_([email protected]/LivingEntity.java:908)
        at net.minecraft.world.entity.LivingEntity.m_147207_([email protected]/LivingEntity.java:888)
        at net.minecraft.world.entity.LivingEntity.m_7292_([email protected]/LivingEntity.java:884)
        at com.brutalbosses.entity.BossType.initStats([email protected]/BossType.java:189)
        at com.brutalbosses.entity.BossType.initForEntity([email protected]/BossType.java:133)
        at com.brutalbosses.entity.capability.BossCapability.deserializeNBT([email protected]/BossCapability.java:132)
        at net.minecraftforge.common.capabilities.CapabilityDispatcher.deserializeNBT([email protected]/CapabilityDispatcher.java:127)
        at net.minecraftforge.common.capabilities.CapabilityProvider.deserializeCaps([email protected]/CapabilityProvider.java:148)
        at net.minecraft.world.entity.Entity.m_20258_([email protected]/Entity.java:1570)
        at net.minecraft.world.entity.EntityType.m_185988_([email protected]/EntityType.java:472)
        at net.minecraft.world.entity.EntityType$$Lambda$35032/0x000000080479ce10.accept([email protected]/Unknown Source)
        at net.minecraft.Util.m_137521_([email protected]/Util.java:395)
        at net.minecraft.world.entity.EntityType.m_20642_([email protected]/EntityType.java:469)
        at net.minecraft.world.entity.EntityType.m_20669_([email protected]/EntityType.java:552)
        at net.minecraft.world.entity.EntityType.m_20645_([email protected]/EntityType.java:508)
        at net.minecraft.world.entity.EntityType$1.m_147056_([email protected]/EntityType.java:529)
        at net.minecraft.world.entity.EntityType$1$$Lambda$35029/0x000000080479c760.accept([email protected]/Unknown Source)
        at java.util.ArrayList$ArrayListSpliterator.tryAdvance([email protected]/Unknown Source)
        at net.minecraft.world.entity.EntityType$1.tryAdvance([email protected]/EntityType.java:528)
        at java.util.Spliterator.forEachRemaining([email protected]/Unknown Source)
        at java.util.stream.ReferencePipeline$Head.forEach([email protected]/Unknown Source)
        at net.minecraft.world.level.entity.PersistentEntitySectionManager.m_157559_([email protected]/PersistentEntitySectionManager.java:121)
        at net.minecraft.server.level.ServerLevel.m_143327_([email protected]/ServerLevel.java:1507)
        at net.minecraft.server.level.ChunkMap.m_143064_([email protected]/ChunkMap.java:634)
        at net.minecraft.server.level.ChunkMap.m_203035_([email protected]/ChunkMap.java:651)
        at net.minecraft.server.level.ChunkMap$$Lambda$34905/0x000000080476ebe8.m_196866_([email protected]/Unknown Source)
        at net.minecraft.world.level.chunk.LevelChunk.m_62952_([email protected]/LevelChunk.java:417)
        at net.minecraft.server.level.ChunkMap.m_202988_([email protected]/ChunkMap.java:659)
        at net.minecraft.server.level.ChunkMap$$Lambda$34904/0x000000080476e170.apply([email protected]/Unknown Source)
        at com.mojang.datafixers.util.Either.lambda$mapLeft$0([email protected]/Either.java:162)
        at com.mojang.datafixers.util.Either$$Lambda$34659/0x000000080472bbc8.apply([email protected]/Unknown Source)
        at com.mojang.datafixers.util.Either$Left.map([email protected]/Either.java:38)
        at com.mojang.datafixers.util.Either.mapLeft([email protected]/Either.java:162)
        at net.minecraft.server.level.ChunkMap.m_202985_([email protected]/ChunkMap.java:643)
        at net.minecraft.server.level.ChunkMap$$Lambda$34901/0x000000080476daf0.apply([email protected]/Unknown Source)
        at java.util.concurrent.CompletableFuture$UniApply.tryFire([email protected]/Unknown Source)
        at java.util.concurrent.CompletableFuture$Completion.run([email protected]/Unknown Source)
        at net.minecraft.server.level.ChunkTaskPriorityQueueSorter.m_143188_([email protected]/ChunkTaskPriorityQueueSorter.java:62)
        at net.minecraft.server.level.ChunkTaskPriorityQueueSorter$$Lambda$34547/0x000000080470bcb0.run([email protected]/Unknown Source)
        at net.minecraft.util.thread.BlockableEventLoop.m_6367_([email protected]/BlockableEventLoop.java:157)
        at net.minecraft.server.level.ServerChunkCache$MainThreadExecutor.m_6367_([email protected]/ServerChunkCache.java:542)
        at net.minecraft.util.thread.BlockableEventLoop.m_7245_([email protected]/BlockableEventLoop.java:131)
        at net.minecraft.server.level.ServerChunkCache$MainThreadExecutor.m_7245_([email protected]/ServerChunkCache.java:550)
        at net.minecraft.server.level.ServerChunkCache.m_8466_([email protected]/ServerChunkCache.java:266)
        at net.minecraft.server.MinecraftServer.m_129961_([email protected]/MinecraftServer.java:787)
        at net.minecraft.server.MinecraftServer.m_7245_([email protected]/MinecraftServer.java:776)
        at net.minecraft.util.thread.BlockableEventLoop.m_18699_([email protected]/BlockableEventLoop.java:116)
        at net.minecraft.server.MinecraftServer.m_130012_([email protected]/MinecraftServer.java:761)
        at net.minecraft.server.MinecraftServer.m_129940_([email protected]/MinecraftServer.java:475)
        at net.minecraft.server.MinecraftServer.m_130006_([email protected]/MinecraftServer.java:318)
        at net.minecraft.server.dedicated.DedicatedServer.m_7038_([email protected]/DedicatedServer.java:173)
        at net.minecraft.server.MinecraftServer.m_130011_([email protected]/MinecraftServer.java:661)
        at net.minecraft.server.MinecraftServer.m_177918_([email protected]/MinecraftServer.java:261)
        at net.minecraft.server.MinecraftServer$$Lambda$34203/0x0000000804638468.run([email protected]/Unknown Source)
        at java.lang.Thread.run([email protected]/Unknown Source)

The original report of this is at https://github.com/FTBTeam/FTB-Modpack-Issues/issues/1242, though you'll likely find the same info here and there

I'm available anytime if you need me to run more tests or need more information,

Thanks for your time in advance and have a good day!

Raidobw2 avatar Aug 11 '22 05:08 Raidobw2

Seems to happen with Blood Magic's new dungeons with the Pathway to the endless realm, but only if Cyclic and Brutal Bosses are installed too. Versions that time:

  • Cyclic 1.7.6
  • Brutal Bosses 5.4
  • Modpack: FTB Presents Direwolf20 1.18 version 1.9.0 (world gen issue still applies, you won't be able to create a new world with it)

Relayed from https://github.com/FTBTeam/FTB-Modpack-Issues/issues/1237 Game hangs: image

Truncated thread dump to relevant info, similar to earlier https://paste.feed-the-beast.com/view/eb1e3033 Full thread dump in case you need it https://paste.feed-the-beast.com/view/530cf5c7

Raidobw2 avatar Aug 11 '22 06:08 Raidobw2

happens when adding a potion effect during entity creation in worldgen

someaddons avatar Mar 18 '23 13:03 someaddons