[SPIGOT-4816] Editing book causes glitchy behaviour Created: 30/Apr/19  Updated: 30/Apr/19  Resolved: 30/Apr/19

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Andre_601 Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: 1.14, spigot

Attachments: Text File crash-2019-04-30_02.10.43-client.txt    
Version: git-Spigot-4d24e36-ea5d868 (MC: 1.14)
Guidelines Read: Yes

 Description   

When you open a Book GUI (Use a book and quill), click the text in it to move the curson and then press a keyboard key (For example one of the arrow key) the Minecraft client crashes with a StringIndexOutOfBoundsException

This was tested on Singleplayer and Also a plain vanilla server without any client-crashes and it only happens in survival (and maybe adventure mode, but not tested) mode and not creative mode.

Full client crash report is attached to this.



 Comments   
Comment by md_5 [ 30/Apr/19 ]

I am seeing glitchy editing behaviour, but no crash.

 

Copying your video exactly.

Comment by Andre_601 [ 30/Apr/19 ]

I created a gfycat-gif showing the issue: https://gfycat.com/FlatSparklingAmurminnow

Steps I made:

  1. Go in creative
  2. Get a book and quill
  3. Go back into survival
  4. Open book and quill
  5. Type text in it.
  6. Close it
  7. Open again
  8. Click into the text to move cursor
  9. Press keys (In this case backspace)
Comment by md_5 [ 30/Apr/19 ]

And I mentioned I tested survival..

Comment by Andre_601 [ 30/Apr/19 ]

@md_5 Forgot to mention that it doesn't happen in creative, but only in survival (Didn't check in adventure mode, but assume a simmilar thing could happen there)

Updated the report about that.

Comment by md_5 [ 30/Apr/19 ]

Cannot reproduce.

 

Gave book in creative.

Wrote in it.

Moved cursor, wrote more no issues.

 

Closed book.

Repeated writing and moving of cursor, no issue.

 

Switched to survival mode, repeated writing and moving of cursor, no issue.

 

Moved book around inventory, repeated writing and moving of cursor, no issue.

Generated at Tue Apr 22 04:41:53 UTC 2025 using Jira 10.3.5#10030005-sha1:190c783f2bd6c69cd5accdb70f97e48812a78d14.