StackOverflow on tab complete for disabled commands. [1.16.5] [PAPER] [2.19.0]
alekso56 opened this issue ยท 4 comments
Type of bug
Error in console
/ess version
output
v2.19.0-dev+104-5171215
Server startup log
irrelevant
EssentialsX config files
irrelevant, disable a command.
Error log (if applicable)
irrelevant
Bug description
[Server thread/ERROR]: [Essentials] Command pm failed:
org.bukkit.command.CommandException: Unhandled exception during tab completion for command '/pm ' in plugin Essentials v2.19.0-dev+104-5171215
at org.bukkit.command.PluginCommand.tabComplete(PluginCommand.java:141) ~[patched_1.16.5.jar:git-Paper-585]
at com.earth2me.essentials.Essentials.onTabCompleteEssentials(Essentials.java:574) ~[?:?]
at com.earth2me.essentials.Essentials.onTabComplete(Essentials.java:540) ~[?:?]
at org.bukkit.command.PluginCommand.tabComplete(PluginCommand.java:141) ~[patched_1.16.5.jar:git-Paper-585]
Caused by: java.lang.StackOverflowError
Steps to reproduce
Disable a command;
attempt to use said disabled command.
If error doesn't happen immediatly, you can try adding a plugin that listens for that spesific command.
Expected behaviour
No errors.
Actual behaviour
Big errors.
Could not reproduce on
What did I do:
- Disable /nick and /clear in the config, restart the server
- Check if tab-completing works, it doesn't, and it doesn't throw any errors
- Check if running the command works, it doesn't, and it doesn't throw any errors
- Add a plugin has the /nick command, restart the server
- Check if tab-completing works, it does, and no errors are thrown
- Check if running the command works, it does, and no errors are thrown
Can you please provide the full /ess version
output? You only provided the Essentials version...
It's the latest git version, downgrading to 2.19.0-dev-56 resolved the issue, it seems to happen after a certain amount of time has passed, im just going to stay on this old version and forget about the problem, i can't recreate it immediatly either.
so the problem started somewhere between dev 56 to 105. latest paper version.