WorldEdit

WorldEdit

43M Downloads

arguments in random() will cause internal server error and made the server freeze for a long time

LadyCailinBot opened this issue · 3 comments

commented

WORLDEDIT-2849 - Reported by mmis1000

What I entered is "//g 2 random(xz)<0.5"
With 4
4*4 selected area.
And I got

下午 02:57:34 [SEVERE] com.sk89q.worldedit.expression.runtime.EvaluationException: Evaluation error: Exception caught while evaluating expression

in console

If it possible to prevent this or make a {color:gray}"random(seed)"{color} to provide seed-based random value?

a seed-based random value will be very helpful

commented

Comment by wizjany

stacktrace?

commented

Comment by mmis1000

{cut stacktrace}2013-07-07 14:58:24 [SEVERE] com.sk89q.worldedit.expression.runtime.EvaluationException: Evaluation error: Exception caught while evaluating expression
2013-07-07 14:58:24 [SEVERE] at com.sk89q.worldedit.expression.runtime.Function.invokeMethod(Function.java:61)
2013-07-07 14:58:24 [SEVERE] at com.sk89q.worldedit.expression.runtime.Function.getValue(Function.java:51)
2013-07-07 14:58:24 [SEVERE] at com.sk89q.worldedit.expression.Expression.evaluate(Expression.java:107)
2013-07-07 14:58:24 [SEVERE] at com.sk89q.worldedit.EditSession$2.getMaterial(EditSession.java:2771)
2013-07-07 14:58:24 [SEVERE] at com.sk89q.worldedit.ArbitraryShape.generate(ArbitraryShape.java:154)
2013-07-07 14:58:24 [SEVERE] at com.sk89q.worldedit.EditSession.makeShape(EditSession.java:2783)
2013-07-07 14:58:24 [SEVERE] at com.sk89q.worldedit.commands.GenerationCommands.generate(GenerationCommands.java:389)
2013-07-07 14:58:24 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-07-07 14:58:24 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2013-07-07 14:58:24 [SEVERE] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2013-07-07 14:58:24 [SEVERE] at java.lang.reflect.Method.invoke(Unknown Source)
2013-07-07 14:58:24 [SEVERE] at com.sk89q.minecraft.util.commands.CommandsManager.invokeMethod(CommandsManager.java:533)
2013-07-07 14:58:24 [SEVERE] at com.sk89q.worldedit.WorldEdit$1.invokeMethod(WorldEdit.java:257)
2013-07-07 14:58:24 [SEVERE] at com.sk89q.worldedit.WorldEdit$1.invokeMethod(WorldEdit.java:188)
2013-07-07 14:58:24 [SEVERE] at com.sk89q.minecraft.util.commands.CommandsManager.executeMethod(CommandsManager.java:520)
2013-07-07 14:58:24 [SEVERE] at com.sk89q.minecraft.util.commands.CommandsManager.execute(CommandsManager.java:425)
2013-07-07 14:58:24 [SEVERE] at com.sk89q.worldedit.WorldEdit.handleCommand(WorldEdit.java:1396)
2013-07-07 14:58:24 [SEVERE] at com.sk89q.worldedit.bukkit.WorldEditPlugin.onCommand(WorldEditPlugin.java:247)
2013-07-07 14:58:24 [SEVERE] at com.sk89q.bukkit.util.DynamicPluginCommand.execute(DynamicPluginCommand.java:52)
2013-07-07 14:58:24 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:189)
2013-07-07 14:58:24 [SEVERE] at org.bukkit.craftbukkit.v1_5_R3.CraftServer.dispatchCommand(CraftServer.java:561)
2013-07-07 14:58:24 [SEVERE] at net.minecraft.network.NetServerHandler.func_72566_d(NetServerHandler.java:1389)
2013-07-07 14:58:24 [SEVERE] at net.minecraft.network.NetServerHandler.chat(NetServerHandler.java:1249)
2013-07-07 14:58:24 [SEVERE] at net.minecraft.network.NetServerHandler.func_72481_a(NetServerHandler.java:1175)
2013-07-07 14:58:24 [SEVERE] at net.minecraft.network.packet.Packet3Chat.func_73279_a(Packet3Chat.java:60)
2013-07-07 14:58:24 [SEVERE] at net.minecraft.network.TcpConnection.func_74428_b(TcpConnection.java:442)
2013-07-07 14:58:24 [SEVERE] at net.minecraft.network.NetServerHandler.func_72570_d(NetServerHandler.java:222)
2013-07-07 14:58:24 [SEVERE] at net.minecraft.network.NetworkListenThread.func_71747_b(NetworkListenThread.java:53)
2013-07-07 14:58:24 [SEVERE] at net.minecraft.server.dedicated.DedicatedServerListenThread.func_71747_b(SourceFile:30)
2013-07-07 14:58:24 [SEVERE] at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:860)
2013-07-07 14:58:24 [SEVERE] at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:320)
2013-07-07 14:58:24 [SEVERE] at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:729)
2013-07-07 14:58:24 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:613)
2013-07-07 14:58:24 [SEVERE] at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:573)
2013-07-07 14:58:24 [SEVERE] Caused by: java.lang.IllegalArgumentException
2013-07-07 14:58:24 [SEVERE] at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
2013-07-07 14:58:24 [SEVERE] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2013-07-07 14:58:24 [SEVERE] at java.lang.reflect.Method.invoke(Unknown Source)
2013-07-07 14:58:24 [SEVERE] at com.sk89q.worldedit.expression.runtime.Function.invokeMethod(Function.java:56)
2013-07-07 14:58:24 [SEVERE] at com.sk89q.worldedit.expression.runtime.Function.getValue(Function.java:51)
2013-07-07 14:58:24 [SEVERE] at com.sk89q.worldedit.expression.runtime.Operators.lth(Operators.java:88)
2013-07-07 14:58:24 [SEVERE] at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
2013-07-07 14:58:24 [SEVERE] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2013-07-07 14:58:24 [SEVERE] at java.lang.reflect.Method.invoke(Unknown Source)
2013-07-07 14:58:24 [SEVERE] at com.sk89q.worldedit.expression.runtime.Function.invokeMethod(Function.java:56)
2013-07-07 14:58:24 [SEVERE] ... 33 more{cut}
repeated for 64x (since I made a 444 block)

commented

Comment by sk89q

Maybe it's no longer a bug.