Skip to content

realm crash: Realm file decryption failed #1111

Closed
@tomholub

Description

@tomholub

I'm still getting this and have to reset storage to continue using the app.

The interesting thing is that it seemed to happen for both apps at the same time this morning. So I wonder, maybe the encryption key we use from keychain is not stable?

Unable to open a realm at path '/var/mobile/Containers/Data/Application/850D5417-D347-4FCC-BDB4-A1AE3E1A2200/Documents/encrypted.realm': Realm file decryption failed Path:Exception backtrace:
0   FlowCrypt                           0x00000001049df9fc _ZN5realm4util6detail26ExceptionWithBacktraceBaseC2Ev + 64
1   FlowCrypt                           0x00000001049ee55c _ZN5realm4util22ExceptionWithBacktraceISt13runtime_errorEC2IJRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEEEEDpOT_ + 104
2   FlowCrypt                           0x00000001049ee310 _ZN5realm4util4File11AccessErrorC2ERKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEESB_ + 84
3   FlowCrypt                           0x00000001049ee29c _ZN5realm15InvalidDatabaseC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_ + 88
4   FlowCrypt                           0x00000001049e80ec _ZN5realm15InvalidDatabaseC1ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_ + 44
5   FlowCrypt                           0x00000001049e79fc _ZN5realm9SlabAlloc11attach_fileERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERNS0_6ConfigE + 4156
6   FlowCrypt                           0x0000000104aabf14 _ZN5realm2DB4openERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS_9DBOptionsE + 4028
7   FlowCrypt                           0x0000000104aaf544 _ZN5realm2DB4openERNS_11ReplicationERKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS_9DBOptionsE + 244
8   FlowCrypt                           0x0000000104ab7124 _ZN5realm2DB6createENSt3__110unique_ptrINS_11ReplicationENS1_14default_deleteIS3_EEEERKNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_9DBOptionsE + 324
9   FlowCrypt                           0x0000000104cc79f0 _ZN5realm5_impl16RealmCoordinator7open_dbEv + 1444
10  FlowCrypt                           0x0000000104cc963c _ZN5realm5_impl16RealmCoordinator12do_get_realmENS_5Realm6ConfigERNSt3__110shared_ptrIS2_EENS_4util8OptionalINS_9VersionIDEEERNS8_17CheckedUniqueLockE + 92
11  FlowCrypt                           0x0000000104cc9444 _ZN5realm5_impl16RealmCoordinator9get_realmENS_5Realm6ConfigENS_4util8OptionalINS_9VersionIDEEE + 692
12  FlowCrypt                           0x0000000104e73204 _ZN5realm5Realm16get_shared_realmENS0_6ConfigE + 156
13  FlowCrypt                           0x00000001049498f8 +[RLMRealm realmWithConfiguration:queue:error:] + 1968
14  FlowCrypt                           0x00000001055aa4e4 $sSo8RLMRealmC13configuration5queueABSo0A13ConfigurationC_So012OS_dispatch_C0CSgtKcfCTO + 128
15  FlowCrypt                           0x000000010564cba8 $s10RealmSwift0A0V13configuration5queueA2C13ConfigurationV_So012OS_dispatch_D0CSgtKcfC + 200
16  FlowCrypt                           0x00000001045b4328 $s9FlowCrypt16EncryptedStorageC8validateyyKF + 276
17  FlowCrypt                           0x000000010447d544 $s9FlowCrypt12GlobalRouterC24validateEncryptedStorage33_57D5652C71D18AB9D7F3E85674F97089LLyyyyXEF + 156
18  FlowCrypt                           0x000000010447d010 $s9FlowCrypt12GlobalRouterC7proceedyyF + 64
19  FlowCrypt                           0x0000000104372150 $s9FlowCrypt11AppDelegateC11application_29didFinishLaunchingWithOptionsSbSo13UIApplicationC_SDySo0k6LaunchJ3KeyaypGSgtF + 316
20  FlowCrypt                           0x0000000104372240 $s9FlowCrypt11AppDelegateC11application_29didFinishLaunchingWithOptionsSbSo13UIApplicationC_SDySo0k6LaunchJ3KeyaypGSgtFTo + 184
21  UIKitCore                           0x000000018326b044 8388EB03-002B-3B35-A78A-6A022894292E + 3313732
22  UIKitCore                           0x0000000183452b38 8388EB03-002B-3B35-A78A-6A022894292E + 5311288
23  UIKitCore                           0x000000018343b4a4 8388EB03-002B-3B35-A78A-6A022894292E + 5215396
24  UIKitCore                           0x0000000183298e44 8388EB03-002B-3B35-A78A-6A022894292E + 3501636
25  UIKitCore                           0x00000001830f162c _UIScenePerformActionsWithLifecycleActionMask + 104
26  UIKitCore                           0x000000018321cb7c 8388EB03-002B-3B35-A78A-6A022894292E + 2993020
27  UIKitCore                           0x000000018333d380 8388EB03-002B-3B35-A78A-6A022894292E + 4174720
28  UIKitCore                           0x000000018357df8c 8388EB03-002B-3B35-A78A-6A022894292E + 6537100
29  UIKitCore                           0x0000000183509710 8388EB03-002B-3B35-A78A-6A022894292E + 6059792
30  UIKitCore                           0x00000001830f2430 8388EB03-002B-3B35-A78A-6A022894292E + 1770544
31  UIKitCore                           0x00000001831b2350 8388EB03-002B-3B35-A78A-6A022894292E + 2556752
32  UIKitCore                           0x00000001830f4340 _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 276
33  UIKitCore                           0x00000001831dedf4 8388EB03-002B-3B35-A78A-6A022894292E + 2739700
34  UIKitCore                           0x0000000183666260 8388EB03-002B-3B35-A78A-6A022894292E + 7488096
35  UIKitCore                           0x0000000183122c60 8388EB03-002B-3B35-A78A-6A022894292E + 1969248
36  UIKitCore                           0x0000000183166524 8388EB03-002B-3B35-A78A-6A022894292E + 2245924
37  UIKitCore                           0x000000018329dd70 8388EB03-002B-3B35-A78A-6A022894292E + 3521904
38  UIKitCore                           0x00000001831dd0b4 8388EB03-002B-3B35-A78A-6A022894292E + 2732212
39  FrontBoardServices                  0x000000019262ce20 6FDEC0C3-E500-3E06-948E-E34BDA520801 + 171552
40  FrontBoardServices                  0x0000000192652cdc 6FDEC0C3-E500-3E06-948E-E34BDA520801 + 326876
41  FrontBoardServices                  0x000000019260d6b4 6FDEC0C3-E500-3E06-948E-E34BDA520801 + 42676
42  FrontBoardServices                  0x000000019260ecf4 6FDEC0C3-E500-3E06-948E-E34BDA520801 + 48372
43  libdispatch.dylib                   0x00000001807a7660 A5CBAAB3-E389-3548-BAAC-FAB18411B94A + 18016
44  libdispatch.dylib                   0x00000001807ab118 A5CBAAB3-E389-3548-BAAC-FAB18411B94A + 33048
45  FrontBoardServices                  0x000000019260ef94 6FDEC0C3-E500-3E06-948E-E34BDA520801 + 49044
46  FrontBoardServices                  0x000000019260e3d4 6FDEC0C3-E500-3E06-948E-E34BDA520801 + 46036
47  FrontBoardServices                  0x00000001926129e4 6FDEC0C3-E500-3E06-948E-E34BDA520801 + 63972
48  CoreFoundation                      0x0000000180b57020 B2D21CFD-378C-36D5-BAF7-3F70599CFEFC + 765984
49  CoreFoundation                      0x0000000180b67ce0 B2D21CFD-378C-36D5-BAF7-3F70599CFEFC + 834784
50  CoreFoundation                      0x0000000180aa2054 B2D21CFD-378C-36D5-BAF7-3F70599CFEFC + 24660
51  CoreFoundation                      0x0000000180aa77f4 B2D21CFD-378C-36D5-BAF7-3F70599CFEFC + 47092
52  CoreFoundation                      0x0000000180abb3b8 CFRunLoopRunSpecific + 600
53  GraphicsServices                    0x000000019c44b38c GSEventRunModal + 164
54  UIKitCore                           0x000000018345b6a8 8388EB03-002B-3B35-A78A-6A022894292E + 5346984
55  UIKitCore                           0x00000001831da7f4 UIApplicationMain + 2092
56  FlowCrypt                           0x00000001043ba1bc $s9FlowCryptyyXEfU_ + 364
57  FlowCrypt                           0x00000001043ba218 $ss5Error_pIgzo_ytsAA_pIegrzo_TR + 24
58  FlowCrypt                           0x00000001043ba26c $ss5Error_pIgzo_ytsAA_pIegrzo_TRTA + 28
59  libswiftObjectiveC.dylib            0x00000001ae902a20 $s10ObjectiveC15autoreleasepool8invokingxxyKXE_tKlF + 64
60  FlowCrypt                           0x00000001043ba034 main + 88
61  dyld                                0x000000010b539a24 start + 520.


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions