Closed Bug 1828347 Opened 2 years ago Closed 2 years ago

Firefox randomly crashes the system when playing Youtube shorts

Categories

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

Firefox 112
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: juanjosealca, Unassigned, NeedInfo)

Details

Attachments

(1 file)

Attached file prevboot.txt

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0

Steps to reproduce:

Open Firefox (snap). Start playing Youtube shorts.

My system:
Ubuntu 22.04.2. Linux 5.19.0-38-generic
Gnome: 42.5
CPU Ryzen 7 7700X.
RAM 32 GB 6000 30L
GPU: NVIDIA RTX 2060 Super (Driver 525.105.17)

Actual results:

Firefox freezes the system (it's not possible to get a TTY, restart it's the only option. The bug in Firefox freezes gnome-shell too) after playing Youtube shorts / videos.

In the log Firefox produces the following warnings:

Apr 16 13:36:48 PC1 firefox_firefox.desktop[15585]: [Child 15585, MediaDecoderStateMachine #1] WARNING: Decoder=7f14e6c84d00 state=DECODING_METADATA Decode metadata failed, shutting down decoder: file /build/firefox/parts/firefox/build/dom/media/MediaDecoderStateMachine.cpp:372
Apr 16 13:36:48 PC1 firefox_firefox.desktop[15585]: [Child 15585, MediaDecoderStateMachine #1] WARNING: Decoder=7f14e6c84d00 Decode error: NS_ERROR_DOM_MEDIA_METADATA_ERR (0x806e0006) - static MP4Metadata::ResultAndByteBuffer mozilla::MP4Metadata::Metadata(mozilla::ByteStream *): Cannot parse metadata: file /build/firefox/parts/firefox/build/dom/media/MediaDecoderStateMachineB>
Apr 16 13:36:48 PC1 firefox_firefox.desktop[15585]: [Child 15585, MediaDecoderStateMachine #1] WARNING: Decoder=7f14f0bcbd00 state=DECODING_METADATA Decode metadata failed, shutting down decoder: file /build/firefox/parts/firefox/build/dom/media/MediaDecoderStateMachine.cpp:372
Apr 16 13:36:48 PC1 firefox_firefox.desktop[15585]: [Child 15585, MediaDecoderStateMachine #1] WARNING: Decoder=7f14f0bcbd00 Decode error: NS_ERROR_DOM_MEDIA_METADATA_ERR (0x806e0006) - static MP4Metadata::ResultAndByteBuffer mozilla::MP4Metadata::Metadata(mozilla::ByteStream *): Cannot parse metadata: file /build/firefox/parts/firefox/build/dom/media/MediaDecoderStateMachineB>
Apr 16 13:36:48 PC1 firefox_firefox.desktop[15585]: [Child 15585, MediaDecoderStateMachine #1] WARNING: Decoder=7f14f0bcb400 state=DECODING_METADATA Decode metadata failed, shutting down decoder: file /build/firefox/parts/firefox/build/dom/media/MediaDecoderStateMachine.cpp:372
Apr 16 13:36:48 PC1 firefox_firefox.desktop[15585]: [Child 15585, MediaDecoderStateMachine #1] WARNING: Decoder=7f14f0bcb400 Decode error: NS_ERROR_DOM_MEDIA_METADATA_ERR (0x806e0006) - static MP4Metadata::ResultAndByteBuffer mozilla::MP4Metadata::Metadata(mozilla::ByteStream *): Cannot parse metadata: file /build/firefox/parts/firefox/build/dom/media/MediaDecoderStateMachineB>
Apr 16 13:36:48 PC1 firefox_firefox.desktop[15585]: [Child 15585, MediaDecoderStateMachine #1] WARNING: Decoder=7f14f2131100 state=DECODING_METADATA Decode metadata failed, shutting down decoder: file /build/firefox/parts/firefox/build/dom/media/MediaDecoderStateMachine.cpp:372
Apr 16 13:36:48 PC1 firefox_firefox.desktop[15585]: [Child 15585, MediaDecoderStateMachine #1] WARNING: Decoder=7f14f2131100 Decode error: NS_ERROR_DOM_MEDIA_METADATA_ERR (0x806e0006) - static MP4Metadata::ResultAndByteBuffer mozilla::MP4Metadata::Metadata(mozilla::ByteStream *): Cannot parse metadata: file /build/firefox/parts/firefox/build/dom/media/MediaDecoderStateMachineB>

I've attached the journalctl log of the session before the crash

Expected results:

Firefox should normally decode the videos, without freezing / crashing the system.

The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Playback' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core

From the log, tt seems Fx failed to parse the mp4 metadata, but this shouldn't cause a crash.

Hey juanjosealca, thanks for the report! Unfortunately, I cannot reproduce this on my end. Can you provide the link of the youtube short that cause a crash and the crash report? The crash report can be found in about:crashes page. Can you submit the crash report and paste the link to here?

Flags: needinfo?(juanjosealca)
Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: