Skip to content

handle Realm init error with a modal #759

@tomholub

Description

@tomholub

This is the version downloaded through TestFlight. Worked at first, but next morning keeps crashing on me.

Incident Identifier: EF9ABBCD-60D5-4793-80A9-4C04E1369E4E
Hardware Model:      iPhone13,1
Process:             FlowCrypt [453]
Path:                /private/var/containers/Bundle/Application/5EB9BAA4-78FA-4927-AAA9-B6B5DB0B8D48/FlowCrypt.app/FlowCrypt
Identifier:          com.flowcrypt.as.ios.enterprise
Version:             0.3.1 (1)
AppStoreTools:       13A1030d
AppVariant:          1:iPhone13,1:15
Beta:                YES
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           com.flowcrypt.as.ios.enterprise [636]

Date/Time:           2021-10-24 08:46:18.8531 +0200
Launch Time:         2021-10-24 08:46:18.7445 +0200
OS Version:          iPhone OS 15.0.2 (19A404)
Release Type:        User
Baseband Version:    2.09.10
Report Version:      104

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x00000001877a25a8
Exception Note:  EXC_CORPSE_NOTIFY
Terminating Process: exc handler [453]
Triggered by Thread:  0


Kernel Triage:
VM - pmap_enter failed with resource shortage
VM - pmap_enter failed with resource shortage
VM - pmap_enter failed with resource shortage
VM - pmap_enter failed with resource shortage
VM - pmap_enter failed with resource shortage


