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 on Persisted.subscript.getter #6126

Closed
NZQN23 opened this issue Dec 15, 2022 · 21 comments
Closed

Crash on Persisted.subscript.getter #6126

NZQN23 opened this issue Dec 15, 2022 · 21 comments
Assignees

Comments

@NZQN23
Copy link

NZQN23 commented Dec 15, 2022

Expected results

Get attribute data from Object

Actual Results

Crash

Core version

Core version: 12.13.0

0   libsystem_kernel.dylib        	0x000000020326b160 __pthread_kill + 8 (:-1)
1   libsystem_pthread.dylib       	0x00000002139881ac pthread_kill + 268 (pthread.c:1670)
2   libsystem_c.dylib             	0x00000001ccf70c8c abort + 180 (abort.c:118)
3   Realm                         	0x000000010155f6e8 please_report_this_issue_in_github_realm_realm_core_v_12_13_0 + 12
4   Realm                         	0x000000010155f9d0 realm::util::terminate_internal(std::__1::basic_stringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) + 260
5   Realm                         	0x000000010155f830 realm::util::terminate(char const*, char const*, long, std::initializer_list<realm::util::Printable>&&) + 328
6   Realm                         	0x000000010147fba4 realm::StringData realm::Obj::_get<realm::StringData>(realm::ColKey::Idx) const + 760
7   Realm                         	0x000000010129a75c objc_object* (anonymous namespace)::getBoxed<realm::StringData>(RLMObjectBase*, unsigned long) + 136 (RLMAccessor.mm:105)
8   RealmSwift                    	0x0000000101cccc5c static String._rlmGetProperty(_:_:) + 8 (BasicTypes.swift:217)
9   RealmSwift                    	0x0000000101cccc5c protocol witness for static _Persistable._rlmGetProperty(_:_:) in conformance String + 28 (<compiler-generated>:216)
10  RealmSwift                    	0x0000000101d1d934 Persisted.get(_:) + 712 (PersistedProperty.swift:181)
11  RealmSwift                    	0x0000000101d1d644 static Persisted.subscript.getter + 104 (PersistedProperty.swift:126)
12  MyAppName                         	0x0000000100e91dd0 VisitObject.identifier.getter + 52 (<compiler-generated>:0)
13  MyAppName                         	0x0000000100e91dd0 specialized updateWidgetData(completion:) + 2000 (WidgetDataHandling.swift:23)
14  MyAppName                         	0x0000000100e91554 default argument 0 of updateWidgetData(completion:) + 4 (Initialization.swift:51)
15  MyAppName                         	0x0000000100e91554 closure #1 in initializeApp() + 1044 (Initialization.swift:51)
16  MyAppName                         	0x0000000100e716b8 closure #1 in closure #1 in initializeDatabase(qos:shouldMigrate:shouldCompact:completion:) + 2964 (DatabaseManagement.swift:213)
17  MyAppName                         	0x0000000100e73b88 specialized autoreleasepool<A>(invoking:) + 32 (DatabaseManagement.swift:141)
18  MyAppName                         	0x0000000100e73b88 closure #1 in initializeDatabase(qos:shouldMigrate:shouldCompact:completion:) + 32 (<compiler-generated>:0)
19  MyAppName                         	0x0000000100e73b88 partial apply for closure #1 in initializeDatabase(qos:shouldMigrate:shouldCompact:completion:) + 68
20  MyAppName                         	0x0000000100e73d50 thunk for @escaping @callee_guaranteed () -> () + 28 (<compiler-generated>:0)
21  libdispatch.dylib             	0x00000001ccf0b4b4 _dispatch_call_block_and_release + 32 (init.c:1518)
22  libdispatch.dylib             	0x00000001ccf0cfdc _dispatch_client_callout + 20 (object.m:560)
23  libdispatch.dylib             	0x00000001ccf1eb8c _dispatch_root_queue_drain + 684 (inline_internal.h:2632)
24  libdispatch.dylib             	0x00000001ccf1f284 _dispatch_worker_thread2 + 164 (queue.c:7052)
25  libsystem_pthread.dylib       	0x0000000213981dbc _pthread_wqthread + 228 (pthread.c:2631)
26  libsystem_pthread.dylib       	0x0000000213981b98 start_wqthread + 8 (:-1)
@ironage
Copy link
Contributor

ironage commented Dec 16, 2022

Hi @NZQN23, thanks for reporting this. Are you able to share the Realm with us at [email protected]?

@sync-by-unito sync-by-unito bot added the Waiting-For-Reporter Waiting for more information from the reporter before we can proceed label Dec 16, 2022
@NZQN23
Copy link
Author

NZQN23 commented Dec 17, 2022

Hi @ironage, unfortunately I don't have any of those Realm files myself, I just see about 3-5 crashes like this in Xcode. I had severe problems in the last months with the issue of corrupted Realm files that you have fixed lately. Is it possible that this issue now is still derived from corrupted Realm files of users still using the app?

@github-actions github-actions bot added Needs-Attention Reporter has responded. Review comment. and removed Waiting-For-Reporter Waiting for more information from the reporter before we can proceed labels Dec 17, 2022
@NZQN23
Copy link
Author

NZQN23 commented Dec 30, 2022

Hello, do you have any update on this issue?

@ironage
Copy link
Contributor

ironage commented Jan 3, 2023

@NZQN23 yes, this issue could be rooted in a previously corrupted Realm. If it is due to corruption there is not a lot we can do, but if not we will need some other information to be able to track this one down, so if you keep seeing this, please continue to provide additional stack traces or any other information that could help.

