FastAsyncWorldEdit

FastAsyncWorldEdit

152k Downloads

Removing beacon, causes an error in the console

EpicPlayerA10 opened this issue ยท 3 comments

commented

Server Implementation

Paper

Server Version

1.19.4

Describe the bug

When I try to remove beacon using FAWE then server throws this error:

[11:16:32] [pool-59-thread-4/WARN]: java.lang.IllegalArgumentException: Can not set final net.minecraft.core.BlockPosition field net.minecraft.world.level.block.entity.TileEntity.p to java.lang.Boolean
[11:16:32] [pool-59-thread-4/WARN]: 	at java.base/jdk.internal.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167)
[11:16:32] [pool-59-thread-4/WARN]: 	at java.base/jdk.internal.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171)
[11:16:32] [pool-59-thread-4/WARN]: 	at java.base/jdk.internal.reflect.UnsafeQualifiedObjectFieldAccessorImpl.set(UnsafeQualifiedObjectFieldAccessorImpl.java:83)
[11:16:32] [pool-59-thread-4/WARN]: 	at java.base/java.lang.reflect.Field.set(Field.java:799)
[11:16:32] [pool-59-thread-4/WARN]: 	at FastAsyncWorldEdit-Bukkit-2.6.2-SNAPSHOT-448(1).jar//com.sk89q.worldedit.bukkit.adapter.impl.fawe.v1_19_R3.PaperweightPlatformAdapter.removeBeacon(PaperweightPlatformAdapter.java:646)
[11:16:32] [pool-59-thread-4/WARN]: 	at FastAsyncWorldEdit-Bukkit-2.6.2-SNAPSHOT-448(1).jar//com.sk89q.worldedit.bukkit.adapter.impl.fawe.v1_19_R3.PaperweightGetBlocks.call(PaperweightGetBlocks.java:418)
[11:16:32] [pool-59-thread-4/WARN]: 	at FastAsyncWorldEdit-Bukkit-2.6.2-SNAPSHOT-448(1).jar//com.fastasyncworldedit.core.queue.implementation.chunk.ChunkHolder.call(ChunkHolder.java:1076)
[11:16:32] [pool-59-thread-4/WARN]: 	at FastAsyncWorldEdit-Bukkit-2.6.2-SNAPSHOT-448(1).jar//com.fastasyncworldedit.core.queue.implementation.chunk.ChunkHolder.call(ChunkHolder.java:1047)
[11:16:32] [pool-59-thread-4/WARN]: 	at FastAsyncWorldEdit-Bukkit-2.6.2-SNAPSHOT-448(1).jar//com.fastasyncworldedit.core.queue.implementation.chunk.ChunkHolder.call(ChunkHolder.java:33)
[11:16:32] [pool-59-thread-4/WARN]: 	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[11:16:32] [pool-59-thread-4/WARN]: 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[11:16:32] [pool-59-thread-4/WARN]: 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[11:16:32] [pool-59-thread-4/WARN]: 	at java.base/java.lang.Thread.run(Thread.java:833)
[11:16:32] [Server thread/WARN]: Block entity minecraft:beacon @ BlockPosition{x=-408, y=91, z=84} state Block{minecraft:air} invalid for ticking:

To Reproduce

  1. Place beacon
  2. Select the beacon using wand.
  3. Run //set 0

! An error is thrown in the console.

Expected behaviour

It should not throw an error.

Screenshots / Videos

No response

Error log (if applicable)

No response

Fawe Debugpaste

https://athion.net/ISPaster/paste/view/52a0fb4d68cf495497025d7986088a26

Fawe Version

FastAsyncWorldEdit version 2.6.2-SNAPSHOT-448;048dcaf

Checklist

Anything else?

No response

commented

Thats a good point

commented

Ah I know why. FAWE is trying to load all adapters and it is trying to find the best. And when adapter will fail to load then FAWE is printing Throwable stacktrace but not RuntimeException stacktrace.

