Got leak messages when close firefox




2 years ago
16 days ago


(Reporter: JamesCheng, Unassigned)



Firefox Tracking Flags

(Not tracked)


(Whiteboard: [MemShrink:P3])


(1 obsolete attachment)



2 years ago
When ./mach run firefox 

Open a youtube link then close the firefox.

I will get leak message as below.(100% reproducing under e10s)

If you have more than one tab(one is playing youtube), closing the tab will "not" get the leak message.

Leaked URLs:,0.947:0.000,5.198:4.102&vps=0.077:B,0.947:PL,5.198:N&aft=1496&bwm=5.198:1487255:1.159&bwe=5.198:4018357&bh=5.198:16.164&vis=5.198:3,0.947:0.000,5.198:4.102&vps=0.077:B,0.947:PL,5.198:N&aft=1496&bwm=5.198:1487255:1.159&bwe=5.198:4018357&bh=5.198:16.164&vis=5.198:3
 => mAllocCount:         168991
 => mReallocCount:         8698
 => mFreeCount:          168929  --  LEAKED 62 !!!
 => mShareCount:         133552
 => mAdoptCount:           7488
 => mAdoptFreeCount:       7485  --  LEAKED 3 !!!
 => Process ID: 1098, Thread ID: 139888771217216
Priority: -- → P1

Comment 1

a year ago
I just want to confirm the leak is caused by media side so I do some experiments...
==== under e10s ====
1. I open "about:config" and modified any of preferences then close the firefox.

I got bunches of "leaked url" msg.

2. I open and search for any of keywords then close the firefox,

I got bunches of "leaked url" msg either.

As a result,

This bug is not for media playback.

Please consider to lower down the priority.

Comment 2

a year ago
Hi Blake,
According to the comment 1,

This leak msg is not related to media.

Would you please kindly help to find the right person to see if it is really a bug or false alarm leak message?

Thank you.
Flags: needinfo?(bwu)
Per discussion, please help have a look.
Flags: needinfo?(bwu) → needinfo?(janus926)
I can't reproduce with debug build on Linux for the latest m-c a418121d4625.
Flags: needinfo?(janus926) → needinfo?(jacheng)
Sorry, I just tried some more times and can reproduce.
Flags: needinfo?(jacheng)
Whiteboard: [MemShrink]
Assignee: nobody → janus926
Component: Audio/Video: Playback → General
Summary: Got leak message when closing the firefox while playback with only one tab → Got leak messages when close firefox that has only one tab
Summary: Got leak messages when close firefox that has only one tab → Got leak messages when close firefox
The leak is in child process, but with following command I got only CC/GC log from parent:

Attachment #8885088 - Attachment is obsolete: true
(In reply to Ting-Yu Chou [:ting] from comment #7)
> The leak is in child process, but with following command I got only CC/GC
> log from parent:

That's because MOZ_CCL_LOG_DIRECTORY is a relative path (~/...), and getting home directory [1] is prohibited [2] during shutdown. Using an absolute path would work.

Yeah, I've noticed similar issues for a long time, where if you close the browser while a tab is open, you leak pages. I'm not sure how much of an issue it really will be (as long as we clean things up when you close the tab, it should be okay), but I've also never looked into it.


a year ago
Whiteboard: [MemShrink] → [MemShrink:P3]
This is an assigned P1 bug without activity in two weeks. 

If you intend to continue working on this bug for the current release/iteration/sprint, remove the 'stale-bug' keyword.

Otherwise we'll reset the priority of the bug back to '--' on Monday, August 28th.
Keywords: stale-bug
Assignee: janus926 → nobody

Comment 11

a year ago
By using Mozregression,

I run it three times and it indicates the leak is caused by 

Bug 1360198 - don't set artifact expiry in generic-worker tasks if equal to task expiry,r=dustin

I would like to try if I could do some validation to ensure it is right patch.

Comment 12

a year ago
The patch is not related to this issue.

Should do more investigation.
Moving to p3 because no activity for at least 24 weeks.
Priority: P1 → P3
You need to log in before you can comment on or make changes to this bug.