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

App built on Xcode 14.3.1 with realm 10.42.0 crashes in iOS 17 in Realm notification Listener. #8357

Closed
danielvivek-zuddl opened this issue Sep 13, 2023 · 3 comments
Assignees
Labels
Encryption:Off Frequency:Always More-information-needed More information is needed to progress. The issue will close automatically in 2 weeks. O-Community Repro:Always SDK-Use:Local T-Bug Waiting-For-Reporter Waiting for more information from the reporter before we can proceed

Comments

@danielvivek-zuddl
Copy link

How frequently does the bug occur?

Always

Description

The expected behavior is that the app works seamlessly in new iOS 17.

IDE- Xcode 14.3.1
Realm version - 10.42.0
OS Version - iOS 17

The app works in iOS 16.6 and below seemlessly, however, the app keeps crashing in Realm notification listener when accessing data from the realm db.
Screenshot 2023-09-13 at 12 52 19 PM

Stacktrace & log output

# Crashlytics - Stack trace
# Application: com.zuddl.catalystconference
# Platform: apple
# Version: 1.0.8 (1)
# Issue: fa5a4b16783ef6ad194deeb3c8d6c3ac
# Session: b59147a967894d8095bd6f178d777092_DNE_0_v2
# Date: Sun Sep 10 2023 12:52:20 GMT+0530 (India Standard Time)

Crashed: com.apple.main-thread
0   SwiftUI                        0x148c794 __swift_memcpy216_8 + 19312
1   SwiftUI                        0xc00b20 OUTLINED_FUNCTION_8 + 23960
2   SwiftUI                        0x1f2940 OUTLINED_FUNCTION_4 + 225204
3   AttributeGraph                 0xb854 AG::Graph::UpdateStack::update() + 512
4   AttributeGraph                 0x2504 AG::Graph::update_attribute(AG::data::ptr<AG::Node>, unsigned int) + 424
5   AttributeGraph                 0x1ddc AG::Graph::input_value_ref_slow(AG::data::ptr<AG::Node>, AG::AttributeID, unsigned int, unsigned int, AGSwiftMetadata const*, unsigned char&, long) + 720
6   AttributeGraph                 0x1970 AGGraphGetValue + 228
7   SwiftUI                        0x448514 OUTLINED_FUNCTION_37 + 1916520
8   SwiftUI                        0x5f1d24 OUTLINED_FUNCTION_37 + 3659384
9   AttributeGraph                 0xb854 AG::Graph::UpdateStack::update() + 512
10  AttributeGraph                 0x2504 AG::Graph::update_attribute(AG::data::ptr<AG::Node>, unsigned int) + 424
11  AttributeGraph                 0x1ddc AG::Graph::input_value_ref_slow(AG::data::ptr<AG::Node>, AG::AttributeID, unsigned int, unsigned int, AGSwiftMetadata const*, unsigned char&, long) + 720
12  AttributeGraph                 0x1970 AGGraphGetValue + 228
13  SwiftUI                        0x10969f8 OUTLINED_FUNCTION_85 + 456712
14  AttributeGraph                 0xb854 AG::Graph::UpdateStack::update() + 512
15  AttributeGraph                 0x2504 AG::Graph::update_attribute(AG::data::ptr<AG::Node>, unsigned int) + 424
16  AttributeGraph                 0x1ddc AG::Graph::input_value_ref_slow(AG::data::ptr<AG::Node>, AG::AttributeID, unsigned int, unsigned int, AGSwiftMetadata const*, unsigned char&, long) + 720
17  AttributeGraph                 0x1970 AGGraphGetValue + 228
18  SwiftUI                        0x12120a8 OUTLINED_FUNCTION_11 + 16076
19  SwiftUI                        0x130fd2c __swift_allocate_boxed_opaque_existential_1Tm + 268
20  AttributeGraph                 0xb854 AG::Graph::UpdateStack::update() + 512
21  AttributeGraph                 0x2504 AG::Graph::update_attribute(AG::data::ptr<AG::Node>, unsigned int) + 424
22  AttributeGraph                 0x1ddc AG::Graph::input_value_ref_slow(AG::data::ptr<AG::Node>, AG::AttributeID, unsigned int, unsigned int, AGSwiftMetadata const*, unsigned char&, long) + 720
23  AttributeGraph                 0x1970 AGGraphGetValue + 228
24  SwiftUI                        0x10a0740 OUTLINED_FUNCTION_85 + 496976
25  AttributeGraph                 0xb854 AG::Graph::UpdateStack::update() + 512
26  AttributeGraph                 0x2504 AG::Graph::update_attribute(AG::data::ptr<AG::Node>, unsigned int) + 424
27  AttributeGraph                 0x1ddc AG::Graph::input_value_ref_slow(AG::data::ptr<AG::Node>, AG::AttributeID, unsigned int, unsigned int, AGSwiftMetadata const*, unsigned char&, long) + 720
28  AttributeGraph                 0x1970 AGGraphGetValue + 228
29  SwiftUI                        0x1089ae4 OUTLINED_FUNCTION_85 + 403700
30  AttributeGraph                 0xb854 AG::Graph::UpdateStack::update() + 512
31  AttributeGraph                 0x2504 AG::Graph::update_attribute(AG::data::ptr<AG::Node>, unsigned int) + 424
32  AttributeGraph                 0x1ddc AG::Graph::input_value_ref_slow(AG::data::ptr<AG::Node>, AG::AttributeID, unsigned int, unsigned int, AGSwiftMetadata const*, unsigned char&, long) + 720
33  AttributeGraph                 0x1970 AGGraphGetValue + 228
34  SwiftUI                        0x3dd790 OUTLINED_FUNCTION_37 + 1478884
35  SwiftUI                        0x3c4190 OUTLINED_FUNCTION_37 + 1374948
36  SwiftUI                        0x66660c objectdestroy.3469Tm + 258320
37  AttributeGraph                 0xb854 AG::Graph::UpdateStack::update() + 512
38  AttributeGraph                 0x2504 AG::Graph::update_attribute(AG::data::ptr<AG::Node>, unsigned int) + 424
39  AttributeGraph                 0x1ddc AG::Graph::input_value_ref_slow(AG::data::ptr<AG::Node>, AG::AttributeID, unsigned int, unsigned int, AGSwiftMetadata const*, unsigned char&, long) + 720
40  AttributeGraph                 0x1970 AGGraphGetValue + 228
41  SwiftUI                        0x12083a4 OUTLINED_FUNCTION_8 + 12576
42  SwiftUI                        0x1207a18 OUTLINED_FUNCTION_8 + 10132
43  SwiftUI                        0x130fd2c __swift_allocate_boxed_opaque_existential_1Tm + 268
44  AttributeGraph                 0xb854 AG::Graph::UpdateStack::update() + 512
45  AttributeGraph                 0x2504 AG::Graph::update_attribute(AG::data::ptr<AG::Node>, unsigned int) + 424
46  AttributeGraph                 0x1ddc AG::Graph::input_value_ref_slow(AG::data::ptr<AG::Node>, AG::AttributeID, unsigned int, unsigned int, AGSwiftMetadata const*, unsigned char&, long) + 720
47  AttributeGraph                 0x1970 AGGraphGetValue + 228
48  SwiftUI                        0x1089ae4 OUTLINED_FUNCTION_85 + 403700
49  AttributeGraph                 0xb854 AG::Graph::UpdateStack::update() + 512
50  AttributeGraph                 0x2504 AG::Graph::update_attribute(AG::data::ptr<AG::Node>, unsigned int) + 424
51  AttributeGraph                 0x1ddc AG::Graph::input_value_ref_slow(AG::data::ptr<AG::Node>, AG::AttributeID, unsigned int, unsigned int, AGSwiftMetadata const*, unsigned char&, long) + 720
52  AttributeGraph                 0x1970 AGGraphGetValue + 228
53  SwiftUI                        0x12083a4 OUTLINED_FUNCTION_8 + 12576
54  SwiftUI                        0x1207a18 OUTLINED_FUNCTION_8 + 10132
55  SwiftUI                        0x130fd2c __swift_allocate_boxed_opaque_existential_1Tm + 268
56  AttributeGraph                 0xb854 AG::Graph::UpdateStack::update() + 512
57  AttributeGraph                 0x2504 AG::Graph::update_attribute(AG::data::ptr<AG::Node>, unsigned int) + 424
58  AttributeGraph                 0x1bfc AG::Graph::input_value_ref_slow(AG::data::ptr<AG::Node>, AG::AttributeID, unsigned int, unsigned int, AGSwiftMetadata const*, unsigned char&, long) + 240
59  AttributeGraph                 0xc5b0 AGGraphGetInputValue + 248
60  SwiftUI                        0x12bdc9c OUTLINED_FUNCTION_21 + 33584
61  SwiftUI                        0x12bc0f8 OUTLINED_FUNCTION_21 + 26508
62  SwiftUI                        0x12bdaf4 OUTLINED_FUNCTION_21 + 33160
63  SwiftUI                        0x12c22a8 OUTLINED_FUNCTION_21 + 51516
64  SwiftUI                        0x12c26e4 OUTLINED_FUNCTION_21 + 52600
65  SwiftUI                        0x1b51540 OUTLINED_FUNCTION_4 + 11164
66  SwiftUI                        0x1b524b8 OUTLINED_FUNCTION_4 + 15124
67  SwiftUI                        0x1b5f4b4 OUTLINED_FUNCTION_4 + 68368
68  SwiftUI                        0x1b57158 OUTLINED_FUNCTION_4 + 34740
69  SwiftUI                        0x1b5908c OUTLINED_FUNCTION_4 + 42728
70  SwiftUI                        0x1b5083c OUTLINED_FUNCTION_4 + 7832
71  SwiftUI                        0x1b4f098 OUTLINED_FUNCTION_4 + 1780
72  SwiftUI                        0x11834e8 OUTLINED_FUNCTION_14 + 6524
73  SwiftUI                        0x1183398 OUTLINED_FUNCTION_14 + 6188
74  SwiftUI                        0x1183ee4 OUTLINED_FUNCTION_14 + 9080
75  SwiftUI                        0x18f9af4 OUTLINED_FUNCTION_24 + 344
76  SwiftUI                        0x1181c1c OUTLINED_FUNCTION_14 + 176
77  SwiftUI                        0x6de9f4 OUTLINED_FUNCTION_15 + 1640
78  SwiftUI                        0xb6a870 OUTLINED_FUNCTION_1 + 52
79  SwiftUI                        0x6e2b90 OUTLINED_FUNCTION_15 + 18436
80  libswiftCore.dylib             0x29fd8 Optional.map<A>(_:) + 508
81  SwiftUI                        0x6de5e4 OUTLINED_FUNCTION_15 + 600
82  SwiftUI                        0x9636ac OUTLINED_FUNCTION_135 + 1062480
83  SwiftUI                        0x18d4b6c OUTLINED_FUNCTION_0 + 13732
84  SwiftUI                        0x18d46c8 OUTLINED_FUNCTION_0 + 12544
85  SwiftUI                        0x130fd2c __swift_allocate_boxed_opaque_existential_1Tm + 268
86  AttributeGraph                 0xb854 AG::Graph::UpdateStack::update() + 512
87  AttributeGraph                 0x2504 AG::Graph::update_attribute(AG::data::ptr<AG::Node>, unsigned int) + 424
88  AttributeGraph                 0xcf58 AG::Subgraph::update(unsigned int) + 848
89  SwiftUI                        0x1758204 OUTLINED_FUNCTION_2 + 14264
90  SwiftUI                        0x1759640 OUTLINED_FUNCTION_2 + 19444
91  SwiftUI                        0xe00668 OUTLINED_FUNCTION_15 + 42780
92  SwiftUI                        0x184ba3c OUTLINED_FUNCTION_1 + 63044
93  SwiftUI                        0x183e224 OUTLINED_FUNCTION_1 + 7724
94  SwiftUI                        0xdf78ac OUTLINED_FUNCTION_15 + 6496
95  SwiftUI                        0x1759608 OUTLINED_FUNCTION_2 + 19388
96  SwiftUI                        0x17594f4 OUTLINED_FUNCTION_2 + 19112
97  SwiftUI                        0x11474f0 OUTLINED_FUNCTION_11 + 40
98  SwiftUI                        0x74f128 OUTLINED_FUNCTION_4 + 34284
99  SwiftUI                        0x74f094 OUTLINED_FUNCTION_4 + 34136
100 SwiftUI                        0x74f1c0 OUTLINED_FUNCTION_4 + 34436
101 CoreFoundation                 0x361dc __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 36
102 CoreFoundation                 0x34be4 __CFRunLoopDoObservers + 548
103 CoreFoundation                 0x34300 __CFRunLoopRun + 1028
104 CoreFoundation                 0x33e18 CFRunLoopRunSpecific + 608
105 GraphicsServices               0x35ec GSEventRunModal + 164
106 UIKitCore                      0x22f0fc -[UIApplication _run] + 888
107 UIKitCore                      0x22e738 UIApplicationMain + 340
108 SwiftUI                        0x114d384 OUTLINED_FUNCTION_31 + 604
109 SwiftUI                        0x114d1c8 OUTLINED_FUNCTION_31 + 160
110 SwiftUI                        0xdca464 OUTLINED_FUNCTION_26 + 2196
111 Zuddl Portal                   0x7298 main + 10 (PortalApp.swift:10)
112 ???                            0x1d2774d44 (Missing)

