fdbffc9f5c7b43d0a7f6d889df18b2f9ba65ebd5
Crash on device (Pixel 9 Pro, Android 17) when swiping the app away from recents: JNI DETECTED ERROR: java_object == null in call to GetObjectClass #06 libgio.so (registerFragment+104) Root cause: Gio's window.detach sends an EMPTY AndroidViewEvent (View == 0) as its detach signal (os_android.go: window.detach -> processEvent(AndroidViewEvent{})), which fires when the GioView is destroyed — i.e. the activity going away on a recents-wipe. Our handleEvent passed that null ref straight into registerFragment, whose GetObjectClass(null) aborts. Pre-existing latent bug; the emulator never delivered a detach event in testing (home keeps the view attached, force-stop kills before the event dispatches). Guard on both sides: handleEvent ignores the View == 0 detach signal (a re-attach arrives as a fresh event with a live view), and registerFragment returns early on a null view as defense in depth. Verified on the crashing device: recents swipe now closes the app cleanly, crash buffer empty.
Description
A simple, high performance text editor.
50 MiB
Languages
Go
92.7%
Shell
4.7%
Java
1.1%
C
0.8%
Python
0.7%