sienori / Tab-Session-Manager

WebExtensions for restoring and saving window / tab states
https://tab-session-manager.sienori.com/
Mozilla Public License 2.0
1.91k stars 187 forks source link

TSM opens for only a few milliseconds #362

Open gamdschiee opened 5 years ago

gamdschiee commented 5 years ago

Short description

TSM window does not open, when I click on the small button top right corner of firefox.

Expected result

Clicking the mouse fast so show, that the window only stays for a few milli-seconds open. I do not close it, it closes it by itself: tsm_problem

Actual result

Normally there should be a small window, which shows my stored sessions.

Platform information

Discussion

Reinstalling the Tab-Session-Manager helps obviously. But then I wanted to get my old stored sessions in obviously. I did it manually step-by-step with the help of: https://github.com/sienori/Tab-Session-Manager/wiki/Q&A:-Sessions-data-storage-location;-How-to-migrate-sessions-data-to-another-profile

But somehow it didn't help. So could it be that the file .sqlite is somehow corrupt? The last time it got changed was the 8th of December.

Another weird thing is, that the export-function is actually normally working, but once I've replaced the old .sqlite file with the new one and edited the UUID value the TSM stops working.

By exporting a session you will create a .json file. Which means the program somehow gets the session out of this .sqlite databank file. So theoretically you could create several .json files out of this old sqlite file and import it back in.

Can you actually do that somehow?

sienori commented 5 years ago

Please enable debug mode and show me the logs when restarting Firefox and opening the popup. https://github.com/sienori/Tab-Session-Manager/wiki/Q&A-How-to-use-debug-mode

gamdschiee commented 5 years ago

Thank for for fast responding! Sorry that I couldn't deliver the debug log faster: image

The log above popped in, when I just pressed the tsm button once.

sienori commented 5 years ago

The storage seems to be corrupted. Please follow this page. https://github.com/sienori/Tab-Session-Manager/wiki/IndexedDB-Error#corrupted-file-exists-in-firefoxs-storage

gamdschiee commented 5 years ago

I tried that, but that didn't change anything unfortunately. Log from starting firefox and clicking the TSM button to answering this post here: image image

sienori commented 5 years ago

Please disable other addons and execute until step 3. Is the problem solved?

Corrupted file exists in firefox's storage

  1. Please access about: profiles and open the root directory.
  2. Please quit Firefox.
  3. Please copy the storage folder to a different location and delete it. Be sure to back up. It is necessary to restore data later. By deleting the storage folder, the IndexedDB error is resolved.
gamdschiee commented 5 years ago

It works, but I haven't restored the Storage-folder yet. Which means I haven't got back my old stored session from early december and the rest of the last year.

edit: I think it must be the file 1782160246ssensosi.sqlite which is corrupt, right?

sienori commented 5 years ago

Probably I think 1782160246ssensosi.sqlite file is corrupted...

Please check: You said you edited the UUID of the sqlite file. Is the UUID included in the sqlite file a UUID of the Tab Session Manager?

  1. Open Browse Data tab.
    edit sqlite The value of origin is the TSM directory name of the previous profile. (In this case: moz-extension+++de50ed3a-7f77-40bc-af2e-c5953d30edbb)
    Change this value to the TSM directory name of the current profile. (In this case: moz-extension+++ae28caf2-9857-4b99-bee9-9e2cfdd3b28c)

https://github.com/sienori/Tab-Session-Manager/wiki/Q&A:-Sessions-data-storage-location;-How-to-migrate-sessions-data-to-another-profile

gamdschiee commented 5 years ago

Yes, the origin value is "moz-extension+++5539e5b9-347f-431b-a19e-182874bd7bc4". It is the same name as the folder has, which the .sqlite file is in.

sienori commented 5 years ago

Unfortunately, I think it is difficult to restore lost session data. Sorry for the inconvenience.

By exporting a session you will create a .json file. Which means the program somehow gets the session out of this .sqlite databank file. So theoretically you could create several .json files out of this old sqlite file and import it back in.

Is there content in the json file? I think the contents are empty.

gamdschiee commented 5 years ago

Ye I can't export anything with the old .sqlite (corrupted) in the Default folder. I can only export it, when using this DB program. But when I try to import the .json files (on a new .sqlite of course) it does not import anything.

So is there really nothing to fix that corrupt .sqlite file? Not even looking for the name of the websites etc., because even that would be a huge help.

irvinm commented 5 years ago

You could try looking into your "history" for a list of websites you have visited for a basic list. (It is a pain, but good if it is your last resort)

RobertAb1 commented 5 years ago

@gamdschiee and others

Vote on Bug 944918, Bug 1423917, Bug 1541370, Bug 1482662, Bug 1546264, Bug 1427928 and other Firefox bugs listed here: #150 - to speed up this correction process including preparation of APIs by Mozilla and adding this future (and other ones) to TSM.

150 - please, vote on all bugs on the list, so other problems with session managers can also be fixed; instruction on how to vote on Bugzilla can be found at the bottom of the list.

gamdschiee commented 5 years ago

@RobertAb1 So you think my corrupt file is still savable when Mozilla helps or rather the chance that the problem occurs in the first hand will be way lower?

RobertAb1 commented 5 years ago

@gamdschiee If your problem is related to broken indexedDB and the mentioned bugs will fixed well by Firefox developers than there is a chance that no new problems with this database will be in the future. But now Firefox developers have to fix bug discovered 5 years ago. Broken indexedDB is also causing trouble with other extensions using it.

RobertAb1 commented 5 years ago

https://github.com/sienori/Tab-Session-Manager/issues/358#issuecomment-451598302

reyman commented 5 years ago

Same error here, i try everything in the wiki ... and i continue to have the same error : IndexedDB UnknownErr: ActorsParent.cpp:554

Waiting for fix in FF, is there a way to export some json correctly using sqlitebrowser to get my data back ? I try to read object_data.json, but data is binary...

mechanikilla commented 4 years ago

so this is still apparantly an ongoing issue?? i just followed all that, around and around, brain-splitting tutorial - fixes, and after every solution, the issue remained

so i just loose all my 100s of tabs again for the 20th time

so being able to consistently reopen your previous session really is asking too much

such technology wow