Skip to content

[BUG] 播放audio/mp4a-latm / AAC音频时卡死 #433

Description

@Smart-Zihan

问题描述 / Problem description

当播放扩展名为 .m4a、音频 MIME 为 audio/mp4a-latm(AAC)的文件时,应用无音频输出,CPU 持续满载。播放过程中不会报 ERROR_CODE_DECODING_FAILED,也不会自动跳转到下一首,必须手动切换文件才能停止。同一文件在其他播放器中可正常播放且 CPU 占用低,因此不太可能是设备缺少 AAC 解码能力。

该现象与 #387 不同:#387 是 ALAC 编码的 .m4a,会报 ERROR_CODE_DECODING_FAILED 并自动跳下一首;本问题是 AAC / audio/mp4a-latm,不报该错误、不跳转、CPU 持续满载。两者编码与错误行为均不同,应不是同一问题。

复现步骤 / Steps to reproduce

  1. 打开媒体库页
  2. 进入本地文件页
  3. 播放扩展名为 .m4a、MIME 为 audio/mp4a-latm(AAC)的音频文件
  4. 补充:我测试的多个此类文件均可复现,与码率、位深、元数据等参数无关。低于20秒的音频无法复现,30秒及以上的音频均可复现(中间值暂未测量)

预期行为 / Expected behaviour

解码并播放

实际行为 / Actual behaviour

无音频输出,CPU 持续满载

Image Image Image

你使用的安卓系统版本 / Your Android version

Android 16(Linux localhost 6.12.58-android16-6-g0a092cc0037a-abogki521987229-4k #1 SMP PREEMPT Wed Jun 10 02:28:51 UTC 2026 aarch64 Android)

你正在使用的手机型号 / Your phone model

iQOO 15/V2505A

问题涉及的播放平台 / Affected playback platform

本地音频或下载文件 / Local audio or downloaded files

复现时的音频输出设备 / Audio output during reproduction

手机或平板扬声器 / Device speaker

是否开启 USB 独占播放 / Is USB exclusive playback enabled

未开启 / Disabled

USB 音频设备与播放设置(如适用) / USB audio device and playback settings (if applicable)

No response

播放内容与相关设置(如适用) / Playback item and related settings (if applicable)

No response

版本和其他要求 / Version and Other Requirements

  • 我使用的是最新 CI 版本,并已开启开发者模式(在设置中连续点击 7 次版本号)。/ I'm using the latest CI build with DEBUG Mode enabled (by tapping the version number 7 times in Settings).
  • 我已经在 Issue Tracker 中找过我要提出的问题,没有找到相同问题。重复问题会被关闭。 / I have searched in the Issue Tracker and found no similar issues. Duplicate issues will be closed.
  • 我已知晓并同意,如果我不按照模板提供的指示进行填写,则我的 Issue 可能会被无条件删除。 / I understand and agree that my issue may be deleted without notice if I do not follow the instructions provided in the template.

日志 / Logs

log_20260923_024253.txt

补充说明(可选) / Additional information (optional)

样本包含一个裁剪至30秒的、去除元数据的、符合条件的音频,应该可以复现此Bug,希望有所帮助:
981ddca4772c074e0385e00ddb6cb5682a04eca45d8dd63560a240cfdf1e0370 sample_30s_nometa.zip

sample_30s_nometa.zip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: local-mediaLocal library, scanning, and playlistsarea: playbackPlayback engine and audio behaviorbugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions