cinnyapp / cinny

Yet another matrix client
https://cinny.in
GNU Affero General Public License v3.0
1.9k stars 246 forks source link

Regular C is undefined / C is not a function errors in console #1570

Closed Porkepix closed 2 months ago

Porkepix commented 10 months ago

Describe the bug

I can regularly find these errors in the console logs

[Error] Caught /sync error – TypeError: C.close is not a function. (In 'C.close()', 'C.close' is undefined) — index-eaa22fd4.js:57071:23887
TypeError: C.close is not a function. (In 'C.close()', 'C.close' is undefined) — index-eaa22fd4.js:57071:23887
    (anonymous function) (index-eaa22fd4.js:62:26356)

and

[Error] Failed to process events on room !foo:matrix.org: – TypeError: C.close is not a function. (In 'C.close()', 'C.close' is undefined) — index-eaa22fd4.js:57071:23887
TypeError: C.close is not a function. (In 'C.close()', 'C.close' is undefined) — index-eaa22fd4.js:57071:23887
    (anonymous function) (index-eaa22fd4.js:62:33114)

Reproduction

I have no STR

Expected behavior

These errors probably shouldn't happen (or be more clear)

Platform and versions

Archlinux and Cinny desktop 3.2.1 (didn't open the issue on the desktop side as I can't tell if it's exclusive to that one).

Additional context

I'm trying to track down an issue of some messages not received on Cinny while being received on other clients. After Cinny's restart message is here. These errors might be totally unrelated to that issue, but I've no real clue for that one for now, so I'm reporting what I can find.

aceArt-GmbH commented 9 months ago

Seems to be the same issue as https://github.com/cinnyapp/cinny-desktop/issues/252 which points to https://github.com/cinnyapp/cinny/blob/fcd7723f73f1e89f4ea9fabd6e0c03c4c8a4ffd4/src/client/state/Notifications.js#L299-L302

Can't reproduce in web, but in desktop/tauri. Get notification, but read in other client. image C has no .close()

ajbura commented 2 months ago

this has been fixed in v4.0.0