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

App can fail to perform an incremental sync on reopening #4417

Closed
manuroe opened this issue Jun 10, 2021 · 0 comments · Fixed by matrix-org/matrix-ios-sdk#1124
Closed

App can fail to perform an incremental sync on reopening #4417

manuroe opened this issue Jun 10, 2021 · 0 comments · Fixed by matrix-org/matrix-ios-sdk#1124

Comments

@manuroe
Copy link
Member

manuroe commented Jun 10, 2021

The loading wheel is displayed forever. The app fails to fetch new data from the server.
A power cycle might fix the issue.

@manuroe manuroe added the P1 label Jun 10, 2021
@manuroe manuroe added this to the Sprint - Element 1.4.1 milestone Jun 10, 2021
manuroe added a commit to matrix-org/matrix-ios-sdk that referenced this issue Jun 11, 2021
element-hq/element-ios/issues/4417

The root cause of the issue is a race condition in the MXSession pause management between the sdk state machine and the kit state machine.

The SDK was blocked and dead in MXSessionStateSyncInProgress state. The kit thought it does not need to resume it on app resume.

This fix is very related on how the kit and the sdk work together. But it could make sense in a more general manner.

I was able to reproduce the issue ("[MXSession] The connection has been cancelled.") by adding a delay of 25s in /sync response. Then, if you background the app just after starting it, you will hit this case.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant