simple-tab-groups icon indicating copy to clipboard operation
simple-tab-groups copied to clipboard

Cannot import/restore settings without Firefox crashing

Open Darxide23 opened this issue 2 months ago • 14 comments

I created a new profile in Firefox and I'm in the process of making it a mirror of my current profile.

I'm trying to import my STG backup and Firefox crashes. I've tried importing just one tab group to see if it was maybe just too many tabs and it still crashed. I even unchecked the tab import entirely and just imported my settings and it still crashes.

No matter what boxes I uncheck in the import popup, Firefox subsequently crashes moments later and no settings are actually imported.

Firefox 144.0.2 (64-bit) and STG 5.3.2. Both the latest versions as of this posting.

Darxide23 avatar Nov 04 '25 02:11 Darxide23

Just encountered this issue as well. Closed all Firefox windows/tabs to restart for FF update. All Groups are now empty. Tried restoring from last backup - it starts then Firefox crashes before import finishes, and nothing seems to import.

Grogwort avatar Nov 04 '25 23:11 Grogwort

Just encountered this issue as well. Closed all Firefox windows/tabs to restart for FF update. All Groups are now empty. Tried restoring from last backup - it starts then Firefox crashes before import finishes, and nothing seems to import.

Same here. 300+ tabs gone.. this needs a fix soon

Kauoz avatar Nov 05 '25 08:11 Kauoz

Just encountered this issue as well. Closed all Firefox windows/tabs to restart for FF update. All Groups are now empty. Tried restoring from last backup - it starts then Firefox crashes before import finishes, and nothing seems to import.

Found a fix! When importing from the backup file uncheck the box "Delete all addon data and settings before restoring backup". I'm guessing the erasing part is what causes the crash.

Kauoz avatar Nov 05 '25 09:11 Kauoz

Just encountered this issue as well. Closed all Firefox windows/tabs to restart for FF update. All Groups are now empty. Tried restoring from last backup - it starts then Firefox crashes before import finishes, and nothing seems to import.

Found a fix! When importing from the backup file uncheck the box "Delete all addon data and settings before restoring backup". I'm guessing the erasing part is what causes the crash.

Same crash when restoring, but this fix did not work for me

olad32 avatar Nov 12 '25 21:11 olad32

It crashes when restoring on Firefox v145, but did not crash when restoring with previous version v144

olad32 avatar Nov 12 '25 21:11 olad32

fixed for me with the workaround in this issue https://github.com/Drive4ik/simple-tab-groups/issues/1334

olad32 avatar Nov 26 '25 19:11 olad32

fixed for me with the workaround in this issue #1334

@Darxide23 could you try the workaround described above?

If it works for you then could you close this issue to show other users that issue has the solution and it is described in comments. :)

achernyakevich-sc avatar Nov 26 '25 21:11 achernyakevich-sc

Yes, unchecking the box for "Delete all addon data and settings before restoring backup" did work. That option seems to be the common cause of crashes between comments here and on #1334. That's not really a fix, though. In my case, it was a brand new Firefox profile, so there was no addon data to even delete. If someone really does need to clear their data before importing for some reason, this would not help them.

Darxide23 avatar Nov 27 '25 06:11 Darxide23

@Darxide23 in my comment in #1334 I was not talking about that checkbox you mentioned. I was talking about actually manually deleting all addon data and settings with the button at the bottom and THEN afterwards restore the backup data. So if people need to clear their data, that's exactly what my workaround will do.

philg-dev avatar Nov 28 '25 12:11 philg-dev

No, using that button crashes Firefox as well. It doesn't even manage to clear data before crashing. I'm left with tons of duplicated tab groups, all empty.

And now no matter what I do, it crashes trying to load tabs. No matter what I uncheck. If I only import settings and hotkeys, it's fine. If I tell it to erase data, it crashes. If I try to import only tabs, it crashes. I even tried importing a group with 3 tabs to see if it was just too many tabs, but even that crashes.

I closed Firefox, lost all my tabs, and now I can't even restore backups anymore. I've disabled ALL other addons in an attempt to get it working and that hasn't helped.

Darxide23 avatar Dec 06 '25 08:12 Darxide23

Hmm... that sounds pretty weird.

Disclaimer: I did not try the following myself - try it with caution (i.e. backup your firefox profile).

