Bug Closed · Resolved

All mobs remain stationary on Canvas 26.1.2 — AsyncPathFinder NullPointerException

#10099 opened by adrils._ 4 days ago

adrils._reported this bug

Environment:

  • Canvas 26.1.2 build 876, commit abd7a65
  • MythicMobs Premium 5.14.0-SNAPSHOT-3541adc4
  • ModelEngine R4.2.0

Description: All mobs are affected, not just tiki_shaman_boss. They remain stationary and do not navigate toward players, although attack skills can still execute. The initial debug log repeatedly shows: java.lang.NullPointerException: Cannot read field "pathTypesByPosCache" because the return value of "net.minecraft.server.level.ServerLevel.getCurrentWorldData()" is null Relevant stack frames:

  • ServerLevel.getPathTypeCache
  • PathfindingContext.<init>
  • WalkNodeEvaluator.prepare
  • io.lumine.mythic.core.volatilecode.v26_1.ai.pathfinding.AsyncWalkNodeEvaluator.prepare
  • io.lumine.mythic.core.volatilecode.v26_1.ai.pathfinding.AsyncPathFinder.lambda$findPath$0
  • ThreadPoolExecutor.runWorker

Troubleshooting: For tiki_shaman_boss, NoAI is false and MovementSpeed is 0.25. Debug output confirms that synchronized setAI{ai=true} and setspeed{speed=1;type=WALKING} mechanics execute, but the mob still does not walk. I also tried disabling Configuration.General.AsyncPathfinding.Enabled. The movement issue persists. The latest debug log still contains NullPointerException warnings, but those warnings no longer include stack frames, so I cannot confirm whether they have the same cause. Expected behavior: Mobs should navigate toward players and move normally between attacks. Actual behavior: Mobs remain stationary, although attack skills can execute. This has not yet been isolated on a clean server or reproduced on standard Paper/Folia. Could you investigate whether the asynchronous pathfinder accesses region-local world data from an incompatible thread on Canvas, and confirm whether disabling AsyncPathfinding should bypass this code path?

Sign in to join the discussion.