SBPrime / AsyncWorldEdit-Premium

Async WorldEdit - Edit millions of blocks without lag! (Premium version)
Other
19 stars 4 forks source link

//undo throws exception when previous operation was cancelled #139

Closed ghost closed 5 years ago

ghost commented 7 years ago

I'm using WorldeditRegions to restrict WorldEdit to only regions players own. When a player tries to perform an edit and it is prevented by the WorldeditRegions plugin, no error is shown in console. However, if they try to undo an operation that was prevented, this error is shown in console.

[01:09:41 INFO]: RoyalXVI issued server command: //cut
[01:09:41 INFO]: WorldEdit: RoyalXVI (in "freebuild"): /cut - Region: (69.0, 62.0, 443.0) - (74.0, 63.0, 452.0)
[01:09:51 INFO]: RoyalXVI issued server command: //undo
[01:09:51 INFO]: WorldEdit: RoyalXVI (in "freebuild"): /undo
[01:09:51 INFO]: [AsyncWorldEdit] ***********************************
[01:09:51 INFO]: [AsyncWorldEdit] Unable to create undo iterator for 97f52434-8d1e-4e2c-bbab-178870b41e08.1
[01:09:51 INFO]: [AsyncWorldEdit] ***********************************
[01:09:51 INFO]: [AsyncWorldEdit] * Exception: java.io.FileNotFoundException
[01:09:51 INFO]: [AsyncWorldEdit] * Error message: plugins/AsyncWorldEdit/undo/e0c153c3-9517-48eb-831e-b24d79a62fae/97f52434-8d1e-4e2c-bbab-178870b41e08.1 (No such file or directory)
[01:09:51 INFO]: [AsyncWorldEdit] * Stack:
[01:09:51 INFO]: [AsyncWorldEdit] * java.io.RandomAccessFile.open0(Native Method)
[01:09:51 INFO]: [AsyncWorldEdit] * java.io.RandomAccessFile.open(RandomAccessFile.java:316)
[01:09:51 INFO]: [AsyncWorldEdit] * java.io.RandomAccessFile.<init>(RandomAccessFile.java:243)
[01:09:51 INFO]: [AsyncWorldEdit] * org.primesoft.asyncworldedit.changesetSerializer.iterators.BaseFileIterator.initializeStream(BaseFileIterator.java:109)
[01:09:51 INFO]: [AsyncWorldEdit] * org.primesoft.asyncworldedit.changesetSerializer.iterators.UndoFileBackwordIterator.initializeStream(UndoFileBackwordIterator.java:76)
[01:09:51 INFO]: [AsyncWorldEdit] * org.primesoft.asyncworldedit.worldedit.history.changeset.FileChangeSet.initializeIterator(FileChangeSet.java:313)
[01:09:51 INFO]: [AsyncWorldEdit] * org.primesoft.asyncworldedit.worldedit.history.changeset.FileChangeSet.backwardIterator(FileChangeSet.java:122)
[01:09:51 INFO]: [AsyncWorldEdit] * org.primesoft.asyncworldedit.worldedit.history.changeset.ThreadSafeChangeSet.backwardIterator(ThreadSafeChangeSet.java:93)
[01:09:51 INFO]: [AsyncWorldEdit] * org.primesoft.asyncworldedit.worldedit.history.changeset.MemoryMonitorChangeSet.backwardIterator(MemoryMonitorChangeSet.java:159)
[01:09:51 INFO]: [AsyncWorldEdit] * org.primesoft.asyncworldedit.worldedit.ThreadSafeEditSession.doUndo(ThreadSafeEditSession.java:956)
[01:09:51 INFO]: [AsyncWorldEdit] * org.primesoft.asyncworldedit.worldedit.UndoProcessor.processUndo(UndoProcessor.java:79)
[01:09:51 INFO]: [AsyncWorldEdit] * org.primesoft.asyncworldedit.worldedit.CancelabeEditSession.doUndo(CancelabeEditSession.java:447)
[01:09:51 INFO]: [AsyncWorldEdit] * org.primesoft.asyncworldedit.worldedit.CancelabeEditSession.undo(CancelabeEditSession.java:443)
[01:09:51 INFO]: [AsyncWorldEdit] * org.primesoft.asyncworldedit.worldedit.AsyncEditSession$1.task(AsyncEditSession.java:144)
[01:09:51 INFO]: [AsyncWorldEdit] * org.primesoft.asyncworldedit.worldedit.AsyncTask.doRun(AsyncTask.java:64)
[01:09:51 INFO]: [AsyncWorldEdit] * org.primesoft.asyncworldedit.worldedit.BaseTask.run(BaseTask.java:142)
[01:09:51 INFO]: [AsyncWorldEdit] * org.primesoft.asyncworldedit.utils.SchedulerUtils.processTaskQueue(SchedulerUtils.java:156)
[01:09:51 INFO]: [AsyncWorldEdit] * org.primesoft.asyncworldedit.utils.SchedulerUtils.access$000(SchedulerUtils.java:50)
[01:09:51 INFO]: [AsyncWorldEdit] * org.primesoft.asyncworldedit.utils.SchedulerUtils$1.run(SchedulerUtils.java:119)
[01:09:51 INFO]: [AsyncWorldEdit] * org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:71)
[01:09:51 INFO]: [AsyncWorldEdit] * org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:52)
[01:09:51 INFO]: [AsyncWorldEdit] * java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[01:09:51 INFO]: [AsyncWorldEdit] * java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[01:09:51 INFO]: [AsyncWorldEdit] * java.lang.Thread.run(Thread.java:745)
[01:09:51 INFO]: [AsyncWorldEdit] ***********************************
SBPrime commented 5 years ago

Problem solved in 3.6.0