FastAsyncWorldEdit icon indicating copy to clipboard operation
FastAsyncWorldEdit copied to clipboard

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

Open SecretlyJealous opened this issue 2 years ago • 6 comments

Server Implementation

Paper

Server Version

1.20.2

Describe the bug

When this player joins the server this error is printed:

[09:42:01 INFO]: UUID of player yefreitor is f7c78a7c-f655-44e6-a40b-5ea36782c1f1
[09:42:01 WARN]: java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
[09:42:01 WARN]:        at java.base/jdk.internal.util.Preconditions$1.apply(Preconditions.java:55)
[09:42:01 WARN]:        at java.base/jdk.internal.util.Preconditions$1.apply(Preconditions.java:52)
[09:42:01 WARN]:        at java.base/jdk.internal.util.Preconditions$4.apply(Preconditions.java:213)
[09:42:01 WARN]:        at java.base/jdk.internal.util.Preconditions$4.apply(Preconditions.java:210)
[09:42:01 WARN]:        at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:98)
[09:42:01 WARN]:        at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:106)
[09:42:01 WARN]:        at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:302)
[09:42:01 WARN]:        at java.base/java.lang.String.checkIndex(String.java:4575)
[09:42:01 WARN]:        at java.base/java.lang.StringLatin1.charAt(StringLatin1.java:46)
[09:42:01 WARN]:        at java.base/java.lang.String.charAt(String.java:1535)
[09:42:01 WARN]:        at FastAsyncWorldEdit-Bukkit-2.8.2.jar//com.sk89q.worldedit.world.entity.EntityTypes.convertEntityId(EntityTypes.java:472)
[09:42:01 WARN]:        at FastAsyncWorldEdit-Bukkit-2.8.2.jar//com.sk89q.worldedit.world.entity.EntityTypes.parse(EntityTypes.java:481)
[09:42:01 WARN]:        at FastAsyncWorldEdit-Bukkit-2.8.2.jar//com.sk89q.worldedit.entity.BaseEntity.<init>(BaseEntity.java:118)
[09:42:01 WARN]:        at FastAsyncWorldEdit-Bukkit-2.8.2.jar//com.fastasyncworldedit.core.extent.clipboard.DiskOptimizedClipboard.loadNBTFromFileFooter(DiskOptimizedClipboard.java:270)
[09:42:01 WARN]:        at FastAsyncWorldEdit-Bukkit-2.8.2.jar//com.fastasyncworldedit.core.extent.clipboard.DiskOptimizedClipboard.<init>(DiskOptimizedClipboard.java:198)
[09:42:01 WARN]:        at FastAsyncWorldEdit-Bukkit-2.8.2.jar//com.fastasyncworldedit.core.extent.clipboard.DiskOptimizedClipboard.<init>(DiskOptimizedClipboard.java:167)
[09:42:01 WARN]:        at FastAsyncWorldEdit-Bukkit-2.8.2.jar//com.fastasyncworldedit.core.extent.clipboard.DiskOptimizedClipboard.loadFromFile(DiskOptimizedClipboard.java:223)
[09:42:01 WARN]:        at FastAsyncWorldEdit-Bukkit-2.8.2.jar//com.sk89q.worldedit.LocalSession.lambda$loadClipboardFromDisk$1(LocalSession.java:921)
[09:42:01 WARN]:        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
[09:42:01 WARN]:        at FastAsyncWorldEdit-Bukkit-2.8.2.jar//com.fastasyncworldedit.core.util.task.KeyQueuedExecutorService$KeyRunner.lambda$run$0(KeyQueuedExecutorService.java:150)
[09:42:01 WARN]:        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
[09:42:01 WARN]:        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
[09:42:01 WARN]:        at java.base/java.lang.Thread.run(Thread.java:1623)
[09:42:01 INFO]: yefreitor[/*:54562] logged in with entity id 3161 at ([plotworld]-2090.565644499244, 68.49120751720224, -37060.77915434401)

To Reproduce

  1. Not sure

Expected behaviour

No error in console

Screenshots / Videos

No response

Error log (if applicable)

No response

Fawe Debugpaste

https://athion.net/ISPaster/paste/view/d3dcbe34a5a2403cb2fe8a94deac18fc

Fawe Version

FastAsyncWorldEdit-Bukkit-2.8.2.jar

Checklist

  • [X] I have included a Fawe debugpaste.
  • [X] I am using the newest build from https://ci.athion.net/job/FastAsyncWorldEdit/ and the issue still persists.

Anything else?

No response

SecretlyJealous avatar Nov 17 '23 09:11 SecretlyJealous

you can likely just remove the clipboard of the player, but it would be interesting to analyze these files to track down the issue.

SirYwell avatar Nov 17 '23 10:11 SirYwell

Here are the files: https://www.dropbox.com/scl/fi/goj7p7nunw1i9e2ubgqz5/f7c78a7c-f655-44e6-a40b-5ea36782c1f1.zip?rlkey=j3wqps152agt38nu83wewnsny&dl=1

SecretlyJealous avatar Nov 17 '23 10:11 SecretlyJealous

That's the player's history - the erroneous clipboard file is what's wanted

dordsor21 avatar Nov 18 '23 14:11 dordsor21

That's the player's history - the erroneous clipboard file is what's wanted

Apologies, this should be the clipboard file: https://www.dropbox.com/scl/fi/dj177svf3lvkhepoumygb/f7c78a7c-f655-44e6-a40b-5ea36782c1f1.bd?rlkey=fu9q09llosvjriof069dqh8bh&dl=1

SecretlyJealous avatar Nov 18 '23 14:11 SecretlyJealous

I'm not having any issues with that/been able to identify any issues

dordsor21 avatar Dec 17 '23 12:12 dordsor21

i am having the same issue

BlueTree242 avatar Dec 21 '23 08:12 BlueTree242