diff --git a/src/Analysis/Problem/Bukkit/PluginDisablingProblem.php b/src/Analysis/Problem/Bukkit/PluginDisablingProblem.php index bf57135..ea7225f 100644 --- a/src/Analysis/Problem/Bukkit/PluginDisablingProblem.php +++ b/src/Analysis/Problem/Bukkit/PluginDisablingProblem.php @@ -4,8 +4,28 @@ use Aternos\Codex\Minecraft\Translator\Translator; +/** + * A plugin threw an exception while it was disabled, either in its own onDisable() + * or while the plugin loader cleaned up what the plugin had registered. + */ class PluginDisablingProblem extends PluginProblem { + /** + * The cleanup steps of the plugin loader while disabling a plugin, as they appear in the log line, for example: + * Error occurred (in the plugin loader) while unregistering events for BrokenHandlerList v1.0 (Is it up to date?) + */ + protected const array PLUGIN_LOADER_STEPS = [ + 'disabling', + 'cancelling tasks for', + 'cancelling global tasks for', + 'cancelling async tasks for', + 'unregistering services for', + 'unregistering events for', + 'unregistering lifecycle event handlers for', + 'unregistering plugin channels for', + 'removing chunk tickets for', + ]; + /** * @inheritDoc */ @@ -15,10 +35,24 @@ public function getMessage(): string } /** + * The first pattern matches exceptions in onDisable() of the plugin, for example: + * Error occurred while disabling DisableBoom v1.0 + * + * The other patterns match exceptions while the plugin loader cleans up after the plugin, + * one for each step in {@see PluginDisablingProblem::PLUGIN_LOADER_STEPS}, for example: + * Error occurred (in the plugin loader) while cancelling tasks for Multiverse-Core v4.3.1 (Is it up to date?) + * + * The plugin is logged with its name and its version with a "v" in front. + * The plugin name is the first group, so {@see PluginProblem::setMatches()} reads it as `$matches[1]`. + * * @inheritDoc */ public static function getPatterns(): array { - return ['/Error occurred while disabling (' . static::PLUGIN_NAME . ')/']; + $patterns = ['/Error occurred while disabling (' . static::PLUGIN_NAME . ')/']; + foreach (static::PLUGIN_LOADER_STEPS as $step) { + $patterns[] = '/Error occurred \(in the plugin loader\) while ' . $step . ' (?' . static::PLUGIN_NAME . ') v[^(\n]+\(Is it up to date\?\)/'; + } + return $patterns; } } \ No newline at end of file diff --git a/test/data/Vanilla/Bukkit/Paper/paper-plugin-loader-unregistering-events-26-3.json b/test/data/Vanilla/Bukkit/Paper/paper-plugin-loader-unregistering-events-26-3.json new file mode 100644 index 0000000..4995f91 --- /dev/null +++ b/test/data/Vanilla/Bukkit/Paper/paper-plugin-loader-unregistering-events-26-3.json @@ -0,0 +1,996 @@ +{ + "id": "paper\/server", + "name": "Paper", + "type": "Server Log", + "version": "26.3", + "title": "Paper 26.3 Server Log", + "entries": [ + { + "level": 6, + "time": null, + "prefix": null, + "lines": [ + { + "number": 1, + "content": "Starting org.bukkit.craftbukkit.Main" + }, + { + "number": 2, + "content": "2026-11-16T15:57:12.116511Z ServerMain WARN Advanced terminal features are not available in this environment" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:12 INFO]:", + "lines": [ + { + "number": 3, + "content": "[16:57:12 INFO]: [bootstrap] Running Java 25 (Java HotSpot(TM) 64-Bit Server VM 25.0.5.0.3+1-LTS-2; Oracle Corporation null) on Mac OS X 27.2.1 (aarch64)" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:12 INFO]:", + "lines": [ + { + "number": 4, + "content": "[16:57:12 INFO]: [bootstrap] Loading Paper 26.3-248-main@0727243 (2026-11-10T11:35:52Z) for Minecraft 26.3" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:12 INFO]:", + "lines": [ + { + "number": 5, + "content": "[16:57:12 INFO]: [PluginInitializerManager] Initializing plugins..." + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:12 INFO]:", + "lines": [ + { + "number": 6, + "content": "[16:57:12 INFO]: [PluginInitializerManager] Initialized 1 plugin" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:12 INFO]:", + "lines": [ + { + "number": 7, + "content": "[16:57:12 INFO]: [PluginInitializerManager] Bukkit plugins (1):" + }, + { + "number": 8, + "content": " - BrokenHandlerList (1.0)" + } + ] + }, + { + "level": 4, + "time": null, + "prefix": "[16:57:13 WARN]:", + "lines": [ + { + "number": 9, + "content": "[16:57:13 WARN]: [oshi.software.os.mac.MacOperatingSystem] Unable to parse version 27.2 to a codename." + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:14 INFO]:", + "lines": [ + { + "number": 10, + "content": "[16:57:14 INFO]: [ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry] Initialising converters for DataConverter..." + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:14 INFO]:", + "lines": [ + { + "number": 11, + "content": "[16:57:14 INFO]: [com.destroystokyo.paper.profile.PaperServicesDiscoveryService] Environment: Environment[discoveryUrl=https:\/\/discovery.minecraftservices.com\/minecraft\/client, name=PROD]" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:14 INFO]:", + "lines": [ + { + "number": 12, + "content": "[16:57:14 INFO]: [ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry] Finished initialising converters for DataConverter in 172,2ms" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:14 INFO]:", + "lines": [ + { + "number": 13, + "content": "[16:57:14 INFO]: Loaded 1866 advancements" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:14 INFO]:", + "lines": [ + { + "number": 14, + "content": "[16:57:14 INFO]: Starting minecraft server version 26.3" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:14 INFO]:", + "lines": [ + { + "number": 15, + "content": "[16:57:14 INFO]: Loading properties" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:14 INFO]:", + "lines": [ + { + "number": 16, + "content": "[16:57:14 INFO]: This server is running Paper version 26.3-248-main@0727243 (2026-11-10T11:35:52Z) (Implementing API version 26.3.build.248-stable)" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:14 INFO]:", + "lines": [ + { + "number": 17, + "content": "[16:57:14 INFO]: [spark] This server bundles the spark profiler. For more information please visit https:\/\/docs.papermc.io\/paper\/profiling" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:14 INFO]:", + "lines": [ + { + "number": 18, + "content": "[16:57:14 INFO]: Server Ping Player Sample Count: 12" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:14 INFO]:", + "lines": [ + { + "number": 19, + "content": "[16:57:14 INFO]: Using 4 threads for Netty based IO" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:15 INFO]:", + "lines": [ + { + "number": 20, + "content": "[16:57:15 INFO]: [ca.spottedleaf.moonrise.common.util.FMA] FMA supported: true for all ARMv8 platforms" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:15 INFO]:", + "lines": [ + { + "number": 21, + "content": "[16:57:15 INFO]: [MoonriseCommon] Paper is using 4 worker threads, 1 I\/O threads" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:15 INFO]:", + "lines": [ + { + "number": 22, + "content": "[16:57:15 INFO]: Default game type: SURVIVAL" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:15 INFO]:", + "lines": [ + { + "number": 23, + "content": "[16:57:15 INFO]: Generating keypair" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:15 INFO]:", + "lines": [ + { + "number": 24, + "content": "[16:57:15 INFO]: Starting Minecraft server on *:25599" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:15 INFO]:", + "lines": [ + { + "number": 25, + "content": "[16:57:15 INFO]: Paper: Using libdeflate (macOS ARM64 \/ Apple Silicon) compression from Velocity." + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:15 INFO]:", + "lines": [ + { + "number": 26, + "content": "[16:57:15 INFO]: Paper: Using native (macOS ARM64 \/ Apple Silicon) cipher from Velocity." + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:15 INFO]:", + "lines": [ + { + "number": 27, + "content": "[16:57:15 INFO]: [BrokenHandlerList] Loading server plugin BrokenHandlerList v1.0" + } + ] + }, + { + "level": 4, + "time": null, + "prefix": "[16:57:15 WARN]:", + "lines": [ + { + "number": 28, + "content": "[16:57:15 WARN]: **** SERVER IS RUNNING IN OFFLINE\/INSECURE MODE!" + } + ] + }, + { + "level": 4, + "time": null, + "prefix": "[16:57:15 WARN]:", + "lines": [ + { + "number": 29, + "content": "[16:57:15 WARN]: The server will make no attempt to authenticate usernames. Beware." + } + ] + }, + { + "level": 4, + "time": null, + "prefix": "[16:57:15 WARN]:", + "lines": [ + { + "number": 30, + "content": "[16:57:15 WARN]: While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose." + } + ] + }, + { + "level": 4, + "time": null, + "prefix": "[16:57:15 WARN]:", + "lines": [ + { + "number": 31, + "content": "[16:57:15 WARN]: To change this, set \"online-mode\" to \"true\" in the server.properties file." + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:15 INFO]:", + "lines": [ + { + "number": 32, + "content": "[16:57:15 INFO]: Preparing level \"world\"" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:15 INFO]:", + "lines": [ + { + "number": 33, + "content": "[16:57:15 INFO]: Loading 0 persistent chunks for level 'minecraft:overworld'..." + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:15 INFO]:", + "lines": [ + { + "number": 34, + "content": "[16:57:15 INFO]: Prepared spawn area in 0 ms" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:15 INFO]:", + "lines": [ + { + "number": 35, + "content": "[16:57:15 INFO]: Loading 0 persistent chunks for level 'minecraft:the_nether'..." + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:15 INFO]:", + "lines": [ + { + "number": 36, + "content": "[16:57:15 INFO]: Prepared spawn area in 0 ms" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:15 INFO]:", + "lines": [ + { + "number": 37, + "content": "[16:57:15 INFO]: Loading 0 persistent chunks for level 'minecraft:the_end'..." + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:15 INFO]:", + "lines": [ + { + "number": 38, + "content": "[16:57:15 INFO]: Prepared spawn area in 0 ms" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:15 INFO]:", + "lines": [ + { + "number": 39, + "content": "[16:57:15 INFO]: Done preparing level \"world\" (0.130s)" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:15 INFO]:", + "lines": [ + { + "number": 40, + "content": "[16:57:15 INFO]: [BrokenHandlerList] Enabling BrokenHandlerList v1.0" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:15 INFO]:", + "lines": [ + { + "number": 41, + "content": "[16:57:15 INFO]: [spark] Starting background profiler..." + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:15 INFO]:", + "lines": [ + { + "number": 42, + "content": "[16:57:15 INFO]: Saving chunks for level 'ServerLevel[world]'\/minecraft:overworld" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:15 INFO]:", + "lines": [ + { + "number": 43, + "content": "[16:57:15 INFO]: Saving chunks for level 'ServerLevel[world]'\/minecraft:the_nether" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:15 INFO]:", + "lines": [ + { + "number": 44, + "content": "[16:57:15 INFO]: Saving chunks for level 'ServerLevel[world]'\/minecraft:the_end" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:15 INFO]:", + "lines": [ + { + "number": 45, + "content": "[16:57:15 INFO]: Running delayed init tasks" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:15 INFO]:", + "lines": [ + { + "number": 46, + "content": "[16:57:15 INFO]: Done (3.922s)! For help, type \"help\"" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:16 INFO]:", + "lines": [ + { + "number": 47, + "content": "[16:57:16 INFO]: System chat: Stopping the server" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:16 INFO]:", + "lines": [ + { + "number": 48, + "content": "[16:57:16 INFO]: Stopping server" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:16 INFO]:", + "lines": [ + { + "number": 49, + "content": "[16:57:16 INFO]: [BrokenHandlerList] Disabling BrokenHandlerList v1.0" + } + ] + }, + { + "level": 3, + "time": null, + "prefix": "[16:57:16 ERROR]:", + "lines": [ + { + "number": 50, + "content": "[16:57:16 ERROR]: Error occurred (in the plugin loader) while unregistering events for BrokenHandlerList v1.0 (Is it up to date?)" + }, + { + "number": 51, + "content": "java.lang.IllegalStateException: BrokenEvent handlers cannot be unregistered" + }, + { + "number": 52, + "content": "\tat p14-broken-handler-list.jar\/\/com.repro.BrokenHandlerListPlugin$BrokenEvent$1.unregister(BrokenHandlerListPlugin.java:16) ~[?:?]" + }, + { + "number": 53, + "content": "\tat org.bukkit.event.HandlerList.unregisterAll(HandlerList.java:78) ~[paper-api-26.3.build.248-stable.jar:?]" + }, + { + "number": 54, + "content": "\tat io.papermc.paper.plugin.manager.PaperPluginInstanceManager.disablePlugin(PaperPluginInstanceManager.java:293) ~[paper-26.3.jar:26.3-248-0727243]" + }, + { + "number": 55, + "content": "\tat io.papermc.paper.plugin.manager.PaperPluginInstanceManager.disablePlugins(PaperPluginInstanceManager.java:160) ~[paper-26.3.jar:26.3-248-0727243]" + }, + { + "number": 56, + "content": "\tat io.papermc.paper.plugin.manager.PaperPluginManagerImpl.disablePlugins(PaperPluginManagerImpl.java:97) ~[paper-26.3.jar:26.3-248-0727243]" + }, + { + "number": 57, + "content": "\tat org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:540) ~[paper-api-26.3.build.248-stable.jar:?]" + }, + { + "number": 58, + "content": "\tat org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:589) ~[paper-26.3.jar:26.3-248-0727243]" + }, + { + "number": 59, + "content": "\tat net.minecraft.server.MinecraftServer.stopServer(MinecraftServer.java:1011) ~[paper-26.3.jar:26.3-248-0727243]" + }, + { + "number": 60, + "content": "\tat net.minecraft.server.dedicated.DedicatedServer.stopServer(DedicatedServer.java:909) ~[paper-26.3.jar:26.3-248-0727243]" + }, + { + "number": 61, + "content": "\tat net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1368) ~[paper-26.3.jar:26.3-248-0727243]" + }, + { + "number": 62, + "content": "\tat net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:299) ~[paper-26.3.jar:26.3-248-0727243]" + }, + { + "number": 63, + "content": "\tat java.base\/java.lang.Thread.run(Thread.java:1474) ~[?:?]" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:16 INFO]:", + "lines": [ + { + "number": 64, + "content": "[16:57:16 INFO]: Saving players" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:16 INFO]:", + "lines": [ + { + "number": 65, + "content": "[16:57:16 INFO]: Saving worlds" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:16 INFO]:", + "lines": [ + { + "number": 66, + "content": "[16:57:16 INFO]: Saving chunks for level 'ServerLevel[world]'\/minecraft:overworld" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:16 INFO]:", + "lines": [ + { + "number": 67, + "content": "[16:57:16 INFO]: [ChunkHolderManager] Waiting 60s for chunk system to halt for world 'minecraft:overworld'" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:16 INFO]:", + "lines": [ + { + "number": 68, + "content": "[16:57:16 INFO]: [ChunkHolderManager] Halted chunk system for world 'minecraft:overworld'" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:16 INFO]:", + "lines": [ + { + "number": 69, + "content": "[16:57:16 INFO]: [ChunkHolderManager] Saving all chunkholders for world 'minecraft:overworld'" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:16 INFO]:", + "lines": [ + { + "number": 70, + "content": "[16:57:16 INFO]: [ChunkHolderManager] Saved 0 block chunks, 0 entity chunks, 0 poi chunks in world 'minecraft:overworld' in 0,00s" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:16 INFO]:", + "lines": [ + { + "number": 71, + "content": "[16:57:16 INFO]: [ChunkHolderManager] Waiting 60s for chunk I\/O to halt for world 'minecraft:overworld'" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:16 INFO]:", + "lines": [ + { + "number": 72, + "content": "[16:57:16 INFO]: [ChunkHolderManager] Halted I\/O scheduler for world 'minecraft:overworld'" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:16 INFO]:", + "lines": [ + { + "number": 73, + "content": "[16:57:16 INFO]: Saving chunks for level 'ServerLevel[world]'\/minecraft:the_nether" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:16 INFO]:", + "lines": [ + { + "number": 74, + "content": "[16:57:16 INFO]: [ChunkHolderManager] Waiting 60s for chunk system to halt for world 'minecraft:the_nether'" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:16 INFO]:", + "lines": [ + { + "number": 75, + "content": "[16:57:16 INFO]: [ChunkHolderManager] Halted chunk system for world 'minecraft:the_nether'" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:16 INFO]:", + "lines": [ + { + "number": 76, + "content": "[16:57:16 INFO]: [ChunkHolderManager] Saving all chunkholders for world 'minecraft:the_nether'" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:16 INFO]:", + "lines": [ + { + "number": 77, + "content": "[16:57:16 INFO]: [ChunkHolderManager] Saved 0 block chunks, 0 entity chunks, 0 poi chunks in world 'minecraft:the_nether' in 0,00s" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:16 INFO]:", + "lines": [ + { + "number": 78, + "content": "[16:57:16 INFO]: [ChunkHolderManager] Waiting 60s for chunk I\/O to halt for world 'minecraft:the_nether'" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:16 INFO]:", + "lines": [ + { + "number": 79, + "content": "[16:57:16 INFO]: [ChunkHolderManager] Halted I\/O scheduler for world 'minecraft:the_nether'" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:16 INFO]:", + "lines": [ + { + "number": 80, + "content": "[16:57:16 INFO]: Saving chunks for level 'ServerLevel[world]'\/minecraft:the_end" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:16 INFO]:", + "lines": [ + { + "number": 81, + "content": "[16:57:16 INFO]: [ChunkHolderManager] Waiting 60s for chunk system to halt for world 'minecraft:the_end'" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:16 INFO]:", + "lines": [ + { + "number": 82, + "content": "[16:57:16 INFO]: [ChunkHolderManager] Halted chunk system for world 'minecraft:the_end'" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:16 INFO]:", + "lines": [ + { + "number": 83, + "content": "[16:57:16 INFO]: [ChunkHolderManager] Saving all chunkholders for world 'minecraft:the_end'" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:16 INFO]:", + "lines": [ + { + "number": 84, + "content": "[16:57:16 INFO]: [ChunkHolderManager] Saved 0 block chunks, 0 entity chunks, 0 poi chunks in world 'minecraft:the_end' in 0,00s" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:16 INFO]:", + "lines": [ + { + "number": 85, + "content": "[16:57:16 INFO]: [ChunkHolderManager] Waiting 60s for chunk I\/O to halt for world 'minecraft:the_end'" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:16 INFO]:", + "lines": [ + { + "number": 86, + "content": "[16:57:16 INFO]: [ChunkHolderManager] Halted I\/O scheduler for world 'minecraft:the_end'" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:16 INFO]:", + "lines": [ + { + "number": 87, + "content": "[16:57:16 INFO]: Waiting for all RegionFile I\/O tasks to complete..." + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:16 INFO]:", + "lines": [ + { + "number": 88, + "content": "[16:57:16 INFO]: All RegionFile I\/O tasks to complete" + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:16 INFO]:", + "lines": [ + { + "number": 89, + "content": "[16:57:16 INFO]: [MoonriseCommon] Awaiting termination of worker pool for up to 60s..." + } + ] + }, + { + "level": 6, + "time": null, + "prefix": "[16:57:16 INFO]:", + "lines": [ + { + "number": 90, + "content": "[16:57:16 INFO]: [MoonriseCommon] Awaiting termination of I\/O pool for up to 60s..." + }, + { + "number": 91, + "content": "" + } + ] + } + ], + "analysis": { + "problems": [ + { + "message": "The plugin 'BrokenHandlerList' could not be disabled.", + "counter": 1, + "entry": { + "level": 3, + "time": null, + "prefix": "[16:57:16 ERROR]:", + "lines": [ + { + "number": 50, + "content": "[16:57:16 ERROR]: Error occurred (in the plugin loader) while unregistering events for BrokenHandlerList v1.0 (Is it up to date?)" + }, + { + "number": 51, + "content": "java.lang.IllegalStateException: BrokenEvent handlers cannot be unregistered" + }, + { + "number": 52, + "content": "\tat p14-broken-handler-list.jar\/\/com.repro.BrokenHandlerListPlugin$BrokenEvent$1.unregister(BrokenHandlerListPlugin.java:16) ~[?:?]" + }, + { + "number": 53, + "content": "\tat org.bukkit.event.HandlerList.unregisterAll(HandlerList.java:78) ~[paper-api-26.3.build.248-stable.jar:?]" + }, + { + "number": 54, + "content": "\tat io.papermc.paper.plugin.manager.PaperPluginInstanceManager.disablePlugin(PaperPluginInstanceManager.java:293) ~[paper-26.3.jar:26.3-248-0727243]" + }, + { + "number": 55, + "content": "\tat io.papermc.paper.plugin.manager.PaperPluginInstanceManager.disablePlugins(PaperPluginInstanceManager.java:160) ~[paper-26.3.jar:26.3-248-0727243]" + }, + { + "number": 56, + "content": "\tat io.papermc.paper.plugin.manager.PaperPluginManagerImpl.disablePlugins(PaperPluginManagerImpl.java:97) ~[paper-26.3.jar:26.3-248-0727243]" + }, + { + "number": 57, + "content": "\tat org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:540) ~[paper-api-26.3.build.248-stable.jar:?]" + }, + { + "number": 58, + "content": "\tat org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:589) ~[paper-26.3.jar:26.3-248-0727243]" + }, + { + "number": 59, + "content": "\tat net.minecraft.server.MinecraftServer.stopServer(MinecraftServer.java:1011) ~[paper-26.3.jar:26.3-248-0727243]" + }, + { + "number": 60, + "content": "\tat net.minecraft.server.dedicated.DedicatedServer.stopServer(DedicatedServer.java:909) ~[paper-26.3.jar:26.3-248-0727243]" + }, + { + "number": 61, + "content": "\tat net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1368) ~[paper-26.3.jar:26.3-248-0727243]" + }, + { + "number": 62, + "content": "\tat net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:299) ~[paper-26.3.jar:26.3-248-0727243]" + }, + { + "number": 63, + "content": "\tat java.base\/java.lang.Thread.run(Thread.java:1474) ~[?:?]" + } + ] + }, + "solutions": [ + { + "message": "Install a different version of the plugin 'BrokenHandlerList'." + }, + { + "message": "Remove the plugin 'BrokenHandlerList'." + } + ] + } + ], + "information": [ + { + "message": "Minecraft version: 26.3", + "counter": 1, + "entry": { + "level": 6, + "time": null, + "prefix": "[16:57:14 INFO]:", + "lines": [ + { + "number": 14, + "content": "[16:57:14 INFO]: Starting minecraft server version 26.3" + } + ] + }, + "label": "Minecraft version", + "value": "26.3" + } + ] + } +} \ No newline at end of file diff --git a/test/data/Vanilla/Bukkit/Paper/paper-plugin-loader-unregistering-events-26-3.log b/test/data/Vanilla/Bukkit/Paper/paper-plugin-loader-unregistering-events-26-3.log new file mode 100644 index 0000000..6beacfa --- /dev/null +++ b/test/data/Vanilla/Bukkit/Paper/paper-plugin-loader-unregistering-events-26-3.log @@ -0,0 +1,90 @@ +Starting org.bukkit.craftbukkit.Main +2026-11-16T15:57:12.116511Z ServerMain WARN Advanced terminal features are not available in this environment +[16:57:12 INFO]: [bootstrap] Running Java 25 (Java HotSpot(TM) 64-Bit Server VM 25.0.5.0.3+1-LTS-2; Oracle Corporation null) on Mac OS X 27.2.1 (aarch64) +[16:57:12 INFO]: [bootstrap] Loading Paper 26.3-248-main@0727243 (2026-11-10T11:35:52Z) for Minecraft 26.3 +[16:57:12 INFO]: [PluginInitializerManager] Initializing plugins... +[16:57:12 INFO]: [PluginInitializerManager] Initialized 1 plugin +[16:57:12 INFO]: [PluginInitializerManager] Bukkit plugins (1): + - BrokenHandlerList (1.0) +[16:57:13 WARN]: [oshi.software.os.mac.MacOperatingSystem] Unable to parse version 27.2 to a codename. +[16:57:14 INFO]: [ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry] Initialising converters for DataConverter... +[16:57:14 INFO]: [com.destroystokyo.paper.profile.PaperServicesDiscoveryService] Environment: Environment[discoveryUrl=https://discovery.minecraftservices.com/minecraft/client, name=PROD] +[16:57:14 INFO]: [ca.spottedleaf.dataconverter.minecraft.datatypes.MCTypeRegistry] Finished initialising converters for DataConverter in 172,2ms +[16:57:14 INFO]: Loaded 1866 advancements +[16:57:14 INFO]: Starting minecraft server version 26.3 +[16:57:14 INFO]: Loading properties +[16:57:14 INFO]: This server is running Paper version 26.3-248-main@0727243 (2026-11-10T11:35:52Z) (Implementing API version 26.3.build.248-stable) +[16:57:14 INFO]: [spark] This server bundles the spark profiler. For more information please visit https://docs.papermc.io/paper/profiling +[16:57:14 INFO]: Server Ping Player Sample Count: 12 +[16:57:14 INFO]: Using 4 threads for Netty based IO +[16:57:15 INFO]: [ca.spottedleaf.moonrise.common.util.FMA] FMA supported: true for all ARMv8 platforms +[16:57:15 INFO]: [MoonriseCommon] Paper is using 4 worker threads, 1 I/O threads +[16:57:15 INFO]: Default game type: SURVIVAL +[16:57:15 INFO]: Generating keypair +[16:57:15 INFO]: Starting Minecraft server on *:25599 +[16:57:15 INFO]: Paper: Using libdeflate (macOS ARM64 / Apple Silicon) compression from Velocity. +[16:57:15 INFO]: Paper: Using native (macOS ARM64 / Apple Silicon) cipher from Velocity. +[16:57:15 INFO]: [BrokenHandlerList] Loading server plugin BrokenHandlerList v1.0 +[16:57:15 WARN]: **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE! +[16:57:15 WARN]: The server will make no attempt to authenticate usernames. Beware. +[16:57:15 WARN]: While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose. +[16:57:15 WARN]: To change this, set "online-mode" to "true" in the server.properties file. +[16:57:15 INFO]: Preparing level "world" +[16:57:15 INFO]: Loading 0 persistent chunks for level 'minecraft:overworld'... +[16:57:15 INFO]: Prepared spawn area in 0 ms +[16:57:15 INFO]: Loading 0 persistent chunks for level 'minecraft:the_nether'... +[16:57:15 INFO]: Prepared spawn area in 0 ms +[16:57:15 INFO]: Loading 0 persistent chunks for level 'minecraft:the_end'... +[16:57:15 INFO]: Prepared spawn area in 0 ms +[16:57:15 INFO]: Done preparing level "world" (0.130s) +[16:57:15 INFO]: [BrokenHandlerList] Enabling BrokenHandlerList v1.0 +[16:57:15 INFO]: [spark] Starting background profiler... +[16:57:15 INFO]: Saving chunks for level 'ServerLevel[world]'/minecraft:overworld +[16:57:15 INFO]: Saving chunks for level 'ServerLevel[world]'/minecraft:the_nether +[16:57:15 INFO]: Saving chunks for level 'ServerLevel[world]'/minecraft:the_end +[16:57:15 INFO]: Running delayed init tasks +[16:57:15 INFO]: Done (3.922s)! For help, type "help" +[16:57:16 INFO]: System chat: Stopping the server +[16:57:16 INFO]: Stopping server +[16:57:16 INFO]: [BrokenHandlerList] Disabling BrokenHandlerList v1.0 +[16:57:16 ERROR]: Error occurred (in the plugin loader) while unregistering events for BrokenHandlerList v1.0 (Is it up to date?) +java.lang.IllegalStateException: BrokenEvent handlers cannot be unregistered + at p14-broken-handler-list.jar//com.repro.BrokenHandlerListPlugin$BrokenEvent$1.unregister(BrokenHandlerListPlugin.java:16) ~[?:?] + at org.bukkit.event.HandlerList.unregisterAll(HandlerList.java:78) ~[paper-api-26.3.build.248-stable.jar:?] + at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.disablePlugin(PaperPluginInstanceManager.java:293) ~[paper-26.3.jar:26.3-248-0727243] + at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.disablePlugins(PaperPluginInstanceManager.java:160) ~[paper-26.3.jar:26.3-248-0727243] + at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.disablePlugins(PaperPluginManagerImpl.java:97) ~[paper-26.3.jar:26.3-248-0727243] + at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:540) ~[paper-api-26.3.build.248-stable.jar:?] + at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:589) ~[paper-26.3.jar:26.3-248-0727243] + at net.minecraft.server.MinecraftServer.stopServer(MinecraftServer.java:1011) ~[paper-26.3.jar:26.3-248-0727243] + at net.minecraft.server.dedicated.DedicatedServer.stopServer(DedicatedServer.java:909) ~[paper-26.3.jar:26.3-248-0727243] + at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1368) ~[paper-26.3.jar:26.3-248-0727243] + at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:299) ~[paper-26.3.jar:26.3-248-0727243] + at java.base/java.lang.Thread.run(Thread.java:1474) ~[?:?] +[16:57:16 INFO]: Saving players +[16:57:16 INFO]: Saving worlds +[16:57:16 INFO]: Saving chunks for level 'ServerLevel[world]'/minecraft:overworld +[16:57:16 INFO]: [ChunkHolderManager] Waiting 60s for chunk system to halt for world 'minecraft:overworld' +[16:57:16 INFO]: [ChunkHolderManager] Halted chunk system for world 'minecraft:overworld' +[16:57:16 INFO]: [ChunkHolderManager] Saving all chunkholders for world 'minecraft:overworld' +[16:57:16 INFO]: [ChunkHolderManager] Saved 0 block chunks, 0 entity chunks, 0 poi chunks in world 'minecraft:overworld' in 0,00s +[16:57:16 INFO]: [ChunkHolderManager] Waiting 60s for chunk I/O to halt for world 'minecraft:overworld' +[16:57:16 INFO]: [ChunkHolderManager] Halted I/O scheduler for world 'minecraft:overworld' +[16:57:16 INFO]: Saving chunks for level 'ServerLevel[world]'/minecraft:the_nether +[16:57:16 INFO]: [ChunkHolderManager] Waiting 60s for chunk system to halt for world 'minecraft:the_nether' +[16:57:16 INFO]: [ChunkHolderManager] Halted chunk system for world 'minecraft:the_nether' +[16:57:16 INFO]: [ChunkHolderManager] Saving all chunkholders for world 'minecraft:the_nether' +[16:57:16 INFO]: [ChunkHolderManager] Saved 0 block chunks, 0 entity chunks, 0 poi chunks in world 'minecraft:the_nether' in 0,00s +[16:57:16 INFO]: [ChunkHolderManager] Waiting 60s for chunk I/O to halt for world 'minecraft:the_nether' +[16:57:16 INFO]: [ChunkHolderManager] Halted I/O scheduler for world 'minecraft:the_nether' +[16:57:16 INFO]: Saving chunks for level 'ServerLevel[world]'/minecraft:the_end +[16:57:16 INFO]: [ChunkHolderManager] Waiting 60s for chunk system to halt for world 'minecraft:the_end' +[16:57:16 INFO]: [ChunkHolderManager] Halted chunk system for world 'minecraft:the_end' +[16:57:16 INFO]: [ChunkHolderManager] Saving all chunkholders for world 'minecraft:the_end' +[16:57:16 INFO]: [ChunkHolderManager] Saved 0 block chunks, 0 entity chunks, 0 poi chunks in world 'minecraft:the_end' in 0,00s +[16:57:16 INFO]: [ChunkHolderManager] Waiting 60s for chunk I/O to halt for world 'minecraft:the_end' +[16:57:16 INFO]: [ChunkHolderManager] Halted I/O scheduler for world 'minecraft:the_end' +[16:57:16 INFO]: Waiting for all RegionFile I/O tasks to complete... +[16:57:16 INFO]: All RegionFile I/O tasks to complete +[16:57:16 INFO]: [MoonriseCommon] Awaiting termination of worker pool for up to 60s... +[16:57:16 INFO]: [MoonriseCommon] Awaiting termination of I/O pool for up to 60s... diff --git a/test/tests/Logs/AutoLogsTest.php b/test/tests/Logs/AutoLogsTest.php index 0950568..84c9461 100644 --- a/test/tests/Logs/AutoLogsTest.php +++ b/test/tests/Logs/AutoLogsTest.php @@ -690,6 +690,16 @@ public function test_paper_plugin_disabling(): void $this->assertStringEqualsFile($log->getExpectedPath(), $log->getOutput(), $log->getLogPath()); } + /** + * @return void + * @throws Exception + */ + public function test_paper_plugin_loader_unregistering_events_26_3(): void + { + $log = new TestLog('Vanilla/Bukkit/Paper/paper-plugin-loader-unregistering-events-26-3.log'); + $this->assertStringEqualsFile($log->getExpectedPath(), $log->getOutput(), $log->getLogPath()); + } + /** * @return void * @throws Exception