androidx / androidx/media

RemoteServiceException "Bad notification" when device language is set to chinese

Open
#1,160 3 comments 0 reactions 1 assignee View on GitHub

@tianyif is already working on this.

Since Mar 7, 2024.

bug needs triage
Dominant language
Java
Stars
3k
Forks
955
Avg merge
12d 14h
Merged PRs (30d)
2

Description

Version

Media3 main branch

More version details

1.2.1

Devices that reproduce the issue

Huawei Mate 40 Pro running Android 12

Devices that do not reproduce the issue

No response

Reproducible in the demo app?

Not tested

Reproduction steps

I do not have the affected device available

Expected result

The media plays successfully without crashing the app

Actual result

When playing media using a service that extends MediaSessionService the app crashes.
This sounds similar to #903 but we do not use setWhen nor setShowWhen.

Stacktrace:

android.app.RemoteServiceException: Bad notification(tag=null, id=xxx) posted from package xx.xxx.xx, crashing app(uid=xxxxx, pid=xxxxx): long overflow
	at android.app.ActivityThread.throwRemoteServiceException(ActivityThread.java:2580)
	at android.app.ActivityThread.access$4000(ActivityThread.java:311)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2990)
	at android.os.Handler.dispatchMessage(Handler.java:117)
	at android.os.Looper.loopOnce(Looper.java:205)
	at android.os.Looper.loop(Looper.java:293)
	at android.app.ActivityThread.loopProcess(ActivityThread.java:9934)
	at android.app.ActivityThread.main(ActivityThread.java:9923)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:586)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1240)
Media

Do not have specific media at hand, but doubt that it is related to the actual media it probably has the following specs, though:

Format: AAC LC
Codec ID: mp4a-40-2
Bit rate: 32.0 kb/s
Channels: 1 channel
Sampling rate: 44.1 kHz

Bug Report
  • You will email the zip file produced by adb bugreport to android-media-github@google.com after filing this issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.