question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG]: Audio player stops with internal "Unhandled Exception: killed by cleanCompleters"

See original GitHub issue

Flutter Sound Version :

  • both FULL and LITE flavors
  • Result of the command : flutter pub deps | grep flutter_sound

|-- flutter_sound_lite 8.5.0 | |-- flutter_sound_platform_interface 8.5.0 | |-- flutter_sound_web 8.5.0 | | |-- flutter_sound_platform_interface…


Severity

  • Result is not what expected
  • App stucks(not crashes) with an internal exception that I can NOT catch

Platforms you faced the error

  • Android

  • Real device

    We have got the reviews about the issue from this devices:

    • Samsung Galaxy A30 (Android 11)
    • Redmi Note 8 Pro (Android 11)
    • Huawei P10 Lite (Android 8)
    • Huawei P20 Lite (Android 9)
    • Huawei Honor 9 (Android 9)

Describe the bug

Our app (link to the Play Market) has an Pronunciation exercise. Steps of this exercise:

  1. plays narrator’s audio
  2. records user’s pronunciation
  3. plays user’s pronunciation
  4. plays narrator’s audio

There is a probability that program will stuck between 1st and 2nd points. Then we have no catched exception and program just idle at that screen.

We have a device (Huawei Honor 9 (Android 9)) which produces this exception during 3-10 minutes with 100% probability. Honestly, at this device exercise is lagging with increasing over time till the end exception.

My device is Pixel 4a (Android 12). There was the cases when I produce this exception too. But for now it is an irrelevant for my device.

To Reproduce

I have a demo code which has not produce the exception but still if you need it for test.

Steps to reproduce the behavior in the our app from Play Market

  1. Download an app
  2. Move to the main screen
  3. Press “Settings” button at the navigation bar
  4. Press “Lesson Settings”
  5. Choose only “Pronunciation” for a test
  6. Move to the main screen
  7. Press on the topic
  8. Here we have a probability to get the issue after the first step from the paragraph “Describe the bug” - plays narrator’s audio

Logs

Part of an exercise logs till the exception: error_at_the_end.log Correct full logs of a successfully passed excercise: correct_full.log


Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
Larpouxcommented, Apr 14, 2022

It is completely normal. We all are just making our job.

I had not think like that, but you are perfectly right to point that. I am more than 70 years old, have absolutely no knowledge for war, do not speak Russian or Ukrainian. It will not be helpful for you if I go to fight in Ukraine. I am definitely not a warrior. But I feel a little guilty for that.

The only thing that I can do more or less correctly in my life is coding software. I am glad that you told me that it will help you, indirectly.

1reaction
mukntacommented, Apr 14, 2022

Actually your audio plugin makes possible to us to earn money and therefore paying of the taxes 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

[BUG]: Audio player stops with internal "Unhandled Exception
[BUG]: Audio player stops with internal "Unhandled Exception: killed by cleanCompleters". This issue has been created since 2022-04-11.
Read more >
Callback for player stop · Issue #7 · Canardoux/flutter_sound
Hi, when player ends playing audio file it stops automatically, but i can't set callback on this behavior.
Read more >
Music service killed even when startForground - Stack Overflow
Is it possible to prevent Service(startForground) from being killed by os? No. It's Android who decides which process has to be stopped when....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found