@NZQN23
Copy link
Author

NZQN23 commented Jan 4, 2023

Thanks @ironage . Yes, I still see a lot of these crashes. Do you want me to post the stack traces here or send it to you via email?

@ironage
Copy link
Contributor

ironage commented Jan 4, 2023

@NZQN23 please post them on this public issue so that other members of my team can help (unless the information is sensitive).
Do you know if any of the crashes are occurring on a new Realm created after the corruption issue was patched?

@NZQN23
Copy link
Author

NZQN23 commented Jan 4, 2023

@ironage Unfortunately, I don‘t have this information. I also don‘t have access to any corrupted Realm files. I only see 1K+ monthly crashes on iOS -.-

@ironage
Copy link
Contributor

ironage commented Jan 4, 2023

@NZQN23 ok that is unfortunate, but understandable. It will likely be difficult to track down without some more information, but post what you do have and maybe a pattern will emerge.

@bmunkholm
Copy link
Contributor

@NZQN23 Are you still seeing these issues occurring?
If you experience this in XCode yourself, please do provide the Realm and provide the console output as well.

@sync-by-unito sync-by-unito bot removed the Needs-Attention Reporter has responded. Review comment. label Jan 16, 2023
@NZQN23
Copy link
Author

NZQN23 commented Jan 16, 2023

Yes, I still get these crashes on a daily basis. But I still could not reproduce it myself.

@bmunkholm
Copy link
Contributor

@NZQN23 Can you extract any other information about this? More samples of full stack traces perhaps if they are any different.
Which Swift SDK version are you using?

@tgoyne Can you see anything useful from the stack trace? Or do you have clarifying questions?

@NZQN23
Copy link
Author

NZQN23 commented Jan 17, 2023

@bmunkholm I am using 12.13.0 - do you want me to post the other stack traces here or via email? If latter, to which address?

@jedelbo
Copy link
Contributor

jedelbo commented Jan 17, 2023

@leemaguire @tgoyne I am not sure in which context the getBoxed function is called. Could it be that the transaction in which the Obj object is constructed is no longer existing? This could explain that the ref that is obtained through the Array::get() function would fail the alignment assertion (which seems to be the only possible cause of the crash).

@bmunkholm
Copy link
Contributor

@NZQN23 Here is great. Feel free to add it as "Collapsible content"

Details Stacktrace....

@tgoyne
Copy link
Member

tgoyne commented Jan 17, 2023

The first thing we do in getBoxed() is check obj.is_valid() and throw an exception if it returns false.

@tgoyne
Copy link
Member

tgoyne commented Jan 17, 2023

The stack trace is mostly very unremarkable; it's just the normal path for a property getter (in this case a non-optional String). The one curious bit is that the call to terminate is happening at +760, but Obj::_getrealm::StringData(realm::ColKey::Idx) is only 736 bytes in a arm64 -O3 build of 12.3.0, and quite a bit smaller in debug or O2 builds. This points to something weird going on, but I don't know what.

@NZQN23
Copy link
Author

NZQN23 commented Jan 29, 2023

Sorry, I had very bad connectivity the last two weeks. Here are some more stack traces I could find for this issue. To me they look same but they definitely are from individual crash logs.

