-
-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PWAs sometimes crash immediately on first opening, and then work normally after re-opening. #488
Comments
I have also experienced this, in my case though I'm convinced it only occurs when I do a reboot without closing the PWA manually, in other words, when it is killed. |
@awdwyn Does it happen on every fresh boot or only sometimes? I think I experienced this in the past, but not frequently, which makes it harder to fix. There are some problems with session restore (so, maybe it's really because of killing PWAs before), so this issue might be related, but I don't know why it happens. The error in I will try to fix this in the future when I rewrite the UserChrome part, but it will probably take a while. |
@filips123 It's almost a guaranteed thing on a fresh reboot. I just rebooted this machine and the first two PWAs I opened both did the open->crash->reopen->ok loop, but after that the other PWAs I opened were fine. I don't expect to see the bug again until either another reboot or extended suspend. |
I have a suspicion that the error occurs when trying to restore a previous session. In a profile where I have browser.sessionstore.max_resumed_crashes set to 0 this error does not occur. Maybe someone else can try to reproduce the error. Edit (workaround): Add to prefs.js |
I will test this on my system |
Initial test looks really good. Rebooted, loaded 10 PWAs; none had this issue. Rebooted again and tested again, same results. I think you're on to something as I absolutely would have run into this in those tests previously. I've updated user.js in all of my profiles folders in (/home/beaker/.local/share/firefoxpwa/profiles/) and also the default profile template. Thanks for sharing you're suspicions. |
Whoever implements this workaround must take into account that the session will not be restored in case of a crash. On the other hand, the origin of the error seems to be precisely in the restoration of the session, so the session will not be restored in any case. |
I've already tried to disable restoring session a few times with another pref ( But I'm still not sure why all those session issues/crashes even happened in the first place... |
when attempting this the PWA still faced the same issues unfortunately, and I noticed that the prefs.js was immeditely modified apon reopening to remove the line I had added. |
personally I don't see this as of great loss when the alternative is the app annoyingly closing itself when trying to launch |
If you modify You can also try with: |
Yes I noticed this, the issue still occured even when editing while the browser is closed. |
This fixed it for me: |
@ccoager Did you also set the other preferences or just this one? There are many different preferences that control the session, but I don't know what each one does, which are really needed to fix this and why it even happens. |
@filips123 I did try the other preferences mentioned in this issue but none of them helped. |
I've set |
@filips123 You have a conflict between this ticket and #559 as they set the same variable, browser.sessionstore.idleDelay, to different values. Since release 2.12.4 and the changing of browser.sessionstore.idleDelay, this is now crashing again for me. |
@filips123 I did some more digging and I think I found the root cause. I have |
Description
On a fresh boot, or sometimes after the PC has been idle for a while, opening a PWA (any of them) will show the window briefly and then immediately close. Re-opening the app (almost always, but not guaranteed) will work normally.
Steps to Reproduce
Additional Information
This is from journalctl showing the result of the failure while opening my bitwarden webUI PWA. No other logs show anything.
Next I opened a terminal and used
firefoxpwa site launch 01HVTD62EA2KY9QPTGS64EBKS1 -- --jsconsole
to load my unRAID webUI. The error occured again, displaying the following in the browser console:Environment
Project versions:
Other
My
user.js
automatically enables css styling within firefox, and turns off the tabs:and
userChrome.css
centers the title and turns off the hamburger menu button:The text was updated successfully, but these errors were encountered: