sienori / Tab-Session-Manager

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

I have used tab session manager with great sucess for some time. But now every time i try to use tab session manager it opens for a few seconds and then closes by itself. I have tried removing it from my firefox and adding it again with no success. #390

Open TC1206 opened 5 years ago

TC1206 commented 5 years ago

Short description

Steps to reproduce

  1. Start browser with clean profile
  2. Install Tab Session Manager

Expected result

Actual result

Platform information

Additional context

sienori commented 5 years ago

Please enable debug mode and show me the log when pop-up is opened. https://github.com/sienori/Tab-Session-Manager/wiki/Q&A-How-to-use-debug-mode

TC1206 commented 5 years ago

Thanking you for your reply much appreciated. How do i show you the pop up when it is opened?. i have tried print screening it into word document and uploading it here but it wont accept the format or it doesn't look right. I have tried a couple of other things but it says try again. I do have it in a word document that sorta did upload but it looks like this below. Not sure if that is helpful to you or if it contains the info you need. it looks completely different to the print screen in the actual document. Any help would be appreciated. Thank you

debug tab session manager...docx

sienori commented 5 years ago

With the debugger open, click the toolbar icon. Debug logs are displayed on the Console tab. https://send.firefox.com/download/ce683053e6cf50c3/#bDOEMnIdT6h0EGe7dkrdVQ

You do not need to paste it into a word file to send an image. You can drag and drop image files into the GitHub comment box. https://help.github.com/en/articles/file-attachments-on-issues-and-pull-requests

serram2019 commented 5 years ago

I´m having the same problem. Here it is what appears at the console when the popup is opened: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at ‘https://api.github.com/_private/browser/stats’. (Reason: Credential is not supported if the CORS header ‘Access-Control-Allow-Origin’ is ‘*’).

lpurvis commented 5 years ago

I'm having the same issue. The following is after starting from a clear console log in Firefox and clicking the Tab Session Manager icon once:

[info] popup/components/PopupPage: init() popup.js:1:72442
[info] background/background: onMessageListener() 
Object { message: "getInitState" }
background.js:1:67100
[debug] popup/actions/controlSessions: getSessions() null 
Array(6) [ "id", "name", "date", "tag", "tabsNumber", "windowsNumber" ]
popup.js:1:72442
[info] background/background: onMessageListener() 
Object { message: "getSessions", id: null, needKeys: (6) […] }
background.js:1:67100
[debug] background/getSessions: getSessions() null 
Array(6) [ "id", "name", "date", "tag", "tabsNumber", "windowsNumber" ]
background.js:1:67100
[debug] background/sessions: getAll() 
Array(6) [ "id", "name", "date", "tag", "tabsNumber", "windowsNumber" ]
background.js:1:67100
[error] background/sessions: getAll() 
error { target: IDBRequest, isTrusted: true, srcElement: IDBRequest, currentTarget: IDBRequest, eventPhase: 2, bubbles: true, cancelable: true, defaultPrevented: false, composed: false, timeStamp: 1227273, … }
background.js:1:67100
[error] background/getSessions: getSessions() 
IDBRequest { error: DOMException, source: IDBObjectStore, transaction: IDBTransaction, readyState: "done", onsuccess: onsuccess(), onerror: onerror() }
background.js:1:67100
[error] popup/components/Error: Error() 
Object { isError: true, type: "noConnection" }
popup.js:1:72442
[info] popup/components/PopupPage: openNotification() 
Object { message: "Tab Session Manager has been updated!", type: "info", duration: 20000, buttonLabel: "See more", onClick: onClick() }
popup.js:1:72442
[error] popup/components/Error: Error() 
Object { isError: true, type: "noConnection" }
popup.js:1:72442
[info] settings/settings: setSettings() isShowUpdated false popup.js:1:72442
lpurvis commented 5 years ago

In my case, it looks like the IndexedDB of Tab Session Manager was corrupt. I moved only the directory for TSM under [firefox profile]/storage/default/ and let Firefox recreate a new/empty database, then re-imported my sessions from a .json backup file (similar to steps on the wiki). That resolved the issue for me.

impressthenet commented 5 years ago

I'm having similar issues (clicking on the icon opens up TSM, but only for a second or so.) Have followed the instructions to debug which resulted in the following:

image

Any help is appreciated.