0   libsystem_kernel.dylib        	0x000000020326b160 __pthread_kill + 8 (:-1)
1   libsystem_pthread.dylib       	0x00000002139881ac pthread_kill + 268 (pthread.c:1670)
2   libsystem_c.dylib             	0x00000001ccf70c8c abort + 180 (abort.c:118)
3   Realm                         	0x000000010155f6e8 please_report_this_issue_in_github_realm_realm_core_v_12_13_0 + 12
4   Realm                         	0x000000010155f9d0 realm::util::terminate_internal(std::__1::basic_stringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) + 260
5   Realm                         	0x000000010155f830 realm::util::terminate(char const*, char const*, long, std::initializer_list<realm::util::Printable>&&) + 328
6   Realm                         	0x000000010147fba4 realm::StringData realm::Obj::_get<realm::StringData>(realm::ColKey::Idx) const + 760
7   Realm                         	0x000000010129a75c objc_object* (anonymous namespace)::getBoxed<realm::StringData>(RLMObjectBase*, unsigned long) + 136 (RLMAccessor.mm:105)
8   RealmSwift                    	0x0000000101cccc5c static String._rlmGetProperty(_:_:) + 8 (BasicTypes.swift:217)
9   RealmSwift                    	0x0000000101cccc5c protocol witness for static _Persistable._rlmGetProperty(_:_:) in conformance String + 28 (<compiler-generated>:216)
10  RealmSwift                    	0x0000000101d1d934 Persisted.get(_:) + 712 (PersistedProperty.swift:181)
11  RealmSwift                    	0x0000000101d1d644 static Persisted.subscript.getter + 104 (PersistedProperty.swift:126)
12  MyAppName                         	0x0000000100e91dd0 VisitObject.identifier.getter + 52 (<compiler-generated>:0)
13  MyAppName                         	0x0000000100e91dd0 specialized updateWidgetData(completion:) + 2000 (WidgetDataHandling.swift:23)
14  MyAppName                         	0x0000000100e91554 default argument 0 of updateWidgetData(completion:) + 4 (Initialization.swift:51)
15  MyAppName                         	0x0000000100e91554 closure #1 in initializeMyAppName() + 1044 (Initialization.swift:51)
16  MyAppName                         	0x0000000100e716b8 closure #1 in closure #1 in initializeDatabase(qos:shouldMigrate:shouldCompact:completion:) + 2964 (DatabaseManagement.swift:213)
17  MyAppName                         	0x0000000100e73b88 specialized autoreleasepool<A>(invoking:) + 32 (DatabaseManagement.swift:141)
18  MyAppName                         	0x0000000100e73b88 closure #1 in initializeDatabase(qos:shouldMigrate:shouldCompact:completion:) + 32 (<compiler-generated>:0)
19  MyAppName                         	0x0000000100e73b88 partial apply for closure #1 in initializeDatabase(qos:shouldMigrate:shouldCompact:completion:) + 68
20  MyAppName                         	0x0000000100e73d50 thunk for @escaping @callee_guaranteed () -> () + 28 (<compiler-generated>:0)
21  libdispatch.dylib             	0x00000001ccf0b4b4 _dispatch_call_block_and_release + 32 (init.c:1518)
22  libdispatch.dylib             	0x00000001ccf0cfdc _dispatch_client_callout + 20 (object.m:560)
23  libdispatch.dylib             	0x00000001ccf1eb8c _dispatch_root_queue_drain + 684 (inline_internal.h:2632)
24  libdispatch.dylib             	0x00000001ccf1f284 _dispatch_worker_thread2 + 164 (queue.c:7052)
25  libsystem_pthread.dylib       	0x0000000213981dbc _pthread_wqthread + 228 (pthread.c:2631)
26  libsystem_pthread.dylib       	0x0000000213981b98 start_wqthread + 8 (:-1)
0   libsystem_kernel.dylib        	0x000000020326b160 __pthread_kill + 8 (:-1)
1   libsystem_pthread.dylib       	0x00000002139881ac pthread_kill + 268 (pthread.c:1670)
2   libsystem_c.dylib             	0x00000001ccf70c8c abort + 180 (abort.c:118)
3   Realm                         	0x000000010515f6e8 please_report_this_issue_in_github_realm_realm_core_v_12_13_0 + 12
4   Realm                         	0x000000010515f9d0 realm::util::terminate_internal(std::__1::basic_stringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) + 260
5   Realm                         	0x000000010515f830 realm::util::terminate(char const*, char const*, long, std::initializer_list<realm::util::Printable>&&) + 328
6   Realm                         	0x000000010507fba4 realm::StringData realm::Obj::_get<realm::StringData>(realm::ColKey::Idx) const + 760
7   Realm                         	0x0000000104e9a75c objc_object* (anonymous namespace)::getBoxed<realm::StringData>(RLMObjectBase*, unsigned long) + 136 (RLMAccessor.mm:105)
8   RealmSwift                    	0x00000001058ccc5c static String._rlmGetProperty(_:_:) + 8 (BasicTypes.swift:217)
9   RealmSwift                    	0x00000001058ccc5c protocol witness for static _Persistable._rlmGetProperty(_:_:) in conformance String + 28 (<compiler-generated>:216)
10  RealmSwift                    	0x000000010591d934 Persisted.get(_:) + 712 (PersistedProperty.swift:181)
11  RealmSwift                    	0x000000010591d644 static Persisted.subscript.getter + 104 (PersistedProperty.swift:126)
12  MyAppName                         	0x0000000104a8ddd0 VisitObject.identifier.getter + 52 (<compiler-generated>:0)
13  MyAppName                         	0x0000000104a8ddd0 specialized updateWidgetData(completion:) + 2000 (WidgetDataHandling.swift:23)
14  MyAppName                         	0x0000000104a8d554 default argument 0 of updateWidgetData(completion:) + 4 (Initialization.swift:51)
15  MyAppName                         	0x0000000104a8d554 closure #1 in initializeMyAppName() + 1044 (Initialization.swift:51)
16  MyAppName                         	0x0000000104a6d6b8 closure #1 in closure #1 in initializeDatabase(qos:shouldMigrate:shouldCompact:completion:) + 2964 (DatabaseManagement.swift:213)
17  MyAppName                         	0x0000000104a6fb88 specialized autoreleasepool<A>(invoking:) + 32 (DatabaseManagement.swift:141)
18  MyAppName                         	0x0000000104a6fb88 closure #1 in initializeDatabase(qos:shouldMigrate:shouldCompact:completion:) + 32 (<compiler-generated>:0)
19  MyAppName                         	0x0000000104a6fb88 partial apply for closure #1 in initializeDatabase(qos:shouldMigrate:shouldCompact:completion:) + 68
20  MyAppName                         	0x0000000104a6fd50 thunk for @escaping @callee_guaranteed () -> () + 28 (<compiler-generated>:0)
21  libdispatch.dylib             	0x00000001ccf0b4b4 _dispatch_call_block_and_release + 32 (init.c:1518)
22  libdispatch.dylib             	0x00000001ccf0cfdc _dispatch_client_callout + 20 (object.m:560)
23  libdispatch.dylib             	0x00000001ccf1eb8c _dispatch_root_queue_drain + 684 (inline_internal.h:2632)
24  libdispatch.dylib             	0x00000001ccf1f284 _dispatch_worker_thread2 + 164 (queue.c:7052)
25  libsystem_pthread.dylib       	0x0000000213981dbc _pthread_wqthread + 228 (pthread.c:2631)
26  libsystem_pthread.dylib       	0x0000000213981b98 start_wqthread + 8 (:-1)
0   libsystem_kernel.dylib        	0x000000020326b160 __pthread_kill + 8 (:-1)
1   libsystem_pthread.dylib       	0x00000002139881ac pthread_kill + 268 (pthread.c:1670)
2   libsystem_c.dylib             	0x00000001ccf70c8c abort + 180 (abort.c:118)
3   Realm                         	0x0000000104eb76e8 please_report_this_issue_in_github_realm_realm_core_v_12_13_0 + 12
4   Realm                         	0x0000000104eb79d0 realm::util::terminate_internal(std::__1::basic_stringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) + 260
5   Realm                         	0x0000000104eb7830 realm::util::terminate(char const*, char const*, long, std::initializer_list<realm::util::Printable>&&) + 328
6   Realm                         	0x0000000104dd7ba4 realm::StringData realm::Obj::_get<realm::StringData>(realm::ColKey::Idx) const + 760
7   Realm                         	0x0000000104bf275c objc_object* (anonymous namespace)::getBoxed<realm::StringData>(RLMObjectBase*, unsigned long) + 136 (RLMAccessor.mm:105)
8   RealmSwift                    	0x0000000105624c5c static String._rlmGetProperty(_:_:) + 8 (BasicTypes.swift:217)
9   RealmSwift                    	0x0000000105624c5c protocol witness for static _Persistable._rlmGetProperty(_:_:) in conformance String + 28 (<compiler-generated>:216)
10  RealmSwift                    	0x0000000105675934 Persisted.get(_:) + 712 (PersistedProperty.swift:181)
11  RealmSwift                    	0x0000000105675644 static Persisted.subscript.getter + 104 (PersistedProperty.swift:126)
12  MyAppName                         	0x0000000104805dd0 VisitObject.identifier.getter + 52 (<compiler-generated>:0)
13  MyAppName                         	0x0000000104805dd0 specialized updateWidgetData(completion:) + 2000 (WidgetDataHandling.swift:23)
14  MyAppName                         	0x0000000104805554 default argument 0 of updateWidgetData(completion:) + 4 (Initialization.swift:51)
15  MyAppName                         	0x0000000104805554 closure #1 in initializeMyAppName() + 1044 (Initialization.swift:51)
16  MyAppName                         	0x00000001047e56b8 closure #1 in closure #1 in initializeDatabase(qos:shouldMigrate:shouldCompact:completion:) + 2964 (DatabaseManagement.swift:213)
17  MyAppName                         	0x00000001047e7b88 specialized autoreleasepool<A>(invoking:) + 32 (DatabaseManagement.swift:141)
18  MyAppName                         	0x00000001047e7b88 closure #1 in initializeDatabase(qos:shouldMigrate:shouldCompact:completion:) + 32 (<compiler-generated>:0)
19  MyAppName                         	0x00000001047e7b88 partial apply for closure #1 in initializeDatabase(qos:shouldMigrate:shouldCompact:completion:) + 68
20  MyAppName                         	0x00000001047e7d50 thunk for @escaping @callee_guaranteed () -> () + 28 (<compiler-generated>:0)
21  libdispatch.dylib             	0x00000001ccf0b4b4 _dispatch_call_block_and_release + 32 (init.c:1518)
22  libdispatch.dylib             	0x00000001ccf0cfdc _dispatch_client_callout + 20 (object.m:560)
23  libdispatch.dylib             	0x00000001ccf1eb8c _dispatch_root_queue_drain + 684 (inline_internal.h:2632)
24  libdispatch.dylib             	0x00000001ccf1f284 _dispatch_worker_thread2 + 164 (queue.c:7052)
25  libsystem_pthread.dylib       	0x0000000213981dbc _pthread_wqthread + 228 (pthread.c:2631)
26  libsystem_pthread.dylib       	0x0000000213981b98 start_wqthread + 8 (:-1)
0   libsystem_kernel.dylib        	0x000000020326b160 __pthread_kill + 8 (:-1)
1   libsystem_pthread.dylib       	0x00000002139881ac pthread_kill + 268 (pthread.c:1670)
2   libsystem_c.dylib             	0x00000001ccf70c8c abort + 180 (abort.c:118)
3   Realm                         	0x00000001052e36e8 please_report_this_issue_in_github_realm_realm_core_v_12_13_0 + 12
4   Realm                         	0x00000001052e39d0 realm::util::terminate_internal(std::__1::basic_stringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) + 260
5   Realm                         	0x00000001052e3830 realm::util::terminate(char const*, char const*, long, std::initializer_list<realm::util::Printable>&&) + 328
6   Realm                         	0x0000000105203ba4 realm::StringData realm::Obj::_get<realm::StringData>(realm::ColKey::Idx) const + 760
7   Realm                         	0x000000010501e75c objc_object* (anonymous namespace)::getBoxed<realm::StringData>(RLMObjectBase*, unsigned long) + 136 (RLMAccessor.mm:105)
8   RealmSwift                    	0x0000000105a50c5c static String._rlmGetProperty(_:_:) + 8 (BasicTypes.swift:217)
9   RealmSwift                    	0x0000000105a50c5c protocol witness for static _Persistable._rlmGetProperty(_:_:) in conformance String + 28 (<compiler-generated>:216)
10  RealmSwift                    	0x0000000105aa1934 Persisted.get(_:) + 712 (PersistedProperty.swift:181)
11  RealmSwift                    	0x0000000105aa1644 static Persisted.subscript.getter + 104 (PersistedProperty.swift:126)
12  MyAppName                         	0x0000000104b99dd0 VisitObject.identifier.getter + 52 (<compiler-generated>:0)
13  MyAppName                         	0x0000000104b99dd0 specialized updateWidgetData(completion:) + 2000 (WidgetDataHandling.swift:23)
14  MyAppName                         	0x0000000104b99554 default argument 0 of updateWidgetData(completion:) + 4 (Initialization.swift:51)
15  MyAppName                         	0x0000000104b99554 closure #1 in initializeMyAppName() + 1044 (Initialization.swift:51)
16  MyAppName                         	0x0000000104b796b8 closure #1 in closure #1 in initializeDatabase(qos:shouldMigrate:shouldCompact:completion:) + 2964 (DatabaseManagement.swift:213)
17  MyAppName                         	0x0000000104b7bb88 specialized autoreleasepool<A>(invoking:) + 32 (DatabaseManagement.swift:141)
18  MyAppName                         	0x0000000104b7bb88 closure #1 in initializeDatabase(qos:shouldMigrate:shouldCompact:completion:) + 32 (<compiler-generated>:0)
19  MyAppName                         	0x0000000104b7bb88 partial apply for closure #1 in initializeDatabase(qos:shouldMigrate:shouldCompact:completion:) + 68
20  MyAppName                         	0x0000000104b7bd50 thunk for @escaping @callee_guaranteed () -> () + 28 (<compiler-generated>:0)
21  libdispatch.dylib             	0x00000001ccf0b4b4 _dispatch_call_block_and_release + 32 (init.c:1518)
22  libdispatch.dylib             	0x00000001ccf0cfdc _dispatch_client_callout + 20 (object.m:560)
23  libdispatch.dylib             	0x00000001ccf1eb8c _dispatch_root_queue_drain + 684 (inline_internal.h:2632)
24  libdispatch.dylib             	0x00000001ccf1f284 _dispatch_worker_thread2 + 164 (queue.c:7052)
25  libsystem_pthread.dylib       	0x0000000213981dbc _pthread_wqthread + 228 (pthread.c:2631)
26  libsystem_pthread.dylib       	0x0000000213981b98 start_wqthread + 8 (:-1)
0   libsystem_kernel.dylib        	0x000000020326b160 __pthread_kill + 8 (:-1)
1   libsystem_pthread.dylib       	0x00000002139881ac pthread_kill + 268 (pthread.c:1670)
2   libsystem_c.dylib             	0x00000001ccf70c8c abort + 180 (abort.c:118)
3   Realm                         	0x00000001055436e8 please_report_this_issue_in_github_realm_realm_core_v_12_13_0 + 12
4   Realm                         	0x00000001055439d0 realm::util::terminate_internal(std::__1::basic_stringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) + 260
5   Realm                         	0x0000000105543830 realm::util::terminate(char const*, char const*, long, std::initializer_list<realm::util::Printable>&&) + 328
6   Realm                         	0x0000000105463ba4 realm::StringData realm::Obj::_get<realm::StringData>(realm::ColKey::Idx) const + 760
7   Realm                         	0x000000010527e75c objc_object* (anonymous namespace)::getBoxed<realm::StringData>(RLMObjectBase*, unsigned long) + 136 (RLMAccessor.mm:105)
8   RealmSwift                    	0x0000000105cb0c5c static String._rlmGetProperty(_:_:) + 8 (BasicTypes.swift:217)
9   RealmSwift                    	0x0000000105cb0c5c protocol witness for static _Persistable._rlmGetProperty(_:_:) in conformance String + 28 (<compiler-generated>:216)
10  RealmSwift                    	0x0000000105d01934 Persisted.get(_:) + 712 (PersistedProperty.swift:181)
11  RealmSwift                    	0x0000000105d01644 static Persisted.subscript.getter + 104 (PersistedProperty.swift:126)
12  MyAppName                         	0x0000000104de9dd0 VisitObject.identifier.getter + 52 (<compiler-generated>:0)
13  MyAppName                         	0x0000000104de9dd0 specialized updateWidgetData(completion:) + 2000 (WidgetDataHandling.swift:23)
14  MyAppName                         	0x0000000104de9554 default argument 0 of updateWidgetData(completion:) + 4 (Initialization.swift:51)
15  MyAppName                         	0x0000000104de9554 closure #1 in initializeMyAppName() + 1044 (Initialization.swift:51)
16  MyAppName                         	0x0000000104dc96b8 closure #1 in closure #1 in initializeDatabase(qos:shouldMigrate:shouldCompact:completion:) + 2964 (DatabaseManagement.swift:213)
17  MyAppName                         	0x0000000104dcbb88 specialized autoreleasepool<A>(invoking:) + 32 (DatabaseManagement.swift:141)
18  MyAppName                         	0x0000000104dcbb88 closure #1 in initializeDatabase(qos:shouldMigrate:shouldCompact:completion:) + 32 (<compiler-generated>:0)
19  MyAppName                         	0x0000000104dcbb88 partial apply for closure #1 in initializeDatabase(qos:shouldMigrate:shouldCompact:completion:) + 68
20  MyAppName                         	0x0000000104dcbd50 thunk for @escaping @callee_guaranteed () -> () + 28 (<compiler-generated>:0)
21  libdispatch.dylib             	0x00000001ccf0b4b4 _dispatch_call_block_and_release + 32 (init.c:1518)
22  libdispatch.dylib             	0x00000001ccf0cfdc _dispatch_client_callout + 20 (object.m:560)
23  libdispatch.dylib             	0x00000001ccf1eb8c _dispatch_root_queue_drain + 684 (inline_internal.h:2632)
24  libdispatch.dylib             	0x00000001ccf1f284 _dispatch_worker_thread2 + 164 (queue.c:7052)
25  libsystem_pthread.dylib       	0x0000000213981dbc _pthread_wqthread + 228 (pthread.c:2631)
26  libsystem_pthread.dylib       	0x0000000213981b98 start_wqthread + 8 (:-1)
0   libsystem_kernel.dylib        	0x000000020326b160 __pthread_kill + 8
1   libsystem_pthread.dylib       	0x00000002139881ac pthread_kill + 268 (pthread.c:1670)
2   libsystem_c.dylib             	0x00000001ccf70c8c abort + 180 (abort.c:118)
3   Realm                         	0x00000001049036e8 please_report_this_issue_in_github_realm_realm_core_v_12_13_0 + 12
4   Realm                         	0x00000001049039d0 realm::util::terminate_internal(std::__1::basic_stringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) + 260
5   Realm                         	0x0000000104903830 realm::util::terminate(char const*, char const*, long, std::initializer_list<realm::util::Printable>&&) + 328
6   Realm                         	0x0000000104823ba4 realm::StringData realm::Obj::_get<realm::StringData>(realm::ColKey::Idx) const + 760
7   Realm                         	0x000000010463e75c objc_object* (anonymous namespace)::getBoxed<realm::StringData>(RLMObjectBase*, unsigned long) + 136 (RLMAccessor.mm:105)
8   RealmSwift                    	0x0000000105070c5c static String._rlmGetProperty(_:_:) + 8 (BasicTypes.swift:217)
9   RealmSwift                    	0x0000000105070c5c protocol witness for static _Persistable._rlmGetProperty(_:_:) in conformance String + 28 (<compiler-generated>:216)
10  RealmSwift                    	0x00000001050c1934 Persisted.get(_:) + 712 (PersistedProperty.swift:181)
11  RealmSwift                    	0x00000001050c1644 static Persisted.subscript.getter + 104 (PersistedProperty.swift:126)
12  MyAppName                         	0x0000000104249dd0 VisitObject.identifier.getter + 52 (<compiler-generated>:0)
13  MyAppName                         	0x0000000104249dd0 specialized updateWidgetData(completion:) + 2000 (WidgetDataHandling.swift:23)
14  MyAppName                         	0x0000000104249554 default argument 0 of updateWidgetData(completion:) + 4 (Initialization.swift:51)
15  MyAppName                         	0x0000000104249554 closure #1 in initializeMyAppName() + 1044 (Initialization.swift:51)
16  MyAppName                         	0x00000001042296b8 closure #1 in closure #1 in initializeDatabase(qos:shouldMigrate:shouldCompact:completion:) + 2964 (DatabaseManagement.swift:213)
17  MyAppName                         	0x000000010422bb88 specialized autoreleasepool<A>(invoking:) + 32 (DatabaseManagement.swift:141)
18  MyAppName                         	0x000000010422bb88 closure #1 in initializeDatabase(qos:shouldMigrate:shouldCompact:completion:) + 32 (<compiler-generated>:0)
19  MyAppName                         	0x000000010422bb88 partial apply for closure #1 in initializeDatabase(qos:shouldMigrate:shouldCompact:completion:) + 68
20  MyAppName                         	0x000000010422bd50 thunk for @escaping @callee_guaranteed () -> () + 28 (<compiler-generated>:0)
21  libdispatch.dylib             	0x00000001ccf0b4b4 _dispatch_call_block_and_release + 32 (init.c:1518)
22  libdispatch.dylib             	0x00000001ccf0cfdc _dispatch_client_callout + 20 (object.m:560)
23  libdispatch.dylib             	0x00000001ccf1eb8c _dispatch_root_queue_drain + 684 (inline_internal.h:2632)
24  libdispatch.dylib             	0x00000001ccf1f284 _dispatch_worker_thread2 + 164 (queue.c:7052)
25  libsystem_pthread.dylib       	0x0000000213981dbc _pthread_wqthread + 228 (pthread.c:2631)
26  libsystem_pthread.dylib       	0x0000000213981b98 start_wqthread + 8
0   libsystem_kernel.dylib        	0x000000020326b160 __pthread_kill + 8 (:-1)
1   libsystem_pthread.dylib       	0x00000002139881ac pthread_kill + 268 (pthread.c:1670)
2   libsystem_c.dylib             	0x00000001ccf70c8c abort + 180 (abort.c:118)
3   Realm                         	0x0000000102e676e8 please_report_this_issue_in_github_realm_realm_core_v_12_13_0 + 12
4   Realm                         	0x0000000102e679d0 realm::util::terminate_internal(std::__1::basic_stringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) + 260
5   Realm                         	0x0000000102e67830 realm::util::terminate(char const*, char const*, long, std::initializer_list<realm::util::Printable>&&) + 328
6   Realm                         	0x0000000102d87ba4 realm::StringData realm::Obj::_get<realm::StringData>(realm::ColKey::Idx) const + 760
7   Realm                         	0x0000000102ba275c objc_object* (anonymous namespace)::getBoxed<realm::StringData>(RLMObjectBase*, unsigned long) + 136 (RLMAccessor.mm:105)
8   RealmSwift                    	0x00000001035d4c5c static String._rlmGetProperty(_:_:) + 8 (BasicTypes.swift:217)
9   RealmSwift                    	0x00000001035d4c5c protocol witness for static _Persistable._rlmGetProperty(_:_:) in conformance String + 28 (<compiler-generated>:216)
10  RealmSwift                    	0x0000000103625934 Persisted.get(_:) + 712 (PersistedProperty.swift:181)
11  RealmSwift                    	0x0000000103625644 static Persisted.subscript.getter + 104 (PersistedProperty.swift:126)
12  MyAppName                         	0x00000001027b5dd0 VisitObject.identifier.getter + 52 (<compiler-generated>:0)
13  MyAppName                         	0x00000001027b5dd0 specialized updateWidgetData(completion:) + 2000 (WidgetDataHandling.swift:23)
14  MyAppName                         	0x00000001027b5554 default argument 0 of updateWidgetData(completion:) + 4 (Initialization.swift:51)
15  MyAppName                         	0x00000001027b5554 closure #1 in initializeMyAppName() + 1044 (Initialization.swift:51)
16  MyAppName                         	0x00000001027956b8 closure #1 in closure #1 in initializeDatabase(qos:shouldMigrate:shouldCompact:completion:) + 2964 (DatabaseManagement.swift:213)
17  MyAppName                         	0x0000000102797b88 specialized autoreleasepool<A>(invoking:) + 32 (DatabaseManagement.swift:141)
18  MyAppName                         	0x0000000102797b88 closure #1 in initializeDatabase(qos:shouldMigrate:shouldCompact:completion:) + 32 (<compiler-generated>:0)
19  MyAppName                         	0x0000000102797b88 partial apply for closure #1 in initializeDatabase(qos:shouldMigrate:shouldCompact:completion:) + 68
20  MyAppName                         	0x0000000102797d50 thunk for @escaping @callee_guaranteed () -> () + 28 (<compiler-generated>:0)
21  libdispatch.dylib             	0x00000001ccf0b4b4 _dispatch_call_block_and_release + 32 (init.c:1518)
22  libdispatch.dylib             	0x00000001ccf0cfdc _dispatch_client_callout + 20 (object.m:560)
23  libdispatch.dylib             	0x00000001ccf1eb8c _dispatch_root_queue_drain + 684 (inline_internal.h:2632)
24  libdispatch.dylib             	0x00000001ccf1f284 _dispatch_worker_thread2 + 164 (queue.c:7052)
25  libsystem_pthread.dylib       	0x0000000213981dbc _pthread_wqthread + 228 (pthread.c:2631)
26  libsystem_pthread.dylib       	0x0000000213981b98 start_wqthread + 8 (:-1)
0   libsystem_kernel.dylib        	0x00000001ee08f674 __pthread_kill + 8 (:-1)
1   libsystem_pthread.dylib       	0x00000001fe7f31ac pthread_kill + 268 (pthread.c:1670)
2   libsystem_c.dylib             	0x00000001b7bf0c8c abort + 180 (abort.c:118)
3   Realm                         	0x0000000104abf6e8 please_report_this_issue_in_github_realm_realm_core_v_12_13_0 + 12
4   Realm                         	0x0000000104abf9d0 realm::util::terminate_internal(std::__1::basic_stringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) + 260
5   Realm                         	0x0000000104abf830 realm::util::terminate(char const*, char const*, long, std::initializer_list<realm::util::Printable>&&) + 328
6   Realm                         	0x00000001049dfba4 realm::StringData realm::Obj::_get<realm::StringData>(realm::ColKey::Idx) const + 760
7   Realm                         	0x00000001047fa75c objc_object* (anonymous namespace)::getBoxed<realm::StringData>(RLMObjectBase*, unsigned long) + 136 (RLMAccessor.mm:105)
8   RealmSwift                    	0x000000010522ccb8 static String._rlmGetProperty(_:_:) + 8 (BasicTypes.swift:217)
9   RealmSwift                    	0x000000010522ccb8 protocol witness for static _Persistable._rlmGetProperty(_:_:) in conformance String + 28 (<compiler-generated>:216)
10  RealmSwift                    	0x000000010527d910 Persisted.get(_:) + 712 (PersistedProperty.swift:181)
11  RealmSwift                    	0x000000010527d620 static Persisted.subscript.getter + 104 (PersistedProperty.swift:126)
12  MyAppName                         	0x0000000104454a40 VisitObject.identifier.getter + 52 (ListViewController.swift:0)
13  MyAppName                         	0x0000000104454a40 closure #1 in closure #1 in ListViewController.createTableViewData(completion:) + 7184
14  MyAppName                         	0x000000010445fbc0 specialized autoreleasepool<A>(invoking:) + 28 (ListViewController.swift:534)
15  MyAppName                         	0x000000010445fbc0 closure #1 in ListViewController.createTableViewData(completion:) + 28 (<compiler-generated>:0)
16  MyAppName                         	0x000000010445fbc0 partial apply for closure #1 in ListViewController.createTableViewData(completion:) + 56
17  MyAppName                         	0x000000010441cfb0 thunk for @escaping @callee_guaranteed () -> () + 28 (<compiler-generated>:0)
18  libdispatch.dylib             	0x00000001b7b8b460 _dispatch_call_block_and_release + 32 (init.c:1518)
19  libdispatch.dylib             	0x00000001b7b8cf88 _dispatch_client_callout + 20 (object.m:560)
20  libdispatch.dylib             	0x00000001b7b9eb8c _dispatch_root_queue_drain + 684 (inline_internal.h:2632)
21  libdispatch.dylib             	0x00000001b7b9f284 _dispatch_worker_thread2 + 164 (queue.c:7082)
22  libsystem_pthread.dylib       	0x00000001fe7ecdbc _pthread_wqthread + 228 (pthread.c:2631)
23  libsystem_pthread.dylib       	0x00000001fe7ecb98 start_wqthread + 8 (:-1)

