Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing rooms: Caught /sync error Cannot destructure property 'type' of 'l.b.findIn(...)' as it is undefined. #23078

Closed
MichaelSasser opened this issue Aug 15, 2022 · 0 comments · Fixed by matrix-org/matrix-js-sdk#2591
Assignees
Labels
O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect X-Release-Blocker

Comments

@MichaelSasser
Copy link

MichaelSasser commented Aug 15, 2022

Steps to reproduce

  1. Log in
  2. See: rooms vanished + the issues described in "What happened instead?"
  3. Reset cache and reload
  4. See: a different set of rooms vanished + the issues described in "What happened instead?"
  5. goto 3

The issues are happening with the current stable releases of synapse and element web.

Log snippet

2022-08-15T12:02:56.720Z W Adding default global override for .org.matrix.msc3786.rule.room.server_acl
2022-08-15T12:02:56.735Z I Enabling encryption in !foo:michaelsasser.org
2022-08-15T12:02:56.861Z E Caught /sync error Cannot destructure property 'type' of 'l.b.findIn(...)' as it is undefined.
TypeError: Cannot destructure property 'type' of 'l.b.findIn(...)' as it is undefined.
    at T (https://element.michaelsasser.org/bundles/2275d68530bbdc0832d8/vendors~init.js:2:795445)
    at h.setBeaconInfo (https://element.michaelsasser.org/bundles/2275d68530bbdc0832d8/vendors~init.js:2:1204377)
    at new h (https://element.michaelsasser.org/bundles/2275d68530bbdc0832d8/vendors~init.js:2:1202447)
    at v.setBeacon (https://element.michaelsasser.org/bundles/2275d68530bbdc0832d8/vendors~init.js:2:301185)
    at https://element.michaelsasser.org/bundles/2275d68530bbdc0832d8/vendors~init.js:2:299101
    at Array.forEach (<anonymous>)
    at v.setStateEvents (https://element.michaelsasser.org/bundles/2275d68530bbdc0832d8/vendors~init.js:2:298997)
    at c.initialiseState (https://element.michaelsasser.org/bundles/2275d68530bbdc0832d8/vendors~init.js:2:478878)
    at C.processRoomEvents (https://element.michaelsasser.org/bundles/2275d68530bbdc0832d8/vendors~init.js:2:823811)
    at https://element.michaelsasser.org/bundles/2275d68530bbdc0832d8/vendors~init.js:2:819943
2022-08-15T12:02:56.861Z I MatrixClient sync state => %s PREPARED

Outcome

What did you expect?

See all joined rooms and have none of the effects below.

What happened instead?

  • some rooms vanished
  • some rooms show without room name and users
    screenshot_2022-08-15_09-08-1660548973
  • some room versions are shown incorrect (e.g. a v6 room shows as v1 room)
  • some encrypted rooms are unable to find the configuration event (I guess the
    m.room.registration state event)
    3FJKVMIb33
  • Spaces "fail to load list of rooms"
    13OiXUGdl4
  • Soft crash on space panel view, when trying to join any room (might be related to Soft crash on space panel view (unknown exact cause) - "Something went wrong!" error #22752)
    screenshot_2022-08-15_09-08-1660549084
  • When joining rooms which were tombstoned, the element joins the predecessor room.

Operating system

Linux ms-thinkpad 5.18.16-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 03 Aug 2022 11:25:04 +0000 x86_64 GNU/Linux

Browser information

Chromium: 104.0.5112.81 x64

URL for webapp

https://element.michaelsasser.org

Application version

Element Web v1.11.3-rc.2 (d7f2eba-react-d7f2eba31074-js-d7f2eba31074); Olm version: 3.2.12

Homeserver

Synapse v1.65.0rc2

Will you send logs?

Yes

@kerryarchibald kerryarchibald self-assigned this Aug 15, 2022
@andybalaam andybalaam added S-Major Severely degrades major functionality or product features, with no satisfactory workaround O-Uncommon Most users are unlikely to come across this or unexpected workflow labels Aug 15, 2022
su-ex added a commit to SchildiChat/matrix-js-sdk that referenced this issue Aug 22, 2022
* Add txn_id support to sliding sync ([\matrix-org#2567](matrix-org#2567)).
* Emit an event when the client receives TURN servers ([\matrix-org#2529](matrix-org#2529)).
* Add support for stable prefixes for MSC2285 ([\matrix-org#2524](matrix-org#2524)).
* Remove stream-replacement ([\matrix-org#2551](matrix-org#2551)).
* Add support for sending user-defined encrypted to-device messages ([\matrix-org#2528](matrix-org#2528)).
* Retry to-device messages ([\matrix-org#2549](matrix-org#2549)). Fixes element-hq/element-web#12851.
* Sliding sync: add missing filters from latest MSC ([\matrix-org#2555](matrix-org#2555)).
* Use stable prefixes for MSC3827 ([\matrix-org#2537](matrix-org#2537)).
* Fix: Handle parsing of a beacon info event without asset ([\matrix-org#2591](matrix-org#2591)). Fixes element-hq/element-web#23078.
* Fix finding event read up to if stable private read receipts is missing ([\matrix-org#2585](matrix-org#2585)). Fixes element-hq/element-web#23027.
* Fixed a sliding sync issue where history could be interpreted as live events. ([\matrix-org#2583](matrix-org#2583)).
* Don't load the sync accumulator if there's already a sync persist in flight ([\matrix-org#2569](matrix-org#2569)).
su-ex added a commit to SchildiChat/matrix-js-sdk that referenced this issue Sep 1, 2022
* Re-emit room state events on rooms ([\matrix-org#2607](matrix-org#2607)).
* Add ability to override built in room name generator for an i18n'able one ([\matrix-org#2609](matrix-org#2609)).
* Add txn_id support to sliding sync ([\matrix-org#2567](matrix-org#2567)).
* Refactor Sync and fix `initialSyncLimit` ([\matrix-org#2587](matrix-org#2587)).
* Use deep equality comparisons when searching for outgoing key requests by target ([\matrix-org#2623](matrix-org#2623)). Contributed by @duxovni.
* Fix room membership race with PREPARED event ([\matrix-org#2613](matrix-org#2613)). Contributed by @jotto.
* fixed a sliding sync bug which could cause the `roomIndexToRoomId` map to be incorrect when a new room is added in the middle of the list or when an existing room is deleted from the middle of the list. ([\matrix-org#2610](matrix-org#2610)).
* Fix: Handle parsing of a beacon info event without asset ([\matrix-org#2591](matrix-org#2591)). Fixes element-hq/element-web#23078. Contributed by @kerryarchibald.
* Fix finding event read up to if stable private read receipts is missing ([\matrix-org#2585](matrix-org#2585)). Fixes element-hq/element-web#23027.
* fixed a sliding sync issue where history could be interpreted as live events. ([\matrix-org#2583](matrix-org#2583)).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect X-Release-Blocker
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants