flutter_sound icon indicating copy to clipboard operation
flutter_sound copied to clipboard

[BUG]: crash on release mode

Open LtotheWT opened this issue 3 years ago • 8 comments

Flutter Sound Version :

  • FULL

  • Important: Result of the command : flutter pub deps | grep flutter_sound -- flutter_sound 7.7.0+1 | |-- flutter... | |-- flutter_sound_platform_interface 7.7.0+1 | | |-- flutter... | | |-- meta... | | '-- plugin_platform_interface... | |-- flutter_sound_web 7.7.0+1 | | |-- flutter... | | |-- flutter_sound_platform_interface... | | |-- flutter_web_plugins... | | |-- js 0.6.2 | | '-- meta...


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 avatar Mar 09 '21 04:03 LtotheWT

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

LtotheWT avatar Mar 09 '21 06:03 LtotheWT

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

db-rdz avatar Mar 13 '21 06:03 db-rdz

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)

prahack avatar Mar 26 '21 13:03 prahack

same error occurred. Async TASK Error in android

YeomDongUk avatar Apr 12 '21 11:04 YeomDongUk

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.

rqmok avatar Apr 15 '21 06:04 rqmok

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().

ethras avatar Apr 15 '21 18:04 ethras

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.

rqmok avatar Apr 19 '21 03:04 rqmok

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.

github-actions[bot] avatar Dec 17 '23 01:12 github-actions[bot]