fenix icon indicating copy to clipboard operation
fenix copied to clipboard

[Bug] Fenix locks up when loading Twitter login (is it all logins?)

Open yoasif opened this issue 6 years ago • 7 comments

Steps to reproduce

  1. Download the Fenix build from https://firefox-ci-tc.services.mozilla.com/tasks/index/project.mobile.fenix.v2.fennec-production.2020.02.20/latest
  2. Install
  3. Run and wait for profile migration to occur
  4. Navigate to Twitter login page.

Expected behavior

I am able to enter my login and use the site.

Actual behavior

Fenix locks up and as soon as I try to enter credentials into Twitter.

Profile here: https://perfht.ml/2ulz3jw

Another profile after a few minutes of waiting for Fenix to work again - it never started working again, but here's the profile: https://perfht.ml/37ToPEK

I opened the new Fenix, went to the Twitter login page, tapped the username box... and Fenix stopped responding. Android asked me if I wanted to close the app or wait. I waited and captured the profile above.

Andrew Creskey seems to think:

But it looks to me like a serious problem (not related to WebRender) I think the parent process main java thread is locked up in this function: mozilla.components.browser.engine.gecko.autofill.GeckoLoginDelegateWrapper.onLoginFetch

https://bugzilla.mozilla.org/show_bug.cgi?id=1610147#c13

Device information

  • Android device: Pixel 2
  • Fenix version: 4.0.0-beta.2 (Build #2015724179) 34.0.0, 80bf35447 GV: 74.0-20200218224219

┆Issue is synchronized with this Jira Task

yoasif avatar Feb 24 '20 20:02 yoasif

GeckoView's LoginStorage.Delegate.onLoginFetch is an async API, but its implementation in a-c is blocking. This needs to be refactored to avoid blocking on the UI thread.

eamsen avatar Feb 24 '20 21:02 eamsen

Seems to be the same issue talked in https://github.com/mozilla-mobile/fenix/issues/7903

Dunexus avatar Feb 25 '20 10:02 Dunexus

We believe this should be addressed by #7903 but want to double-check that it's now no longer reproducible: ecsmyth is validating #7903 so can validate this one too. Note that validating #7903 is blocked on a crash fix.

mcomella avatar Mar 02 '20 23:03 mcomella

I had downloaded https://firefox-ci-tc.services.mozilla.com/tasks/index/project.mobile.fenix.v2.fennec-production.2020.02.20/latest

What build should I download to test the fix?

yoasif avatar Mar 03 '20 05:03 yoasif

The lockup fix is in Nightly, but will currently crash until a fix for #8854 lands (PR #8875)

ekager avatar Mar 03 '20 05:03 ekager

This should be fixed now! Going to dupe this to #8854, #7903, and https://github.com/mozilla-mobile/android-components/issues/6084

liuche avatar Mar 03 '20 22:03 liuche

Confirmed fixed/does not reproduce in Fenix Nightly 200304

ecsmyth avatar Mar 04 '20 20:03 ecsmyth