Session restore/recovery fails when rebooting on linux
Categories
(Core :: Widget: Gtk, defect, P2)
Tracking
()
People
(Reporter: rosenthalm93, Unassigned)
References
(Blocks 2 open bugs)
Details
(Keywords: dataloss, regressionwindow-wanted, steps-wanted)
Attachments
(1 file)
1.58 MB,
image/png
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:104.0) Gecko/20100101 Firefox/104.0
Steps to reproduce:
- Ensure session restoration is enabled for both FF and window manager
- Shutdown system with FF running
- Restart & login
Additional context:
- I am on FF v104.0.2 installed with snap, running kubuntu 22.04, KDE Plasma v5.24.6
- I confirmed no snap update occurred at startup.
- Other KDE users have had similar experiences since v100: https://www.reddit.com/r/kde/comments/usu1n5/firefox_gets_stuck_like_this_whenever_i_boot_up/
Actual results:
- Intermittently, Firefox starts a single window in a degraded state and fails to render content.
- New windows render in the same broken fashion
- Closing and restarting FF like a normal user loses all session state with no recovery prompts.
- However, deleting
recovery.jsonlz4
before restart causes a proper restoration. - I inspected the contents of
recovery.jsonlz4
and therecovery.baklz4
and found thatrecovery.jsonlz4
was essentially an empty session while the backup had full session info. - I found no
.mozilla/firefox/Crash Report
or anygrep -i firefox ~/.xsession-errors
This seems like a race condition due to the intermittent nature. Let me know if I can provide any additional info.
Expected results:
- The Firefox window should have rendered properly
- The recovery backup should have been restored as usual
- Failing 1 & 2, a new empty
recovery.jsonlz4
should not have been created
Comment 1•2 years ago
|
||
Same problem with Mozilla Firefox 104.0, Kubuntu 20.04.5 LTS and driver nvidia closed.
Regard.
Comment 2•2 years ago
|
||
The severity field is not set for this bug.
:dao, could you have a look please?
For more information, please visit auto_nag documentation.
Same issue on Firefox 105.0.2 (and prior), Ubuntu 22.04.1 LTS and an Intel Corporation UHD Graphics 620.
Cheers :)
Comment 4•2 years ago
|
||
(In reply to capitan.zap from comment #1)
Same problem with Mozilla Firefox 104.0, Kubuntu 20.04.5 LTS and driver nvidia closed and kwin plasma effect active.
Regard.
Comment 5•2 years ago
|
||
Hello I have tried to reproduce the issue with firefox 107.0a1(2022-10-10) on Ubuntu 22.04, unfortunately I wasn't able to reproduce the issue. Could you please answer the following questions in order to further investigate the issue
- Does this issue happen with a new profile? Here is a link on how to create one: https://support.mozilla.org/en-US/kb/profile-manager-create-remove-switch-firefox-profiles
- Does this issue happen in the latest nightly? Here is a link from where you can download it: https://www.mozilla.org/en-US/firefox/channel/desktop/
- Do you have any addons installed if so can you list them?
Comment 6•2 years ago
|
||
Same here.
Firefox version: 105.0
Ubuntu: Kubuntu 20.04 LTS (KDE Plasma 5.18.8)
Hardware: Lenovo Z50-70
GPUs: Intel® HD Graphics 4400 and Nvidia GeForce N15S Gt
The problem appeared right after the installation the current OS, and it is persistent since then.
This is a very basic setup, everything is at "factory default".
I think the problem might be related to some hibernation/suspend anomaly.
For now, we completely disabled hibernation and suspend functions as a workaround.
Now it seems okay, but I'll give it some time, and will give you a feedback later.
Comment 7•2 years ago
|
||
I have installed firefox 109.0 (64 bit) from site mozilla and put it on /opt dir, and now this bug not is present.
Comment 8•2 years ago
|
||
Redirect a needinfo that is pending on an inactive user to the triage owner.
:dao, since the bug doesn't have a severity set, could you please set the severity or close the bug?
For more information, please visit auto_nag documentation.
Comment 9•2 years ago
|
||
If someone from those who can reproduce the bug could find a regression range (https://mozilla.github.io/mozregression/), that would be helpful in order for us to understand what's going on here.
Updated•2 years ago
|
Comment 10•2 years ago
|
||
I can not reproduce either on my system, however, I might be missing a configuration:
How can I enable session restore "for the window manager"?
I assume this issue happened in the past when the Firefox window opens automatically after logging back into Linux and not my manually reopening it. Is this correct?
Thank you for your contribution!
Comment 11•1 years ago
|
||
Redirect a needinfo that is pending on an inactive user to the triage owner.
:dao, since the bug has high severity and recent activity, could you have a look please?
For more information, please visit auto_nag documentation.
Reporter | ||
Comment 12•1 year ago
|
||
I can confirm that now, with Mozilla Firefox 114.0b8
on kubuntu 22.10, this no longer appears to be an issue. I attempted to reboot 3 times and did not have it happen in any instance.
Sorry it took so long for me to get back to this – after I solved an unrelated issue that was preventing my desktop from sleeping I had less cause to reboot.
In case it is still salient, by "window manager session restore" I meant "Restore last session" under "Startup and Shutdown -> Desktop Session -> When logging in"
Reporter | ||
Comment 13•1 year ago
|
||
Woops, I spoke too soon, I was able to reproduce again after about 10 reboots or so. So the issue still exists, but only happens roughly 1/10 times. The session loss issue did not happen this time, however.
I assume this issue happened in the past when the Firefox window opens automatically after logging back into Linux and not my manually reopening it. Is this correct?
This is correct. I am using snap firefox also if that matters.
Also for context, the reason I am currently repeatedly rebooting is because I am fiddling with BIOS settings for another thing I'm working on. The issue presented while using my usual settings, but it is possible that there is some difficult-to-reproduce or system-specific interaction involved there.
Given that this is an intermittent issue that only presents at reboot it seems like an absolute bear of a problem to figure out exactly what's going on.
Comment 14•1 year ago
|
||
(In reply to Michael from comment #13)
[...] The issue presented while using my usual settings, but it is possible that there is some difficult-to-reproduce or system-specific interaction involved there.
Given that this is an intermittent issue that only presents at reboot it seems like an absolute bear of a problem to figure out exactly what's going on.
Right. :/ I think I'm gonna have to downgrade this to S3 like I did for bug 1819813. If you figure out any other factors to help narrow this down, please let us know. Thanks!
Comment 15•1 year ago
|
||
Moving to GTK component - can you provide any insight on what might be happening here?
Comment 16•1 year ago
|
||
I saw similar behavior a few releases ago. The environment was X11 and the build was not a snap build.
Only a single Firefox window appeared. I don't recall for certain but i think the content area was blank.
I closed that window after a minute or so, either through explicit close or restarting the session.
Subsequent Firefox restarts still had only one window and the most recent session restore files did not contain history.
I found an older session restore file that didn't seem to have my most recent session, but wasn't more than weeks old.
Since then, a couple of times I've seen Firefox start with only a single window. After some minutes, something triggers session restore. I've speculated this might be focus or a remote connection from opening another url.
I wonder whether session restore might be writing a new file (either on shutdown or earlier) before completing the previous restore?
I don't have any reason to suspect this is specific to GTK.
Description
•