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

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

Open
2 tasks done
SecretlyJealous opened this issue Nov 17, 2023 · 6 comments
Open
2 tasks done
Labels
Requires Testing This is a new issue which needs to be approved before labeled with "bug"

Comments

@SecretlyJealous
Copy link

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

Anything else?

No response

@SecretlyJealous SecretlyJealous added the Requires Testing This is a new issue which needs to be approved before labeled with "bug" label Nov 17, 2023
@SirYwell
Copy link
Member

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

@dordsor21
Copy link
Member

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

@SecretlyJealous
Copy link
Author

SecretlyJealous commented Nov 18, 2023

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

@dordsor21
Copy link
Member

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

@BlueTree242
Copy link

i am having the same issue

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

No branches or pull requests

5 participants