IntellectualSites / IntellectualSites/FastAsyncWorldEdit

#averagecolor Incomplete result with IndexOutOfBoundsException

Open
#3,392 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Requires Testing
Dominant language
Java
Stars
806
Forks
394
Avg merge
22h 19m
Merged PRs (30d)
14

Description

Server Implementation

Paper

Server Version

1.21.8

Describe the bug

running the average color pattern with //replace doesn't produce intended result, several chunks are missing (when this happens it appears to be random).

To Reproduce
  1. Select a somewhat large, flat area, freshly loaded in (e.g. after running /plot auto)
  2. //r #averagecolor[0][255][255][255]
    Sometimes but not always, the command will result in the error and produce an incomplete result.
Image

Corresponding to this is this stacktrace
https://i.rudyops.com/nAVa2/Nowenepi73.txt

It seems like after you fly around a bit, you can //undo the incomplete result and run the same command again and it will work fine. Sometimes it results in the IndexOutOfBoundsException error.

Image After //undo then running the same command
Expected behaviour

Should produce a uniform result and sometimes does on first try, but not always.

Image
Screenshots / Videos

No response

Error log (if applicable)

https://i.rudyops.com/nAVa2/Nowenepi73.txt

Fawe Debugpaste

https://athion.net/ISPaster/paste/view/4ed1832a877540d5ac01e00416fc3987

Fawe Version

Build 1228

Checklist
Anything else?

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing //r #averagecolor[0][255][255][255] on a freshly loaded, large flat area, then inspect the linked stacktrace and FAWE debugpaste. Done means the command no longer raises IndexOutOfBoundsException and produces a complete, uniform result on the first run.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.