cinnyapp / cinny-desktop

Yet another matrix client for desktop
GNU Affero General Public License v3.0
415 stars 49 forks source link

Failed to load. Cannot read properties of null (reading 'nextBatch') #331

Open xobs opened 3 months ago

xobs commented 3 months ago

Describe the bug

When starting up Cinny, it presents a window that says "Failed to load. Cannot read properties of null (reading 'nextBatch')". There is a Retry button that causes the message box to disappear and reappear again immediately.

image

Reproduction

  1. Open Cinny

Expected behavior

Cinny should startup

Platform and versions

1. OS: Windows 11
2. Cinny version: I think it's the latest -- it just updated, but I can't tell how to get the version number
3. Matrix homeserver. matrix.im
4. Downloaded from: Clicking "Yes" when it asked me to upgrade. Originally was downloaded from Github releases

Additional context

No response

kfiven commented 3 months ago

Hi, Could you please Right click > Inspect > Console for any error?

xobs commented 3 months ago

Sure. It says:

Uncaught (in promise) TypeError: Cannot read properties of null (reading 'nextBatch')
    at index-Pm8eP4Ep.js:79946:47254
    at async index-Pm8eP4Ep.js:79946:46975
    at async buA (index-Pm8eP4Ep.js:79949:106225)
    at async index-Pm8eP4Ep.js:9:62957
kfiven commented 3 months ago

In the console, could you go to Application and try clearing "Local storage" and deleting "IndexedDB" entries.

Seems like you also had this in 3.2.1 as reported in https://github.com/cinnyapp/cinny/issues/1764

xobs commented 3 months ago

Yes, like before, that works around the issue. The error is different, so it didn't show up when I searched for fixes.

That means the underlying problem is still there.

kfiven commented 3 months ago

well, underlying problem is not known, and that is what I am trying to find. Did clearing those storage fix the issue? Because I have cinny working well on windows. Seems there are something specific happening for you.

xobs commented 3 months ago

Yes, clearning storage (by going to Application, then Storage on the left, then "Clear site data" on the right) fixed it so that it now starts up and lets me log in.

kfiven commented 3 months ago

This probably seems like similar to https://github.com/element-hq/element-web/issues/27520