Description of the issue: I suffered a power outage. Once I rebooted and relaunched brave, I clicked the restore button that automatically pops-up in the top right corner to restore all my lost tabs (HUNDREDS OF TABS SPREAD OVER 15 WINDOWS) and nothing happened ! Now it looks like it wont restore my much needed tabs at all. How can this issue be reproduced?
I don’t know it just happened once and ruined my week.
Expected result:
Clicking restore is supposed to restore all my sessions.
Brave Version( check About Brave): 1.86.148
Additional Information:
I have located and made backups as soon as I could of the binary files that start with SNSS but it’s not looking good. the “Session_“ file whose modification time is 2 minutes before the outage has 0 bytes. I have half a dozen files in the /Default/Sessions/ folder:
Apps_13374270070572579
Session_13415386745990507
Session_13415395043772555
Session_13415395380904465
Tabs_13415378730122471
Tabs_13415394977508696
I do have one Tabs_ file (428,8 kB) that also dates back to just before the outage but I don’t know how to extract its data. The other Tabs_ and Session_ files were edited later and I suspect they do not contain the data in its uncorrupted state… althought they are somehow bigger.
@MiracleMatter about the only thing that you can do would be to look at History or you can do the Reopen closed tab command, which is typically Ctrl+Shift+T which will reopen the last tabs you had open.
Beyond that, nothing you can really do that I’m aware of.
@MiracleMatter it would be all the tabs in the windows you closed. If you keep doing it, then it can restore much of what you had. This would be all last opened. If you’ve been opening a lot since the power outage, then you screwed yourself.
No it doesn’t. It restores even what was there if your computer crashed or whatever else
If it’s opening the ones you don’t want, I hate to say it, but the power outage likely corrupt the file responsible for tracking this and thus needed to start fresh (hence it’s opening the ones you don’t want, it doesn’t remember).
I personally live in an area with dodgy power, and have my PC on a UPS because of this (laptop obviously doesn’t need it, has a battery). This can happen to any browser, not just Brave/Chromium.
I get it, I’d be devastated too. If power outages are frequent, I’d consider a UPS (like I had to). If they aren’t frequent, then this “problem” is likely to rarely happen as long as things can cleanly close.
Remember, operating systems, Linux, MacOS and Windows all use disk write caching. Power outages prevent that disk cache from being committed to the disk/SSD. That there is what I am feeling likely most happened, that file that tracks the session simply never got committed to disk, or was in the middle of it before it was corrupt.
That doesn’t mean it’s not true. It just meant that the cache for those particular tabs/windows wasn’t saved. Either you had opened a lot of things after which had rewritten or it just unfortunately dumped all the data or had been corrupted at the time of the outage.