Skip to content

fix: account store ANR and crash hardening for 1.0.11 - #302

Merged
findleyl merged 5 commits into
mainfrom
fix/crash-anr-1-0-11
Oct 17, 2026
Merged

findleyl merged 5 commits into
mainfrom
fix/crash-anr-1-0-11

Conversation

@findleyl

Copy link
Copy Markdown
Member

Fixes the input-dispatch ANR reported in AccountStore.get_all on 1.0.11, and hardens the Compose paths most likely behind the IllegalStateException crashes.

  • AccountStore reads no longer wait on the write lock. Writes are coalesced on a background thread, and unchanged updates are skipped. Switching accounts saves the previous tokens off the main thread.
  • UnifiedPush callbacks run on a background thread instead of the main thread.
  • Window-position reads in glass chrome, acrylic, context chips, shimmer, and mail detail are guarded when the node is detached.
  • Compose content capture is turned off at startup.
  • Effect-driven focus requests on sign-in, search, and settings search are guarded.

Unit tests: 4,333 passed, including the new AccountStoreTest. compileFullReleaseKotlin succeeds.

AccountStore reads now come from the volatile snapshot, and writes persist on a serial background thread outside the lock, so the main thread never waits on a writer encoding and encrypting the account blob. Unchanged profile updates no longer rewrite it, and switching accounts stores the previous tokens off the main thread.
@findleyl
findleyl merged commit 60973c5 into main Oct 17, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant