just_audio icon indicating copy to clipboard operation
just_audio copied to clipboard

Application crashes when terminated by user on iOS, still exists in just_audio: 0.10.0

Open ebwood opened this issue 8 months ago • 8 comments

Which API doesn't behave as documented, and how does it misbehave?

  1. use just_audio: 0.10.0 normally.

Minimal reproduction project Provide a link here using one of two options:

  1. The Example

To Reproduce (i.e. user steps, not code) Steps to reproduce the behavior:

  1. 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

Image

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.

ebwood avatar Apr 25 '25 09:04 ebwood

The original issue is #1350, use just_audio:0.9.46 will be ok.

ebwood avatar Apr 25 '25 09:04 ebwood

I have the same issue with 0.10.1

jmg2000 avatar Apr 30 '25 12:04 jmg2000

The original issue is #1350, use just_audio:0.9.46 will be ok.

Thanks, just_audio: ^0.9.46 works for me

thang510023 avatar Apr 30 '25 16:04 thang510023

Same issue that points to BetterEventChannel dispose method

MiskLG avatar May 01 '25 02:05 MiskLG

0.10.2 crashes too. Not surprising, but this issue was not addressed in this release.

volgin avatar May 04 '25 22:05 volgin

Same issue here

vongrad avatar May 10 '25 07:05 vongrad

Can be reproduced using just_audio: 0.10.3.

EArminjon avatar May 20 '25 07:05 EArminjon

Seems be fixed by just_audio: ^0.10.4

EArminjon avatar Jul 07 '25 19:07 EArminjon