Skip to content

ArrayList.subList IllegalArgumentException when rendering text input widget after pasting code #52

Closed

Description

@GreyMario

Issue type:

  • 🐛 Bug

Short description:

Bringing a crashlog from the Discord where user encountered crash when pasting script.

User believes they erased existing script manually and selected topmost line before pasting new script. User claims TPS of server is suffering, so server performance may be related.

Description: Rendering screen

java.lang.IllegalArgumentException: fromIndex(33) > toIndex(26)
	at java.base/java.util.AbstractList.subListRangeCheck(AbstractList.java:511) ~[?:?] {re:mixin}
	at java.base/java.util.ArrayList.subList(ArrayList.java:1190) ~[?:?] {re:mixin}
	at TRANSFORMER/integratedscripting@1.0.19/org.cyclops.integratedscripting.client.gui.component.input.WidgetTextArea.rebuildDisplayCache(WidgetTextArea.java:581) ~[integratedscripting-1.21.1-neoforge-1.0.19-295.jar%23915!/:1.0.19]

Versions:

  • This mod: IntegratedScripting v1.0.19
  • Minecraft: 1.21.1
  • Mod loader version: NeoForge v21.1.215

Log file:

https://mclo.gs/kCyCJ2q

Activity

  1. rubensworks commented on Dec 1, 2025

    @rubensworks
    Member

    Thanks for reporting!

  2. GreyMario commented on Dec 1, 2025

    @GreyMario
    Author

    Further conversation and a look at https://github.com/CyclopsMC/IntegratedScripting/blob/master-1.21-lts/src/main/java/org/cyclops/integratedscripting/client/gui/component/input/WidgetTextArea.java#L581 is leading me to believe that this might happen when replacing a tall text with one that doesn't scroll? Needs further testing.

    GitHub
    Create scripts for handling complex operations in Integrated Dynamics - CyclopsMC/IntegratedScripting
  3. added a commit that references this issue on Dec 21, 2025
    5789504
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions