Crash when using async_read().
LadyCailinBot opened this issue ยท 1 comments
CMDHELPER-2832 - Reported by CyaNox
Error occurs both when the file exists and when it does not.
02:57:41 [SEVERE] Uh oh! You've found an error in CommandHelper. This is an error caused by your code, so you may be able to find a workaround, but is ultimately an error in CommandHelper itself. The line of code that caused the error was this:
async_read('plugins/CommandHelper/LocalPackages/shared/data/qtsmp_banlist.lst', sconcat(console(concat('FILE READ: ',length(@content))),console(concat('EX: ',@e))))
on or around /srv/mc/live/hub/plugins/CommandHelper/LocalPackages/shared/Core/Core.ms:59.
Please report this error to the developers, and be sure to include the version numbers: Server version: 1.6.4-R2.1-SNAPSHOT; CommandHelper version: 3.3.1-SNAPSHOT:2443-b40f973,master. Here's the stacktrace:
java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.FutureTask@6ec85eb8 rejected from java.util.concurrent.ThreadPoolExecutor@4d8e6ca2[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 2]
at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2048)
at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:821)
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1372)
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:110)
at java.util.concurrent.Executors$DelegatedExecutorService.submit(Executors.java:638)
at com.laytonsmith.PureUtilities.RunnableQueue.invokeLater(RunnableQueue.java:64)
at com.laytonsmith.core.functions.FileHandling$async_read.startup(FileHandling.java:118)
at com.laytonsmith.core.functions.FileHandling$async_read.exec(FileHandling.java:148)
at com.laytonsmith.core.Script.eval(Script.java:310)
at com.laytonsmith.core.Script.eval(Script.java:272)
at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1494)
at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1454)
at com.laytonsmith.core.AliasCore$LocalPackage.compileMS(AliasCore.java:677)
at com.laytonsmith.core.AliasCore.reload(AliasCore.java:451)
at com.laytonsmith.commandhelper.CommandHelperPlugin.onCommand(CommandHelperPlugin.java:328)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:192)
at org.bukkit.craftbukkit.v1_6_R3.CraftServer.dispatchCommand(CraftServer.java:532)
at org.bukkit.craftbukkit.v1_6_R3.CraftServer.dispatchServerCommand(CraftServer.java:519)
at net.minecraft.server.v1_6_R3.DedicatedServer.as(DedicatedServer.java:276)
at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:241)
at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:493)
at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:425)
at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583)
async_read('plugins/CommandHelper/LocalPackages/shared/data/qtsmp_banlist.lst', closure(@content, @e,
console('FILE READ: ' . length(@content))
console('EX: ' . @e)
))