Closed Bug 1835991 Opened 3 years ago Closed 3 years ago

Firefox Flatpak writes too many system log (Fix: `sudo flatpak override --reset org.mozilla.firefox`)

Categories

(Core :: Widget: Gtk, defect)

Firefox 113
Unspecified
Linux
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: thanhminh.mr, Unassigned)

Details

Attachments

(1 file)

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

Steps to reproduce:

Using Firefox normally.

Actual results:

In ~6.5 hours, Firefox Flatpak manages to write >300MiB of logs (nearly 1.5 million lines!).

Expected results:

It should not write that much log!

I forgot to mention, it logs things to /var/log/syslog. I only catch this because somehow the logs managed to fill my whole root disk and cause the system to behave weirdly. The log is rather big and may contains sensitive data, so I'll upload if it's really needed. Below is a portion of the log.

2023-05-31T15:12:26.416084+07:00 meo-laptop org.mozilla.firefox.desktop[26411]: [Child 504: MediaPDecoder #1]: V/PlatformDecoderModule AudioTrimmer[7fd2bc1b9880] ::PrepareTrimmers: sample[940408,944761] no trimming information
2023-05-31T15:12:26.416196+07:00 meo-laptop org.mozilla.firefox.desktop[26411]: [Child 504: MediaPDecoder #1]: V/PlatformDecoderModule AudioTrimmer[7fd2bc1b9880] ::HandleDecodedResult: sample[940408,944761] (decoded[940408,944761] no trimming needed
2023-05-31T15:12:26.416306+07:00 meo-laptop org.mozilla.firefox.desktop[26411]: [Child 504: MediaPDecoder #1]: V/PlatformDecoderModule AudioTrimmer[7fd2bc1b9880] ::PrepareTrimmers: sample[944761,949114] no trimming information
2023-05-31T15:12:26.416440+07:00 meo-laptop org.mozilla.firefox.desktop[26411]: [Child 504: MediaPDecoder #1]: V/PlatformDecoderModule AudioTrimmer[7fd2bc1b9880] ::HandleDecodedResult: sample[944761,949114] (decoded[944761,949114] no trimming needed
2023-05-31T15:12:26.416543+07:00 meo-laptop org.mozilla.firefox.desktop[26411]: [Child 504: MediaPDecoder #1]: V/PlatformDecoderModule AudioTrimmer[7fd2bc1b9880] ::PrepareTrimmers: sample[949115,953468] no trimming information
2023-05-31T15:12:26.416652+07:00 meo-laptop org.mozilla.firefox.desktop[26411]: [Child 504: MediaPDecoder #1]: V/PlatformDecoderModule AudioTrimmer[7fd2bc1b9880] ::HandleDecodedResult: sample[949115,953468] (decoded[949115,953468] no trimming needed
2023-05-31T15:12:26.416751+07:00 meo-laptop org.mozilla.firefox.desktop[26411]: [Child 504: MediaPDecoder #1]: V/PlatformDecoderModule AudioTrimmer[7fd2bc1b9880] ::PrepareTrimmers: sample[953469,957822] no trimming information
2023-05-31T15:12:26.416853+07:00 meo-laptop org.mozilla.firefox.desktop[26411]: [Child 504: MediaPDecoder #1]: V/PlatformDecoderModule AudioTrimmer[7fd2bc1b9880] ::HandleDecodedResult: sample[953469,957822] (decoded[953469,957822] no trimming needed
2023-05-31T15:12:26.416939+07:00 meo-laptop org.mozilla.firefox.desktop[26411]: [Child 504: MediaPDecoder #1]: V/PlatformDecoderModule AudioTrimmer[7fd2bc1b9880] ::PrepareTrimmers: sample[957823,962176] no trimming information
2023-05-31T15:12:26.417044+07:00 meo-laptop org.mozilla.firefox.desktop[26411]: [Child 504: MediaPDecoder #1]: V/PlatformDecoderModule AudioTrimmer[7fd2bc1b9880] ::HandleDecodedResult: sample[957823,962176] (decoded[957823,962176] no trimming needed
2023-05-31T15:12:26.417140+07:00 meo-laptop org.mozilla.firefox.desktop[26411]: [Child 504: MediaPDecoder #1]: V/PlatformDecoderModule AudioTrimmer[7fd2bc1b9880] ::PrepareTrimmers: sample[962176,966529] no trimming information
2023-05-31T15:12:26.417237+07:00 meo-laptop org.mozilla.firefox.desktop[26411]: [Child 504: MediaPDecoder #1]: V/PlatformDecoderModule AudioTrimmer[7fd2bc1b9880] ::HandleDecodedResult: sample[962176,966529] (decoded[962176,966529] no trimming needed
2023-05-31T15:12:26.417327+07:00 meo-laptop org.mozilla.firefox.desktop[26411]: [Child 504: MediaPDecoder #1]: V/PlatformDecoderModule AudioTrimmer[7fd2bc1b9880] ::PrepareTrimmers: sample[966530,970883] no trimming information
2023-05-31T15:12:26.417425+07:00 meo-laptop org.mozilla.firefox.desktop[26411]: [Child 504: MediaPDecoder #1]: V/PlatformDecoderModule AudioTrimmer[7fd2bc1b9880] ::HandleDecodedResult: sample[966530,970883] (decoded[966530,970883] no trimming needed
2023-05-31T15:12:26.417519+07:00 meo-laptop org.mozilla.firefox.desktop[26411]: [Child 504: MediaPDecoder #1]: V/PlatformDecoderModule AudioTrimmer[7fd2bc1b9880] ::PrepareTrimmers: sample[970884,975237] no trimming information
2023-05-31T15:12:26.417633+07:00 meo-laptop org.mozilla.firefox.desktop[26411]: [Child 504: MediaPDecoder #1]: V/PlatformDecoderModule AudioTrimmer[7fd2bc1b9880] ::HandleDecodedResult: sample[970884,975237] (decoded[970884,975237] no trimming needed
2023-05-31T15:12:26.417713+07:00 meo-laptop org.mozilla.firefox.desktop[26411]: [Child 504: MediaPDecoder #1]: V/PlatformDecoderModule AudioTrimmer[7fd2bc1b9880] ::PrepareTrimmers: sample[975238,979591] no trimming information
2023-05-31T15:12:26.417822+07:00 meo-laptop org.mozilla.firefox.desktop[26411]: [Child 504: MediaPDecoder #1]: V/PlatformDecoderModule AudioTrimmer[7fd2bc1b9880] ::HandleDecodedResult: sample[975238,979591] (decoded[975238,979591] no trimming needed
2023-05-31T15:12:26.417912+07:00 meo-laptop org.mozilla.firefox.desktop[26411]: [Child 504: MediaPDecoder #1]: V/PlatformDecoderModule AudioTrimmer[7fd2bc1b9880] ::PrepareTrimmers: sample[979591,983944] no trimming information
2023-05-31T15:12:26.418017+07:00 meo-laptop org.mozilla.firefox.desktop[26411]: [Child 504: MediaPDecoder #1]: V/PlatformDecoderModule AudioTrimmer[7fd2bc1b9880] ::HandleDecodedResult: sample[979591,983944] (decoded[979591,983944] no trimming needed

Some more information, "V/PlatformDecoderModule" appeared ~830,000 times in those ~1.5 million lines.

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

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

Looks like you have MOZ_LOG="PlatformDecoderModule:5" env variable set, we don't print such logs without that.

(In reply to Martin Stránský [:stransky] (ni? me) from comment #4)

Looks like you have MOZ_LOG="PlatformDecoderModule:5" env variable set, we don't print such logs without that.

You are correct. The problem is I didn't set it. Maybe the flatpak version set it by accident?

I don't have MOZ_LOG on about:support ($ flatpak run org.mozilla.firefox about:support).

Please post the output of $ printenv | grep MOZ_

This command return nothing.

$ printenv | grep MOZ_

Interestingly, this command does return something.

$ flatpak run --command=sh org.mozilla.firefox
[📦 org.mozilla.firefox ~]$ printenv | grep MOZ_
MOZ_LOG=PlatformDecoderModule:5

Does it show up here:
$ flatpak override --show org.mozilla.firefox
And can it be fixed with:
$ sudo flatpak override --reset org.mozilla.firefox
?

(In reply to Darkspirit from comment #9)

Does it show up here:
$ flatpak override --show org.mozilla.firefox
Yes it does. (Why then?)

And can it be fixed with:
$ sudo flatpak override --reset org.mozilla.firefox
Running this remove the previous override and also remove the MOZ_LOG from the environment variable list.

(In reply to thanhminh.mr from comment #10)

Running this remove the previous override and also remove the MOZ_LOG from the environment variable list.

Perfect! Thanks for testing & reporting. Don't hesitate to file other bugs in case something doesn't behave right. Thanks!

(Why then?)

You must have manually set it in the past.
($ sudo flatpak override --env=MOZ_LOG="hello" org.mozilla.firefox).

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
OS: Unspecified → Linux
Resolution: --- → INVALID
Summary: Firefox Flatpak writes too many system log → Firefox Flatpak writes too many system log (Fix: `sudo flatpak override --reset org.mozilla.firefox`)

@Darkspirit Thanks for the quick reply!

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: