Player with RUNTIME ERROR in Android 9

Hello all.

I’ve got a “RUNTIME ERROR” when I’m using my app :
SImple FG Radio

It worked perfectly with my old phone Android 6 Snapdragon 820 6Go Ram Leeco Le Pro 3.
I’ve just bought a Xiaomi Redmi note 8 Pro global version with Android 9.
After a few minutes, the application stop playing. When I clic on STOP button, I’ve got a “RUNTIME ERROR” message.

I use the app on my Android 7 car unit without any problem.

I’ve try to remplace MIT player with the Taifun Player extention. The problem stills.

Any idea ?

PS : It will be very cool that the player cans control the audio buffer size when playing URL.

to find out more about that runtime error, you can use logcat…


Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.

Probably a issue with Android 9, where the setting “Keep Wi-Fi on during sleep” has gone, see also here:
https://groups.google.com/forum/#!searchin/mitappinventortest/radio$20stop$20play|sort:date/mitappinventortest/Tz-h1ZysGxY/RwjxHNH9AgAJ

https://community.appinventor.mit.edu/t/streaming-radio-drop-out-technical-advice/1213/27

Sorry for my long silence, job…

You can find the ADB Log (only error) with this link :
https://1drv.ms/t/s!AleOAbA-XJHXhdMK7GsITA5Tn4U0VQ?e=FsmKIi

I stopped the logged just after the application error. So you can find the problem at the end of the log.

If you want to log my app, you can download it here :
https://play.google.com/store/apps/details?id=appinventor.ai_johann_guinebert.Simple_FG

I precise the problem comes only with Android 9 an up.

I tried with a Xiaomi Note 8 Pro Global and a Samsung S10e.

The probem stays the same in 4G LTE in allowed background.

so this seems to be the error

03-03 11:49:46.602 12633 12633 E MediaPlayerNative: stop called in state 0, mPlayer(0x72e72dde80)
03-03 11:49:46.602 12633 12633 E MediaPlayerNative: error (-38, 0)
03-03 11:49:46.603 12633 12633 E MediaPlayerNative: prepareAsync called in state 0, mPlayer(0x72e72dde80)
03-03 11:49:46.605 12633 12633 E com.google.appinventor.components.runtime.util.RuntimeErrorAlert: No error message available
03-03 11:49:46.626 12633 12633 E MediaPlayer: Error (-38,0)

probably @ewpatton has an idea?
Taifun

@Johann_GT Can you show us the blocks where you start/stop the Player component?

Only when playing with Android 9 and above.
No crash with Android 8, 7 and 6.

UP.

Some issue ?