Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

RealmTasks crash #372

Open
gritzko opened this issue Jan 12, 2017 · 2 comments
Open

RealmTasks crash #372

gritzko opened this issue Jan 12, 2017 · 2 comments

Comments

@gritzko
Copy link
Contributor

gritzko commented Jan 12, 2017

(SIGABRT shortly after startup, attempted to create a new entry)

2017-01-12 13:57:47.514039 RealmTasks[13947:402913] Sync: Connection[1]: Session[1]: Sending: IDENT(server_file_ident=799308975276877244, client_file_ident=1, client_file_ident_secret=5701060375912760255, scan_server_version=126, scan_client_version=285064, latest_server_version=126, latest_server_session_ident=8692017086428448663)
libc++abi.dylib: terminating with uncaught exception of type realm::LogicError: Wrong transactional state (no active transaction, wrong type of transaction, or transaction already in progress)

#9 0x000000010022df8f in realm::_impl::ListNotifier::ListNotifier(std::__1::shared_ptrrealm::LinkView, std::__1::shared_ptrrealm::Realm) at /Users/gritzko/Projects/RealmTasks/RealmTasks Apple/Pods/Realm/Realm/ObjectStore/src/impl/list_notifier.cpp:35
#10 0x000000010022e3f5 in realm::_impl::ListNotifier::ListNotifier(std::__1::shared_ptrrealm::LinkView, std::__1::shared_ptrrealm::Realm) at /Users/gritzko/Projects/RealmTasks/RealmTasks Apple/Pods/Realm/Realm/ObjectStore/src/impl/list_notifier.cpp:31
#11 0x000000010022d37a in std::__1::__libcpp_compressed_pair_imp<std::__1::allocatorrealm::_impl::ListNotifier, realm::_impl::ListNotifier, 1u>::__libcpp_compressed_pair_imp<std::__1::allocatorrealm::_impl::ListNotifier&, std::__1::shared_ptrrealm::LinkView&, std::__1::shared_ptrrealm::Realm&, 0ul, 0ul, 1ul>(std::__1::piecewise_construct_t, std::__1::tuple<std::__1::allocatorrealm::_impl::ListNotifier&>, std::__1::tuple<std::__1::shared_ptrrealm::LinkView&, std::__1::shared_ptrrealm::Realm&>, std::__1::__tuple_indices<0ul>, std::__1::__tuple_indices<0ul, 1ul>) [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2194
#12 0x000000010022d1cd in std::__1::__compressed_pair<std::__1::allocatorrealm::_impl::ListNotifier, realm::_impl::ListNotifier>::__compressed_pair<std::__1::allocatorrealm::_impl::ListNotifier&, std::__1::shared_ptrrealm::LinkView&, std::__1::shared_ptrrealm::Realm&>(std::__1::piecewise_construct_t, std::__1::tuple<std::__1::allocatorrealm::_impl::ListNotifier&>, std::__1::tuple<std::__1::shared_ptrrealm::LinkView&, std::__1::shared_ptrrealm::Realm&>) [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2457
#13 0x000000010022d14c in std::__1::__compressed_pair<std::__1::allocatorrealm::_impl::ListNotifier, realm::_impl::ListNotifier>::__compressed_pair<std::__1::allocatorrealm::_impl::ListNotifier&, std::__1::shared_ptrrealm::LinkView&, std::__1::shared_ptrrealm::Realm&>(std::__1::piecewise_construct_t, std::__1::tuple<std::__1::allocatorrealm::_impl::ListNotifier&>, std::__1::tuple<std::__1::shared_ptrrealm::LinkView&, std::__1::shared_ptrrealm::Realm&>) [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2460
#14 0x000000010022d114 in std::__1::__shared_ptr_emplace<realm::_impl::ListNotifier, std::__1::allocatorrealm::_impl::ListNotifier >::__shared_ptr_emplace<std::__1::shared_ptrrealm::LinkView&, std::__1::shared_ptrrealm::Realm&>(std::__1::allocatorrealm::_impl::ListNotifier, std::__1::shared_ptrrealm::LinkView&&&, std::__1::shared_ptrrealm::Realm&&&) [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3800
#15 0x000000010022ce9a in std::__1::__shared_ptr_emplace<realm::_impl::ListNotifier, std::__1::allocatorrealm::_impl::ListNotifier >::__shared_ptr_emplace<std::__1::shared_ptrrealm::LinkView&, std::__1::shared_ptrrealm::Realm&>(std::__1::allocatorrealm::_impl::ListNotifier, std::__1::shared_ptrrealm::LinkView&&&, std::__1::shared_ptrrealm::Realm&&&) [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3801
#16 0x000000010022ce77 in std::__1::shared_ptrrealm::_impl::ListNotifier std::__1::shared_ptrrealm::_impl::ListNotifier::make_shared<std::__1::shared_ptrrealm::LinkView&, std::__1::shared_ptrrealm::Realm&>(std::__1::shared_ptrrealm::LinkView&&&, std::__1::shared_ptrrealm::Realm&&&) at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:4411
#17 0x000000010022b755 in std::__1::enable_if<!(is_arrayrealm::_impl::ListNotifier::value), std::__1::shared_ptrrealm::_impl::ListNotifier >::type std::__1::make_shared<realm::_impl::ListNotifier, std::__1::shared_ptrrealm::LinkView&, std::__1::shared_ptrrealm::Realm&>(std::__1::shared_ptrrealm::LinkView&&&, std::__1::shared_ptrrealm::Realm&&&) [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:4775
#18 0x000000010022b71a in realm::List::add_notification_callback(realm::CollectionChangeCallback) at /Users/gritzko/Projects/RealmTasks/RealmTasks Apple/Pods/Realm/Realm/ObjectStore/src/list.cpp:221
#19 0x00000001002c6916 in RLMNotificationToken* RLMAddNotificationBlockrealm::List(objc_object*, realm::List&, void (objc_object*, RLMCollectionChange*, NSError*) block_pointer, bool) at /Users/gritzko/Projects/RealmTasks/RealmTasks Apple/Pods/Realm/Realm/RLMCollection.mm:349
#20 0x00000001002bbaa3 in -[RLMArrayLinkView addNotificationBlock:] at /Users/gritzko/Projects/RealmTasks/RealmTasks Apple/Pods/Realm/Realm/RLMArrayLinkView.mm:425
#21 0x0000000100b69db0 in List.addNotificationBlock((RealmCollectionChange<List>) -> ()) -> RLMNotificationToken at /Users/gritzko/Projects/RealmTasks/RealmTasks Apple/Pods/RealmSwift/RealmSwift/List.swift:978
#22 0x00000001000039f8 in ListViewController.(setupNotifications in _7E198C33895350D918AF37C996AE5055)() -> () at /Users/gritzko/Projects/RealmTasks/RealmTasks Apple/RealmTasks macOS/ListViewController.swift:115
#23 0x0000000100003769 in ListViewController.viewDidLoad() -> () at /Users/gritzko/Projects/RealmTasks/RealmTasks Apple/RealmTasks macOS/ListViewController.swift:94
#24 0x0000000100003eb5 in @objc ListViewController.viewDidLoad() -> () ()
#25 0x00007fffbe395283 in -[NSViewController _sendViewDidLoad] ()
#26 0x00007fffbe38bce3 in -[NSViewController _loadViewIfRequired] ()
#27 0x00007fffbe38bb1d in -[NSViewController view] ()
#28 0x00000001000143a7 in ContainerViewController.presentViewControllerForList<A where ...> (A) -> () at /Users/gritzko/Projects/RealmTasks/RealmTasks Apple/RealmTasks macOS/ContainerViewController.swift:63
#29 0x0000000100013ff1 in ContainerViewController.showAllLists(AnyObject?) -> () at /Users/gritzko/Projects/RealmTasks/RealmTasks Apple/RealmTasks macOS/ContainerViewController.swift:49
#30 0x0000000100014066 in @objc ContainerViewController.showAllLists(AnyObject?) -> () ()
#31 0x00007fffbe66296a in -[NSToolbarButton sendAction:to:] ()
#32 0x00007fffbe59f418 in -[NSToolbarItemViewer mouseDown:] ()
#33 0x00007fffbec39ab7 in -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] ()
#34 0x00007fffbec362d4 in -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] ()
#35 0x00007fffbec35772 in -[NSWindow(NSEventRouting) sendEvent:] ()
#36 0x00007fffbeabe0a9 in -[NSApplication(NSEvent) sendEvent:] ()
#37 0x00007fffbe33a4b1 in -[NSApplication run] ()
#38 0x00007fffbe304d80 in NSApplicationMain ()
#39 0x000000010002a6a4 in main at /Users/gritzko/Projects/RealmTasks/RealmTasks Apple/RealmTasks macOS/AppDelegate.swift:25
#40 0x00007fffd5d6c255 in start ()
#41 0x00007fffd5d6c255 in start ()

@jpsim
Copy link
Contributor

jpsim commented Jan 12, 2017

Repro? More info?

@gritzko
Copy link
Contributor Author

gritzko commented Jan 12, 2017

a variation of #370 most likely (and #370 is most likely an infinite loop in the app committing something to the db)

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

No branches or pull requests

2 participants