Thread 0 name:
Thread 0 Crashed:
0   libswiftCore.dylib            	0x00000001877a25a8 _assertionFailure(_:_:file:line:flags:) + 304 (AssertCommon.swift:132)
1   FlowCrypt                     	0x000000010220a900 EncryptedStorage.storage.getter + 556 (EncryptedStorage.swift:83)
2   FlowCrypt                     	0x000000010220ab60 EncryptedStorage.getAllUsers() + 24 (EncryptedStorage.swift:241)
3   FlowCrypt                     	0x000000010220ab3c protocol witness for EncryptedStorageType.getAllUsers() in conformance EncryptedStorage + 20 (<compiler-generated>:0)
4   FlowCrypt                     	0x00000001021aa108 UserAccountService.cleanupSessions() + 308 (UserAccountService.swift:103)
5   FlowCrypt                     	0x00000001021ab460 protocol witness for UserAccountServiceType.cleanupSessions() in conformance UserAccountService + 20 (<compiler-generated>:0)
6   FlowCrypt                     	0x0000000102135440 GlobalRouter.proceed() + 88 (GlobalRouter.swift:59)
7   FlowCrypt                     	0x000000010205e29c AppDelegate.application(_:didFinishLaunchingWithOptions:) + 272 (AppDelegate.swift:18)
8   FlowCrypt                     	0x000000010205e38c @objc AppDelegate.application(_:didFinishLaunchingWithOptions:) + 184 (<compiler-generated>:0)
9   UIKitCore                     	0x000000018550ef8c -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 356 (UIApplication.m:2292)
10  UIKitCore                     	0x00000001856f74f0 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 3524 (UIApplication.m:2704)
11  UIKitCore                     	0x00000001856dfe5c -[UIApplication _runWithMainScene:transitionContext:completion:] + 1208 (UIApplication.m:4437)
12  UIKitCore                     	0x000000018553cf34 -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 152 (_UISceneLifecycleMultiplexer.m:452)
13  UIKitCore                     	0x0000000185394240 _UIScenePerformActionsWithLifecycleActionMask + 104 (_UISceneLifecycleState.m:109)
14  UIKitCore                     	0x00000001854c0958 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 224 (_UISceneLifecycleMultiplexer.m:565)
15  UIKitCore                     	0x00000001855e1400 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 248 (_UISceneLifecycleMultiplexer.m:514)
16  UIKitCore                     	0x0000000185822acc -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 760 (_UISceneLifecycleMultiplexer.m:564)
17  UIKitCore                     	0x00000001857ae1f0 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 340 (_UISceneLifecycleMultiplexer.m:470)
18  UIKitCore                     	0x0000000185395044 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block... + 196 (_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction.m:73)
19  UIKitCore                     	0x000000018545562c +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:] + 892 (BSAnimationSettings+UIKit.m:50)
20  UIKitCore                     	0x0000000185396f54 _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 276 (_UISceneSettingsDiffAction.m:23)
21  UIKitCore                     	0x000000018548218c -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 384 (_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction.m:58)
22  UIKitCore                     	0x000000018590ab0c __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke.610 + 776 (UIScene.m:1775)
23  UIKitCore                     	0x00000001853c5d5c -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 256 (UIScene.m:1476)
24  UIKitCore                     	0x0000000185409494 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 288 (UIScene.m:1742)
25  UIKitCore                     	0x0000000185541df8 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 572 (UIApplication.m:3900)
26  UIKitCore                     	0x000000018548044c -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 388 (UIApplicationSceneClientAgent.m:45)
27  FrontBoardServices            	0x000000019482ae30 -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 440 (FBSScene.m:439)
28  FrontBoardServices            	0x0000000194850cec __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke.215 + 128 (FBSWorkspaceScenesClient.m:384)
29  FrontBoardServices            	0x000000019480b6c4 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 240 (FBSWorkspace.m:352)
30  FrontBoardServices            	0x000000019480cd04 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke + 372 (FBSWorkspaceScenesClient.m:383)
31  libdispatch.dylib             	0x0000000182a46950 _dispatch_client_callout + 20 (object.m:560)
32  libdispatch.dylib             	0x0000000182a4a3e8 _dispatch_block_invoke_direct + 264 (queue.c:489)
33  FrontBoardServices            	0x000000019480cfa4 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 48 (FBSSerialQueue.m:157)
34  FrontBoardServices            	0x000000019480c3e4 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 220 (FBSSerialQueue.m:181)
35  FrontBoardServices            	0x00000001948109f4 -[FBSSerialQueue _performNextFromRunLoopSource] + 28 (FBSSerialQueue.m:194)
36  CoreFoundation                	0x0000000182df6030 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 (CFRunLoop.c:1972)
37  CoreFoundation                	0x0000000182e06cf0 __CFRunLoopDoSource0 + 208 (CFRunLoop.c:2016)
38  CoreFoundation                	0x0000000182d41064 __CFRunLoopDoSources0 + 376 (CFRunLoop.c:2061)
39  CoreFoundation                	0x0000000182d46804 __CFRunLoopRun + 820 (CFRunLoop.c:2951)
40  CoreFoundation                	0x0000000182d5a3c8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
41  GraphicsServices              	0x000000019e56b38c GSEventRunModal + 164 (GSEvent.c:2200)
42  UIKitCore                     	0x0000000185700060 -[UIApplication _run] + 1100 (UIApplication.m:3457)
43  UIKitCore                     	0x000000018547db8c UIApplicationMain + 2124 (UIApplication.m:5013)
44  FlowCrypt                     	0x0000000102095a48 closure #1 in  + 320 (main.swift:18)
45  FlowCrypt                     	0x0000000102095aa4 thunk for @callee_guaranteed () -> (@error @owned Error) + 24 (<compiler-generated>:0)
46  FlowCrypt                     	0x0000000102095af8 partial apply for thunk for @callee_guaranteed () -> (@error @owned Error) + 28 (<compiler-generated>:0)
47  libswiftObjectiveC.dylib      	0x00000001b0848a20 autoreleasepool<A>(invoking:) + 64 (ObjectiveC.swift:172)
48  FlowCrypt                     	0x00000001020958ec main + 72 (main.swift:12)
49  dyld                          	0x0000000103911a24 start + 520 (dyldMain.cpp:876)

