question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exceptions during room view changes cause infinite, unrecoverable, loops

See original GitHub issue

Steps to reproduce

  1. Throw an error in a relatively sane place, such as an undefined event that https://github.com/matrix-org/matrix-react-sdk/pull/6733 patched over.
  2. Trigger the error

What happened?

What did you expect?

For the client to not spin out of control. We should have handling to ensure that rapid loops don’t happen, failing outright to an error page instead of reverting view_room dispatches. Ie: we should redirect to #/error or something to break loops.

What happened?

It spun out of control. The room view switch logic got caught in a predictable race with the space change handling: the user would navigate to an affected room which triggers the space change handling to try and navigate to the relevant space for that room, but before that space change dispatch could go off the room view errors and causes some code somewhere to revert the room view change. The reversion then gets caught by the space change handling again, so is now racing between two dispatches which have become out of phase with each other. Repeats infinitely.

Operating system

Windows 10

Application version

N/A - All platforms

How did you install the app?

No response

Homeserver

No response

Have you submitted a rageshake?

No

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
robintowncommented, Sep 6, 2021

Because the issue mentions that it’s due to races that can happen with the spaces context switching mechanism - however it’s not super important

0reactions
novocainecommented, Oct 11, 2021

We think this is more a fundamental architecture issue than Spaces specific, so marking as such

Read more comments on GitHub >

github_iconTop Results From Across the Web

Circular exception handling can cause infinite loop since 9.3.4.0
It seems that it is caused by an invalid FFI::AutoPointer definition in the appsignal gem (I reported the issue to them appsignal/appsignal-ruby ...
Read more >
Why is a segmentation fault not recoverable? - Stack Overflow
So the problem is (generally) that the program is in an illegal, unrecoverable state WELL BEFORE the SIGSEGV occurs, and recovering from the ......
Read more >
Infinite loop | Blue Prism Product
Exists any way to detect an infite loop from control room and in that case stop the process automatically?
Read more >
Cisco Nexus 3000 Series NX-OS System Messages ...
Explanation Undoing the rollback changes (for atomic behavior) Failed ... Explanation System detected loops in the network - administration intervention may ...
Read more >
z/VM: 7.3 DFSMS/VM Diagnosis Guide
modifications until otherwise indicated in new editions. ... Infinite loops are caused when the condition in the loop is never satisfied and no...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found