Skip to content

SecurityException: Session rejected the connection request. #2882

@diego-escribano

Description

@diego-escribano

Version

Media3 1.4.0

More version details

No response

Devices that reproduce the issue

All versions of Android, but mostly Android 13 and 14.

15% Elink - Harman
12% Skyth-tek - Windriver
11% Hena - FIH Foxconn
10% AoGo
9% Cubot - FIH Foxconn
5% Hena - FIH Foxconn
4% Hena - FIH Foxconn
3% Worldchip - FIH Foxconn
2% Elink - FIH Foxconn
2% Pegatron
2% Deejoy - FIH Foxconn
2% BND - Windriver
1% Deejoy - FIH Foxconn
1% Elink - FIH Foxconn
1% Elink - Harman
1% Elink - FIH Foxconn
1% Deejoy - FIH Foxconn
1% Blackview - Windriver
1% BND - Windriver
1% Symphony Teleca
1% BND - Windriver
1% Along - Windriver
<1% Deejoy - FIH Foxconn
<1% Along - Windriver
<1% Hena - Harman
<1% Deejoy - FIH Foxconn
<1% Incar - FIH Foxconn
<1% Elink - FIH Foxconn
<1% Huawei
<1% Samsung
<1% Deejoy - FIH Foxconn
<1% Peicheng
<1% Transsion
<1% Deejoy - Windriver
<1% Hena - FIH Foxconn
<1% Deejoy - FIH Foxconn
<1% Rebecco
<1% Along - Windriver
<1% SkyDevices - FIH Foxconn
<1% Hena - FIH Foxconn
<1% BND - Windriver
<1% Elink - FIH Foxconn
<1% Deejoy - FIH Foxconn

Devices that do not reproduce the issue

No response

Reproducible in the demo app?

Not tested

Reproduction steps

We cannot reproduce it.

Expected result

The app does not crash

Actual result

App crashes

Media

Context: Our app can play on demand audio and live stream on the Android device
Problem: Every since we migrated to Media3 we have a consisent crash that happens only when the app is on the background, but only on certain devices, mainly low cost kids tablets. We cannot reproduce the crash.

I have attached the Playback Service, the MediaPlayerProvider where we create the SessionToken and the crash logs.

MediaPlayerProvider.txt

PlaybackService.txt

crash_report.txt

Bug Report

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions