This repository was archived by the owner on Oct 18, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 502
This repository was archived by the owner on Oct 18, 2024. It is now read-only.
IndexOutOfBoundsException in TextLayoutHelper.getCurPosLeft #731
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
Crash occurred
What's the expected behavior?
In editor
What version of AndroidIDE you're using?
v2.1.3
Relevant log output
AndroidIDE crash report
Manufacturer: realme
Device: RMX3171
ABI: arm64-v8a
SDK version: 30
App version: 2.1.3-beta (213)
Stacktrace: java.lang.IndexOutOfBoundsException: setSpan (27 ... 27) ends beyond length 26
at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:1325)
at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:684)
at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:676)
at android.text.Selection.setSelection(Selection.java:94)
at android.text.Selection.setSelection(Selection.java:78)
at android.text.Selection.setSelection(Selection.java:153)
at io.github.rosemoe.sora.text.TextLayoutHelper.getCurPosLeft(TextLayoutHelper.java:25)
at io.github.rosemoe.sora.widget.CodeEditor.deleteText(CodeEditor.java:193)
at io.github.rosemoe.sora.widget.CodeEditor.onKeyDown(CodeEditor.java:1596)
at android.view.KeyEvent.dispatch(KeyEvent.java:2865)
at android.view.View.dispatchKeyEvent(View.java:14448)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1976)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1976)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1976)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1976)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1976) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1976) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1976) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1976) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1976) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1976) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1976) at com.android.internal.policy.DecorView.superDispatchKeyEvent(DecorView.java:563) at com.android.internal.policy.PhoneWindow.superDispatchKeyEvent(PhoneWindow.java:1879) at android.app.Activity.dispatchKeyEvent(Activity.java:4156) at androidx.core.app.ComponentActivity.superDispatchKeyEvent(ComponentActivity.java:1) at androidx.core.view.KeyEventDispatcher.dispatchKeyEvent(KeyEventDispatcher.java:11) at androidx.core.app.ComponentActivity.dispatchKeyEvent(ComponentActivity.java:19) at androidx.appcompat.app.AppCompatActivity.dispatchKeyEvent(AppCompatActivity.java:23) at androidx.appcompat.view.WindowCallbackWrapper.dispatchKeyEvent(WindowCallbackWrapper.java:3) at androidx.appcompat.app.AppCompatDelegateImpl$AppCompatWindowCallback.dispatchKeyEvent(AppCompatDelegateImpl.java:20) at com.android.internal.policy.DecorView.dispatchKeyEvent(DecorView.java:451) at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:6662) at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:6522) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5951) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:6015) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5974) at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:6160) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5982) at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:6217) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5955) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:6015) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5974) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5982) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5955) at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:8958) at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:8909) at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:8860) at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:5697) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:255) at android.app.ActivityThread.main(ActivityThread.java:8212) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:632) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)[Bug]:Duplicate issues
- This issue has not been reported yet.
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working