Closed
Bug 1484156
Opened 6 years ago
Closed 6 years ago
Avoid crash on first run in about:performance
Categories
(Toolkit :: Performance Monitoring, enhancement)
Toolkit
Performance Monitoring
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
firefox64 | --- | wontfix |
People
(Reporter: tarek, Assigned: florian)
References
Details
(Whiteboard: [perf-tools])
When users change the dom.performance.enable_scheduler_timing pref, the C++ internals don't see the change because it's a static pref and a restart is required.
The about:performance UI OTHO thinks the pref is on and calls the performance counter, leading to this crash.
We rely on a static pref because the scheduler calls the pref very early on when Firefox is started and we don't have yet gCacheData initialized so we crash here:
https://searchfox.org/mozilla-central/source/modules/libpref/Preferences.cpp#5581
I don't know if we have a mechanism to detect that a static pref was changed and the browser not restarted, so maybe a pragmatic solution would be for the UI to detect that it's the first run, check that the pref was toggled, and ask the user for a restart.
Reporter | ||
Updated•6 years ago
|
Summary: Avoid crash on first run → Avoid crash on first run in about:performance
Reporter | ||
Comment 1•6 years ago
|
||
I am PTO starting this evening, and I don't think this crash is critical for now and can wait for Florian to get back so we can find the best solution with him. That said, if you want to prevent crashes in the two upcoming weeks, let me know, I can write today a patch that uses an ad-hoc mechanism to make sure the browser was restarted.
Flags: needinfo?(past)
Comment 2•6 years ago
|
||
I think this can wait. The pref is disabled by default and we have been communicating to the few people that are trying it out to restart after flipping the pref.
Flags: needinfo?(past)
Updated•6 years ago
|
Blocks: new-about-performance-m1, 1419681
Whiteboard: [perf-tools]
Comment 3•6 years ago
|
||
This is a worksforme now that we flipped the pref, right?
Flags: needinfo?(florian)
Comment 4•6 years ago
|
||
Unless we want to keep it around until we fix bug 1498195, in case people keep flipping the pref for some reason.
Assignee | ||
Comment 5•6 years ago
|
||
The plan is to remove all the old code for 65. I don't think anybody plans to work on working around this for 64.
Assignee | ||
Comment 6•6 years ago
|
||
We removed the code of the old about:performance in bug 1498195 and bug 1406872.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•