element-hq / element-x-android

Android Matrix messenger application using the Matrix Rust Sdk and Jetpack Compose
GNU Affero General Public License v3.0
1.04k stars 147 forks source link

Stuck on login screen, trying to cancel leaves app in unusable state #1188

Open axelsimon opened 1 year ago

axelsimon commented 1 year ago

Steps to reproduce

Installed the app and went through the login process.

Network connectivity was decent (4G) and the account is not huge (a few large rooms, but no m.org HQ for instance).

After the OIDC login per se and choosing "allow" at the callback screen, Element X stayed stuck on the cancel/allow/signout screen, with an endless spinner.

None of the button reacted or did anything, so i couldn't cancel log in, couldn't "allow" again, and couldn't sign out.

After a few minutes, i chose to go back using the Android back action, which led to a series of OIDC error messages and left the app in an unusable state, as i could not sign out nor finish signing in ("authorization grant not in a pending state").

I was able to capture some screenshots. They should be in order of how things happened. Screenshot_20230829-123239 Screenshot_20230829-122605 Screenshot_20230829-122618 Screenshot_20230829-122623

I eventually deleted the app's data, and started from scratch. This time, i didn't get stuck on the cancel/allow/signout page and was able to get my account to sync: Screenshot_20230829-123757

This took some time, but wasn't worrying as the app was clearly asking me to wait. I was then finally logged in.

I don't have logs, but i could try to reproduce by wiping app data and logging in again, if requested.

Outcome

What did you expect?

A smooth login process. Information about what the app was doing, if i need to wait.

What happened instead?

An endless spinner, unresponsive action buttons and the login process falling apart by both showing behind the scenes info users shouldn't see and leaving the app in a completely unusable state.

Your phone model

Pixel 2

Operating system version

GrapheneOS (Android 11)

Application version and app store

0.1.5 (40001050) from Play Store (via Aurora Store)

Homeserver

element.io

Will you send logs?

No

Are you willing to provide a PR?

No

axelsimon commented 1 year ago

I cleared a bunch of junk sessions that trying to log in as reported in this bug had created, and was hit by this issue again as i tried to log back in.

My logging in involves some jumping between apps, but nothing that should throw off the EX login process.