realm / realm-tasks

To Do app built with Realm, inspired by Clear for iOS
Other
368 stars 73 forks source link

RealmTasks crash #372

Open gritzko opened 7 years ago

gritzko commented 7 years ago

(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_ptr, std::__1::shared_ptr) 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_ptr, std::__1::shared_ptr) 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::allocator, realm::_impl::ListNotifier, 1u>::libcpp_compressed_pair_imp<std::1::allocator&, std::__1::shared_ptr&, std::1::shared_ptr&, 0ul, 0ul, 1ul>(std::1::piecewise_construct_t, std::1::tuple<std::1::allocator&>, std::1::tuple<std::1::shared_ptr&, std::1::shared_ptr&>, 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::allocator, realm::_impl::ListNotifier>::compressed_pair<std::1::allocator&, std::__1::shared_ptr&, std::1::shared_ptr&>(std::1::piecewise_construct_t, std::1::tuple<std::1::allocator&>, std::1::tuple<std::1::shared_ptr&, std::1::shared_ptr&>) [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::allocator, realm::_impl::ListNotifier>::compressed_pair<std::1::allocator&, std::__1::shared_ptr&, std::1::shared_ptr&>(std::1::piecewise_construct_t, std::1::tuple<std::1::allocator&>, std::1::tuple<std::1::shared_ptr&, std::1::shared_ptr&>) [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::allocator >::shared_ptr_emplace<std::1::shared_ptr&, std::1::shared_ptr&>(std::1::allocator, std::__1::shared_ptr&&&, std::1::shared_ptr&&&) [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::allocator >::shared_ptr_emplace<std::1::shared_ptr&, std::1::shared_ptr&>(std::1::allocator, std::__1::shared_ptr&&&, std::1::shared_ptr&&&) [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3801

16 0x000000010022ce77 in std::1::shared_ptr std::1::shared_ptr::make_shared<std::1::shared_ptr&, std::__1::shared_ptr&>(std::1::shared_ptr&&&, std::__1::shared_ptr&&&) at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:4411

17 0x000000010022b755 in std::1::enable_if<!(is_array::value), std::1::shared_ptr >::type std::1::make_shared<realm::_impl::ListNotifier, std::__1::shared_ptr&, std::1::shared_ptr&>(std::__1::shared_ptr&&&, std::__1::shared_ptr&&&) [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 RLMAddNotificationBlock(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 commented 7 years ago

Repro? More info?

gritzko commented 7 years ago

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