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

Main thread issues #38

Open
alexisbronchart opened this issue Jun 7, 2024 · 0 comments
Open

Main thread issues #38

alexisbronchart opened this issue Jun 7, 2024 · 0 comments

Comments

@alexisbronchart
Copy link

alexisbronchart commented Jun 7, 2024

Hey, I'm using the picker from a SwiftUI view with the .emojiPicker modifier And I'm often getting these warnings (and even sometimes crashes I believe - I don't have a consistent way of repro this though) in MCEmojiPickerRepresentableController:

Screenshot 2024-06-07 at 09 44 02

Log output:

Main Thread Checker: UI API called on a background thread: -[UIViewController presentedViewController]
PID: 34514, TID: 393139, Thread name: (none), Queue name: com.apple.root.user-initiated-qos.cooperative, QoS: 25
Backtrace:
4   TestApp                               0x000000010127f9fc $s13MCEmojiPicker0aB23RepresentableControllerV012updateUIViewD0_7contextySo0fD0C_7SwiftUI0fdC7ContextVyACGtF + 1756
5   TestApp                               0x000000010127fe50 $s13MCEmojiPicker0aB23RepresentableControllerV7SwiftUI06UIViewdC0AadEP06updategD0_7contexty0gD4TypeQz_AD0gdC7ContextVyxGtFTW + 60
6   SwiftUI                             0x00000001cce102a8 OUTLINED_FUNCTION_70 + 3324
7   SwiftUI                             0x00000001cd4f8254 OUTLINED_FUNCTION_73 + 15220
8   SwiftUI                             0x00000001cd4f818c OUTLINED_FUNCTION_73 + 15020
9   SwiftUI                             0x00000001cd4dac3c OUTLINED_FUNCTION_16 + 18920
10  SwiftUI                             0x00000001cd4f802c OUTLINED_FUNCTION_73 + 14668
11  SwiftUI                             0x00000001cd4f7e44 OUTLINED_FUNCTION_73 + 14180
12  SwiftUI                             0x00000001cd4f7084 OUTLINED_FUNCTION_73 + 10660
13  SwiftUI                             0x00000001cc2697f4 __swift_memcpy128_8 + 1020
14  AttributeGraph                      0x00000001b9d4f5c4 _ZN2AG5Graph11UpdateStack6updateEv + 504
15  AttributeGraph                      0x00000001b9d4fd54 _ZN2AG5Graph16update_attributeENS_4data3ptrINS_4NodeEEEj + 432
16  AttributeGraph                      0x00000001b9d5d8d0 _ZN2AG8Subgraph6updateEj + 828
17  SwiftUI                             0x00000001cd42b714 OUTLINED_FUNCTION_0 + 10564
18  SwiftUI                             0x00000001cd52e2f0 OUTLINED_FUNCTION_20 + 12920
19  SwiftUI                             0x00000001cc9bd640 OUTLINED_FUNCTION_76 + 964
20  libswiftObservation.dylib           0x000000020a7b8cc8 $s11Observation0A8TrackingV08_installB0_7willSet03didE0yAC_yACYbcSgAGtFZAC2IdOAC5EntryVXEfU_yyYbcfU2_TATm + 40
21  libswiftObservation.dylib           0x000000020a7b8d6c $sIegh_ytIeghr_TRTA + 20
22  libswiftObservation.dylib           0x000000020a7b7730 $s11Observation0A9RegistrarV7ContextV7willSet_7keyPathyx_s03KeyG0Cyxq_GtAA10ObservableRzr0_lFTf4dnn_n + 636
23  libswiftObservation.dylib           0x000000020a7b7c38 $s11Observation0A9RegistrarV7willSet_7keyPathyx_s03KeyF0Cyxq_GtAA10ObservableRzr0_lFTf4dnn_n + 56
24  libswiftObservation.dylib           0x000000020a7b274c $s11Observation0A9RegistrarV12withMutation2of7keyPath_q0_x_s03KeyG0Cyxq_Gq0_yKXEtKAA10ObservableRzr1_lF + 76
25  TestApp                               0x00000001017e70a8 $s8UserFeed0aB5ModelC12withMutation7keyPath_q_s03KeyG0CyACxG_q_yKXEtKr0_lF + 268
26  TestApp                               0x00000001017e2750 $s8UserFeed0aB5ModelC10activities18OrderedCollections0E10DictionaryVySS12CommonModels8ActivityVGvs + 200
27  TestApp                               0x00000001017e2964 $s8UserFeed0aB5ModelC10activities18OrderedCollections0E10DictionaryVySS12CommonModels8ActivityVGvM.resume.0 + 52
28  TestApp                               0x00000001017e6ce4 $s8UserFeed0aB5ModelC19loadActivityDetails3for12CommonModels0E0VSS_tYaKFTY2_ + 308
29  libswift_Concurrency.dylib          0x000000020a8b410c _ZN5swift34runJobInEstablishedExecutorContextEPNS_3JobE + 324
30  libswift_Concurrency.dylib          0x000000020a8b4fd4 _ZL17swift_job_runImplPN5swift3JobENS_11ExecutorRefE + 80
31  libdispatch.dylib                   0x000000010347536c _dispatch_root_queue_drain + 372
32  libdispatch.dylib                   0x0000000103475f18 _dispatch_worker_thread2 + 256
33  libsystem_pthread.dylib             0x00000001033937d8 _pthread_wqthread + 224
34  libsystem_pthread.dylib             0x00000001033925d4 start_wqthread + 8

Any idea where this could come from? Or what I could do to investigate this further?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant