BlueMap-Minecraft / BlueMap

A Minecraft mapping tool that creates 3D models of your Minecraft worlds and displays them in a web viewer.
https://bluecolo.red/bluemap
MIT License
1.76k stars 114 forks source link

async update does not work #534

Closed KaBoom13 closed 2 months ago

KaBoom13 commented 2 months ago

What i did / Steps to reproduce

  1. run the server and bluemap on it
  2. execute /bluemap force-update world or bluemap update world
  3. end

Expected result

start update world

Actual result

displays an error:

bluemap force-update world [17:00:01 ERROR]: Thread BlueMap-Plugin-UpdateCommand failed main thread check: world save java.lang.Throwable: null at org.spigotmc.AsyncCatcher.catchOp(AsyncCatcher.java:14) ~[paper-1.20.4.jar:git-Paper-485] at org.bukkit.craftbukkit.v1_20_R3.CraftWorld.save(CraftWorld.java:1316) ~[paper-1.20.4.jar:git-Paper-485] at de.bluecolored.bluemap.bukkit.BukkitWorld.persistWorldChanges(BukkitWorld.java:74) ~[BlueMap-4.1-paper.jar:?] at de.bluecolored.bluemap.common.plugin.Plugin.flushWorldUpdates(Plugin.java:573) ~[BlueMap-4.1-paper.jar:?] at de.bluecolored.bluemap.common.plugin.commands.Commands.lambda$updateCommand$16(Commands.java:742) ~[BlueMap-4.1-paper.jar:?] at java.lang.Thread.run(Thread.java:842) ~[?:?] [17:00:01 WARN]: Exception in thread "BlueMap-Plugin-UpdateCommand" java.lang.IllegalStateException: Asynchronous world save! [17:00:01 WARN]: at org.spigotmc.AsyncCatcher.catchOp(AsyncCatcher.java:15) [17:00:01 WARN]: at org.bukkit.craftbukkit.v1_20_R3.CraftWorld.save(CraftWorld.java:1316) [17:00:01 WARN]: at BlueMap-4.1-paper.jar//de.bluecolored.bluemap.bukkit.BukkitWorld.persistWorldChanges(BukkitWorld.java:74) [17:00:01 WARN]: at BlueMap-4.1-paper.jar//de.bluecolored.bluemap.common.plugin.Plugin.flushWorldUpdates(Plugin.java:573) [17:00:01 WARN]: at BlueMap-4.1-paper.jar//de.bluecolored.bluemap.common.plugin.commands.Commands.lambda$updateCommand$16(Commands.java:742) [17:00:01 WARN]: at java.base/java.lang.Thread.run(Thread.java:842)

Context

image

TechnicJelle commented 2 months ago

Thanks for reporting this bug!

This is a bug that has already been fixed in a0e91803608050f1014c43a9d27492348c10393d. The fix just hasn't been released yet.

If you accept a potentially unstable experience (even more unstable than snapshots or pre-releases), then you can try using the latest development build of BlueMap:

  1. Make sure you're logged into your GitHub account
  2. Then you can go to this link: https://github.com/BlueMap-Minecraft/BlueMap/actions
  3. Open the newest successful Build workflow run (Click the top one that has a ✅ next to it)
  4. Then scroll down until you see "artifacts"
  5. Download it to get a zip full of BlueMap jars
  6. Extract the one for your platform, and use that instead of the version you're using right now
KaBoom13 commented 2 months ago

okey thanks