Thread
0  libsystem_kernel.dylib         0x9730 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x19b0 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x1a04 start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x9730 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x19b0 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x1a04 start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x9730 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x19b0 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x1a04 start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x9730 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x19b0 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x1a04 start_wqthread + 8

com.apple.uikit.eventfetch-thread
0  libsystem_kernel.dylib         0x11d8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0xf70 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0xe88 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0xcc8 mach_msg + 24
4  CoreFoundation                 0x364bc __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x343b4 __CFRunLoopRun + 1208
6  CoreFoundation                 0x33e18 CFRunLoopRunSpecific + 608
7  Foundation                     0x2d4cc -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8  Foundation                     0x5c234 -[NSRunLoop(NSRunLoop) runUntilDate:] + 64
9  UIKitCore                      0x190e9c -[UIEventFetcher threadMain] + 420
10 Foundation                     0xb3154 __NSThread__start__ + 732
11 libsystem_pthread.dylib        0x24d4 _pthread_start + 136
12 libsystem_pthread.dylib        0x1a10 thread_start + 8

Thread
0  libsystem_kernel.dylib         0x9730 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x19b0 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x1a04 start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x9730 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x19b0 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x1a04 start_wqthread + 8

com.google.firebase.crashlytics.MachExceptionServer
0  FirebaseCrashlytics            0x20aa0 FIRCLSProcessRecordAllThreads + 184
1  FirebaseCrashlytics            0x20e80 FIRCLSProcessRecordAllThreads + 1176
2  FirebaseCrashlytics            0x17f94 FIRCLSHandler + 48
3  FirebaseCrashlytics            0x1a7f0 FIRCLSMachExceptionServer + 688
4  libsystem_pthread.dylib        0x24d4 _pthread_start + 136
5  libsystem_pthread.dylib        0x1a10 thread_start + 8