You can try deleting the extension's stored data manually through the add-on debug tools.

  • go to about:debugging#/runtime/this-firefox
  • find STG and hit the "Inspect" button
  • in the add-on dev tools go to the "Storage" tab
  • find "extension storage" and "local storage" for the addon (STG should have UUID 76648863-375d-4fb4-8734-77cd07bd6385 so a good precaution is to double-check if that matches)
  • you can right-click them and choose "delete all" to clear them
  • restart your browser and hope for the best

I hope this might help in your case.

philg-dev avatar Dec 06 '25 10:12 philg-dev

No, using that button crashes Firefox as well. It doesn't even manage to clear data before crashing. I'm left with tons of duplicated tab groups, all empty.

And now no matter what I do, it crashes trying to load tabs. No matter what I uncheck. If I only import settings and hotkeys, it's fine. If I tell it to erase data, it crashes. If I try to import only tabs, it crashes. I even tried importing a group with 3 tabs to see if it was just too many tabs, but even that crashes.

I closed Firefox, lost all my tabs, and now I can't even restore backups anymore. I've disabled ALL other addons in an attempt to get it working and that hasn't helped.

Okay so I've built multiple PCs since this bug came about. I have successfully restored the backups every time I downloaded Firefox as a new browser. So.. this is what I think. I think the problem lies within Windows itself, like the registry and stuff. The dev needs to fix this problem, because I don't wanna reinstall the whole computer just to get my tabs back.

Kauoz avatar Dec 06 '25 13:12 Kauoz

Hmm... that sounds pretty weird.

I hope this might help in your case.

Before reading your reply, I just kept trying to restore my backup. After about the 20th time, it just worked. I didn't do anything differently, didn't check or uncheck any settings differently, didn't restart my PC, didn't do anything. I just kept bruteforcing it and eventually everything loaded without crashing. I wish I had something else I could tell you, but I legitimately have no idea.

Darxide23 avatar Dec 08 '25 06:12 Darxide23

Okay so I've built multiple PCs since this bug came about. I have successfully restored the backups every time I downloaded Firefox as a new browser. So.. this is what I think. I think the problem lies within Windows itself, like the registry and stuff. The dev needs to fix this problem, because I don't wanna reinstall the whole computer just to get my tabs back.

I did a fresh install of Windows earlier this year and had the crash issue then when trying to import my backups. It's absolutely nothing to do with new vs old Windows installs.

Darxide23 avatar Dec 08 '25 06:12 Darxide23

I have had the same kind of issue here, this problem exists for quite some time, upon a forceful closing of the browser or error on windows all groups may become empty with no tabs and using brute force may somehow end up working eventually when restoring the backups.

On the most recently crash here what worked for me was manually deleting all the empty groups that are left after the crash, then restoring the backup, i think there is maybe some sort of conflict with the groups already created that prevents the backup from restoring the tabs making the browser close when trying.

Lonmine avatar Dec 15 '25 15:12 Lonmine

@Lonmine just out of curiosity: have you tried my proposed workarounds as well?

philg-dev avatar Dec 16 '25 16:12 philg-dev

Hmm... that sounds pretty weird.

Disclaimer: I did not try the following myself - try it with caution (i.e. backup your firefox profile).

You can try deleting the extension's stored data manually through the add-on debug tools.

* go to `about:debugging#/runtime/this-firefox`

* find STG and hit the "Inspect" button

* in the add-on dev tools go to the "Storage" tab

* find "extension storage" and "local storage" for the addon (STG should have UUID `76648863-375d-4fb4-8734-77cd07bd6385` so a good precaution is to double-check if that matches)

* you can right-click them and choose "delete all" to clear them

* restart your browser and hope for the best

I hope this might help in your case.

Hello, Ive got the same problem, and this workaround works for me. But it isn't very practical...

MilesTEG1 avatar Dec 20 '25 21:12 MilesTEG1

@MilesTEG1 Thanks for confirming that my proposed workaround at least did work in your case.

It's indeed not super practical, it would probably be possible to script that workaround, but that of course has other caveats again for people that aren't super tech-savvy already anyway.

One more thing I've read in a different issue regarding a crash with STG was that some people reported that the following setting in about:config helped prevent a certain crash - maybe that also works against the crash of this ticket:

browser.tabs.closeWindowWithLastTab = false

Setting this to false will make it so that Firefox doesn't fully close when the last tab of a window is closed. I personally use that setting like that for 10+ years already, so maybe that's why I could never reproduce the bug.

Maybe you could try fiddling with that and report back.

philg-dev avatar Dec 20 '25 23:12 philg-dev