Application crashes when terminated by user on iOS, still exists in just_audio: 0.10.0
Which API doesn't behave as documented, and how does it misbehave?
- use just_audio: 0.10.0 normally.
Minimal reproduction project Provide a link here using one of two options:
- The Example
To Reproduce (i.e. user steps, not code) Steps to reproduce the behavior:
- install and open the app, play audio then swipe the app
Error messages
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Sending a message before the FlutterEngine has been run.'
Expected behavior the bug will cause alert crash dialog when build in ios testflight with same reproduce behavior.
Screenshots
Desktop (please complete the following information):
- OS: MacOS 15.3.1
Smartphone (please complete the following information):
- Device: iPhone12
- OS: iOS18.4
Flutter SDK version
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.29.3, on macOS 15.3.1 24D70 darwin-arm64, locale
en-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.2)
[✓] VS Code (version 1.99.3)
[✓] Connected device (4 available)
[✓] Network resources
Additional context no.
The original issue is #1350, use just_audio:0.9.46 will be ok.
I have the same issue with 0.10.1
The original issue is #1350, use just_audio:0.9.46 will be ok.
Thanks, just_audio: ^0.9.46 works for me
Same issue that points to BetterEventChannel dispose method
0.10.2 crashes too. Not surprising, but this issue was not addressed in this release.
Same issue here
Can be reproduced using just_audio: 0.10.3.
Seems be fixed by just_audio: ^0.10.4