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

Crash create_object_with_primary_key #5982

Closed
NZQN23 opened this issue Oct 30, 2022 · 3 comments
Closed

Crash create_object_with_primary_key #5982

NZQN23 opened this issue Oct 30, 2022 · 3 comments

Comments

@NZQN23
Copy link

NZQN23 commented Oct 30, 2022

SDK and version

SDK : cocoapods-1.11.3
Version: 10.32.0

Observations

  • How frequent do the crash occur? Sometimes
  • Does it happen in production or during dev/test? Production
  • Can the crash be reproduced by you? No
  • Can you provide instructions for how we can reproduce it? No

Crash log / stacktrace

0   libsystem_kernel.dylib        	0x00000001f58b31a0 __pthread_kill + 8
1   libsystem_pthread.dylib       	0x0000000205efb1ac pthread_kill + 268 (pthread.c:1670)
2   libsystem_c.dylib             	0x00000001bf593c8c abort + 180 (abort.c:118)
3   Realm                         	0x0000000100fcb324 please_report_this_issue_in_github_realm_realm_core_v_12_9_0 + 12
4   Realm                         	0x0000000100fcb60c realm::util::terminate_internal(std::__1::basic_stringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) + 260
5   Realm                         	0x0000000100fcb46c realm::util::terminate(char const*, char const*, long, std::initializer_list<realm::util::Printable>&&) + 328
6   Realm                         	0x0000000100d0ae8c void realm::util::terminate<unsigned long long, long>(char const*, char const*, long, unsigned long long, long) + 52 (terminate.hpp:45)
7   Realm                         	0x0000000100eae27c long long realm::IndexArray::index_string<(realm::IndexMethod)0>(realm::Mixed, realm::InternalFindResult&, realm::ClusterColumn const&) const + 1440
8   Realm                         	0x0000000100eadcd0 realm::IndexArray::index_string_find_first(realm::Mixed, realm::ClusterColumn const&) const + 44
9   Realm                         	0x0000000100f8931c realm::Table::create_object_with_primary_key(realm::Mixed const&, realm::FieldValues&&, realm::Table::UpdateMode, bool*) + 244
10  Realm                         	0x0000000100d1304c realm::Table::create_object_with_primary_key(realm::Mixed const&, bool*) + 80 (table.hpp:260)
11  Realm                         	0x0000000100d089d4 realm::Object realm::Object::create<objc_object* __strong, RLMAccessorContext>(RLMAccessorContext&, std::__1::shared_ptr<realm::Realm> const&, realm::ObjectSchema const&, objc_object* __strong, rea... + 620 (object_accessor.hpp:306)
12  Realm                         	0x0000000100d083e8 RLMAccessorContext::createObject(objc_object*, realm::CreatePolicy, bool, realm::ObjKey) + 744 (RLMAccessor.mm:1102)
13  Realm                         	0x0000000100d581e8 RLMAddObjectToRealm + 184 (RLMObjectStore.mm:119)
14  RealmSwift                    	0x000000010179d7dc Realm.add(_:update:) + 16 (Realm.swift:540)
15  RealmSwift                    	0x000000010179d7dc Realm.add<A>(_:update:) + 316 (Realm.swift:564)
16  Geory                         	0x000000010094872c closure #1 in closure #1 in closure #1 in writeObjectsToDatabase(qos:objectsToWrite:completion:) + 72 (DatabaseManagement.swift:103)
17  Geory                         	0x000000010094872c partial apply for closure #1 in closure #1 in closure #1 in writeObjectsToDatabase(qos:objectsToWrite:completion:) + 100 (<compiler-generated>:0)
18  RealmSwift                    	0x000000010179cc00 Realm.write<A>(withoutNotifying:_:) + 228 (Realm.swift:258)
19  Geory                         	0x0000000100945df0 closure #1 in closure #1 in writeObjectsToDatabase(qos:objectsToWrite:completion:) + 924 (DatabaseManagement.swift:101)
20  Geory                         	0x0000000100948698 specialized autoreleasepool<A>(invoking:) + 28 (DatabaseManagement.swift:77)
21  Geory                         	0x0000000100948698 closure #1 in writeObjectsToDatabase(qos:objectsToWrite:completion:) + 28 (<compiler-generated>:0)
22  Geory                         	0x0000000100948698 partial apply for closure #1 in writeObjectsToDatabase(qos:objectsToWrite:completion:) + 56
23  Geory                         	0x00000001008dff4c thunk for @escaping @callee_guaranteed () -> () + 28 (<compiler-generated>:0)
24  libdispatch.dylib             	0x00000001bf52e4b4 _dispatch_call_block_and_release + 32 (init.c:1518)
25  libdispatch.dylib             	0x00000001bf52ffdc _dispatch_client_callout + 20 (object.m:560)
26  libdispatch.dylib             	0x00000001bf541b8c _dispatch_root_queue_drain + 684 (inline_internal.h:2632)
27  libdispatch.dylib             	0x00000001bf542284 _dispatch_worker_thread2 + 164 (queue.c:7052)
28  libsystem_pthread.dylib       	0x0000000205ef4dbc _pthread_wqthread + 228 (pthread.c:2631)
29  libsystem_pthread.dylib       	0x0000000205ef4b98 start_wqthread + 8

Not sure if there is context to #5941 and/or #5937.

@fronck
Copy link

fronck commented Nov 1, 2022

@NZQN23 Thanks for reporting this. We will be looking into it.
Please let us know if you gain any additional insights or a reproduction that could help us.

@NZQN23
Copy link
Author

NZQN23 commented Nov 1, 2022

As with the other issues mentioned I was never able to reproduce them but receive huge amounts of crash reports.

@jedelbo
Copy link
Contributor

jedelbo commented Nov 17, 2022

We assume this could be fixed by #5993

@jedelbo jedelbo closed this as completed Nov 17, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 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

3 participants