Open Bug 1990812 Opened 11 months ago Updated 1 month ago

[Intermittent] Crash on canalplus.com after short playback of specific titles [@ mozilla::MediaDecoder::SetCDMProxy ]

Categories

(Core :: Audio/Video: Playback, defect, P3)

Desktop
Windows
defect

Tracking

()

REOPENED
146 Branch
Tracking Status
firefox144 --- wontfix
firefox145 --- wontfix
firefox146 --- affected
firefox147 --- affected

People

(Reporter: bhidecuti, Assigned: alwu)

References

Details

Crash Data

Attachments

(1 file)

Found in

  • 144.0b5

Affected versions

  • 145.0a1 (2025-09-24)
  • 144.0b5

Tested platforms

  • Affected platforms: Windows 10/11
  • Unaffected platforms: macOS 13, Ubuntu 22.04

Preconditions

  • Have an account with an active subscription for Canal+

Steps to reproduce

  1. Go to Canal+ and sign in with the account from prerequisites
  2. From the main page, navigate to the title "BRIDGET JONES FOLLE DE LUI" and start playback (link)
  3. Let the video play for a few seconds (approx. 5 seconds)
  4. Click the browser's back button
  5. From the main page, navigate to the title "DEXTER" and start playback (link)
  6. Observe the behavior

Expected result

  • The tab should not crash

Actual result

  • Intermittently, the tab is crashing when starting playback of the second video

Regression range

  • Uncertain if this is a regression. Due to the intermittent nature of the crash, I was unable to determine a regression range

Additional notes

Could you help me capture a media profile by following this instruction? Thanks!

Blocks: mfcdm
Severity: -- → S3
Flags: needinfo?(bhidecuti)
Priority: -- → P3

(In reply to Alastor Wu [:alwu] from comment #1)

Could you help me capture a media profile by following this instruction? Thanks!

Of course! Sorry for the late reply.
Here is the captured media profile: https://share.firefox.dev/3Wn1Ihm

Also attaching the crash report (in case it helps): https://crash-stats.mozilla.org/report/index/c7ef05a4-643f-4797-8b2a-0e7fe0251002

Flags: needinfo?(bhidecuti)

Thanks, will upload a patch shortly.

Assignee: nobody → alwu

We will not create a new state machine if the decoder has already been shut
down. In this case, the old state machine will still report as unsupported,
which currently triggers a MOZ_DIAGNOSTIC_CRASH.

Instead of crashing, we should simply reject the promise.

Pushed by alwu@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/0bf980d7abf0 https://hg.mozilla.org/integration/autoland/rev/4a18cf3c4c1f handle the case where switching the decoder state machine fails due to shutdown. r=media-playback-reviewers,chunmin
Pushed by agoloman@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/9c0b467506bc https://hg.mozilla.org/integration/autoland/rev/9264f405bb4f Revert "Bug 1990812 - handle the case where switching the decoder state machine fails due to shutdown. r=media-playback-reviewers,chunmin" for causing build bustages @MediaDecoder.cpp.

Backed out for causing build bustages @MediaDecoder.cpp.

Flags: needinfo?(alwu)
Pushed by alwu@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/5278a541b3b5 https://hg.mozilla.org/integration/autoland/rev/3cbaa8d0b628 handle the case where switching the decoder state machine fails due to shutdown. r=media-playback-reviewers,chunmin
Pushed by nbeleuzu@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/1f42324e5adc https://hg.mozilla.org/integration/autoland/rev/d28aa98f7722 Revert "Bug 1990812 - handle the case where switching the decoder state machine fails due to shutdown. r=media-playback-reviewers,chunmin" for causing bustages on MediaDecoder.cpp
Flags: needinfo?(alwu)
Pushed by alwu@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/4e0ba320cb1e https://hg.mozilla.org/integration/autoland/rev/e6335c6fffd3 handle the case where switching the decoder state machine fails due to shutdown. r=media-playback-reviewers,chunmin
Status: NEW → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 146 Branch

The patch landed in nightly and beta is affected.
:alwu, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(alwu)
Flags: needinfo?(alwu)
QA Whiteboard: [S3][qa-found-in-b144] → [S3][qa-found-in-b144] [qa-triage-done-c147/b146] [qa-ver-needed-c147/b146]
Flags: qe-verify+
QA Contact: mchiorean

I was able to reproduce the crash on Win11x64 using FF build 145.0a1(20250924094045).
Unfortunately crash still reproduces on Win11x64 using FF build 147.0a1(20251114094637), see crash https://crash-stats.mozilla.org/report/index/15771760-c52c-4bbd-b584-f65f00251114.
Reproduces on 146.0b2 see crash https://crash-stats.mozilla.org/report/index/11c439de-6b0b-4e5f-a95c-758450251114
Reopen issue.

Status: RESOLVED → REOPENED
QA Whiteboard: [S3][qa-found-in-b144] [qa-triage-done-c147/b146] [qa-ver-needed-c147/b146] → [S3][qa-found-in-b144] [qa-triage-done-c147/b146] [qa-ver-reopen-c147/b146]
Flags: qe-verify+
Resolution: FIXED → ---
Depends on: 2060922
Duplicate of this bug: 2060922
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: