element-web icon indicating copy to clipboard operation
element-web copied to clipboard

Element Desktop Session Data lost

Open bessw opened this issue 3 weeks ago • 2 comments

Steps to reproduce

Turn on my laptop after forced shutdown due to a black screen.

Outcome

After booting my PC Element Desktop displayed that it lost my session data, that I need to login again and that I should create an Issue.

Operating system

Windows

Application version

can't see it in the send logs dialog

How did you install the app?

Long time ago, when it was still called riot, from the official website.

Homeserver

Synapse

Will you send logs?

Yes

bessw avatar Dec 06 '25 23:12 bessw

Error: Logs could not be send

Devtools console:

init.js:1 Uncaught (in promise) ReferenceError: Cannot access 'B' before initialization
    at Object.J (init.js:1:263429)
    at b.start (ReadyWatchingStore.ts:30:30)
    at get instance (WidgetLayoutStore.ts:69:35)
    at ./src/stores/widgets/WidgetLayoutStore.ts (WidgetLayoutStore.ts:524:48)
    at l (bootstrap:19:32)
    at ./src/utils/WidgetUtils.ts (init.js:1:1610078)
    at l (bootstrap:19:32)
    at ./src/stores/ActiveWidgetStore.ts (init.js:1:1402934)
    at l (bootstrap:19:32)
    at ./src/stores/WidgetStore.ts (init.js:1:1432283)
init.js:1 Uncaught (in promise) ReferenceError: Cannot access 'B' before initialization
    at Object.J (init.js:1:263429)
    at l.start (ReadyWatchingStore.ts:30:30)
    at d.start (AsyncStoreWithClient.ts:40:31)
    at WidgetMessagingStore.ts:31:18
    at ./src/stores/widgets/WidgetMessagingStore.ts (WidgetMessagingStore.ts:29:48)
    at l (bootstrap:19:32)
    at ./src/stores/ActiveWidgetStore.ts (init.js:1:1402968)
    at l (bootstrap:19:32)
    at ./src/stores/WidgetStore.ts (init.js:1:1432283)
    at l (bootstrap:19:32)
init.js:1 Uncaught (in promise) ReferenceError: Cannot access 'B' before initialization
    at Object.J (init.js:1:263429)
    at l.start (ReadyWatchingStore.ts:30:30)
    at p.start (AsyncStoreWithClient.ts:40:31)
    at WidgetStore.ts:40:18
    at ./src/stores/WidgetStore.ts (WidgetStore.ts:38:48)
    at l (bootstrap:19:32)
    at ./src/modules/ModuleRunner.ts (init.js:1:1310616)
    at l (bootstrap:19:32)
    at ./src/SecurityManager.ts (init.js:1:319513)
    at l (bootstrap:19:32)
rageshake.ts:69 DEPRECATED CONFIG OPTION: In the future, default_server_name will not be accepted. Please use default_server_config instead.
e.<computed> @ rageshake.ts:69
rageshake.ts:69 restoreSessionFromStorage: storage indicates we should have an access token, but we do not. Displaying StorageEvictedDialog
e.<computed> @ rageshake.ts:69
  • Local storage still contains data from my account
  • Session storage is empty
  • IndexdDB logs has 7 keys from 2 instances, but no additional useful information other than what was printed on the console
  • other storages are empty

bessw avatar Dec 06 '25 23:12 bessw

ugh. do you happen to have the full javascript logs from when it relaunched? unfortunately this sounds like it might be indexeddb corruption due to windows crashing though...

ara4n avatar Dec 07 '25 12:12 ara4n

Unfortunately no, because I didn't know any quick way to export that.

bessw avatar Dec 13 '25 02:12 bessw