mozilla-lockwise / lockwise-android

Firefox's Lockwise app for Android
https://mozilla-lockwise.github.io/lockwise-android/
Mozilla Public License 2.0
623 stars 104 forks source link

The Lockbox crashes at launch on tablet device #192

Open abodea opened 5 years ago

abodea commented 5 years ago

Steps to reproduce

  1. Access Google Play Store.
  2. Search for Firefox Lockbox.
  3. Install the app and open it.

    Expected behavior

    The Lockbox for android is correctly opened on the device.

    Actual behavior

    The Lockbox for android crashes at launch.

    Device information

Notes

Note that the crash is with 100% repro. I was able to reproduce this crash only on tablets, on the other device (Google Pixel XL Android P) the app worked just fine at launch. For more details please see the attachment: https://goo.gl/Y4jrJf

abodea commented 5 years ago
Logcat ### And here is the Logcat: 1541607849.007 252-5438/? W/StreamHAL: Error from HAL stream in function get_presentation_position: Operation not permitted 1541607849.154 380-433/? W/AppOps: Finishing op nesting under-run: uid 1000 pkg android code 24 time=0 duration=0 nesting=0 1541607849.731 380-390/? I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=mozilla.lockbox/.view.RootActivity bnds=[1604,954][1928,1184] (has extras)} from uid 10109 1541607849.747 380-2754/? I/ActivityManager: Start proc 31062:mozilla.lockbox/u0a83 for activity mozilla.lockbox/.view.RootActivity 1541607849.766 180-180/? W/gralloc: Unmapped producer usage 900 1541607849.767 380-433/? W/gralloc: Unmapped producer usage 11 1541607849.767 380-433/? W/gralloc: Unmapped consumer usage 1 1541607849.844 938-30858/? I/PBSessionCacheImpl: Deleted sessionId[12041324506983] from persistence. 1541607849.847 31062-31062/? W/SystemServiceRegistry: No service published for: fingerprint 1541607849.848 31062-31062/? D/AndroidRuntime: Shutting down VM 1541607849.849 31062-31062/? E/AndroidRuntime: FATAL EXCEPTION: main Process: mozilla.lockbox, PID: 31062 java.lang.RuntimeException: Unable to create application mozilla.lockbox.LockboxApplication: kotlin.TypeCastException: null cannot be cast to non-null type android.hardware.fingerprint.FingerprintManager at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5794) at android.app.ActivityThread.-wrap1(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1661) at android.os.Handler.dispatchMessage(Handler.java:105) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6541) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767) Caused by: kotlin.TypeCastException: null cannot be cast to non-null type android.hardware.fingerprint.FingerprintManager at mozilla.lockbox.LockboxApplication.onCreate(LockboxApplication.kt:59) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1118) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5791) at android.app.ActivityThread.-wrap1(Unknown Source:0)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1661)  at android.os.Handler.dispatchMessage(Handler.java:105)  at android.os.Looper.loop(Looper.java:164)  at android.app.ActivityThread.main(ActivityThread.java:6541)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)  1541607849.851 380-390/? W/ActivityManager: Force finishing activity mozilla.lockbox/.view.RootActivity 1541607849.854 938-938/? W/SearchServiceCore: Abort, client detached. 1541607849.855 938-938/? I/StreamController: cleanUpControllerScope(nowcards-15-552131d-1823) 1541607849.855 380-395/? I/ActivityManager: Showing crash dialog for package mozilla.lockbox u0 1541607849.857 938-938/? I/MicroDetector: Keeping mic open: false 1541607849.857 938-29011/? I/DeviceStateChecker: DeviceStateChecker cancelled 1541607849.857 938-30995/? I/MicroRecognitionRunner: Stopping hotword detection. 1541607849.858 938-29018/? I/MicroRecognitionRunner: Detection finished 1541607849.860 938-28979/? I/AudioController: internalShutdown 1541607849.861 938-938/? I/WorkerManager: dispose() 1541607849.865 938-938/? I/WorkController: WorkProxy is not enqueued because WorkController is disposed: WorkProxy{Name=microdetection::u, WorkerId=microdetection, id=acb5182} 1541607849.875 252-351/? I/SoundTriggerHwService::Module: onCallbackEvent no clients 1541607849.878 938-28979/? I/MicrophoneInputStream: mic_close SR : 16000 CC : 16 SO : 1999 1541607849.888 938-29011/? I/WorkController: WorkProxy is not enqueued because WorkController is disposed: WorkProxy{Name=context::h, WorkerId=context, id=8744001} 1541607849.888 938-29011/? I/WorkController: WorkProxy is not enqueued because WorkController is disposed: WorkProxy{Name=context::j, WorkerId=context, id=6c5bea6} 1541607849.888 938-29011/? I/WorkController: WorkProxy is not enqueued because WorkController is disposed: WorkProxy{Name=context::k, WorkerId=context, id=cacf0e7} 1541607849.888 938-29011/? I/WorkController: WorkProxy is not enqueued because WorkController is disposed: WorkProxy{Name=context::i, WorkerId=context, id=b32494} 1541607849.894 938-29011/? I/WorkController: WorkProxy is not enqueued because WorkController is disposed: WorkProxy{Name=context::m, WorkerId=context, id=fe3db3d} 1541607849.906 180-180/? W/gralloc: Unmapped producer usage 900 1541607849.907 380-1087/? D/OpenGLRenderer: Swap behavior 2 1541607849.907 180-180/? W/gralloc: Unmapped producer usage 900 1541607849.907 180-180/? W/gralloc: Unmapped producer usage 900 1541607849.965 180-180/? W/gralloc: Unmapped consumer usage 200 1541607849.965 180-180/? W/gralloc: Unmapped producer usage 900 1541607849.982 180-180/? W/gralloc: Unmapped consumer usage 200 1541607849.982 180-180/? W/gralloc: Unmapped producer usage 900 1541607850.011 563-1745/? I/Places: ?: PlacesBleScanner stop() 1541607850.013 563-563/? I/BeaconBle: ZERO_POWER is disabled. 1541607850.013 563-563/? I/BeaconBle: 'L' hardware scan: scan stopped, no powered clients 1541607850.014 563-563/? I/BeaconBle: Places requested to stop scan 1541607850.014 563-563/? I/BeaconBle: Scan canceled successfully. 1541607850.023 563-1745/? I/PlaceInferenceEngine: [anon] Changed inference mode: 0 1541607850.185 550-550/? D/zz: UtWallpaperService$UtEngine.onVisibilityChanged() false 1541607850.206 550-550/? D/zz: UtRenderer.onNotVisible() 1541607850.353 380-394/? W/ActivityManager: Activity pause timeout for ActivityRecord{6092a52 u0 mozilla.lockbox/.view.RootActivity t1086 f} 1541607850.360 550-550/? D/zz: UtWallpaperService$UtEngine.onVisibilityChanged() true 1541607850.387 180-180/? W/gralloc: Unmapped producer usage 900 1541607850.390 180-180/? I/chatty: uid=1000(system) allocator@2.0-s identical 1 line 1541607850.393 180-180/? W/gralloc: Unmapped producer usage 900 1541607850.401 180-180/? W/gralloc: Unmapped consumer usage 200 1541607850.401 180-180/? W/gralloc: Unmapped producer usage 900 1541607850.455 180-180/? W/gralloc: Unmapped producer usage 900 1541607850.463 180-180/? W/gralloc: Unmapped consumer usage 200 1541607850.464 180-180/? W/gralloc: Unmapped producer usage 900 1541607850.467 180-180/? W/gralloc: Unmapped producer usage 900 1541607850.470 550-550/? D/zz: UtRenderer.onVisible() 1541607850.470 180-180/? W/gralloc: Unmapped producer usage 900 1541607850.472 550-550/? W/zz: WeatherManager.doGet() no permissions 1541607850.475 550-550/? W/zz: SunriseUtil.doGet() no permissions 1541607850.489 938-938/? I/SearchServiceCore: Event Bus thread is disabled; marking main thread as EventBus 1541607850.561 180-180/? W/gralloc: Unmapped consumer usage 200 1541607850.561 180-180/? W/gralloc: Unmapped producer usage 900 1541607850.576 938-938/? W/SessionLifecycleManager: Handover failed. Creating new session controller. 1541607850.615 938-938/? I/StreamController: registerScope: nowcards-15-552131d-1823 1541607850.650 938-938/? W/TemplatedStringEvaluato: Got templated string with no display string 1541607850.651 938-938/? I/ClusterController: Found empty cluster, or no children successfully created. 1541607850.679 938-29016/? W/LocationOracle: No location history returned by ContextManager 1541607850.717 180-180/? W/gralloc: Unmapped consumer usage 200 1541607850.717 180-180/? W/gralloc: Unma...