Issues with BT and FFMpeg extension
@tonihei is already working on this.
Since May 2, 2024.
- Dominant language
- Java
- Stars
- 3k
- Forks
- 955
- Avg merge
- 12d 14h
- Merged PRs (30d)
- 2
Description
Version
Media3 1.3.1
More version details
No response
Devices that reproduce the issue
Android: 10 - 29 [armeabi-v7a,armeabi] / Infinix - Infinix X657C [X657C-GL - Infinix-X657C]
Devices that do not reproduce the issue
Most of them
Reproducible in the demo app?
Not tested
Reproduction steps
Play music when connected to BT on that device when using ffmpegextension.
Expected result
Should work
Actual result
Fails:
2024-04-30 23:08:46.366 Error/ExoPlayer: DecoderAudioRenderer - Audio sink error
q4.t: AudioTrack init failed 0 Config(48000, 12, 1152000) Format(null, null, null, audio/raw, null, -1, null, [-1, -1, -1.0, null], [2, 48000])
at q4.j0.a(Unknown Source:61)
at q4.p0.u(Unknown Source:22)
at q4.p0.y(Unknown Source:164)
at zy.a.y(Unknown Source:4)
at androidx.media3.decoder.ffmpeg.b.F(Unknown Source:256)
at androidx.media3.decoder.ffmpeg.b.y(Unknown Source:99)
at o4.e0.e(Unknown Source:1017)
at o4.e0.handleMessage(Unknown Source:308)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:264)
at android.os.HandlerThread.run(HandlerThread.java:67)
Suppressed: q4.t: AudioTrack init failed 0 Config(48000, 12, 1000000) Format(null, null, null, audio/raw, null, -1, null, [-1, -1, -1.0, null], [2, 48000])
at q4.j0.a(Unknown Source:61)
at q4.p0.u(Unknown Source:96)
... 9 more
Caused by: java.lang.UnsupportedOperationException: Cannot create AudioTrack
at android.media.AudioTrack$Builder.build(AudioTrack.java:1018)
at q4.j0.b(Unknown Source:60)
at q4.j0.a(Unknown Source:4)
... 10 more
Caused by: java.lang.UnsupportedOperationException: Cannot create AudioTrack
at android.media.AudioTrack$Builder.build(AudioTrack.java:1018)
at q4.j0.b(Unknown Source:60)
at q4.j0.a(Unknown Source:4)
... 10 more
2024-04-30 23:08:46.367 Error/ExoPlayer: DecoderAudioRenderer - Audio sink error
q4.t: AudioTrack init failed 0 Config(48000, 12, 1000000) Format(null, null, null, audio/raw, null, -1, null, [-1, -1, -1.0, null], [2, 48000])
at q4.j0.a(Unknown Source:61)
at q4.p0.u(Unknown Source:96)
at q4.p0.y(Unknown Source:164)
at zy.a.y(Unknown Source:4)
at androidx.media3.decoder.ffmpeg.b.F(Unknown Source:256)
at androidx.media3.decoder.ffmpeg.b.y(Unknown Source:99)
at o4.e0.e(Unknown Source:1017)
at o4.e0.handleMessage(Unknown Source:308)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:264)
at android.os.HandlerThread.run(HandlerThread.java:67)
Caused by: java.lang.UnsupportedOperationException: Cannot create AudioTrack
at android.media.AudioTrack$Builder.build(AudioTrack.java:1018)
at q4.j0.b(Unknown Source:60)
at q4.j0.a(Unknown Source:4)
... 10 more
The dump contains:
05-01 12:13:12.471 1000 480 1268 I BufferQueueProducer: [app.symfonik.music.player/app.symfonik.ui.MainActivity#0](this:0xb1663000,id:16642,api:1,p:6695,c:480) queueBuffer: fps=51.44 dur=1010.79 max=92.12 min=11.33
05-01 12:13:12.477 11580 6695 6774 E IAudioFlinger: createTrack returned error -12
05-01 12:13:12.477 11580 6695 6774 E AudioTrack: createTrack_l(-1946121216): AudioFlinger could not create track, status: -12 output 0
05-01 12:13:12.477 11580 6695 6774 E AudioTrack: set(): createTrack_l fail! status = -12
05-01 12:13:12.477 11580 6695 6774 E AudioTrack-JNI: Error -12 initializing AudioTrack
05-01 12:13:12.477 1000 468 11829 W IMGMemtrackHAL: hal_get_memory: memtrack cache rebuild was required
05-01 12:13:12.477 11580 6695 6774 E android.media.AudioTrack: Error code -20 when initializing AudioTrack.
I can ask the user if he allows me to send you the full dump if it's needed.
As a side note I've also reported https://github.com/androidx/media/issues/787 that was completely ignored, but is in fact maybe related, the devices who have that other issues also only have it when using the ffmpeg extension.
Media
Seems to happen on most media for that device.
Bug Report
- You will email the zip file produced by
adb bugreportto android-media-github@google.com after filing this issue.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.