Skip to content

🐛 Fix crash on exit on iOS - #404

Merged
fuzzybinary merged 1 commit into
developfrom
jward/RUMM-3238-crash-on-exit
Apr 25, 2023
Merged

fuzzybinary merged 1 commit into
developfrom
jward/RUMM-3238-crash-on-exit

Conversation

@fuzzybinary

Copy link
Copy Markdown
Member

What and why?

The fix we thought we applied in 1.2.2 (#348) didn't seem to work, so we're trying a different approach.

detachFromEngine still isn't being called when its supposed to, but applicationWillTerminate is being called, and its currently safe to detach twice even if detachFromEngine does get called. This should avoid crashes with the console logger attempting to call back to Flutter after its shut down.

Fixes #390

Review checklist

  • This pull request has appropriate unit and / or integration tests
  • This pull request references a Github or JIRA issue

CI Configuration (optional)

  • Run unit tests
  • Run integration tests

@fuzzybinary
fuzzybinary requested a review from a team as a code owner April 24, 2023 16:37
`detachFromEngine` still isn't being called when its supposed to, but `applicationWilTerminate` is being called, and its currently safe to detach twice even if `detachFromEngine` does get called. This should avoid crashes with the console logger attempting to call back to Flutter after its shut down.

Fixes #390
@fuzzybinary
fuzzybinary force-pushed the jward/RUMM-3238-crash-on-exit branch from 1a48aef to 851b367 Compare April 24, 2023 18:43
@fuzzybinary
fuzzybinary merged commit 61bb6b4 into develop Apr 25, 2023
@fuzzybinary
fuzzybinary deleted the jward/RUMM-3238-crash-on-exit branch April 25, 2023 12:03
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.

Fatal Exception: NSInternalInconsistencyException

2 participants