Thread 1 name:
Thread 1:
0   libsystem_kernel.dylib        	0x00000001b9820204 __ulock_wait + 8
1   libdispatch.dylib             	0x0000000182a47344 _dlock_wait + 56 (lock.c:326)
2   libdispatch.dylib             	0x0000000182a470e8 _dispatch_thread_event_wait_slow + 56 (lock.c:366)
3   libdispatch.dylib             	0x0000000182a55d58 __DISPATCH_WAIT_FOR_QUEUE__ + 364 (lock.h:330)
4   libdispatch.dylib             	0x0000000182a55900 _dispatch_sync_f_slow + 144 (queue.c:1762)
5   UIKitCore                     	0x00000001855584a8 __37-[_UIRemoteKeyboards startConnection]_block_invoke_3 + 136 (_UIRemoteKeyboards.m:1065)
6   CoreFoundation                	0x0000000182d5d304 __invoking___ + 148
7   CoreFoundation                	0x0000000182d7aad4 -[NSInvocation invoke] + 468 (NSForwarding.m:3378)
8   Foundation                    	0x000000018459a930 __NSXPCCONNECTION_IS_CALLING_OUT_TO_REPLY_BLOCK__ + 24 (NSXPCConnection.m:170)
9   Foundation                    	0x00000001845bb828 -[NSXPCConnection _decodeAndInvokeReplyBlockWithEvent:sequence:replyInfo:] + 556 (NSXPCConnection.m:316)
10  Foundation                    	0x00000001845964b4 __88-[NSXPCConnection _sendInvocation:orArguments:count:methodSignature:selector:withProxy:]_block_invoke_3 + 212 (NSXPCConnection.m:1630)
11  libxpc.dylib                  	0x00000001f324732c _xpc_connection_reply_callout + 116 (serializer.c:119)
12  libxpc.dylib                  	0x00000001f323a85c _xpc_connection_call_reply_async + 88 (connection.c:833)
13  libdispatch.dylib             	0x0000000182a469d0 _dispatch_client_callout3 + 20 (object.m:586)
14  libdispatch.dylib             	0x0000000182a63fd4 _dispatch_mach_msg_async_reply_invoke + 348 (mach.c:2464)
15  libdispatch.dylib             	0x0000000182a4df84 _dispatch_lane_serial_drain + 368 (inline_internal.h:0)
16  libdispatch.dylib             	0x0000000182a4ec44 _dispatch_lane_invoke + 444 (queue.c:3937)
17  libdispatch.dylib             	0x0000000182a59318 _dispatch_workloop_worker_thread + 656 (queue.c:6732)
18  libsystem_pthread.dylib       	0x00000001f32111b0 _pthread_wqthread + 288 (pthread.c:2495)
19  libsystem_pthread.dylib       	0x00000001f3210f50 start_wqthread + 8

Thread 2:
0   libsystem_pthread.dylib       	0x00000001f3210f48 start_wqthread + 0

Thread 3:
0   libsystem_pthread.dylib       	0x00000001f3210f48 start_wqthread + 0

Thread 4:
0   libsystem_pthread.dylib       	0x00000001f3210f48 start_wqthread + 0

Thread 5:
0   libsystem_pthread.dylib       	0x00000001f3210f48 start_wqthread + 0

