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

Permanently unresponsive (no sync) after returning from background #4669

Closed
ManDay opened this issue Dec 9, 2021 · 7 comments
Closed

Permanently unresponsive (no sync) after returning from background #4669

ManDay opened this issue Dec 9, 2021 · 7 comments
Labels
A-Sync O-Occasional Affects or can be seen by some users regularly or most users rarely S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect Something isn't working: bugs, crashes, hangs and other reported problems

Comments

@ManDay
Copy link

ManDay commented Dec 9, 2021

Illustration

MP4_20220102_105847.mp4

Steps to reproduce

Open a room and let the phone go to standby/display off after delay. Then unlock the phone again, thus returning to the room.

Outcome

The "sync" spinner at the top border will appear and start spinning indefinitely.

From that point on

  • no synchronisation will ever succeed
  • "Clear cache" hangs indefinitely on the initial splash screen, too
  • Closing Element Android has no effect

The only solution that I've found so far is using "Force Stop" on Element Android in the device settings.

Your phone model

Cubot J5

Operating system version

Android 9

Application version and app store

Element 1.3.7 F-8b98c8fe

Homeserver

matrix.org

Will you send logs?

Yes

@ManDay ManDay added the T-Defect Something isn't working: bugs, crashes, hangs and other reported problems label Dec 9, 2021
@ManDay
Copy link
Author

ManDay commented Dec 10, 2021

About reproducability: It happens occasionally with a high probability. I have not been able to reproduce it in small rooms, although once the problem occurs, sync fails for all rooms. On larger rooms like #matrix I would say it happens in 8 out of 10 trials.

@ouchadam ouchadam added A-Sync 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 labels Dec 15, 2021
@ManDay ManDay changed the title Element Android 1.3.7 F-Droid permanently unresponsive (no sync) after lockscreen Permanently unresponsive (no sync) after lockscreen Dec 22, 2021
@ManDay
Copy link
Author

ManDay commented Jan 2, 2022

If it is of any significance: When this happens, cutting the network -- which normally causes a warning about Airplane Mode -- does not have any effect, either: The loading indicator just keeps spinning.

I've joined more than 3 rooms as of recently and now it happens with a probability of >60%! Even in the overview of rooms and when returning to the app. This has now forced me to use Element Web because Element Android is effectively unusable.

@ManDay
Copy link
Author

ManDay commented Jan 2, 2022

@SpiritCroc from Schildi (which has the same problem from the Element Codebase) has told me that a video might clarify the problem, I've added it to the opening post. You can see how after several tabbing back-and-forth Element bricks in the indefinite sync. I suspect that the stochastic doesn't follow the number of switches, because it happens with a 80% probability when I come back to Element after it has been in the background for several minutes.

@ManDay ManDay changed the title Permanently unresponsive (no sync) after lockscreen Permanently unresponsive (no sync) after returning from background Jan 2, 2022
@amas0
Copy link

amas0 commented Jan 9, 2022

Just wanted to jump in and say that I'm also experiencing this issue with high probability upon returning to Element from it being in the background. I've found I can fix it temporarily by closing the app completely (removing it from my background apps) and reopening it.

I am running 1.3.12 (G-b5040) on a Galaxy S21.

@ManDay
Copy link
Author

ManDay commented Jan 13, 2022

Occasionally, this situation occurs "invisibly", meaning there is no indication of the problem such as an infinitely spinning "loading bar". The other symptoms are there, such as messages being marked "delivered" (and actually delivered) but disappearing when leaving the room and no sync. The unmistakable indicator for me is that when I do "clear cache", Element hangs on the initial ("green") screen indefinitely.

Upstream, if you're just going to ignroe this bug then please close it so users don't waste effort commenting on it. Thanks.

@abaker abaker mentioned this issue Jan 14, 2022
9 tasks
@ouchadam ouchadam added O-Occasional Affects or can be seen by some users regularly or most users rarely and removed O-Uncommon Most users are unlikely to come across this or unexpected workflow labels Jan 14, 2022
@bmarty
Copy link
Member

bmarty commented Feb 17, 2022

Should be fixed in Element 1.3.16 by #4952. Feel free to re-open if this is not the case.

@ellidi
Copy link

ellidi commented Mar 28, 2022

Should be fixed in Element 1.3.16 by #4952. Feel free to re-open if this is not the case.

Still an issue in 1.4.4 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Sync O-Occasional Affects or can be seen by some users regularly or most users rarely S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect Something isn't working: bugs, crashes, hangs and other reported problems
Projects
None yet
Development

No branches or pull requests

5 participants