@NZQN23
Copy link
Author

NZQN23 commented Feb 16, 2023

I keep getting these crashes even with a newer Realm version:

0   libsystem_kernel.dylib        	0x000000020955f674 __pthread_kill + 8 (:-1)
1   libsystem_pthread.dylib       	0x0000000219cc31ac pthread_kill + 268 (pthread.c:1670)
2   libsystem_c.dylib             	0x00000001d30c0c8c abort + 180 (abort.c:118)
3   Realm                         	0x0000000100b4d10c please_report_this_issue_in_github_realm_realm_core_v_13_4_0 + 12
4   Realm                         	0x0000000100b4d3f4 realm::util::terminate_internal(std::__1::basic_stringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) + 260
5   Realm                         	0x0000000100b4d254 realm::util::terminate(char const*, char const*, long, std::initializer_list<realm::util::Printable>&&) + 328
6   Realm                         	0x0000000100a6cb50 realm::StringData realm::Obj::_get<realm::StringData>(realm::ColKey::Idx) const + 764
7   Realm                         	0x0000000100882c5c objc_object* (anonymous namespace)::getBoxed<realm::StringData>(RLMObjectBase*, unsigned long) + 136 (RLMAccessor.mm:105)
8   RealmSwift                    	0x00000001012d75a8 static String._rlmGetProperty(_:_:) + 8 (BasicTypes.swift:217)
9   RealmSwift                    	0x00000001012d75a8 protocol witness for static _Persistable._rlmGetProperty(_:_:) in conformance String + 28 (<compiler-generated>:216)
10  RealmSwift                    	0x000000010132640c Persisted.get(_:) + 712 (PersistedProperty.swift:181)
11  RealmSwift                    	0x000000010132611c static Persisted.subscript.getter + 104 (PersistedProperty.swift:126)
12  MyAppName                         	0x000000010045c9f0 VisitObject.identifier.getter + 52 (<compiler-generated>:0)
13  MyAppName                         	0x000000010045c9f0 specialized updateWidgetData(completion:) + 2032 (WidgetDataHandling.swift:23)
14  MyAppName                         	0x000000010045c154 default argument 0 of updateWidgetData(completion:) + 4 (Initialization.swift:51)
15  MyAppName                         	0x000000010045c154 closure #1 in initializeMyAppName() + 1044 (Initialization.swift:51)
16  MyAppName                         	0x000000010043e810 closure #1 in closure #1 in initializeDatabase(qos:shouldMigrate:shouldCompact:completion:) + 3096 (DatabaseManagement.swift:213)
17  MyAppName                         	0x0000000100441264 specialized autoreleasepool<A>(invoking:) + 32 (DatabaseManagement.swift:141)
18  MyAppName                         	0x0000000100441264 closure #1 in initializeDatabase(qos:shouldMigrate:shouldCompact:completion:) + 32 (<compiler-generated>:0)
19  MyAppName                         	0x0000000100441264 partial apply for closure #1 in initializeDatabase(qos:shouldMigrate:shouldCompact:completion:) + 68
20  MyAppName                         	0x000000010047a104 thunk for @escaping @callee_guaranteed () -> () + 28 (<compiler-generated>:0)
21  libdispatch.dylib             	0x00000001d305b460 _dispatch_call_block_and_release + 32 (init.c:1518)
22  libdispatch.dylib             	0x00000001d305cf88 _dispatch_client_callout + 20 (object.m:560)
23  libdispatch.dylib             	0x00000001d306eb8c _dispatch_root_queue_drain + 684 (inline_internal.h:2632)
24  libdispatch.dylib             	0x00000001d306f284 _dispatch_worker_thread2 + 164 (queue.c:7082)
25  libsystem_pthread.dylib       	0x0000000219cbcdbc _pthread_wqthread + 228 (pthread.c:2631)
26  libsystem_pthread.dylib       	0x0000000219cbcb98 start_wqthread + 8 (:-1)

@jedelbo
Copy link
Contributor

jedelbo commented May 15, 2023

@NZQN23 Is this issue still relevant? All these stacktraces does not provide more information, and based on what we have here there is not much to work on.

@sync-by-unito sync-by-unito bot added the Waiting-For-Reporter Waiting for more information from the reporter before we can proceed label May 15, 2023
@NZQN23
Copy link
Author

NZQN23 commented May 16, 2023

No, I have not experienced any more of those crashes.

@github-actions github-actions bot added Needs-Attention Reporter has responded. Review comment. and removed Waiting-For-Reporter Waiting for more information from the reporter before we can proceed labels May 16, 2023
@jedelbo
Copy link
Contributor

jedelbo commented Jun 21, 2023

Ok, thanks. I will close this issue.

@jedelbo jedelbo closed this as completed Jun 21, 2023
@sync-by-unito sync-by-unito bot removed the Needs-Attention Reporter has responded. Review comment. label Jun 21, 2023
@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

5 participants