Tab-Session-Manager icon indicating copy to clipboard operation
Tab-Session-Manager copied to clipboard

Autosave stopped working

Open Bgs4269 opened this issue 2 years ago • 5 comments

Short description

The autosave functionality stopped working without any apparent errors.

Steps to reproduce

Install add-on. Enable autosave and set schedule+retention, or set window close/browser exit saves.

Expected result

Sessions saved as configured.

Actual result

Autosaves visible up to about two weeks ago. No new saves are created, either scheduled of window event triggered. Manual saves work as expected.

Platform information

  • Platform (OS): Windos 10
  • Version of browser: Firefox 100.0 64 bit
  • Version of Tab Session Manager: 6.12.0

Additional context

No errors visible during usage.

Enabling debugging, I caught these as possibly related error messages:

[error] background/sessions: getAll() error { target: IDBRequest, isTrusted: true, srcElement: IDBRequest, currentTarget: IDBRequest, eventPhase: 2, bubbles: true, cancelable: true, returnValue: true, defaultPrevented: false, composed: false, … } background.js:2:60700 moz-extension://fa9cc7a0-c24b-4ac9-8475-27f6ca812964/background/background.js:2 onerror moz-extension://fa9cc7a0-c24b-4ac9-8475-27f6ca812964/background/background.js:2 (Async: EventHandlerNonNull) getAll moz-extension://fa9cc7a0-c24b-4ac9-8475-27f6ca812964/background/background.js:2 getAll moz-extension://fa9cc7a0-c24b-4ac9-8475-27f6ca812964/background/background.js:2 ve moz-extension://fa9cc7a0-c24b-4ac9-8475-27f6ca812964/background/background.js:2 et moz-extension://fa9cc7a0-c24b-4ac9-8475-27f6ca812964/background/background.js:2

[error] background/autoSave: updateTemp() TypeError: n is undefined ve moz-extension://fa9cc7a0-c24b-4ac9-8475-27f6ca812964/background/background.js:2 et moz-extension://fa9cc7a0-c24b-4ac9-8475-27f6ca812964/background/background.js:2 nt moz-extension://fa9cc7a0-c24b-4ac9-8475-27f6ca812964/background/background.js:2 rt moz-extension://fa9cc7a0-c24b-4ac9-8475-27f6ca812964/background/background.js:2 background.js:2:60700 moz-extension://fa9cc7a0-c24b-4ac9-8475-27f6ca812964/background/background.js:2 et moz-extension://fa9cc7a0-c24b-4ac9-8475-27f6ca812964/background/background.js:2 nt moz-extension://fa9cc7a0-c24b-4ac9-8475-27f6ca812964/background/background.js:2 rt moz-extension://fa9cc7a0-c24b-4ac9-8475-27f6ca812964/background/background.js:2

[error] background/sessions: getAll() error { target: IDBRequest, isTrusted: true, srcElement: IDBRequest, currentTarget: IDBRequest, eventPhase: 2, bubbles: true, cancelable: true, returnValue: true, defaultPrevented: false, composed: false, … } bubbles: true cancelBubble: false cancelable: true composed: false currentTarget: null defaultPrevented: false eventPhase: 0 explicitOriginalTarget: IDBRequest { error: DOMException, source: IDBObjectStore, readyState: "done", … } error: DOMException: The operation failed for reasons unrelated to the database itself and not covered by any other error code. onerror: function onerror(e)​​ onsuccess: function onsuccess(a) readyState: "done" source: IDBObjectStore { name: "sessions", keyPath: "id", autoIncrement: false, … } transaction: IDBTransaction { mode: "readonly", db: IDBDatabase, error: DOMException, … } : IDBRequestPrototype { result: Getter, error: Getter, source: Getter, … } isTrusted: true originalTarget: IDBRequest { error: DOMException, source: IDBObjectStore, readyState: "done", … } returnValue: true srcElement: IDBRequest { error: DOMException, source: IDBObjectStore, readyState: "done", … } target: IDBRequest { error: DOMException, source: IDBObjectStore, readyState: "done", … } timeStamp: 52800467 type: "error" <get isTrusted()>: function isTrusted() : EventPrototype { composedPath: composedPath(), stopPropagation: stopPropagation(), stopImmediatePropagation: stopImmediatePropagation(), … }

The last one has several layers in depth. I have not copied it all here.

Bgs4269 avatar May 18 '22 03:05 Bgs4269

Perhaps the IndexedDB is corrupted. You need to fix the corruption. https://github.com/sienori/Tab-Session-Manager/wiki/IndexedDB-Error

sienori avatar Sep 13 '22 16:09 sienori

You were quick to mark it as invalid.

  • There are no indexdb errors or warnings.
  • Firefox's session db works fine without errors.
  • Manual saves still work with TSM.
  • All manual sessions, and the automated sessions saved before it stopped working work fine.
  • None of the sqlite files are corrupted.

Bgs4269 avatar Sep 18 '22 21:09 Bgs4269

Plus, from the debug output that I sent a few months ago:

error: DOMException: The operation failed for reasons unrelated to the database itself and not covered by any other error code.

Bgs4269 avatar Sep 18 '22 21:09 Bgs4269

Please export all sessions and settings, then try deleting all sessions and reinstalling extensions. Does auto save work after reinstallation?

sienori avatar Sep 19 '22 04:09 sienori

I've actually done those shortly after my previous comments. It created a single regular auto-save, then stopped again.

Bgs4269 avatar Sep 19 '22 04:09 Bgs4269