Skip to content

Instantly share code, notes, and snippets.

@hhanesand
Created October 27, 2017 18:11
Show Gist options
  • Save hhanesand/e3933371d5648ae03e436a3b1925b557 to your computer and use it in GitHub Desktop.
Save hhanesand/e3933371d5648ae03e436a3b1925b557 to your computer and use it in GitHub Desktop.
realm crash
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 5.1
frame #0: 0x00000001811804f0 libobjc.A.dylib`objc_exception_throw
frame #1: 0x000000010229ad50 Realm`auto translateErrors<-[RLMThreadSafeReference initWithThreadConfined:]::$_0>(f=0x000000016ee67de0) at RLMThreadSafeReference.mm:28
frame #2: 0x000000010229ac5c Realm`::-[RLMThreadSafeReference initWithThreadConfined:](self=0x00000001c44237e0, _cmd="initWithThreadConfined:", threadConfined=0x00000001c41735c0) at RLMThreadSafeReference.mm:53
frame #3: 0x000000010229ade0 Realm`::+[RLMThreadSafeReference referenceWithThreadConfined:](self=RLMThreadSafeReference, _cmd="referenceWithThreadConfined:", threadConfined=0x00000001c41735c0) at RLMThreadSafeReference.mm:63
frame #4: 0x0000000100fd3a4c Jambuddy β`+[MUSLocalStorageService threadSafeReferenceForObject:](self=MUSLocalStorageService, _cmd="threadSafeReferenceForObject:", object=0x00000001c41735c0) at MUSLocalStorageService.m:30
frame #5: 0x00000001010213f8 Jambuddy β`-[MUSRealmResultSyncLeaf processObjects:forOperationType:](self=0x00000001c5c6c340, _cmd="processObjects:forOperationType:", results=@"1 element", type=MUSOperationTypeUpdate) at MUSRealmResultSyncLeaf.m:125
frame #6: 0x00000001010211b8 Jambuddy β`__61-[MUSRealmResultSyncLeaf startCreatingTasksForOperationType:]_block_invoke((null)=<unavailable>, results=0x00000001046b46a0, change=0x00000001c4131a80, error=0x0000000000000000) at MUSRealmResultSyncLeaf.m:117
frame #7: 0x000000010212d458 Realm`RLMNotificationToken* RLMAddNotificationBlock<realm::Results>(this=0x00000001c429bc80, changes=0x000000016ee683e0, err=(__ptr_ = 0x0000000000000000)) block_pointer, bool)::'lambda'(realm::CollectionChangeSet const&, std::exception_ptr)::operator()(realm::CollectionChangeSet const&, std::exception_ptr) const at RLMCollection.mm:416
frame #8: 0x000000010212cf84 Realm`realm::CollectionChangeCallback::Impl<RLMNotificationToken* RLMAddNotificationBlock<realm::Results>(objc_object*, realm::Results&, void (objc_object*, RLMCollectionChange*, NSError*) block_pointer, bool)::'lambda'(realm::CollectionChangeSet const&, std::exception_ptr)>::after(this=0x00000001c429bc78, change=0x000000016ee683e0) at collection_notifications.hpp:157
frame #9: 0x000000010205d9f4 Realm`realm::CollectionChangeCallback::after(this=0x000000016ee683d0, c=0x000000016ee683e0) at collection_notifications.hpp:122
frame #10: 0x000000010205d950 Realm`auto realm::_impl::CollectionNotifier::after_advance(this=0x000000016ee685a0, lock=0x000000016ee684f8, callback=0x00000001046b4980)::$_9::operator()<std::__1::unique_lock<std::__1::mutex>, realm::_impl::CollectionNotifier::Callback>(std::__1::unique_lock<std::__1::mutex>&, realm::_impl::CollectionNotifier::Callback&) const at collection_notifier.cpp:336
frame #11: 0x000000010204ec84 Realm`void realm::_impl::CollectionNotifier::for_each_callback<realm::_impl::CollectionNotifier::after_advance()::$_9>(this=0x0000000105895818, fn=0x000000016ee685a0)::$_9&&) at collection_notifier.cpp:377
frame #12: 0x000000010204eb84 Realm`realm::_impl::CollectionNotifier::after_advance(this=0x0000000105895818) at collection_notifier.cpp:325
frame #13: 0x0000000102051264 Realm`realm::_impl::NotifierPackage::after_advance(this=0x000000016ee68d10) at collection_notifier.cpp:489
frame #14: 0x00000001023400c8 Realm`void (anonymous namespace)::advance_with_notifications<realm::_impl::transaction::begin(context=0x00000001c4224a40, sg=0x0000000104866658, func=0x000000016ee68c60, notifiers=0x000000016ee68d10)::$_2>(realm::BindingContext*, std::__1::unique_ptr<realm::SharedGroup, std::__1::default_delete<realm::SharedGroup> > const&, realm::_impl::transaction::begin(std::__1::unique_ptr<realm::SharedGroup, std::__1::default_delete<realm::SharedGroup> > const&, realm::BindingContext*, realm::_impl::NotifierPackage&)::$_2&&, realm::_impl::NotifierPackage&) at transact_log_handler.cpp:786
frame #15: 0x000000010233fae0 Realm`realm::_impl::transaction::begin(sg=0x0000000104866658, context=0x00000001c4224a40, notifiers=0x000000016ee68d10) at transact_log_handler.cpp:814
frame #16: 0x00000001020c66a0 Realm`realm::_impl::RealmCoordinator::promote_to_write(this=0x0000000104862b88, realm=0x0000000104866528) at realm_coordinator.cpp:848
frame #17: 0x00000001022b5e84 Realm`realm::Realm::begin_transaction(this=0x0000000104866528) at shared_realm.cpp:595
frame #18: 0x000000010224ba1c Realm`::-[RLMRealm beginWriteTransaction](self=0x00000001c00b05c0, _cmd="beginWriteTransaction") at RLMRealm.mm:539
frame #19: 0x000000010224bfe8 Realm`::-[RLMRealm transactionWithBlock:error:](self=0x00000001c00b05c0, _cmd="transactionWithBlock:error:", block=0x0000000100fa0588, outError=0x000000016ee690e0)(), NSError **) at RLMRealm.mm:584
* frame #20: 0x0000000100fa0490 Jambuddy β`+[MUSStorageLayer writeTransactionWithDefaultRealm:completion:](self=MUSStorageLayer, _cmd="writeTransactionWithDefaultRealm:completion:", block=0x0000000100f9f948, completion=(null)) at MUSStorageLayer.m:79
frame #21: 0x0000000100f9ff34 Jambuddy β`+[MUSStorageLayer writeTransactionWithDefaultRealm:](self=MUSStorageLayer, _cmd="writeTransactionWithDefaultRealm:", block=0x0000000100f9f948) at MUSStorageLayer.m:52
frame #22: 0x0000000100f9f914 Jambuddy β`+[MUSStorageLayer saveNewObjects:](self=MUSStorageLayer, _cmd="saveNewObjects:", objects=@"1 element") at MUSStorageLayer.m:32
frame #23: 0x0000000100fd45e8 Jambuddy β`+[MUSLocalStorageService saveNewTrackLinks:](self=MUSLocalStorageService, _cmd="saveNewTrackLinks:", trackLink=@"1 element") at MUSLocalStorageService.m:136
frame #24: 0x0000000100fa3c84 Jambuddy β`+[MUSTrackLinkManager addTracks:toMultitrack:](self=MUSTrackLinkManager, _cmd="addTracks:toMultitrack:", tracks=@"1 element", multitrack=0x00000001c0170e00) at MUSTrackLinkManager.m:111
frame #25: 0x0000000100fd24cc Jambuddy β`-[MUSMultitrackUploadTracker persistMultitrackChanges](self=0x00000001c4420f40, _cmd="persistMultitrackChanges") at MUSMultitrackUploadTracker.m:85
frame #26: 0x0000000100fcf888 Jambuddy β`-[MUSRecorderViewController saveMultitrackButtonTapped:](self=0x00000001058be000, _cmd="saveMultitrackButtonTapped:", sender=0x00000001046cc950) at MUSRecorderViewController.m:293
frame #27: 0x000000018b0b020c UIKit`-[UIApplication sendAction:to:from:forEvent:] + 96
frame #28: 0x000000018b0b018c UIKit`-[UIControl sendAction:to:forEvent:] + 80
frame #29: 0x000000018b09af4c UIKit`-[UIControl _sendActionsForEvents:withEvent:] + 440
frame #30: 0x000000018b0afa80 UIKit`-[UIControl touchesEnded:withEvent:] + 576
frame #31: 0x000000018b0af5a0 UIKit`-[UIWindow _sendTouchesForEvent:] + 2544
frame #32: 0x000000018b0aaa70 UIKit`-[UIWindow sendEvent:] + 3208
frame #33: 0x000000018b07c078 UIKit`-[UIApplication sendEvent:] + 340
frame #34: 0x000000018b9bbf98 UIKit`__dispatchPreprocessedEventFromEventQueue + 2364
frame #35: 0x000000018b9be408 UIKit`__handleEventQueueInternal + 4760
frame #36: 0x000000018b9b7574 UIKit`__handleHIDEventFetcherDrain + 152
frame #37: 0x0000000181c14358 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
frame #38: 0x0000000181c142d8 CoreFoundation`__CFRunLoopDoSource0 + 88
frame #39: 0x0000000181c13b60 CoreFoundation`__CFRunLoopDoSources0 + 204
frame #40: 0x0000000181c11738 CoreFoundation`__CFRunLoopRun + 1048
frame #41: 0x0000000181b322d8 CoreFoundation`CFRunLoopRunSpecific + 436
frame #42: 0x00000001839c3f84 GraphicsServices`GSEventRunModal + 100
frame #43: 0x000000018b0df880 UIKit`UIApplicationMain + 208
frame #44: 0x000000010106c110 Jambuddy β`main at main.swift:22
frame #45: 0x000000018165656c libdyld.dylib`start + 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment