Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Out of bounds exception? #2963

Closed
2 tasks done
tantaf123 opened this issue Oct 27, 2024 · 0 comments · Fixed by #2976
Closed
2 tasks done

Out of bounds exception? #2963

tantaf123 opened this issue Oct 27, 2024 · 0 comments · Fixed by #2976
Labels
Requires Testing This is a new issue which needs to be approved before labeled with "bug"

Comments

@tantaf123
Copy link

tantaf123 commented Oct 27, 2024

Server Implementation

Paper

Server Version

1.21

Describe the bug

[20:24:32 ERROR]: An unexpected error while handling a FastAsyncWorldEdit command
java.lang.IndexOutOfBoundsException: Index 3 out of bounds for length 3
        at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:100) ~[?:?]
        at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:106) ~[?:?]
        at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:302) ~[?:?]
        at java.base/java.util.Objects.checkIndex(Objects.java:385) ~[?:?]
        at java.base/java.util.ArrayList.get(ArrayList.java:427) ~[?:?]
        at FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-949.jar/com.sk89q.worldedit.registry.state.AbstractProperty.getValue(AbstractProperty.java:98) ~[FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-949.jar:?]
        at FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-949.jar/com.sk89q.worldedit.world.block.BlockState.getState(BlockState.java:322) ~[FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-949.jar:?]
        at FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-949.jar/com.sk89q.worldedit.function.block.SnowSimulator.apply(SnowSimulator.java:124) ~[FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-949.jar:?]
        at FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-949.jar/com.sk89q.worldedit.function.visitor.LayerVisitor.resume(LayerVisitor.java:152) ~[FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-949.jar:?]
        at FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-949.jar/com.sk89q.worldedit.function.operation.Operations.completeLegacy(Operations.java:55) ~[FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-949.jar:?]
        at FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-949.jar/com.sk89q.worldedit.EditSession.simulateSnow(EditSession.java:2817) ~[FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-949.jar:?]
        at FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-949.jar/com.sk89q.worldedit.command.UtilityCommands.snow(UtilityCommands.java:565) ~[FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-949.jar:?]
        at FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-949.jar/com.sk89q.worldedit.command.UtilityCommandsRegistration.cmd$snow(UtilityCommandsRegistration.java:670) ~[FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-949.jar:?]
        at FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-949.jar/org.enginehub.piston.CommandManager.execute(CommandManager.java:157) ~[FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-949.jar:?]
        at FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-949.jar/com.sk89q.worldedit.extension.platform.PlatformCommandManager.lambda$handleCommandOnCurrentThread$16(PlatformCommandManager.java:712) ~[FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-949.jar:?]
        at FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-949.jar/com.sk89q.worldedit.extension.platform.PlatformCommandManager.handleCommandTask(PlatformCommandManager.java:733) ~[FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-949.jar:?]
        at FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-949.jar/com.sk89q.worldedit.extension.platform.PlatformCommandManager.handleCommandOnCurrentThread(PlatformCommandManager.java:714) ~[FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-949.jar:?]
        at FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-949.jar/com.sk89q.worldedit.extension.platform.PlatformCommandManager.lambda$handleCommand$14(PlatformCommandManager.java:685) ~[FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-949.jar:?]
        at FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-949.jar/com.sk89q.worldedit.extension.platform.AbstractPlayerActor.lambda$runAction$1(AbstractPlayerActor.java:672) ~[FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-949.jar:?]
        at FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-949.jar/com.fastasyncworldedit.core.util.task.AsyncNotifyKeyedQueue.lambda$run$0(AsyncNotifyKeyedQueue.java:48) ~[FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-949.jar:?]
        at FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-949.jar/com.fastasyncworldedit.core.util.task.AsyncNotifyKeyedQueue.lambda$call$1(AsyncNotifyKeyedQueue.java:58) ~[FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-949.jar:?]
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317) ~[?:?]
        at FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-949.jar/com.fastasyncworldedit.core.util.task.KeyQueuedExecutorService$KeyRunner.lambda$run$0(KeyQueuedExecutorService.java:150) ~[FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-949.jar:?]
        at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1423) ~[?:?]
        at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) ~[?:?]
        at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) ~[?:?]
        at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) ~[?:?]
        at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) ~[?:?]
        at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) ~[?:?]

To Reproduce

//snow (a high number)

Expected behaviour

The out of bounds exception.

Screenshots / Videos

image

Error log (if applicable)

https://mclo.gs/0nVcUh7

Fawe Debugpaste

https://athion.net/ISPaster/paste/view/48232a1c853a424db85191cf316f7f1b

Fawe Version

FastASyncWorldEdit-949

Checklist

Anything else?

No response

@tantaf123 tantaf123 added the Requires Testing This is a new issue which needs to be approved before labeled with "bug" label Oct 27, 2024
dordsor21 added a commit that referenced this issue Nov 3, 2024
@dordsor21 dordsor21 linked a pull request Nov 3, 2024 that will close this issue
dordsor21 added a commit that referenced this issue Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Requires Testing This is a new issue which needs to be approved before labeled with "bug"
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant