You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ArrayList.subList IllegalArgumentException when rendering text input widget after pasting code #52
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]
Activity
rubensworks commentedon Dec 1, 2025
Thanks for reporting!
GreyMario commentedon Dec 1, 2025
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.
Fix crash after pasting text that reduces text area size, Closes #52