Thread
0  libsystem_kernel.dylib         0x9730 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x19b0 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x1a04 start_wqthread + 8

com.apple.NSURLConnectionLoader
0  libsystem_kernel.dylib         0x11d8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0xf70 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0xe88 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0xcc8 mach_msg + 24
4  CoreFoundation                 0x364bc __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x343b4 __CFRunLoopRun + 1208
6  CoreFoundation                 0x33e18 CFRunLoopRunSpecific + 608
7  CFNetwork                      0x258798 _CFURLStorageSessionCopyIdentifier + 69132
8  Foundation                     0xb3154 __NSThread__start__ + 732
9  libsystem_pthread.dylib        0x24d4 _pthread_start + 136
10 libsystem_pthread.dylib        0x1a10 thread_start + 8

Thread
0  libsystem_pthread.dylib        0x19fc start_wqthread + 438

Realm notification listener
0  libsystem_kernel.dylib         0xef6c kevent + 8
1  Realm                          0x3d25cc realm::_impl::ExternalCommitHelper::listen() + 156
2  Realm                          0x3d2728 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>>(void*) + 52
3  libsystem_pthread.dylib        0x24d4 _pthread_start + 136
4  libsystem_pthread.dylib        0x1a10 thread_start + 8

Thread
0  libsystem_kernel.dylib         0x9730 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x19b0 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x1a04 start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x9730 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x19b0 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x1a04 start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x9730 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x19b0 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x1a04 start_wqthread + 8

Can you reproduce the bug?

Always

Reproduction Steps

Link to the app: https://apps.apple.com/us/app/catalyst-conference-app/id6451417673

STR:

  1. Login into the app
  2. Crashes after login
  3. If already logged in then crashes on app launch

Please connect me for the credentials.

Version

10.42.0

What Atlas Services are you using?

Local Database only

Are you using encryption?

No

Platform OS and version(s)

iOS 17

Build environment

Xcode version: 14.3.1 or Xcode 15 beta
Cocoapod version: 1.12.1

@danielvivek-zuddl
Copy link
Author

@tonyarnold @timanglade @marcboquet @stennie Can anyone help with this?

@nirinchev
Copy link
Member

It is not clear to me that the crash is Realm-related. The stacktrace indicates that the main thread crashed and I can't see any Realm-related frames there. Is this still an issue and can you clarify why you believe it's caused by Realm?

@sync-by-unito sync-by-unito bot added More-information-needed More information is needed to progress. The issue will close automatically in 2 weeks. Waiting-For-Reporter Waiting for more information from the reporter before we can proceed labels Feb 5, 2024
Copy link

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

@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.
Labels
Encryption:Off Frequency:Always More-information-needed More information is needed to progress. The issue will close automatically in 2 weeks. O-Community Repro:Always SDK-Use:Local T-Bug Waiting-For-Reporter Waiting for more information from the reporter before we can proceed
Projects
None yet
Development

No branches or pull requests

2 participants