Closed Bug 1824944 Opened 3 years ago Closed 3 months ago

Audio Focus Crash in [@ java.lang.SecurityException: at android.os.Parcel.createExceptionOrNull(Parcel.java)]

Categories

(Firefox for Android :: Browser Engine, defect, P5)

Unspecified
Android
defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox117 --- affected
firefox118 --- ?
firefox119 --- ?

People

(Reporter: rsainani, Unassigned)

References

()

Details

(Keywords: crash)

Crash Data

Crash report: https://crash-stats.mozilla.org/report/index/81703d4a-d129-405d-b306-5caaf0230327

Sentry: https://mozilla.sentry.io/issues/4038469049/?end=2023-03-28T11%3A20%3A40&project=6375561&project=6295546&project=6295551&query=is%3Aunresolved+level%3Afatal++TAKE_AUDIO_FOCUS&referrer=issue-stream&sort=freq&start=2022-12-28T10%3A20%3A40&stream_index=0&utc=true

Note: On Android 12 (API level 31) or later, Audio focus is managed by the system. The system forces audio playback from an app to fade out when another app requests audio focus. In addition, the system also mutes audio playback when an incoming call is received.
The crash seems to be occurring on API level 31 and above. Further investigation on handling audio focus is needed for API Level 31 and above.

Java stack trace:

java.lang.SecurityException
	at android.os.Parcel.createExceptionOrNull(Parcel.java:3011)
	at android.os.Parcel.createException(Parcel.java:2995)
	at android.os.Parcel.readException(Parcel.java:2978)
	at android.os.Parcel.readException(Parcel.java:2920)
	at android.media.IAudioService$Stub$Proxy.requestAudioFocus(IAudioService.java:4635)
	at android.media.AudioManager.requestAudioFocus(AudioManager.java:4366)
	at android.media.AudioManager.requestAudioFocus(AudioManager.java:4115)
	at mozilla.components.feature.media.focus.AudioFocusControllerV26$$ExternalSyntheticApiModelOutline0.m(R8$$SyntheticClass:1)
	at mozilla.components.feature.media.focus.AudioFocusControllerV26.request(AudioFocusControllerV26.kt:5)
	at mozilla.components.feature.media.service.MediaSessionServiceDelegate.handleMediaPlaying(MediaSessionServiceDelegate.kt:55)
	at mozilla.components.feature.media.MediaSessionFeature.showMediaStatus$feature_media_release(MediaSessionFeature.kt:81)
	at mozilla.components.feature.media.MediaSessionFeature$mediaServiceConnection$1.onServiceConnected(MediaSessionFeature.kt:41)
	at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:2188)
	at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:2221)
	at android.os.Handler.handleCallback(Handler.java:942)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loopOnce(Looper.java:201)
	at android.os.Looper.loop(Looper.java:288)
	at android.app.ActivityThread.main(ActivityThread.java:7872)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)

The severity field is not set for this bug.
:cpeterson, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(cpeterson)
Flags: needinfo?(cpeterson)
Severity: -- → S3
Priority: -- → P5

The bug is linked to a topcrash signature, which matches the following criterion:

  • Top 10 AArch64 and ARM crashes on nightly

:boek, could you consider increasing the severity of this top-crash bug?

For more information, please visit BugBot documentation.

Flags: needinfo?(jboek)
Keywords: topcrash

Looks like this calmed back down

Flags: needinfo?(jboek)

Based on the topcrash criteria, the crash signature linked to this bug is not a topcrash signature anymore.

For more information, please visit BugBot documentation.

Keywords: topcrash
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.