It seems that NoSuchFieldException is not a RuntimeException.

Question to staff: Is there any reason to print throwable during attempts of loading all adapters?

commented

1.19.2 produces now following issues:

13:16:29] [Server thread/INFO]: Registering commands with com.sk89q.worldedit.bukkit.BukkitServerInterface
[13:16:29] [Server thread/INFO]: WEPIF: Using the Bukkit Permissions API.
[13:16:29] [Server thread/WARN]: java.lang.NoSuchFieldException: q
[13:16:29] [Server thread/WARN]: 	at java.base/java.lang.Class.getDeclaredField(Class.java:2642)
[13:16:29] [Server thread/WARN]: 	at FastAsyncWorldEdit-Bukkit-2.6.2-SNAPSHOT-457.jar//com.sk89q.worldedit.bukkit.adapter.impl.fawe.v1_19_R3.PaperweightPlatformAdapter.<clinit>(PaperweightPlatformAdapter.java:187)
[13:16:29] [Server thread/WARN]: 	at java.base/java.lang.Class.forName0(Native Method)
[13:16:29] [Server thread/WARN]: 	at java.base/java.lang.Class.forName(Class.java:383)
[13:16:29] [Server thread/WARN]: 	at java.base/java.lang.Class.forName(Class.java:376)
[13:16:29] [Server thread/WARN]: 	at FastAsyncWorldEdit-Bukkit-2.6.2-SNAPSHOT-457.jar//com.sk89q.worldedit.bukkit.adapter.BukkitImplLoader.loadAdapter(BukkitImplLoader.java:170)
[13:16:29] [Server thread/WARN]: 	at FastAsyncWorldEdit-Bukkit-2.6.2-SNAPSHOT-457.jar//com.sk89q.worldedit.bukkit.WorldEditPlugin.loadAdapter(WorldEditPlugin.java:369)
[13:16:29] [Server thread/WARN]: 	at FastAsyncWorldEdit-Bukkit-2.6.2-SNAPSHOT-457.jar//com.sk89q.worldedit.bukkit.WorldEditPlugin.setupPreWorldData(WorldEditPlugin.java:240)
[13:16:29] [Server thread/WARN]: 	at FastAsyncWorldEdit-Bukkit-2.6.2-SNAPSHOT-457.jar//com.sk89q.worldedit.bukkit.WorldEditPlugin.onEnable(WorldEditPlugin.java:211)
[13:16:29] [Server thread/WARN]: 	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264)
[13:16:29] [Server thread/WARN]: 	at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370)
[13:16:29] [Server thread/WARN]: 	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:542)
[13:16:29] [Server thread/WARN]: 	at org.bukkit.craftbukkit.v1_19_R1.CraftServer.enablePlugin(CraftServer.java:565)
[13:16:29] [Server thread/WARN]: 	at org.bukkit.craftbukkit.v1_19_R1.CraftServer.enablePlugins(CraftServer.java:479)
[13:16:29] [Server thread/WARN]: 	at net.minecraft.server.dedicated.DedicatedServer.e(DedicatedServer.java:279)
[13:16:29] [Server thread/WARN]: 	at net.minecraft.server.MinecraftServer.v(MinecraftServer.java:1100)
[13:16:29] [Server thread/WARN]: 	at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:305)
[13:16:29] [Server thread/WARN]: 	at java.base/java.lang.Thread.run(Thread.java:833)
[13:16:29] [Server thread/INFO]: Using com.sk89q.worldedit.bukkit.adapter.impl.fawe.v1_19_R1.PaperweightFaweAdapter as the Bukkit adapter
[13:16:29] [Server thread/WARN]: [com.fastasyncworldedit.core.util.UpdateNotification] An update for FastAsyncWorldEdit is available. You are 1 build(s) out of date.
You are running build 457, the latest version is build 458.
Update at https://www.spigotmc.org/resources/13932/

This is just a notice/documentation