-
Notifications
You must be signed in to change notification settings - Fork 973
Unable to switch to any tab on load when reloading windows from last time #9502
Comments
Some more observations: The error seems to stem from a call to |
I took a swing at adding session store cleanup code that cleans up the |
awesome, thanks for bringing this up @evq (and also for offering a solution). I'll assign this to the 0.17.x milestone so that we can triage appropriately |
@evq I think this might be fixing a symptom instead of the problem. |
@bridiver Yup, +1 for finding the root cause. Unfortunately I have been unable to reliability reproduce the cause, so I could only work from a state of already having a messed up My branch was more of a suggestion to consider being able to gracefully recover in the case that it does somehow get messed up. Perhaps a more general check that |
It's a tough call. On one hand we don't want users to be left in an unrecoverable state, but we also don't want to mask problems with workarounds. What we really need is a way to get "crash reports" for errors that we recover from and then this wouldn't be a big issue |
I think I see what the issue is @evq. We are adding to closedFrames on |
another option is to move closedFrames to appState which is what we want to do with most things long-term anyway, but I didn't look to see how much work that would be |
@bridiver fyi after rebuilding browser-laptop-bootstrap I'm consistently seeing a related issue with |
@evq it's muon-version dependent so it's something between 4.0.x and 4.1.x, but feel free to take a stab at fixing the closed frame issue if you want |
actually there are two independent issues. The active frame is not related to the console error and I have a fix for that. The console error just needs a null check for activeFrameStatePath I think |
fixes no active frame from brave/browser-laptop#9502 auditors @bbondy @evq
fixes no active frame from brave/browser-laptop#9502 auditors @bbondy @evq
fixes no active frame from brave/browser-laptop#9502 auditors @bbondy @evq
Test plan
#9589 (comment)
Did you search for similar issues before submitting this one?
Yes
Describe the issue you encountered:
After pulling the master branch and re-building, much of the browser appears "frozen" as no tab is selected, an all white window is displayed below the tab bar, clicking to switch to a tab does nothing, and the "kebab" menu does not work.
Platform (Win7, 8, 10? macOS? Linux distro?):
Linux, Arch AppVM on Qubes
Brave Version (revision SHA):
6478bcd
Steps to reproduce:
The following does not seem to consistently reproduce the issue:
Actual result:
Tabs appear to be reloaded, however no tab is selected and it is not possible to select a tab.
Expected result:
Tabs should be reloaded and it should be possible to select a tab. I would also expect that one tab is selected on load.
Will the steps above reproduce in a fresh profile? If not what other info can be added?
No, I don't seem to see this issue with a fresh profile. I opened an inspector using shift-f8 and saw the following error:
I went to the line mentioned in the trace in
windowStore.js
and commented out the following code section which results in the issue no longer happening:I see there is a guard in
case windowConstants.WINDOW_SET_STATE:
to check if there is an activeFrame, perhaps something similar is needed here? I will try that next.No.
The text was updated successfully, but these errors were encountered: