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

Live app crashes on launch for some users. #4452

Closed
cemkacmaz opened this issue Dec 15, 2016 · 4 comments
Closed

Live app crashes on launch for some users. #4452

cemkacmaz opened this issue Dec 15, 2016 · 4 comments

Comments

@cemkacmaz
Copy link

cemkacmaz commented Dec 15, 2016

Realm crashes on launch for my app for some users. Log is at below.

#0
Crashed: com.apple.main-thread
SIGABRT ABORT 0x00000001922f3014
 Raw Text
0
libsystem_kernel.dylib	
__pthread_kill + 8
2
libsystem_c.dylib	
abort + 140
3	Groop	
realm::util::terminate_internal(std::__1::basic_stringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) + 344064
4	Groop	
realm::util::terminate_internal(std::__1::basic_stringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) + 344296
5	libsystem_pthread.dylib	
pthread_kill + 112
6	Groop	
realm::util::terminate(char const*, char const*, long, std::initializer_list<realm::util::Printable>&&) + 344692
7	libsystem_pthread.dylib	
pthread_kill + 112
8	Groop	
realm_coordinator.cpp line 328
realm::_impl::RealmCoordinator::register_notifier(std::__1::shared_ptr<realm::_impl::CollectionNotifier>)
9	Groop	
realm::Array::calc_item_count(unsigned long, unsigned long) const + 16580
10	Groop	
realm::Array::copy_on_write() + 2688
11	Groop	
realm::Array::insert(unsigned long, long long) + 10320
12	Groop	
realm::Array::bptree_leaf_insert(unsigned long, long long, realm::TreeInsertBase&) + 18284
13	Groop	
bptree.hpp line 811
void realm::BpTree<long long>::bptree_insert<realm::BpTree<long long>::LeafValueInserter>(unsigned long, realm::BpTreeNode::TreeInsert<realm::BpTree<long long>::LeafValueInserter>&, unsigned long)
14	Groop	
memory line 2702
realm::Column<long long>::insert(unsigned long, long long, unsigned long)
15	Groop	
realm::LinkListColumn::insert_rows(unsigned long, unsigned long, unsigned long, bool) + 474084
16	Groop	
realm::Table::insert_empty_row(unsigned long, unsigned long) + 41356
17	Groop	
RLMObjectStore.mm line 130
createRowForObject(RLMClassInfo const&)
18	Groop	
RLMObjectStore.mm line 179
createOrGetRowForObjectWithPrimaryKey(RLMClassInfo const&, objc_object*, bool*)
19	Groop	
RLMObjectStore.mm line 249
RLMAddObjectToRealm
20	Groop	
ParseHandler.m line 605
-[ParseHandler parseJoinRoomResponse:topic:callback:]
21	Groop	
TopicViewController.m line 565
__40-[TopicViewController joinTopicAtIndex:]_block_invoke
22	Groop	
XMPPManager.m line 548
__39-[XMPPManager xmppStream:didReceiveIQ:]_block_invoke
23	CoreFoundation	
__65-[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:]_block_invoke + 136
24	CoreFoundation	
-[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:] + 180
25	Groop	
XMPPManager.m line 552
-[XMPPManager xmppStream:didReceiveIQ:]
26
CoreFoundation	
__invoking___ + 144
28
CoreFoundation	
-[NSInvocation invokeWithTarget:] + 60
29	Groop	
GCDMulticastDelegate.m line 283
__42-[GCDMulticastDelegate forwardInvocation:]_block_invoke
30
libdispatch.dylib	
_dispatch_call_block_and_release + 24
38
UIKit	
UIApplicationMain + 208
39	Groop	
main.m line 14
main
40	libdispatch.dylib	
(Missing)
#1
Thread
 Raw Text
0
libsystem_kernel.dylib	
__workq_kernreturn + 8
2
libsystem_pthread.dylib	
start_wqthread + 4
#2
Thread
 Raw Text
0
libsystem_kernel.dylib	
__workq_kernreturn + 8
2
libsystem_pthread.dylib	
start_wqthread + 4
#3
com.apple.uikit.eventfetch-thread
 Raw Text
0
libsystem_kernel.dylib	
mach_msg_trap + 8
11
libsystem_pthread.dylib	
thread_start + 4
#4
RLMRealm notification listener
 Raw Text
0	libsystem_kernel.dylib	
kevent + 8
1	Groop	
external_commit_helper.cpp line 199
realm::_impl::ExternalCommitHelper::listen()
2	Groop	
future line 2341
std::__1::__async_func<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0>::operator()()
3	Groop	
future line 1032
std::__1::__async_assoc_state<void, std::__1::__async_func<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0> >::__execute()
4	Groop	
memory line 2525
std::__1::__thread_proxy<std::__1::tuple<void (std::__1::__async_assoc_state<void, std::__1::__async_func<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0> >::*)(), std::__1::__async_assoc_state<void, std::__1::__async_func<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0> >*> >(void*, void*)
5
libsystem_pthread.dylib	
<redacted> + 240
7
libsystem_pthread.dylib	
thread_start + 4
@kishikawakatsumi
Copy link
Contributor

@cemkacmaz Can you share more details? What version of Realm are you using? It seems you are using a little bit old version. Can you share a reproducible project? What is your code around crash occurred?

@cemkacmaz
Copy link
Author

Hi again,

I am using Realm 2.0.3. I cannot share a reproducible project because it only occured for 10 users so far.

It happens when I try to modify a realm object (add to its rlmarray) or when create realm object

@jpsim
Copy link
Contributor

jpsim commented Dec 15, 2016

Thanks for reporting this @cemkacmaz. We've made some bug fixes in a few parts of the code since your version (2.0.3) that are involved in this backtrace.

Could you please update to the latest version of Realm (2.1.1) and file a new issue if this persists?

By the way, in the future, it'd be very helpful if you filled out the new issue template and aimed to provide as much information as possible to help us diagnose the issue. Sharing detailed steps explaining how to trigger a crash is often necessary for us to be able to reproduce on our end and subsequently fix. Thanks!

@jpsim jpsim closed this as completed Dec 15, 2016
@cemkacmaz
Copy link
Author

Thank you for quick response @jpsim. We updated the app with the latest version of Realm (2.1.1).
If the problem persists I will write with detailed explanation.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2024
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

4 participants