-
Notifications
You must be signed in to change notification settings - Fork 975
bad session state can result in permanently borked profile #13261
Comments
This was displayed in the terminal: [76516:775:0222/171501.726464:ERROR:CONSOLE(1)] "Uncaught TypeError: Cannot read property 'filterNot' of undefined", source: chrome://brave/Users/laurenwagner/Brave%20Documents/Laptop/Brave%20Beta/Brave-Beta.app/Contents/Resources/app.asar/app/extensions/brave/gen/app.entry.js (1) |
…o perWindowState[].closedFrames property, which would then cause the app never recover, even after restart. Fix #13261, although since that's not reproducible I'm not sure the moving-tab keyboard shortcut neccessarily caused it, but something did, and this will allow recovery in that situation.
I have made a fix in #13265 that addressed this unrecoverable 'borked' behavior. That will stop the console errors from being thrown, and allow the browser to function normally (tested with aforementioned borked profile). Since this is not reproducible, I'm not sure that the keyboard shortcut for moving tabs caused it. Having |
…o perWindowState[].closedFrames property, which would then cause the app never recover, even after restart. Fix #13261, although since that's not reproducible I'm not sure the moving-tab keyboard shortcut neccessarily caused it, but something did, and this will allow recovery in that situation.
@petemill - if I launch the borked profile with 0.21.24 it's definitely screwed up as I would expect and when I launch with 0.22.7 all my tabs seem to be restored and functional which is awesome. However, I also get two blank about:error tabs each time I launch the profile in 0.22.7 - no errors in terminal though. Is there somewhere else I can look for information? |
@LaurenWags I could reproduce that and now I can't. It looks like all the tabs in the profile (pinned and non-pinned) are opening fine, and those error tabs are additional, as far as I can see. So, not a huge issue if that's the case, but will keep trying to reproduce and find out what's opening them. |
@LaurenWags and now I can reproduce it again when using the full 'borked' profile directory and not just the session-store. Perhaps something in the cache, will look for another minute. Edit: seems like it's caused by the pinned Ebay tab failing to load with shields turned off. Not sure why shields is causing it not to load the first time, but ok the next time, and also why the error page is loading in a new tab instead of the ebay tab. |
This has shown two issues:
|
Confirmed clearing cookies resolves the issue in my borked profile. Looks good.
Verified on Ubuntu 16.04 using the following build:
Verified on Win 10 x64 using the following build:
|
Description
I haven't reproduced yet, but I was following the test plans set out in #11313 for the keyboard shortcuts. I close Brave and reopened near the end to see if my tab order was preserved and that's when I discovered that my profile is borked. I can't reload existing tabs, new windows are useless, my pinned tabs spin, I can't open new tabs.
Steps to Reproduce
I don't have exact steps yet, I was using a clean profile to follow the test cases in the PR referenced above. Generally this is what I did:
Another STR from #13339
(steps 2 and 3 don't seem required to reproduce, and can reproduce on 0.20)
LEDGER_ENVIRONMENT=staging
(not sure if this makes any difference but issue found when launched with this env variableActual result:
Profile borked. Error in console shows:
Uncaught TypeError: Cannot read property 'filterNot' of undefined
at R (gen/app.entry.js:1)
at callbacks.forEach (gen/app.entry.js:1)
at Array.forEach ()
at Object.dispatchToOwnRegisteredCallbacks (gen/app.entry.js:1)
at Object.dispatchInternal (gen/app.entry.js:1)
at n.cargo (gen/app.entry.js:1)
at Object.process (gen/app.entry.js:1)
at gen/app.entry.js:1
at gen/app.entry.js:1
at gen/lib.devTools.js:1
Expected result:
Profile should not be borked
Reproduces how often:
Unknown
Brave Version
about:brave info:
0.21.11
Reproducible on current live release:
yes
Additional Information
I did this with a testing profile, I can provide it if it will be helpful.
The text was updated successfully, but these errors were encountered: