AndroidIDEOfficial / AndroidIDE

AndroidIDE is an IDE for Android to develop full featured Android apps.
https://m.androidide.com
GNU General Public License v3.0
2.38k stars 312 forks source link

ArrayIndexOutOfBoundsException in GraphicTextRow #266

Closed ghost closed 2 years ago

ghost commented 2 years ago

Screenshot_2022-07-07-04-44-25-226_com itsaky androidide AndroidIDE crash report Manufacturer: Xiaomi Device: M2103K19PG App version: 2.1.2-beta (212)

Stacktrace: java.lang.ArrayIndexOutOfBoundsException: length=128; index=-1 at io.github.rosemoe.sora.graphics.GraphicTextRow.measureText(GraphicTextRow.java:252) at io.github.rosemoe.sora.widget.layout.LineBreakLayout.getCharLayoutOffset(LineBreakLayout.java:178) at io.github.rosemoe.sora.widget.CursorBlink.run(CursorBlink.java:81) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:210) at android.os.Looper.loop(Looper.java:299) at android.app.ActivityThread.main(ActivityThread.java:8298) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:576) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1073)

itsaky commented 2 years ago

Duplicate of #195.