Closed bigfish24 closed 7 years ago
Posting symbolicated stack trace here:
Thread 0 Crashed:
0 Realm 0x000000010dfa15bb RLMGetString(RLMObjectBase*, unsigned long) (RLMAccessor.mm:41)
1 Realm 0x000000010dfa106c RLMDynamicGet (RLMAccessor.mm:670)
2 Realm 0x000000010dfa1ee2 RLMDynamicGetByName (RLMAccessor.mm:693)
3 Realm 0x000000010dfb62e1 -[RLMDynamicObject valueForUndefinedKey:] (RLMObject.mm:225)
4 Foundation 0x00007fffcbad0d0c -[NSObject(NSKeyValueCoding) valueForKey:] + 282
5 Realm 0x000000010dfb81dd -[RLMObjectBase valueForKey:] (RLMObjectBase.mm:177)
6 Realm Browser 0x000000010dd65c69 -[RLMSyncServerBrowserWindowController tableViewSelectionDidChange:] (RLMSyncServerBrowserWindowController.m:174)
7 CoreFoundation 0x00007fffca0ae45c CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 12
8 CoreFoundation 0x00007fffca0ae35b _CFXRegistrationPost + 427
9 CoreFoundation 0x00007fffca0ae0c2 ___CFXNotificationPost_block_invoke + 50
10 CoreFoundation 0x00007fffca06b523 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1827
11 CoreFoundation 0x00007fffca06a55c _CFXNotificationPost + 604
12 Foundation 0x00007fffcba8f907 -[NSNotificationCenter postNotificationName:object:userInfo:] + 65
13 AppKit 0x00007fffc7d355e9 -[NSTableView _sendSelectionChangedNotificationForRows:columns:] + 175
14 AppKit 0x00007fffc7c9cfd1 -[NSTableView _enableSelectionPostingAndPost] + 401
15 AppKit 0x00007fffc7c96fec -[NSTableView _tileAndRedisplayAll] + 345
16 Realm Browser 0x000000010dd65669 __69-[RLMSyncServerBrowserWindowController openAdminRealmAtURL:withUser:]_block_invoke (RLMSyncServerBrowserWindowController.m:110)
17 Realm 0x000000010dfb2856 RLMNotificationToken* RLMAddNotificationBlock<realm::Results>(objc_object*, realm::Results&, void (objc_object*, RLMCollectionChange*, NSError*) block_pointer, bool)::'lambda'(realm::CollectionChangeSet const&, std::exception_ptr)::operator()(realm::CollectionChangeSet const&, std::exception_ptr) const (RLMCollection.mm:357)
18 Realm 0x000000010dfb2615 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(realm::CollectionChangeSet const&) (collection_notifications.hpp:157)
19 Realm 0x000000010df7516c realm::_impl::CollectionNotifier::after_advance() (collection_notifications.hpp:122)
20 Realm 0x000000010df75e5f realm::_impl::NotifierPackage::after_advance() (collection_notifier.cpp:479)
21 Realm 0x000000010e06e1ff realm::_impl::transaction::advance(std::__1::unique_ptr<realm::SharedGroup, std::__1::default_delete<realm::SharedGroup> > const&, realm::BindingContext*, realm::_impl::NotifierPackage&) (transact_log_handler.cpp:675)
22 Realm 0x000000010df90c8f realm::_impl::RealmCoordinator::advance_to_ready(realm::Realm&) (realm_coordinator.cpp:794)
23 Realm 0x000000010e04f040 realm::Realm::notify() (shared_realm.cpp:690)
24 Realm 0x000000010e07cc93 realm::_impl::WeakRealmNotifier::Callback::operator()() const (weak_realm_notifier.cpp:42)
25 CoreFoundation 0x00007fffca0b8321 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
26 CoreFoundation 0x00007fffca09921d __CFRunLoopDoSources0 + 557
27 CoreFoundation 0x00007fffca098716 __CFRunLoopRun + 934
28 CoreFoundation 0x00007fffca098114 CFRunLoopRunSpecific + 420
29 HIToolbox 0x00007fffc95f9ebc RunCurrentEventLoopInMode + 240
30 HIToolbox 0x00007fffc95f9cf1 ReceiveNextEventCommon + 432
31 HIToolbox 0x00007fffc95f9b26 _BlockUntilNextEventMatchingListInModeWithFilter + 71
32 AppKit 0x00007fffc7b92a54 _DPSNextEvent + 1120
33 AppKit 0x00007fffc830e7ee -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796
34 AppKit 0x00007fffc7b873db -[NSApplication run] + 926
35 AppKit 0x00007fffc7b51e0e NSApplicationMain + 1237
36 libdyld.dylib 0x00007fffdf812235 start + 1
related to #324. @bigfish24, @ianpward does this crash reproduce constantly? What ROS version you're trying to connect?
It looks like this crash happens in cocoa dynamic API when trying to access RealmFile.path
property from __admin
realm which means either admin realm schema doesn't mach Browser's expectation (most likely it's not the case) or OS failed to read schema correctly.
https://github.com/realm/realm-browser-osx/pull/321 could potentially fix that but it must be tested first, so if anyone has a stable way to reproduce the issue it would be great.
ROS 1.7.5 - worked on next app load
I deleted the app entirely and then reinstalled from the Mac App Store. Again I tried to connect to object server and it crashed with this
The crash log looks the same but contains more info.
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00007fffdf940d42 __pthread_kill + 10
1 libsystem_c.dylib 0x00007fffdf8a6420 abort + 129
2 Realm 0x000000010c62a0c9 please_report_this_error_to_help_at_realm_dot_io + 8
3 Realm 0x000000010c62a644 realm::util::terminate_internal(std::__1::basic_stringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) + 371
4 Realm 0x000000010c62a885 realm::util::terminate(char const*, char const*, long, std::initializer_list<realm::util::Printable>&&) + 516
5 Realm 0x000000010c4f5794 void realm::util::terminate<unsigned long, unsigned long>(char const*, char const*, long, unsigned long, unsigned long) (terminate.hpp:45)
6 Realm 0x000000010c7d374c realm::StringData realm::Table::get<realm::StringData>(unsigned long, unsigned long) const + 411
7 Realm 0x000000010c4d55ce RLMGetString(RLMObjectBase*, unsigned long) (RLMAccessor.mm:41)
8 Realm 0x000000010c4d506c RLMDynamicGet (RLMAccessor.mm:670)
9 Realm 0x000000010c4d5ee2 RLMDynamicGetByName (RLMAccessor.mm:693)
10 Realm 0x000000010c4ea2e1 -[RLMDynamicObject valueForUndefinedKey:] (RLMObject.mm:225)
11 Foundation 0x00007fffcbad0d0c -[NSObject(NSKeyValueCoding) valueForKey:] + 282
12 Realm 0x000000010c4ec1dd -[RLMObjectBase valueForKey:] (RLMObjectBase.mm:177)
13 Realm Browser 0x000000010c29ec69 -[RLMSyncServerBrowserWindowController tableViewSelectionDidChange:] (RLMSyncServerBrowserWindowController.m:174)
14 CoreFoundation 0x00007fffca0ae45c CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 12
15 CoreFoundation 0x00007fffca0ae35b _CFXRegistrationPost + 427
16 CoreFoundation 0x00007fffca0ae0c2 ___CFXNotificationPost_block_invoke + 50
17 CoreFoundation 0x00007fffca06b523 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1827
18 CoreFoundation 0x00007fffca06a55c _CFXNotificationPost + 604
19 Foundation 0x00007fffcba8f907 -[NSNotificationCenter postNotificationName:object:userInfo:] + 65
20 AppKit 0x00007fffc7d355e9 -[NSTableView _sendSelectionChangedNotificationForRows:columns:] + 175
21 AppKit 0x00007fffc7c9cfd1 -[NSTableView _enableSelectionPostingAndPost] + 401
22 AppKit 0x00007fffc7c96fec -[NSTableView _tileAndRedisplayAll] + 345
23 Realm Browser 0x000000010c29e669 __69-[RLMSyncServerBrowserWindowController openAdminRealmAtURL:withUser:]_block_invoke (RLMSyncServerBrowserWindowController.m:110)
24 Realm 0x000000010c4e6856 RLMNotificationToken* RLMAddNotificationBlock<realm::Results>(objc_object*, realm::Results&, void (objc_object*, RLMCollectionChange*, NSError*) block_pointer, bool)::'lambda'(realm::CollectionChangeSet const&, std::exception_ptr)::operator()(realm::CollectionChangeSet const&, std::exception_ptr) const (RLMCollection.mm:357)
25 Realm 0x000000010c4e6615 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(realm::CollectionChangeSet const&) (collection_notifications.hpp:157)
26 Realm 0x000000010c4a916c realm::_impl::CollectionNotifier::after_advance() (collection_notifications.hpp:122)
27 Realm 0x000000010c4a9e5f realm::_impl::NotifierPackage::after_advance() (collection_notifier.cpp:479)
28 Realm 0x000000010c5a21ff realm::_impl::transaction::advance(std::__1::unique_ptr<realm::SharedGroup, std::__1::default_delete<realm::SharedGroup> > const&, realm::BindingContext*, realm::_impl::NotifierPackage&) (transact_log_handler.cpp:675)
29 Realm 0x000000010c4c4c8f realm::_impl::RealmCoordinator::advance_to_ready(realm::Realm&) (realm_coordinator.cpp:794)
30 Realm 0x000000010c583040 realm::Realm::notify() (shared_realm.cpp:690)
31 Realm 0x000000010c5b0c93 realm::_impl::WeakRealmNotifier::Callback::operator()() const (weak_realm_notifier.cpp:42)
32 CoreFoundation 0x00007fffca0b8321 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
33 CoreFoundation 0x00007fffca09921d __CFRunLoopDoSources0 + 557
34 CoreFoundation 0x00007fffca098716 __CFRunLoopRun + 934
35 CoreFoundation 0x00007fffca098114 CFRunLoopRunSpecific + 420
36 HIToolbox 0x00007fffc95f9ebc RunCurrentEventLoopInMode + 240
37 HIToolbox 0x00007fffc95f9cf1 ReceiveNextEventCommon + 432
38 HIToolbox 0x00007fffc95f9b26 _BlockUntilNextEventMatchingListInModeWithFilter + 71
39 AppKit 0x00007fffc7b92a54 _DPSNextEvent + 1120
40 AppKit 0x00007fffc830e7ee -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796
41 AppKit 0x00007fffc7b873db -[NSApplication run] + 926
42 AppKit 0x00007fffc7b51e0e NSApplicationMain + 1237
43 libdyld.dylib 0x00007fffdf812235 start + 1
@bdash could this be related to the latest fixes in ObjectStore?
It looks like core's Table::get<StringData>
method is asserting. An assertion message should have been printed to the system console prior to the app crashing. Is anyone able to either reproduce this and share the assertion message, or retrieve the message from a previous crash?
The working theory is that this may happen when opening the admin Realm if the admin Realm's schema was modified at some point in its history.
I was able to reproduce the crash and #321 fixes the issue. One of the users also confirmed that the schema displays correctly after performing a migration.
Using 2.1.8 and after filling in my credentials the app crashed