bug: hyphen editor crash
Hello. I faced the crash when I was trying to use H1 size symbols, so I will leave the logs below. I saw at logs and thought this might be related to a keyboard, but I'm using HeliBoard (latest version, English language). I've never faced bugs with this keyboard in any other app before, but I thought this information might be helpful.
If you need more information or details on how exactly I encountered this, I'll try to explain, give instructions, or even send a video (in a private messenger).
--- 08:02:34.268 [events] --- I jank_cuj_events_begin_request: [CUJ Type=80, Unix Time Ns=1777140154267427, Elapsed Time Ns=239626710546.119, Uptime Ns=239626710547.015, Tag=0@[email protected]]
--- 08:02:34.301 [main] --- D WindowOnBackDispatcher: setTopOnBackInvokedCallback (unwrapped): c.b0@a51b56a
--- 08:02:34.312 [events] --- I viewroot_draw_event: [window=VRI[Pop-Up], event=reportDrawFinished seqId=0]
--- 08:02:34.327 [events] --- I viewroot_draw_event: [window=VRI[Pop-Up], event=reportDrawFinished seqId=0]
--- 08:02:34.331 [main] --- D WindowOnBackDispatcher: setTopOnBackInvokedCallback (unwrapped): (empty)
--- 08:02:34.563 [main] --- I ImeTracker: com.denser.june:e5591040: onShown
--- 08:02:34.565 [events] --- I jank_cuj_events_end_request: [CUJ Type=80, Unix Time Ns=1777140154562646, Elapsed Time Ns=239627005763.893, Uptime Ns=239627005764.178]
--- 08:02:34.703 [main] --- D WindowOnBackDispatcher: setTopOnBackInvokedCallback (unwrapped): c.b0@fd443d
--- 08:02:34.714 [events] --- I viewroot_draw_event: [window=VRI[Pop-Up], event=reportDrawFinished seqId=0]
--- 08:02:34.735 [events] --- I viewroot_draw_event: [window=VRI[Pop-Up], event=reportDrawFinished seqId=0]
--- 08:02:35.055 [main] --- D WindowOnBackDispatcher: setTopOnBackInvokedCallback (unwrapped): (empty)
--- 08:02:35.644 [main] --- W com.denser.june: Cleared Reference was only reachable from finalizer (only reported once)
--- 08:02:36.218 [main] --- D ProfileInstaller: Skipping profile installation for com.denser.june
--- 08:02:54.235 [main] --- D AndroidRuntime: Shutting down VM
--- 08:02:54.237 [crash] --- E AndroidRuntime: FATAL EXCEPTION: main E AndroidRuntime: Process: com.denser.june, PID: 23393 E AndroidRuntime: java.lang.IndexOutOfBoundsException: start 256, end 255, length 255 E AndroidRuntime: at java.lang.AbstractStringBuilder.checkRange(AbstractStringBuilder.java:1742) E AndroidRuntime: at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:695) E AndroidRuntime: at java.lang.StringBuilder.append(StringBuilder.java:246) E AndroidRuntime: at x0.f0.toString(Unknown Source:39) E AndroidRuntime: at cl.s.b(Unknown Source:165) E AndroidRuntime: at hk.e.j(Unknown Source:63) E AndroidRuntime: at x0.k0.endBatchEdit(Unknown Source:7) E AndroidRuntime: at k3.n.endBatchEdit(Unknown Source:5) E AndroidRuntime: at android.view.inputmethod.RemoteInputConnectionImpl.lambda$endBatchEdit$35(RemoteInputConnectionImpl.java:975) E AndroidRuntime: at android.view.inputmethod.RemoteInputConnectionImpl.$r8$lambda$sdyvX76mLIMIRRSEQOCT-rRsrEE(Unknown Source:0) E AndroidRuntime: at android.view.inputmethod.RemoteInputConnectionImpl$$ExternalSyntheticLambda13.run(Unknown Source:0) E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:1070) E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:125) E AndroidRuntime: at android.os.Looper.dispatchMessage(Looper.java:333) E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:263) E AndroidRuntime: at android.os.Looper.loop(Looper.java:367) E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:9331) E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:566) E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:837)
--- 08:02:54.262 [main] --- I Process: Sending signal. PID: 23393 SIG: 9
Noted. this is a bug in the hyphen editor, I'll fix it soon. It would be really helpful if you provide exact steps to reproduce this problem. I assume you did some kind of text selection?
Do you use Matrix.org, SimpleX, or at least Telegram? I tried to upload a screen recording to Drive and share it via a public link, but nothing worked. It's also too big to upload even here, on GitHub
I encountered a similar issue when using headers. I will attach additional information.
Description
When using headers of any level while typing text, strange visual effects occur (shown in the video), after which the app crashes. The created or edited note is not saved.
The issue reproduces regardless of how the header is inserted.
Steps to Reproduce
- Open the June app.
- Create a new note or open an existing one.
- Try to format a header in any of the following ways:
- Manually type markup characters, for example:
# Header,## Subheader,### Level 3 header, etc. - Or press the corresponding buttons on the formatting toolbar.
- Manually type markup characters, for example:
- Observe the strange UI behavior.
- The app crashes.
Environment
- App version: June v0.8
- Device: Pixel 8
- OS: GrapheneOS v2026050901
- Keyboard app: HeliBoard v3.9
Screen recording
The screen recording is not attaching. If needed, I can send it via Telegram or email.
Logs
type: crash
osVersion: google/shiba/shiba:16/BP4A.260205.001/2026050901:user/release-keys
flags: dev options enabled
package: com.denser.june:10, targetSdk 36
process: com.denser.june
processUptime: 11597 + 334 ms
installer: dev.imranr.obtainium.fdroid
java.lang.IndexOutOfBoundsException: start 256, end 255, length 255
at java.lang.AbstractStringBuilder.checkRange(AbstractStringBuilder.java:1742)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:695)
at java.lang.StringBuilder.append(StringBuilder.java:246)
at x0.f0.toString(r8-map-id-8f0e9665b304bddedd64d79e7574bb4f5cacf8ecd85c80ae897a6663f503d766:39)
at cl.s.b(r8-map-id-8f0e9665b304bddedd64d79e7574bb4f5cacf8ecd85c80ae897a6663f503d766:165)
at hk.e.j(r8-map-id-8f0e9665b304bddedd64d79e7574bb4f5cacf8ecd85c80ae897a6663f503d766:63)
at x0.k0.endBatchEdit(r8-map-id-8f0e9665b304bddedd64d79e7574bb4f5cacf8ecd85c80ae897a6663f503d766:7)
at k3.n.endBatchEdit(r8-map-id-8f0e9665b304bddedd64d79e7574bb4f5cacf8ecd85c80ae897a6663f503d766:5)
at android.view.inputmethod.RemoteInputConnectionImpl.lambda$endBatchEdit$35(RemoteInputConnectionImpl.java:975)
at android.view.inputmethod.RemoteInputConnectionImpl.$r8$lambda$dyvX76mWLIMlRRSgQ0CT-rRsrEE(Unknown Source:0)
at android.view.inputmethod.RemoteInputConnectionImpl$$ExternalSyntheticLambda13.run(D8$$SyntheticClass:0)
at android.os.Handler.handleCallback(Handler.java:1070)
at android.os.Handler.dispatchMessage(Handler.java:125)
at android.os.Looper.dispatchMessage(Looper.java:333)
at android.os.Looper.loopOnce(Looper.java:263)
at android.os.Looper.loop(Looper.java:367)
at android.app.ActivityThread.main(ActivityThread.java:9332)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:566)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:837)