chipweinberger / flutter_pcm_sound

A flutter plugin for playing raw PCM audio data (16-bit integer)
Other
16 stars 7 forks source link

Android app freezes and crashed when use FlutterPcmSound.release(). The same when back then access again to Screen play pcm. #3

Closed BinhT1 closed 1 year ago

BinhT1 commented 1 year ago

i pull code from source and run example in android device. i write a simple homepage and navigate to example PcmSoundApp page. i access PcmSoundApp page and play music then stop. i back to homepage and access again to PcmSoundApp page, then my emulator is freezes and crashed, the same when i use FlutterPcmSound.release()

here is Error

I/flutter ( 9655): [PCM] invoke: release
D/AudioTrack( 9655): stop(28): called with 283045 frames delivered
I/example.exampl( 9655): Waiting for a blocking GC ProfileSaver
I/example.exampl( 9655): WaitForGcToComplete blocked ProfileSaver on HeapTrim for 8.980ms
I/example.exampl( 9655): Thread[3,tid=9667,WaitingInMainSignalCatcherLoop,Thread*=0xe4208c10,peer=0x13100228,"SignalCatcher"]: reacting to signal 3
I/example.exampl( 9655):
I/example.exampl( 9655): Wrote stack traces to tombstoned
Lost connection to device.
Exited (sigterm)
chipweinberger commented 1 year ago

please open a PR to fix it. thanks.

BinhT1 commented 1 year ago

i opened a pull request for this issue. This is the first time i have made a PR, please understand

chipweinberger commented 1 year ago

hey really awesome of you! thats something to be celebrated!

chipweinberger commented 1 year ago

fixed in 1.1.0