Thread 6 name:
Thread 6:
0   libsystem_kernel.dylib        	0x00000001b981f564 mach_msg_trap + 8
1   libsystem_kernel.dylib        	0x00000001b981fbfc mach_msg + 76 (mach_msg.c:119)
2   CoreFoundation                	0x0000000182d42698 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646)
3   CoreFoundation                	0x0000000182d4698c __CFRunLoopRun + 1212 (CFRunLoop.c:3000)
4   CoreFoundation                	0x0000000182d5a3c8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
5   Foundation                    	0x000000018457dd54 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 236 (NSRunLoop.m:373)
6   Foundation                    	0x00000001845bf6a8 -[NSRunLoop(NSRunLoop) runUntilDate:] + 92 (NSRunLoop.m:420)
7   UIKitCore                     	0x0000000185679020 -[UIEventFetcher threadMain] + 524 (UIEventFetcher.m:1167)
8   Foundation                    	0x00000001845cd95c __NSThread__start__ + 792 (NSThread.m:915)
9   libsystem_pthread.dylib       	0x00000001f3211a60 _pthread_start + 148 (pthread.c:890)
10  libsystem_pthread.dylib       	0x00000001f3210f5c thread_start + 8


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x000000015de2c000   x1: 0x0000000187af1bb8   x2: 0x0000000000008000   x3: 0x0000000000000100
    x4: 0xffffffffffff8013   x5: 0x0000000000000013   x6: 0x0000000000000000   x7: 0x0000000000000000
    x8: 0x000000015de2c008   x9: 0x0000000200000003  x10: 0xfffffffe00000000  x11: 0x0000000200000003
   x12: 0x0000000000000003  x13: 0x000000015de34000  x14: 0x0000000000000000  x15: 0x000000015de0c780
   x16: 0xfffffffffffffff4  x17: 0x00000001948b598c  x18: 0x0000000000000000  x19: 0x00000001027d3fb8
   x20: 0x000000015de2c000  x21: 0x0000000000000002  x22: 0x000000000000000b  x23: 0x0000000000000020
   x24: 0x0000000000000053  x25: 0x00000001027db300  x26: 0xf0000000000054b3  x27: 0x0000000000000000
   x28: 0x00000001d95a5000   fp: 0x000000016ddb4bc0   lr: 0x00000001877a25a8
    sp: 0x000000016ddb4af0   pc: 0x00000001877a25a8 cpsr: 0x60000000
   esr: 0xf2000001 (Breakpoint) brk 1


Binary Images:
0x102048000 - 0x1028abfff FlowCrypt arm64  <a6f92760a2043bb7bcf21a50328856bd> /private/var/containers/Bundle/Application/5EB9BAA4-78FA-4927-AAA9-B6B5DB0B8D48/FlowCrypt.app/FlowCrypt
0x1038f8000 - 0x10394ffff dyld arm64e  <d48c31ee061f370ba6f78391a1b53ed8> /usr/lib/dyld
0x182a43000 - 0x182a88fff libdispatch.dylib arm64e  <959cd6e40ce73022b73c8b36f79f4745> /usr/lib/system/libdispatch.dylib
0x182d3b000 - 0x18318efff CoreFoundation arm64e  <6174789ae88c3f5cba39de2e9edc0750> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x184565000 - 0x184869fff Foundation arm64e  <efbca2ff8b8c3227abbc154ba851d23c> /System/Library/Frameworks/Foundation.framework/Foundation
0x1851e5000 - 0x186a67fff UIKitCore arm64e  <c46a087ae13a3aeda8a1d4cc4ac9948a> /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
0x187768000 - 0x187bb9fff libswiftCore.dylib arm64e  <eed8f48ead043a3ebda25e0eeb0a22a0> /usr/lib/swift/libswiftCore.dylib
0x194801000 - 0x1948acfff FrontBoardServices arm64e  <a6ac29eefbe739bdb37a9cb8b295740c> /System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices
0x19e56a000 - 0x19e572fff GraphicsServices arm64e  <0f7424f6bde5311aa3fac0e0c4c28d72> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x1b0847000 - 0x1b0849fff libswiftObjectiveC.dylib arm64e  <53cafe83797b3735806b450f62040d31> /usr/lib/swift/libswiftObjectiveC.dylib
0x1b981e000 - 0x1b9851fff libsystem_kernel.dylib arm64e  <d2476f74d204348d8d386165d0485c7c> /usr/lib/system/libsystem_kernel.dylib
0x1f3210000 - 0x1f321bfff libsystem_pthread.dylib arm64e  <bc1ce0c6a9f2396b9afb623d3acd5881> /usr/lib/system/libsystem_pthread.dylib
0x1f322b000 - 0x1f3262fff libxpc.dylib arm64e  <e8a600510c6835aeaefd9d97cc7f2696> /usr/lib/system/libxpc.dylib

EOF

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions