FastAsyncWorldEdit

FastAsyncWorldEdit

152k Downloads

Setting store-redo to false breaks undo

Bobcat00 opened this issue ยท 1 comments

commented

Server Implementation

Paper

Server Version

1.19.3

Describe the bug

With use-disk and store-redo set to false, doing //undo causes an exception at best and an infinite loop at worst.

To Reproduce

  1. Create a new server with Paper and FAWE, agree to the EULA - you know the deal.
  2. Start the server and let it create the various files, then stop the server.
  3. Edit plugins/FastAsyncWorldEdit/config.yml and in the history section, change both use-disk to false and store-redo to false.
  4. Start the server.
  5. Join the server, op yourself via the console, then set yourself to Creative mode.
  6. Select a 10x10 area on the ground with //hpos1 and //hpos2, then do //expand 10 up.
  7. Do //set stone. Observe the stone cube is created.
  8. Do //undo. Observe an ArrayIndexOutOfBoundsException exception. I've also seen this put all cores of the CPU into an infinite loop. Maybe that requires a bigger cube.

Expected behaviour

The cube is undone. No exception. No infinite loop.

Screenshots / Videos

No response

Error log (if applicable)

https://paste.gg/p/anonymous/ae7e4fbe67bc43e09580b809f9d4683f

Fawe Debugpaste

https://athion.net/ISPaster/paste/view/0a5fc2cecce04ad698b1dd6a47cbb6cf

Fawe Version

FastAsyncWorldEdit version 2.5.3-SNAPSHOT-368;c0dc42e

Checklist

Anything else?

This is on a brand new server, created explicitly for this bug report.

commented

I see that it took 4 seconds for the exception to occur. Maybe that info will help.