Skip to content

[Bug] AEA Crashing on World Load with Lithium #60

Open

Description

@Spookipup

I set up a list on 26.1.1 with Lithium, Sodium, Fabric API, and AEA. Game launches fine but when I go to load into a world, even one created beforehand, it immediately crashes from an entity ticking while the world is loading. This happens on both 0.24.2 and 0.23.2 for lithium versions.

The crash is always some form of

[12:05:59] [Server thread/ERROR]: Encountered an unexpected exception
net.minecraft.ReportedException: Ticking entity
	at knot//net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1142)
	at knot//net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1002)
	at knot//net.minecraft.client.server.IntegratedServer.tickServer(IntegratedServer.java:135)
	at knot//net.minecraft.server.MinecraftServer.processPacketsAndTick(MinecraftServer.java:1035)
	at knot//net.minecraft.client.server.IntegratedServer.processPacketsAndTick(IntegratedServer.java:103)
	at knot//net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:774)
	at knot//net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:321)
	at java.base/java.lang.Thread.run(Thread.java:1474)
Caused by: java.lang.NullPointerException: Cannot invoke "it.unimi.dsi.fastutil.objects.ReferenceArrayList.get(int)" because "this.wrapped" is null
	at knot//it.unimi.dsi.fastutil.objects.ReferenceOpenHashSet$SetIterator.next(ReferenceOpenHashSet.java:522)
	at knot//net.minecraft.world.entity.LivingEntity.refreshDirtyAttributes(LivingEntity.java:1172)
	at knot//net.minecraft.world.entity.LivingEntity.tick(LivingEntity.java:2936)
	at knot//net.minecraft.world.entity.Mob.tick(Mob.java:373)
	at knot//net.minecraft.world.entity.ambient.Bat.tick(Bat.java:132)
	at knot//net.minecraft.server.level.ServerLevel.tickNonPassenger(ServerLevel.java:838)
	at knot//net.minecraft.world.level.Level.guardEntityTick(Level.java:488)
	at knot//net.minecraft.server.level.ServerLevel.lambda$tick$0(ServerLevel.java:433)
	at knot//net.minecraft.world.level.entity.EntityTickList.forEach(EntityTickList.java:53)
	at knot//net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:403)
	at knot//net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1138)
	... 7 more
[12:05:59] [Server thread/ERROR]: This crash report has been saved to: C:\Users\thebo\AppData\Roaming\PrismLauncher\instances\26.1.1\minecraft\crash-reports\crash-2026-04-30_12.05.59-server.txt
[12:05:59] [Server thread/INFO]: Stopping server
[12:05:59] [Server thread/INFO]: Saving players
[12:05:59] [Render thread/ERROR]: Reported exception thrown!
net.minecraft.ReportedException: Ticking entity
	at knot//net.minecraft.util.thread.BlockableEventLoop.throwDelayedException(BlockableEventLoop.java:203)
	at knot//net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:137)
	at knot//net.minecraft.util.thread.BlockableEventLoop.runAllTasks(BlockableEventLoop.java:127)
	at knot//net.minecraft.client.Minecraft.runTick(Minecraft.java:1345)
	at knot//net.minecraft.client.Minecraft.run(Minecraft.java:991)
	at knot//net.minecraft.client.main.Main.main(Main.java:248)
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:514)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:72)
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
	at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:115)
	at org.prismlauncher.EntryPoint.listen(EntryPoint.java:129)
	at org.prismlauncher.EntryPoint.main(EntryPoint.java:70)
Caused by: java.lang.NullPointerException: Cannot invoke "it.unimi.dsi.fastutil.objects.ReferenceArrayList.get(int)" because "this.wrapped" is null
	at knot//it.unimi.dsi.fastutil.objects.ReferenceOpenHashSet$SetIterator.next(ReferenceOpenHashSet.java:522)
	at knot//net.minecraft.world.entity.LivingEntity.refreshDirtyAttributes(LivingEntity.java:1172)
	at knot//net.minecraft.world.entity.LivingEntity.tick(LivingEntity.java:2936)
	at knot//net.minecraft.world.entity.Mob.tick(Mob.java:373)
	at knot//net.minecraft.world.entity.ambient.Bat.tick(Bat.java:132)
	at knot//net.minecraft.server.level.ServerLevel.tickNonPassenger(ServerLevel.java:838)
	at knot//net.minecraft.world.level.Level.guardEntityTick(Level.java:488)
	at knot//net.minecraft.server.level.ServerLevel.lambda$tick$0(ServerLevel.java:433)
	at knot//net.minecraft.world.level.entity.EntityTickList.forEach(EntityTickList.java:53)
	at knot//net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:403)
	at knot//net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1138)
	at knot//net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1002)
	at knot//net.minecraft.client.server.IntegratedServer.tickServer(IntegratedServer.java:135)
	at knot//net.minecraft.server.MinecraftServer.processPacketsAndTick(MinecraftServer.java:1035)
	at knot//net.minecraft.client.server.IntegratedServer.processPacketsAndTick(IntegratedServer.java:103)
	at knot//net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:774)
	at knot//net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:321)
	at java.base/java.lang.Thread.run(Thread.java:1474)

This can occur with any mob, and seems to happen with any mob that AEA is trying to immediately apply to. I've gotten the same errors that point to bats, skeletons, creepers, and other living entities ticking.

Activity

  1. added
    bug
    on Jul 10, 2026
  2. Noaaan commented on Nov 14, 2026

    @Noaaan
    Collaborator

    Can confirm this issue. Still happens with Lithium 0.24.7.
    Only noteable source I can find for this issue is the fact that Lithium swaps out the attribute maps in vanilla with a Reference Hash Set instead of Object Hash Set, as seen in this mixin: https://github.com/CaffeineMC/lithium/blob/2f3cbe1b42c4cbe4813afee8ed837ae7f54b7ac2/common/src/main/java/net/caffeinemc/mods/lithium/mixin/collections/attributes/AttributeMapMixin.java#L18
    Adding this mixin alone to an environment with AEA reproduces this crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions