Canardoux / flutter_sound

Flutter plugin for sound. Audio recorder and player.
Mozilla Public License 2.0
850 stars 553 forks source link

[BUG]: crash on release mode #643

Open LtotheWT opened 3 years ago

LtotheWT commented 3 years ago

Flutter Sound Version :


Severity

Crash in release build, works fine in debug mode


Platforms you faced the error

Android, not yet tested in ios


Describe the bug flutter build apk for release mode, crash when go to screen that used this plugin

To Reproduce flutter build apk for release mode, crash when go to screen that used this plugin


Logs!!!!

cant get the log as its only crash in release mode


LtotheWT commented 3 years ago

works if build with this command flutter build apk --no-shrink

db-rdz commented 3 years ago

I'm having the same problem but I'm using an iPhone 12 mini with iOS v14.4 and using the full version of flutter_sound 8.0.0+6. I'm running Flutter v2.0.1 with Dart v2.12.0. When I open up the view that uses the recorder it automatically pops without any log message, sometimes the app crashes after the view pops. Here's what it looks like when I navigate to the recorder view:

https://giphy.com/gifs/nlt5aL50upbORF9v8q/html5

prahack commented 3 years ago

In my experience, crashes only happen when recording stops. I got the following error when I debugging the app in the release mode. image (38)

YeomDongUk commented 3 years ago

same error occurred. Async TASK Error in android

rqmok commented 3 years ago

Are we aware of a workaround for this problem? We are about to release our app soon and one of the critical functionalities is recording audio.

ethras commented 3 years ago

Found a solution here !

https://github.com/tanersener/flutter-ffmpeg/issues/237

If flutter_ffmpeg release builds on Android fail with the following exception, make sure that mavenCentral() is defined as a repository in your build.gradle and it is listed before jcenter().

rqmok commented 3 years ago

Found a solution here !

tanersener/flutter-ffmpeg#237

If flutter_ffmpeg release builds on Android fail with the following exception, make sure that mavenCentral() is defined as a repository in your build.gradle and it is listed before jcenter().

Thanks. Can confirm this solved the issue for me.

github-actions[bot] commented 6 months ago

This issue is stale because it has been open 90 days with no activity. Leave a comment or this will be closed in 7 days.