Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnsentGroupMessagesViewName mismatched mappings & notifications crash #645

Open
chrisballinger opened this issue Jan 8, 2017 · 2 comments
Labels
Milestone

Comments

@chrisballinger
Copy link
Member

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000 at 0x0000000000000000
Crashed Thread:  0

Application Specific Information:
*** Terminating app due to uncaught exception 'YapDatabaseException', reason: 'ViewConnection[0x1703c3de0, RegisteredName=UnsentGroupMessagesViewName] was asked for changes, but given mismatched mappings & notifications.'

Thread 0 Crashed:
0   CoreFoundation                  0x000000018bbe51b8 __exceptionPreprocess + 124
1   libobjc.A.dylib                 0x000000018a61c55c objc_exception_throw + 52
2   YapDatabase                     0x00000001013d1074 -[YapDatabaseViewConnection getSectionChanges:rowChanges:forNotifications:withMappings:] (YapDatabaseViewConnection.m:636)
3   ChatSecureCore                  0x0000000101980b70 function signature specialization <Arg[0] = Owned To Guaranteed> of ChatSecureCore.OTRYapViewHandler.yapDatbaseModified (__ObjC.NSNotification) -> () (OTRYapViewHandler.swift:165)
4   ChatSecureCore                  0x000000010197ce34 ChatSecureCore.OTRYapViewHandler.(init (databaseConnection : __ObjC.YapDatabaseConnection, databaseChangeNotificationName : Swift.String) -> ChatSecureCore.OTRYapViewHandler).(closure #1) (OTRYapViewHandler.swift:67)
5   Foundation                      0x000000018c5f7a2c -[__NSObserver _doit:] + 304
6   CoreFoundation                  0x000000018bb7eb10 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 16
7   CoreFoundation                  0x000000018bb7e214 _CFXRegistrationPost + 396
8   CoreFoundation                  0x000000018bb7df90 ___CFXNotificationPost_block_invoke + 56
9   CoreFoundation                  0x000000018bbedb8c -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1500
10  CoreFoundation                  0x000000018babfe64 _CFXNotificationPost + 372
11  Foundation                      0x000000018c5f4e0c -[NSNotificationCenter postNotificationName:object:userInfo:] + 64
12  ChatSecureCore                  0x000000010189ecf4 __47-[OTRDatabaseManager setupYapDatabaseWithName:]_block_invoke.136 (OTRDatabaseManager.m:147)
13  Foundation                      0x000000018c5f7a2c -[__NSObserver _doit:] + 304
14  CoreFoundation                  0x000000018bb7eb10 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 16
15  CoreFoundation                  0x000000018bb7e214 _CFXRegistrationPost + 396
16  CoreFoundation                  0x000000018bb7df90 ___CFXNotificationPost_block_invoke + 56
17  CoreFoundation                  0x000000018bbedb8c -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1500
18  CoreFoundation                  0x000000018babfe64 _CFXNotificationPost + 372
19  YapDatabase                     0x0000000101359714 __50-[YapDatabaseConnection postReadWriteTransaction:]_block_invoke.381 (YapDatabaseConnection.m:3003)
20  libdispatch.dylib               0x000000018aa6e1fc _dispatch_call_block_and_release + 20
21  libdispatch.dylib               0x000000018aa6e1bc _dispatch_client_callout + 12
22  libdispatch.dylib               0x000000018aa72d68 _dispatch_main_queue_callback_4CF + 996
23  CoreFoundation                  0x000000018bb92810 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 8
24  CoreFoundation                  0x000000018bb903fc __CFRunLoopRun + 1656
25  CoreFoundation                  0x000000018babe2b8 CFRunLoopRunSpecific + 440
26  GraphicsServices                0x000000018d572198 GSEventRunModal + 176
27  UIKit                           0x0000000191b057fc -[UIApplication _run] + 680
28  UIKit                           0x0000000191b00534 UIApplicationMain + 204
29  ChatSecure                      0x0000000100039d60 main (main.m:14)
30  libdyld.dylib                   0x000000018aaa15b8 start + 0

Thread 1:

Thread 2:
0   libobjc.A.dylib                 0x000000018a61aec4 object_cxxDestructFromClass(objc_object*, objc_class*) + 72
1   libobjc.A.dylib                 0x000000018a61aee0 object_cxxDestructFromClass(objc_object*, objc_class*) + 96
2   libobjc.A.dylib                 0x000000018a6277f4 objc_destructInstance + 88
3   libobjc.A.dylib                 0x000000018a627858 object_dispose + 24
4   KissXML                         0x0000000100b750b0 -[DDXMLNode dealloc] (DDXMLNode.m:297)
5   XMPPFramework                   0x00000001011227ac -[XMPPCapabilities xmppStream:willSendPresence:] (XMPPCapabilities.m:1614)
6   XMPPFramework                   0x000000010118f8d0 __35-[XMPPStream sendPresence:withTag:]_block_invoke_2 (XMPPStream.m:2452)
7   libdispatch.dylib               0x000000018aa6e1bc _dispatch_client_callout + 12
8   libdispatch.dylib               0x000000018aa7b7f0 _dispatch_barrier_sync_f_invoke + 80
9   XMPPFramework                   0x000000010118f794 __35-[XMPPStream sendPresence:withTag:]_block_invoke (XMPPStream.m:2450)
10  libdispatch.dylib               0x000000018aa6e1fc _dispatch_call_block_and_release + 20
11  libdispatch.dylib               0x000000018aa6e1bc _dispatch_client_callout + 12
12  libdispatch.dylib               0x000000018aa7c3dc _dispatch_queue_serial_drain + 924
13  libdispatch.dylib               0x000000018aa719a4 _dispatch_queue_invoke + 648
14  libdispatch.dylib               0x000000018aa7e34c _dispatch_root_queue_drain + 568
15  libdispatch.dylib               0x000000018aa7e0ac _dispatch_worker_thread3 + 120
16  libsystem_pthread.dylib         0x000000018ac772a0 _pthread_wqthread + 1284

Thread 3:

Thread 4:
0   libsystem_kernel.dylib          0x000000018ab95188 mach_msg_trap + 8
1   libsystem_kernel.dylib          0x000000018ab94ff8 mach_msg + 68
2   CoreFoundation                  0x000000018bb925d0 __CFRunLoopServiceMachPort + 188
3   CoreFoundation                  0x000000018bb901ec __CFRunLoopRun + 1128
4   CoreFoundation                  0x000000018babe2b8 CFRunLoopRunSpecific + 440
5   Foundation                      0x000000018c5fb26c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 300
6   Foundation                      0x000000018c61bdd0 -[NSRunLoop(NSRunLoop) runUntilDate:] + 92
7   UIKit                           0x0000000192479c38 -[UIEventFetcher threadMain] + 132
8   Foundation                      0x000000018c6f8e68 __NSThread__start__ + 1020
9   libsystem_pthread.dylib         0x000000018ac79850 _pthread_body + 236
10  libsystem_pthread.dylib         0x000000018ac79760 _pthread_start + 280

Thread 5:
0   libsystem_kernel.dylib          0x000000018abb3a88 __workq_kernreturn + 8
1   libsystem_pthread.dylib         0x000000018ac77344 _pthread_wqthread + 1448

Thread 6:
0   libsystem_kernel.dylib          0x000000018abb3a88 __workq_kernreturn + 8
1   libsystem_pthread.dylib         0x000000018ac77344 _pthread_wqthread + 1448

Thread 7:
0   libsystem_kernel.dylib          0x000000018ab95188 mach_msg_trap + 8
1   libsystem_kernel.dylib          0x000000018ab94ff8 mach_msg + 68
2   libsystem_kernel.dylib          0x000000018ab992a8 thread_suspend + 72
3   KSCrash                         0x0000000100ac4c8c ksmachexc_i_handleExceptions (KSCrashSentry_MachException.c:227)
4   libsystem_pthread.dylib         0x000000018ac79850 _pthread_body + 236
5   libsystem_pthread.dylib         0x000000018ac79760 _pthread_start + 280

Thread 8:
0   libsystem_kernel.dylib          0x000000018ab95188 mach_msg_trap + 8
1   libsystem_kernel.dylib          0x000000018ab94ff8 mach_msg + 68
2   KSCrash                         0x0000000100ac4cb0 ksmachexc_i_handleExceptions (KSCrashSentry_MachException.c:235)
3   libsystem_pthread.dylib         0x000000018ac79850 _pthread_body + 236
4   libsystem_pthread.dylib         0x000000018ac79760 _pthread_start + 280

Thread 9:
0   libcorecrypto.dylib             0x000000018aa1f48c drbg_update + 376
1   libcorecrypto.dylib             0x000000018aa1f47c drbg_update + 356
2   libcorecrypto.dylib             0x000000018aa1e910 generate + 556
3   libsystem_c.dylib               0x000000018aad0848 arc4random_buf + 168
4   libsystem_c.dylib               0x000000018aad0744 uuid_generate_random + 44
5   Foundation                      0x000000018c6352f4 -[__NSConcreteUUID init] + 64
6   Foundation                      0x000000018c6351e8 +[NSUUID UUID] + 28
7   ChatSecureCore                  0x00000001018d56d8 -[OTRYapDatabaseObject init] (OTRYapDatabaseObject.m:24)
8   ChatSecureCore                  0x00000001018d3160 -[OTRBaseMessage init] (OTRBaseMessage.m:31)
9   Mantle                          0x0000000100bf0d5c -[MTLModel initWithDictionary:error:] (MTLModel.m:133)
10  Mantle                          0x0000000100bf04bc -[MTLModel(NSCoding) initWithCoder:] (MTLModel+NSCoding.m:201)
11  Foundation                      0x000000018c6548d8 _decodeObjectBinary + 2176
12  Foundation                      0x000000018c653fa8 _decodeObject + 304
13  Foundation                      0x000000018c653168 +[NSKeyedUnarchiver unarchiveObjectWithData:] + 84
14  YapDatabase                     0x000000010132d1d8 __34+[YapDatabase defaultDeserializer]_block_invoke (YapDatabase.m:155)
15  YapDatabase                     0x00000001013b3274 -[YapDatabaseReadTransaction objectForKey:inCollection:] (YapDatabaseTransaction.m:838)
16  ChatSecureCore                  0x00000001018d5994 +[OTRYapDatabaseObject fetchObjectWithUniqueID:transaction:] (OTRYapDatabaseObject.m:55)
17  ChatSecureCore                  0x00000001018d10f0 __39-[OTRBuddy lastMessageWithTransaction:]_block_invoke (OTRBuddy.m:107)
18  YapDatabase                     0x0000000101395bcc __98-[YapDatabaseRelationshipTransaction enumerateEdgesWithName:destinationKey:collection:usingBlock:]_block_invoke (YapDatabaseRelationshipTransaction.m:6030)
19  YapDatabase                     0x0000000101392c70 -[YapDatabaseRelationshipTransaction _enumerateEdgesWithName:destinationKey:collection:usingBlock:] (YapDatabaseRelationshipTransaction.m:4988)
20  YapDatabase                     0x0000000101395b2c -[YapDatabaseRelationshipTransaction enumerateEdgesWithName:destinationKey:collection:usingBlock:] (YapDatabaseRelationshipTransaction.m:6024)
21  ChatSecureCore                  0x00000001018d0ff0 -[OTRBuddy lastMessageWithTransaction:] (OTRBuddy.m:106)
22  ChatSecureCore                  0x00000001018a07c4 __51+[OTRDatabaseView registerConversationDatabaseView]_block_invoke_2 (OTRDatabaseView.m:77)
23  YapDatabase                     0x00000001013e1a00 __98-[YapDatabaseViewTransaction insertRowid:collectionKey:object:metadata:inGroup:withChanges:isNew:]_block_invoke (YapDatabaseViewTransaction.m:1901)
24  YapDatabase                     0x00000001013e1290 -[YapDatabaseViewTransaction insertRowid:collectionKey:object:metadata:inGroup:withChanges:isNew:] (YapDatabaseViewTransaction.m:1956)
25  YapDatabase                     0x00000001013e7730 -[YapDatabaseViewTransaction _handleChangeWithRowid:collectionKey:object:metadata:grouping:sorting:blockInvokeBitMask:changesBitMask:isInsert:] (YapDatabaseViewTransaction.m:3510)
26  YapDatabase                     0x00000001013e7944 -[YapDatabaseViewTransaction handleUpdateObject:forCollectionKey:withMetadata:rowid:] (YapDatabaseViewTransaction.m:3571)
27  YapDatabase                     0x00000001013c1f48 -[YapDatabaseReadWriteTransaction setObject:forKey:inCollection:withMetadata:serializedObject:serializedMetadata:] (YapDatabaseTransaction.m:4933)
28  YapDatabase                     0x00000001013c1194 -[YapDatabaseReadWriteTransaction setObject:forKey:inCollection:] (YapDatabaseTransaction.m:4644)
29  ChatSecureCore                  0x00000001018d583c -[OTRYapDatabaseObject saveWithTransaction:] (OTRYapDatabaseObject.m:39)
30  ChatSecureCore                  0x00000001018c0554 __52-[OTRXMPPRoomManager joinRoom:withNickname:subject:]_block_invoke.87 (OTRXMPPRoomManager.m:110)
31  YapDatabase                     0x0000000101356394 __44-[YapDatabaseConnection readWriteWithBlock:]_block_invoke_2 (YapDatabaseConnection.m:1914)
32  libdispatch.dylib               0x000000018aa6e1bc _dispatch_client_callout + 12
33  libdispatch.dylib               0x000000018aa7b7f0 _dispatch_barrier_sync_f_invoke + 80
34  YapDatabase                     0x00000001013562c4 __44-[YapDatabaseConnection readWriteWithBlock:]_block_invoke (YapDatabaseConnection.m:1909)
35  libdispatch.dylib               0x000000018aa6e1bc _dispatch_client_callout + 12
36  libdispatch.dylib               0x000000018aa7b7f0 _dispatch_barrier_sync_f_invoke + 80
37  YapDatabase                     0x00000001013560dc -[YapDatabaseConnection readWriteWithBlock:] (YapDatabaseConnection.m:1891)
38  ChatSecureCore                  0x00000001018c0180 -[OTRXMPPRoomManager joinRoom:withNickname:subject:] (OTRXMPPRoomManager.m:95)
39  ChatSecureCore                  0x00000001018c17bc __48-[OTRXMPPRoomManager xmppStreamDidAuthenticate:]_block_invoke_2.215 (OTRXMPPRoomManager.m:218)
40  CoreFoundation                  0x000000018bad1414 __53-[__NSArrayM enumerateObjectsWithOptions:usingBlock:]_block_invoke + 128
41  CoreFoundation                  0x000000018bad12a8 -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 204
42  ChatSecureCore                  0x00000001018c169c __48-[OTRXMPPRoomManager xmppStreamDidAuthenticate:]_block_invoke.214 (OTRXMPPRoomManager.m:217)
43  libdispatch.dylib               0x000000018aa6e1fc _dispatch_call_block_and_release + 20
44  libdispatch.dylib               0x000000018aa6e1bc _dispatch_client_callout + 12
45  libdispatch.dylib               0x000000018aa7e518 _dispatch_root_queue_drain + 1028
46  libdispatch.dylib               0x000000018aa7e0ac _dispatch_worker_thread3 + 120
47  libsystem_pthread.dylib         0x000000018ac772a0 _pthread_wqthread + 1284

Thread 10:
0   libsystem_kernel.dylib          0x000000018ab95188 mach_msg_trap + 8
1   libsystem_kernel.dylib          0x000000018ab94ff8 mach_msg + 68
2   CoreFoundation                  0x000000018bb925d0 __CFRunLoopServiceMachPort + 188
3   CoreFoundation                  0x000000018bb901ec __CFRunLoopRun + 1128
4   CoreFoundation                  0x000000018babe2b8 CFRunLoopRunSpecific + 440
5   CFNetwork                       0x000000018c2c38f0 +[NSURLConnection(Loader) _resourceLoadLoop:] + 332
6   Foundation                      0x000000018c6f8e68 __NSThread__start__ + 1020
7   libsystem_pthread.dylib         0x000000018ac79850 _pthread_body + 236
8   libsystem_pthread.dylib         0x000000018ac79760 _pthread_start + 280

Thread 11:
0   libsystem_kernel.dylib          0x000000018abb3a88 __workq_kernreturn + 8
1   libsystem_pthread.dylib         0x000000018ac77344 _pthread_wqthread + 1448

Thread 12:
0   libsystem_kernel.dylib          0x000000018ab95188 mach_msg_trap + 8
1   libsystem_kernel.dylib          0x000000018ab94ff8 mach_msg + 68
2   CoreFoundation                  0x000000018bb925d0 __CFRunLoopServiceMachPort + 188
3   CoreFoundation                  0x000000018bb901ec __CFRunLoopRun + 1128
4   CoreFoundation                  0x000000018babe2b8 CFRunLoopRunSpecific + 440
5   Foundation                      0x000000018c5fb26c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 300
6   CocoaAsyncSocket                0x0000000100852a8c +[GCDAsyncSocket cfstreamThread] (GCDAsyncSocket.m:7531)
7   Foundation                      0x000000018c6f8e68 __NSThread__start__ + 1020
8   libsystem_pthread.dylib         0x000000018ac79850 _pthread_body + 236
9   libsystem_pthread.dylib         0x000000018ac79760 _pthread_start + 280

Thread 13:
0   libsystem_kernel.dylib          0x000000018abb323c __select + 8
1   CoreFoundation                  0x000000018bb99468 __CFSocketManager + 636
2   libsystem_pthread.dylib         0x000000018ac79850 _pthread_body + 236
3   libsystem_pthread.dylib         0x000000018ac79760 _pthread_start + 280

Thread 14:
0   libsystem_kernel.dylib          0x000000018abb2e1c __psynch_cvwait + 8
1   libsystem_pthread.dylib         0x000000018ac789c0 _pthread_cond_wait + 636
2   libc++.1.dylib                  0x000000018a5a13ec std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 52
3   JavaScriptCore                  0x00000001903c25b0 void std::__1::condition_variable_any::wait<std::__1::unique_lock<bmalloc::Mutex> >(std::__1::unique_lock<bmalloc::Mutex>&) + 108
4   JavaScriptCore                  0x00000001903c2524 bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::threadRunLoop() + 164
5   JavaScriptCore                  0x00000001903c2404 bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::threadEntryPoint(bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*) + 8
6   JavaScriptCore                  0x00000001903c26b4 void* std::__1::__thread_proxy<std::__1::tuple<void (*)(bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*), bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*> >(void*) + 88
7   libsystem_pthread.dylib         0x000000018ac79850 _pthread_body + 236
8   libsystem_pthread.dylib         0x000000018ac79760 _pthread_start + 280

Thread 15:
0   libsystem_kernel.dylib          0x000000018ab95188 mach_msg_trap + 8
1   libsystem_kernel.dylib          0x000000018ab94ff8 mach_msg + 68
2   CoreFoundation                  0x000000018bb925d0 __CFRunLoopServiceMachPort + 188
3   CoreFoundation                  0x000000018bb901ec __CFRunLoopRun + 1128
4   CoreFoundation                  0x000000018babe2b8 CFRunLoopRunSpecific + 440
5   WebCore                         0x00000001906c3660 RunWebThread(void*) + 452
6   libsystem_pthread.dylib         0x000000018ac79850 _pthread_body + 236
7   libsystem_pthread.dylib         0x000000018ac79760 _pthread_start + 280

Thread 16:
0   libsystem_c.dylib               0x000000018aac55e0 strlen + 64
1   CoreFoundation                  0x000000018badcfa8 typeStringHash + 16
2   CoreFoundation                  0x000000018badcfa8 typeStringHash + 16
3   CoreFoundation                  0x000000018bab7228 CFBasicHashFindBucket + 160
4   CoreFoundation                  0x000000018bab7130 CFDictionaryGetValue + 156
5   CoreFoundation                  0x000000018badca4c +[NSMethodSignature signatureWithObjCTypes:] + 196
6   XMPPFramework                   0x00000001011086d8 -[GCDMulticastDelegate methodSignatureForSelector:] (GCDMulticastDelegate.m:243)
7   CoreFoundation                  0x000000018bbe8fac ___forwarding___ + 204
8   CoreFoundation                  0x000000018bae280c _CF_forwarding_prep_0 + 88
9   XMPPFramework                   0x0000000101197c44 __29-[XMPPStream registerModule:]_block_invoke (XMPPStream.m:4857)
10  libdispatch.dylib               0x000000018aa6e1fc _dispatch_call_block_and_release + 20
11  libdispatch.dylib               0x000000018aa6e1bc _dispatch_client_callout + 12
12  libdispatch.dylib               0x000000018aa7c3dc _dispatch_queue_serial_drain + 924
13  libdispatch.dylib               0x000000018aa719a4 _dispatch_queue_invoke + 648
14  libdispatch.dylib               0x000000018aa7e34c _dispatch_root_queue_drain + 568
15  libdispatch.dylib               0x000000018aa7e0ac _dispatch_worker_thread3 + 120
16  libsystem_pthread.dylib         0x000000018ac772a0 _pthread_wqthread + 1284

Thread 17:
0   libsystem_kernel.dylib          0x000000018abb3a88 __workq_kernreturn + 8
1   libsystem_pthread.dylib         0x000000018ac77344 _pthread_wqthread + 1448

Thread 18:
0   libsystem_kernel.dylib          0x000000018abb3a88 __workq_kernreturn + 8
1   libsystem_pthread.dylib         0x000000018ac77344 _pthread_wqthread + 1448

Thread 19:
0   libsystem_kernel.dylib          0x000000018abb3a88 __workq_kernreturn + 8
1   libsystem_pthread.dylib         0x000000018ac77344 _pthread_wqthread + 1448

Thread 20:
0   libsystem_kernel.dylib          0x000000018abb3a88 __workq_kernreturn + 8
1   libsystem_pthread.dylib         0x000000018ac77160 _pthread_wqthread + 964

@abdulmomen-khan
Copy link

@chrisballinger is this issue is fixed or merged in new commit?

@abdulmomen-khan
Copy link

@chrisballinger please reply back i this issue fixed if not then what to do for fixing this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants