flutter_sound icon indicating copy to clipboard operation
flutter_sound copied to clipboard

[BUG]: -[FlautoRecorder updateRecorderProgress:] EXC_BAD_ACCESS (KERN_INVALID_ADDRESS)

Open bloemy7 opened this issue 1 year ago • 5 comments

Flutter Sound Version :

  • Full
├── flutter_sound 9.6.0
│   ├── flutter_sound_platform_interface 9.6.0
│   ├── flutter_sound_web 9.6.0
│   │   ├── flutter_sound_platform_interface...

Severity

  • Crash: This is causing a lot of remote crashes.

Platforms you faced the error

  • iOS: this only happens on iOS, in real devices

Describe the bug Through Crashlytics, we are seeing a large amount of reports of this crash happening to users:

FlautoRecorder.mm - Line 353
-[FlautoRecorder updateRecorderProgress:] + 353
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000000

We are using this code:

_recorder?.onProgress?.listen((e) async {

and I suppose it is linked to this somehow.

To Reproduce Unfortunately I am not able to reproduce this bug myself.

Logs!!!!

Unfortunately I cannot reproduce it myself so I don't have logs.

Potentially related? https://github.com/Canardoux/flutter_sound/issues/1062

bloemy7 avatar Aug 02 '24 15:08 bloemy7

Yes, probably related to #1062. 👎 I don’t like this. This bug is probably serious. But hard to work on it because we can’t reproduce it in lab.

Larpoux avatar Aug 02 '24 15:08 Larpoux

Unfortunately it's happening more and more for users out there. I know you are working hard on the 10.X rewrite. Do you have an estimated release time for that or not quite yet? @Larpoux regardless I appreciate your hard work on this, thank you so much.

bloemy7 avatar Aug 08 '24 17:08 bloemy7

Yes, I am very busy on 10.0 But this kind of problem is higher priority. If the problem is more and more frequent, we (I) must do something. I will switch to 9.x maintenance tomorrow, and I will let you know if I can do something.

Larpoux avatar Aug 08 '24 17:08 Larpoux

Flutter Sound 9.9.6 is released.

9.9.6

Add two safeguards in iOS low level to protect us against asynchronous failures (#1062) and (#1063).

Can you try and give a feedback ? You may cross your fingers! If the problem remains, give me the new diagnostics, even if they are same.

Larpoux avatar Aug 09 '24 09:08 Larpoux

Thanks a lot @Larpoux . I will be updating to this in our next release (in a week or so) and I'll tell you if I see anything improve!

bloemy7 avatar Aug 12 '24 23:08 bloemy7