Open theli opened 3 years ago
I too have same issue, any update?
Please provide a bugreport captured shortly after playing the problematic media in the problematic device using the demo app, as requested in the issue template.
Bug report provided via email. If there is any additional information needed, please let me know.
Hi, the provided bugreport doesn't include the stacktrace that you provided in the original post. Please provide a bugreport (captured by running adb bugreport
on the command line) captured shortly after experiencing the described issue in the ExoPlayer demo app. In order to ensure that the bugreport is useful, please use the demo app and check that the bugreport contains the ExoPlaybackException
described above.
I did as suggested but I am not seeing this error in adb report. I can get it from logcat. When I play a file in demo app I get Playback Failed message and exception in logcat however it does not crash.
is there any solution for this bug ? i got it in my android device with custom ROM Havoc OS
We also noticed an issue with flac on some customer devices with decoder OMX.qti.audio.decoder.flac
.
Probably the same problem, otherwise let me know to create a new ticket.
We managed to reproduce it on a Sony Xperia XZ1. ExoPlayer cosistently fails with a com.google.android.exoplayer2.ExoPlaybackException
, caused by com.google.android.exoplayer2.mediacodec.MediaCodecDecoderException
when playing flac.
It also occurs on some other brands/devices, including other older devices of the Xperia XZ series. If helpful, I can search for a few other devices with the problem in our Crashlytics reports.
We also reproduced it with the ExoPlayer demo app playing Misc -> Google Play (FLAC) and created a bug report.
release-v2
branch, last commit: d5d78238773d6dc53b54849ca10d845a4421284c)Attaching a logcat extract and adb bugreport. If you need any more info, let me know.
exoplayer_demo_flac_logs.txt bugreport-G8342-47.2.A.11.228-2021-05-28-18-48-28.zip
It looks like we're already aware that this particular decoder doesn't work well on older devices:
If you're seeing errors where this decoder is being used on older devices, that implies the device doesn't have another FLAC decoder that can be used instead. Given this, I'm not sure we can do anything in ExoPlayer to help with the situation, other than recommend that you use the FLAC extension, which would allow you to avoid using the problematic decoder.
I've encountered this issue today as well, and the ExoPlayer did not choose OMX.qti.audio.decoder.flac, it chose OMX.google.flac.decoder, but the result was not good either. Our SOC is BRCM72180. So yes, it seems like software flac decoder/extension is the way to go.
07-09 09:50:35.299 452 520 I OMXClient: IOmx service obtained 07-09 09:50:35.299 458 458 I OMXMaster: makeComponentInstance(OMX.google.amrnb.decoder) in omx@1.0-service process 07-09 09:50:35.303 713 713 I Zygote : seccomp disabled by setenforce 0 07-09 09:50:35.306 548 565 W ActivityManager: Slow operation: 133ms so far, now at startProcess: returned from zygote! 07-09 09:50:35.306 548 565 W ActivityManager: Slow operation: 133ms so far, now at startProcess: done updating battery stats 07-09 09:50:35.306 548 565 W ActivityManager: Slow operation: 133ms so far, now at startProcess: building log message 07-09 09:50:35.306 548 565 I ActivityManager: Start proc 713:WebViewLoader-armeabi-v7a/1037 [android.webkit.WebViewLibraryLoader$RelroFileCreator] for 07-09 09:50:35.306 548 565 W ActivityManager: Slow operation: 133ms so far, now at startProcess: starting to update pids map 07-09 09:50:35.306 548 565 W ActivityManager: Slow operation: 133ms so far, now at startProcess: done updating pids map 07-09 09:50:35.306 548 565 W ActivityManager: Slow operation: 133ms so far, now at startProcess: asking zygote to start proc 07-09 09:50:35.311 548 548 I GnssLocationProvider: WakeLock acquired by sendMessage(INITIALIZE_HANDLER, 0, null) 07-09 09:50:35.312 452 520 I OMXClient: IOmx service obtained 07-09 09:50:35.313 548 562 D GnssLocationProvider: Link to death notification successful 07-09 09:50:35.313 458 458 I OMXMaster: makeComponentInstance(OMX.google.amrwb.decoder) in omx@1.0-service process 07-09 09:50:35.314 279 279 W u-blox : getExtensionAGnss getExtensionAGnss function called. 07-09 09:50:35.315 279 279 W u-blox : getExtensionGnssNi getExtensionGnssNi function called. 07-09 09:50:35.315 548 548 W LocationManagerService: no network location provider found 07-09 09:50:35.315 279 279 W u-blox : getExtensionGnssGeofencing getExtensionGnssGeofencing function called. 07-09 09:50:35.317 548 562 D GnssLocationProvider: gnssSetCapabilitesCb: 209u 07-09 09:50:35.317 548 562 D GnssLocationProvider: gnssSetSystemInfoCb: yearOfHw=2015 07-09 09:50:35.318 279 279 V u-blox : ublox::CGnssXtraExtension::setCallback: GnssXtraExtension initialized successfully! 07-09 09:50:35.318 548 562 I GnssLocationProvider: Unable to Initialize AGnss interface 07-09 09:50:35.318 548 562 I GnssLocationProvider: Unable to initialize GNSS Geofencing interface 07-09 09:50:35.318 548 562 I GnssLocationProvider: Unable to initialize GNSS NI interface 07-09 09:50:35.319 548 548 E LocationManagerService: no geocoder provider found 07-09 09:50:35.319 279 301 V u-blox : handleCmdInput: (2731545840): Cmd received (2) 07-09 09:50:35.320 279 301 V u-blox : CAndroidDatabase::decPublish: count now 0 07-09 09:50:35.320 279 301 V u-blox : engineStop: (Begin) Client count 0 07-09 09:50:35.320 279 301 V u-blox : ublox::CGnssDriver::setStatus: Driver status change: 0 => 4 07-09 09:50:35.320 279 301 V u-blox : engineStop: (End) Client count 0 07-09 09:50:35.321 548 548 D LocationManagerService: Unable to bind FLP Geofence proxy. 07-09 09:50:35.321 548 548 E ActivityRecognitionHardware: activity_recognition HAL is deprecated. is_supported is effectively a no-op 07-09 09:50:35.321 548 548 D LocationManagerService: Hardware Activity-Recognition not supported. 07-09 09:50:35.322 548 548 E ActivityRecognitionProxy: ServiceWatcher could not start. 07-09 09:50:35.322 548 548 D LocationManagerService: Unable to bind ActivityRecognitionProxy. 07-09 09:50:35.322 548 548 I GnssLocationProvider: WakeLock acquired by sendMessage(ENABLE, 1, null) 07-09 09:50:35.323 548 562 E GnssLocationProvider: no AGPS interface in set_agps_server 07-09 09:50:35.325 279 279 E u-blox : setSuplVersion: SUPL is not supported. 07-09 09:50:35.325 548 565 W ActivityManager: Slow operation: 152ms so far, now at startProcess: returned from zygote! 07-09 09:50:35.325 666 666 I LatinIME: Hardware accelerated drawing: true 07-09 09:50:35.325 548 565 W ActivityManager: Slow operation: 152ms so far, now at startProcess: done updating battery stats 07-09 09:50:35.325 548 565 W ActivityManager: Slow operation: 152ms so far, now at startProcess: building log message 07-09 09:50:35.325 548 565 I ActivityManager: Start proc 726:WebViewLoader-arm64-v8a/1037 [android.webkit.WebViewLibraryLoader$RelroFileCreator] for 07-09 09:50:35.326 548 565 W ActivityManager: Slow operation: 152ms so far, now at startProcess: starting to update pids map 07-09 09:50:35.326 452 520 I OMXClient: IOmx service obtained 07-09 09:50:35.326 548 565 W ActivityManager: Slow operation: 152ms so far, now at startProcess: done updating pids map
Issue description
Errors when playing flac files from the demo app on Nokia 8 device with Android 9, model TA-1004. The build-in flac sample provided in the demo can’t be played at all and returns an error
I have added by own flac files to the demo app and was able to play them however there are permanent errors in the console and the progress of the track moves faster than it should, probably because the frames are skipped. Both errors happen with checkbox “Prefer Extension Decoders” On and Off. 2020-11-22 09:34:20.413 11101-29120/com.google.android.exoplayer2.demo E/AudioTrack: Discontinuity detected [expected 1950476, got 2229115]
Reproduction steps
In the Exoplayer demo app choose Misc section, then Google Play (FLAC) to reproduce MediaCodecAudioRenderer error. To reproduce “Discontinuity Detected” error try to play any file from the FLAC section with my flac content.
Link to test content
json file emailed.
A full bug report captured from the device
full bug report emailed.
Version of ExoPlayer being used
2.12.1
Device(s) and version(s) of Android being used
Nokia 8 with Android 9. The simulator and few other devices we tested demo app did not have such errors.
Attached are both logs for the error with google flac sample and for “Discontinuity detected” errors. error_MediaCodecAudioRenderer.log error_discontinuity.log