Closed
Description
Describe the bug
If I restore my backup (doesn't matter if via QR code or recovery key) the app just keeps crashing all the time. After starting it up again it crashes to fast to send a rageshake, but logcat gives me the following:
10-15 23:01:27.440 4404 4404 V DefaultKeysBackupService: backupKeys: 1 - 64 sessions to back up
10-15 23:01:27.440 4404 4404 V KeysBackupStateManager: KeysBackup: setState: WillBackUp -> BackingUp
10-15 23:01:27.444 4404 4440 V DefaultKeysBackupService$backupKeys: backupKeys: 2 - Encrypting keys
10-15 23:01:27.536 4404 4404 V VectorUncaughtExceptionHandler: Uncaught exception: java.lang.NullPointerException
10-15 23:01:27.539 4404 4404 E VectorUncaughtExceptionHandler: FATAL EXCEPTION Element Build : 206415360
10-15 23:01:27.539 4404 4404 E VectorUncaughtExceptionHandler: Element Version : 1.0.9-dev [206415360] (G-b455)
10-15 23:01:27.539 4404 4404 E VectorUncaughtExceptionHandler: SDK Version : 0.0.1 (7158f49f)
10-15 23:01:27.539 4404 4404 E VectorUncaughtExceptionHandler: Phone : ONEPLUS A6000 (23 10 REL)
10-15 23:01:27.539 4404 4404 E VectorUncaughtExceptionHandler: Memory statuses
10-15 23:01:27.539 4404 4404 E VectorUncaughtExceptionHandler: usedSize 15 MB
10-15 23:01:27.539 4404 4404 E VectorUncaughtExceptionHandler: freeSize 3 MB
10-15 23:01:27.539 4404 4404 E VectorUncaughtExceptionHandler: totalSize 18 MB
10-15 23:01:27.539 4404 4404 E VectorUncaughtExceptionHandler: Thread: main, Exception: java.lang.NullPointerException
10-15 23:01:27.539 4404 4404 E VectorUncaughtExceptionHandler: at org.matrix.android.sdk.internal.crypto.keysbackup.DefaultKeysBackupService.encryptGroupSession(DefaultKeysBackupService.kt:1329)
10-15 23:01:27.539 4404 4404 E VectorUncaughtExceptionHandler: at org.matrix.android.sdk.internal.crypto.keysbackup.DefaultKeysBackupService$backupKeys$1$1.invokeSuspend(DefaultKeysBackupService.kt:1230)
10-15 23:01:27.539 4404 4404 E VectorUncaughtExceptionHandler: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
10-15 23:01:27.539 4404 4404 E VectorUncaughtExceptionHandler: at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
10-15 23:01:27.539 4404 4404 E VectorUncaughtExceptionHandler: at android.os.Handler.handleCallback(Handler.java:883)
10-15 23:01:27.539 4404 4404 E VectorUncaughtExceptionHandler: at android.os.Handler.dispatchMessage(Handler.java:100)
10-15 23:01:27.539 4404 4404 E VectorUncaughtExceptionHandler: at android.os.Looper.loop(Looper.java:214)
10-15 23:01:27.539 4404 4404 E VectorUncaughtExceptionHandler: at android.os.HandlerThread.run(HandlerThread.java:67)
10-15 23:01:27.541 4404 4404 E AndroidRuntime: FATAL EXCEPTION: main
10-15 23:01:27.541 4404 4404 E AndroidRuntime: Process: im.vector.app.debug, PID: 4404
10-15 23:01:27.541 4404 4404 E AndroidRuntime: java.lang.NullPointerException
10-15 23:01:27.541 4404 4404 E AndroidRuntime: at org.matrix.android.sdk.internal.crypto.keysbackup.DefaultKeysBackupService.encryptGroupSession(DefaultKeysBackupService.kt:1329)
10-15 23:01:27.541 4404 4404 E AndroidRuntime: at org.matrix.android.sdk.internal.crypto.keysbackup.DefaultKeysBackupService$backupKeys$1$1.invokeSuspend(DefaultKeysBackupService.kt:1230)
10-15 23:01:27.541 4404 4404 E AndroidRuntime: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
10-15 23:01:27.541 4404 4404 E AndroidRuntime: at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
10-15 23:01:27.541 4404 4404 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:883)
10-15 23:01:27.541 4404 4404 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:100)
10-15 23:01:27.541 4404 4404 E AndroidRuntime: at android.os.Looper.loop(Looper.java:214)
10-15 23:01:27.541 4404 4404 E AndroidRuntime: at android.os.HandlerThread.run(HandlerThread.java:67)
10-15 23:01:27.543 984 4611 I DropBoxManagerService: add tag=data_app_crash isTagEnabled=true flags=0x2
10-15 23:01:27.543 984 12013 W ActivityTaskManager: Force finishing activity im.vector.app.debug/im.vector.app.features.home.HomeActivity
10-15 23:01:27.561 984 12013 D ActivityTrigger: ActivityTrigger activityPauseTrigger
10-15 23:01:27.572 984 1093 I ActivityManager: Showing crash dialog for package im.vector.app.debug u0
To Reproduce
Steps to reproduce the behavior:
- Log into Element Android
- Restore key backup via either QR code or recovery phrase
- Wait for it to crash
Expected behavior
No crash
Smartphone (please complete the following information):
- Device: Oneplus 6
- OS: Android 10
Additional context
- App version and store 1.0.9-dev [206415360] GPlay
- Homeserver: Synapse 1.21.1
It might also have something to do with element-hq/element-web#15388