Latest version of WorldGuard is not Folia supported.
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
調査の方向性
Start with BukkitRegionContainer.initialize at the reported BukkitRegionContainer.java:107 call to scheduleSyncRepeatingTask, then trace how WorldGuard schedules its repeating task and check Folia's region scheduling APIs. Reproduce startup on Folia or Canvas and identify a compatible scheduling path; done when WorldGuard initializes without the reported unsupported-operation error and its repeating task behaves correctly.
索引モデルが issue の本文から書いたものです。
説明
WorldEdit Version
FAWE (please ignore the checkbox since the issue is not related to FAWE)
WorldGuard Version
WorldGuard (7.0.21+2424-da30a99)
Platform Version
Canvas 26.3-990
Confirmations
- I am using the most recent Minecraft release.
- I am using a version of WorldEdit compatible with my Minecraft version.
- I am using a version of WorldGuard compatible with my Minecraft version.
- I am using the latest or recommended version of my platform software.
- I am NOT using a hybrid server, e.g. a server that combines Bukkit and Forge. Examples include Arclight, Mohist, and Cardboard.
- I am NOT using a fork of WorldEdit, such as FastAsyncWorldEdit (FAWE) or AsyncWorldEdit (AWE)
Bug Description
The latest version of WorldGuard is not supported on Folia/CanvasMC, however on Modrinth it is clearly stated that it is Folia friendly.
WorldGuard is attempting to register a global repeating sync task via the standard Bukkit CraftScheduler.runTaskTimer during initialization (BukkitRegionContainer.initialize), and Folia doesn't support that.
The previous plugin version worked perfectly fine.
[21:39:58 ERROR]: Error occurred while enabling WorldGuard v7.0.21+2424-da30a99 (Is it up to date?)
java.lang.UnsupportedOperationException: Unsupported in region threading
at org.bukkit.craftbukkit.scheduler.CraftScheduler.handle(CraftScheduler.java:517) ~[canvas-26.3.jar:26.3-990-9a31333]
at org.bukkit.craftbukkit.scheduler.CraftScheduler.runTaskTimer(CraftScheduler.java:227) ~[canvas-26.3.jar:26.3-990-9a31333]
at org.bukkit.craftbukkit.scheduler.CraftScheduler.runTaskTimer(CraftScheduler.java:209) ~[canvas-26.3.jar:26.3-990-9a31333]
at org.bukkit.craftbukkit.scheduler.CraftScheduler.scheduleSyncRepeatingTask(CraftScheduler.java:204) ~[canvas-26.3.jar:26.3-990-9a31333]
at worldguard-bukkit-7.0.21.jar//com.sk89q.worldguard.bukkit.BukkitRegionContainer.initialize(BukkitRegionContainer.java:107) ~[?:?]
at worldguard-bukkit-7.0.21.jar//com.sk89q.worldguard.bukkit.BukkitWorldGuardPlatform.load(BukkitWorldGuardPlatform.java:143) ~[?:?]
at worldguard-bukkit-7.0.21.jar//com.sk89q.worldguard.WorldGuard.setup(WorldGuard.java:91) ~[?:?]
at worldguard-bukkit-7.0.21.jar//com.sk89q.worldguard.bukkit.WorldGuardPlugin.onEnable(WorldGuardPlugin.java:158) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:280) ~[canvas-api-26.3.build.990-stable.jar:?]
at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:201) ~[canvas-26.3.jar:26.3-990-9a31333]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[canvas-26.3.jar:26.3-990-9a31333]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:519) ~[canvas-api-26.3.build.944-alpha.jar:?]
at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:626) ~[canvas-26.3.jar:26.3-990-9a31333]
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:583) ~[canvas-26.3.jar:26.3-990-9a31333]
at net.minecraft.server.MinecraftServer.initPostWorld(MinecraftServer.java:648) ~[canvas-26.3.jar:26.3-990-9a31333]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:357) ~[canvas-26.3.jar:26.3-990-9a31333]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1266) ~[canvas-26.3.jar:26.3-990-9a31333]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:291) ~[canvas-26.3.jar:26.3-990-9a31333]
at java.base/java.lang.Thread.run(Thread.java:1474) ~[?:?]
Expected Behavior
WorldGuard should natively check for a multi-threaded (Folia/Canvas) environment and appropriately handle or bypass global repeating tasks during initialization, or provide explicit compatibility with Folia's asynchronous/region scheduling APIs.
Reproduction Steps
- Start up a Folia server with WorldGuard
- Wait for plugin startup
Optional WorldGuard-Report
No response
Anything Else?
No response
- 主要言語
- Java
- スター
- 944
- フォーク
- 686
- 平均マージ
- 4日 7時間
- マージ済み PR(30日)
- 6
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
EngineHub/WorldGuard のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
EngineHub/WorldGuard#2334 ·
-
status:pending type:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
EngineHub/WorldGuard#2332 ·
-
End Crystal explosion gets fully cancelled even if a small part of the explosion affects a protected area対応中かも @Almost10 が 18 日前に担当しました。 オープンstatus:pending type:bug
難易度 3/5 半日 初心者へのやさしさ 62/100
EngineHub/WorldGuard#2323 · コメント 4 件 ·
-
status:pending type:feature-request
難易度 3/5 1〜2日 初心者へのやさしさ 54/100
EngineHub/WorldGuard#2320 ·
-
status:upstream type:bug
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
EngineHub/WorldGuard#2314 · コメント 6 件 ·
EngineHub/WorldGuard の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
-
status:pending type:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
bug level:trivial
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
exoego/keycloak-fuhito#666 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ant-media/Ant-Media-Server#8185 ·
メンテナーはふだん 4 日以内に返信
-
desktop grp:about type:graphics-bug ui-public
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信