getsentry / sentry-capacitor

The official Sentry SDK for Capacitor

Home Page:https://sentry.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UI API called on background thread

valeriomazzeo opened this issue · comments

This is still happening on:

Capacitor 5.2.3
sentry/capacitor 0.12.2

Most likely what's happening is that users of https://github.com/getsentry/sentry-cocoa normally initialize that on applicationDidFinishLaunch, as per your example in the documentation, which runs on the main thread, so the iOS code is made with that assumption.

Meanwhile sentry-capacitor is just calling those methods from wherever thread they are coming from and in this specific case, callbacks from Capacitor usually happen on a background thread.

So either https://github.com/getsentry/sentry-cocoa makes sure to access the UI only from the main thread, removing the above mentioned assumption, or sentry-capacitor has to wrap the plugin calls in DispatchQueue.main.async.

=================================================================
Main Thread Checker: UI API called on a background thread: -[UIApplication connectedScenes]
PID: 599, TID: 38098, Thread name: (none), Queue name: bridge, QoS: 0
Backtrace:
4   Sentry                              0x0000000105f188b4 -[SentryUIApplication getApplicationConnectedScenes:] + 96
5   Sentry                              0x0000000105f189bc -[SentryUIApplication windows] + 148
6   Sentry                              0x0000000105e745f0 +[SentryCrashIntegration enrichScope:crashWrapper:] + 1632
7   Sentry                              0x0000000105e73df8 __40-[SentryCrashIntegration configureScope]_block_invoke + 120
8   Sentry                              0x0000000105eba8a8 -[SentryHub configureScope:] + 136
9   Sentry                              0x0000000105e73d14 -[SentryCrashIntegration configureScope] + 144
10  Sentry                              0x0000000105e7382c -[SentryCrashIntegration installWithOptions:] + 488
11  Sentry                              0x0000000105ef513c +[SentrySDK installIntegrations] + 1192
12  Sentry                              0x0000000105ef376c +[SentrySDK startWithOptions:] + 792
13  SentryCapacitor                     0x00000001059fc230 $s15SentryCapacitorAAC13initNativeSdkyySo13CAPPluginCallCF + 1044
14  SentryCapacitor                     0x00000001059fcdc0 $s15SentryCapacitorAAC13initNativeSdkyySo13CAPPluginCallCFTo + 52
15  Capacitor                           0x0000000105815528 $s9Capacitor0A6BridgeC12handleJSCall4callyAA0D0V_tFyycfU0_ + 856
16  Capacitor                           0x00000001058099d0 $sIeg_IeyB_TR + 48
17  libdispatch.dylib                   0x0000000105cac520 _dispatch_call_block_and_release + 32
18  libdispatch.dylib                   0x0000000105cae038 _dispatch_client_callout + 20
19  libdispatch.dylib                   0x0000000105cb60b0 _dispatch_lane_serial_drain + 984
20  libdispatch.dylib                   0x0000000105cb6df4 _dispatch_lane_invoke + 412
21  libdispatch.dylib                   0x0000000105cc3c74 _dispatch_workloop_worker_thread + 736
22  libsystem_pthread.dylib             0x00000001fc4c6ddc _pthread_wqthread + 288
23  libsystem_pthread.dylib             0x00000001fc4c6b7c start_wqthread + 8
2023-08-15 11:30:45.944410+0200 App[599:38098] [reports] Main Thread Checker: UI API called on a background thread: -[UIApplication connectedScenes]
PID: 599, TID: 38098, Thread name: (none), Queue name: bridge, QoS: 0
Backtrace:
4   Sentry                              0x0000000105f188b4 -[SentryUIApplication getApplicationConnectedScenes:] + 96
5   Sentry                              0x0000000105f189bc -[SentryUIApplication windows] + 148
6   Sentry                              0x0000000105e745f0 +[SentryCrashIntegration enrichScope:crashWrapper:] + 1632
7   Sentry                              0x0000000105e73df8 __40-[SentryCrashIntegration configureScope]_block_invoke + 120
8   Sentry                              0x0000000105eba8a8 -[SentryHub configureScope:] + 136
9   Sentry                              0x0000000105e73d14 -[SentryCrashIntegration configureScope] + 144
10  Sentry                              0x0000000105e7382c -[SentryCrashIntegration installWithOptions:] + 488
11  Sentry                              0x0000000105ef513c +[SentrySDK installIntegrations] + 1192
12  Sentry                              0x0000000105ef376c +[SentrySDK startWithOptions:] + 792
13  SentryCapacitor                     0x00000001059fc230 $s15SentryCapacitorAAC13initNativeSdkyySo13CAPPluginCallCF + 1044
14  SentryCapacitor                     0x00000001059fcdc0 $s15SentryCapacitorAAC13initNativeSdkyySo13CAPPluginCallCFTo + 52
15  Capacitor                           0x0000000105815528 $s9Capacitor0A6BridgeC12handleJSCall4callyAA0D0V_tFyycfU0_ + 856
16  Capacitor                           0x00000001058099d0 $sIeg_IeyB_TR + 48
17  libdispatch.dylib                   0x0000000105cac520 _dispatch_call_block_and_release + 32
18  libdispatch.dylib                   0x0000000105cae038 _dispatch_client_callout + 20
19  libdispatch.dylib                   0x0000000105cb60b0 _dispatch_lane_serial_drain + 984
20  libdispatch.dylib                   0x0000000105cb6df4 _dispatch_lane_invoke + 412
21  libdispatch.dylib                   0x0000000105cc3c74 _dispatch_workloop_worker_thread + 736
22  libsystem_pthread.dylib             0x00000001fc4c6ddc _pthread_wqthread + 288
23  libsystem_pthread.dylib             0x00000001fc4c6b7c start_wqthread + 8
=================================================================
Main Thread Checker: UI API called on a background thread: -[UIScene activationState]
PID: 599, TID: 38098, Thread name: (none), Queue name: bridge, QoS: 0
Backtrace:
4   Sentry                              0x0000000105f18a8c -[SentryUIApplication windows] + 356
5   Sentry                              0x0000000105e745f0 +[SentryCrashIntegration enrichScope:crashWrapper:] + 1632
6   Sentry                              0x0000000105e73df8 __40-[SentryCrashIntegration configureScope]_block_invoke + 120
7   Sentry                              0x0000000105eba8a8 -[SentryHub configureScope:] + 136
8   Sentry                              0x0000000105e73d14 -[SentryCrashIntegration configureScope] + 144
9   Sentry                              0x0000000105e7382c -[SentryCrashIntegration installWithOptions:] + 488
10  Sentry                              0x0000000105ef513c +[SentrySDK installIntegrations] + 1192
11  Sentry                              0x0000000105ef376c +[SentrySDK startWithOptions:] + 792
12  SentryCapacitor                     0x00000001059fc230 $s15SentryCapacitorAAC13initNativeSdkyySo13CAPPluginCallCF + 1044
13  SentryCapacitor                     0x00000001059fcdc0 $s15SentryCapacitorAAC13initNativeSdkyySo13CAPPluginCallCFTo + 52
14  Capacitor                           0x0000000105815528 $s9Capacitor0A6BridgeC12handleJSCall4callyAA0D0V_tFyycfU0_ + 856
15  Capacitor                           0x00000001058099d0 $sIeg_IeyB_TR + 48
16  libdispatch.dylib                   0x0000000105cac520 _dispatch_call_block_and_release + 32
17  libdispatch.dylib                   0x0000000105cae038 _dispatch_client_callout + 20
18  libdispatch.dylib                   0x0000000105cb60b0 _dispatch_lane_serial_drain + 984
19  libdispatch.dylib                   0x0000000105cb6df4 _dispatch_lane_invoke + 412
20  libdispatch.dylib                   0x0000000105cc3c74 _dispatch_workloop_worker_thread + 736
21  libsystem_pthread.dylib             0x00000001fc4c6ddc _pthread_wqthread + 288
22  libsystem_pthread.dylib             0x00000001fc4c6b7c start_wqthread + 8
2023-08-15 11:30:51.515917+0200 App[599:38098] [reports] Main Thread Checker: UI API called on a background thread: -[UIScene activationState]
PID: 599, TID: 38098, Thread name: (none), Queue name: bridge, QoS: 0
Backtrace:
4   Sentry                              0x0000000105f18a8c -[SentryUIApplication windows] + 356
5   Sentry                              0x0000000105e745f0 +[SentryCrashIntegration enrichScope:crashWrapper:] + 1632
6   Sentry                              0x0000000105e73df8 __40-[SentryCrashIntegration configureScope]_block_invoke + 120
7   Sentry                              0x0000000105eba8a8 -[SentryHub configureScope:] + 136
8   Sentry                              0x0000000105e73d14 -[SentryCrashIntegration configureScope] + 144
9   Sentry                              0x0000000105e7382c -[SentryCrashIntegration installWithOptions:] + 488
10  Sentry                              0x0000000105ef513c +[SentrySDK installIntegrations] + 1192
11  Sentry                              0x0000000105ef376c +[SentrySDK startWithOptions:] + 792
12  SentryCapacitor                     0x00000001059fc230 $s15SentryCapacitorAAC13initNativeSdkyySo13CAPPluginCallCF + 1044
13  SentryCapacitor                     0x00000001059fcdc0 $s15SentryCapacitorAAC13initNativeSdkyySo13CAPPluginCallCFTo + 52
14  Capacitor                           0x0000000105815528 $s9Capacitor0A6BridgeC12handleJSCall4callyAA0D0V_tFyycfU0_ + 856
15  Capacitor                           0x00000001058099d0 $sIeg_IeyB_TR + 48
16  libdispatch.dylib                   0x0000000105cac520 _dispatch_call_block_and_release + 32
17  libdispatch.dylib                   0x0000000105cae038 _dispatch_client_callout + 20
18  libdispatch.dylib                   0x0000000105cb60b0 _dispatch_lane_serial_drain + 984
19  libdispatch.dylib                   0x0000000105cb6df4 _dispatch_lane_invoke + 412
20  libdispatch.dylib                   0x0000000105cc3c74 _dispatch_workloop_worker_thread + 736
21  libsystem_pthread.dylib             0x00000001fc4c6ddc _pthread_wqthread + 288
22  libsystem_pthread.dylib             0x00000001fc4c6b7c start_wqthread + 8
SplashScreen.hideSplash: SplashScreen was automatically hidden after default timeout. You should call `SplashScreen.hide()` as soon as your web app is loaded (or increase the timeout). Read more at https://capacitorjs.com/docs/apis/splash-screen#hiding-the-splash-screen
=================================================================
Main Thread Checker: UI API called on a background thread: -[UIScene delegate]
PID: 599, TID: 38098, Thread name: (none), Queue name: bridge, QoS: 0
Backtrace:
4   Sentry                              0x0000000105f18ad0 -[SentryUIApplication windows] + 424
5   Sentry                              0x0000000105e745f0 +[SentryCrashIntegration enrichScope:crashWrapper:] + 1632
6   Sentry                              0x0000000105e73df8 __40-[SentryCrashIntegration configureScope]_block_invoke + 120
7   Sentry                              0x0000000105eba8a8 -[SentryHub configureScope:] + 136
8   Sentry                              0x0000000105e73d14 -[SentryCrashIntegration configureScope] + 144
9   Sentry                              0x0000000105e7382c -[SentryCrashIntegration installWithOptions:] + 488
10  Sentry                              0x0000000105ef513c +[SentrySDK installIntegrations] + 1192
11  Sentry                              0x0000000105ef376c +[SentrySDK startWithOptions:] + 792
12  SentryCapacitor                     0x00000001059fc230 $s15SentryCapacitorAAC13initNativeSdkyySo13CAPPluginCallCF + 1044
13  SentryCapacitor                     0x00000001059fcdc0 $s15SentryCapacitorAAC13initNativeSdkyySo13CAPPluginCallCFTo + 52
14  Capacitor                           0x0000000105815528 $s9Capacitor0A6BridgeC12handleJSCall4callyAA0D0V_tFyycfU0_ + 856
15  Capacitor                           0x00000001058099d0 $sIeg_IeyB_TR + 48
16  libdispatch.dylib                   0x0000000105cac520 _dispatch_call_block_and_release + 32
17  libdispatch.dylib                   0x0000000105cae038 _dispatch_client_callout + 20
18  libdispatch.dylib                   0x0000000105cb60b0 _dispatch_lane_serial_drain + 984
19  libdispatch.dylib                   0x0000000105cb6df4 _dispatch_lane_invoke + 412
20  libdispatch.dylib                   0x0000000105cc3c74 _dispatch_workloop_worker_thread + 736
21  libsystem_pthread.dylib             0x00000001fc4c6ddc _pthread_wqthread + 288
22  libsystem_pthread.dylib             0x00000001fc4c6b7c start_wqthread + 8
2023-08-15 11:30:51.667409+0200 App[599:38098] [reports] Main Thread Checker: UI API called on a background thread: -[UIScene delegate]
PID: 599, TID: 38098, Thread name: (none), Queue name: bridge, QoS: 0
Backtrace:
4   Sentry                              0x0000000105f18ad0 -[SentryUIApplication windows] + 424
5   Sentry                              0x0000000105e745f0 +[SentryCrashIntegration enrichScope:crashWrapper:] + 1632
6   Sentry                              0x0000000105e73df8 __40-[SentryCrashIntegration configureScope]_block_invoke + 120
7   Sentry                              0x0000000105eba8a8 -[SentryHub configureScope:] + 136
8   Sentry                              0x0000000105e73d14 -[SentryCrashIntegration configureScope] + 144
9   Sentry                              0x0000000105e7382c -[SentryCrashIntegration installWithOptions:] + 488
10  Sentry                              0x0000000105ef513c +[SentrySDK installIntegrations] + 1192
11  Sentry                              0x0000000105ef376c +[SentrySDK startWithOptions:] + 792
12  SentryCapacitor                     0x00000001059fc230 $s15SentryCapacitorAAC13initNativeSdkyySo13CAPPluginCallCF + 1044
13  SentryCapacitor                     0x00000001059fcdc0 $s15SentryCapacitorAAC13initNativeSdkyySo13CAPPluginCallCFTo + 52
14  Capacitor                           0x0000000105815528 $s9Capacitor0A6BridgeC12handleJSCall4callyAA0D0V_tFyycfU0_ + 856
15  Capacitor                           0x00000001058099d0 $sIeg_IeyB_TR + 48
16  libdispatch.dylib                   0x0000000105cac520 _dispatch_call_block_and_release + 32
17  libdispatch.dylib                   0x0000000105cae038 _dispatch_client_callout + 20
18  libdispatch.dylib                   0x0000000105cb60b0 _dispatch_lane_serial_drain + 984
19  libdispatch.dylib                   0x0000000105cb6df4 _dispatch_lane_invoke + 412
20  libdispatch.dylib                   0x0000000105cc3c74 _dispatch_workloop_worker_thread + 736
21  libsystem_pthread.dylib             0x00000001fc4c6ddc _pthread_wqthread + 288
22  libsystem_pthread.dylib             0x00000001fc4c6b7c start_wqthread + 8
=================================================================
Main Thread Checker: UI API called on a background thread: -[UIApplication delegate]
PID: 599, TID: 38098, Thread name: (none), Queue name: bridge, QoS: 0
Backtrace:
4   Sentry                              0x0000000105f18828 -[SentryUIApplication getApplicationDelegate:] + 64
5   Sentry                              0x0000000105f18c94 -[SentryUIApplication windows] + 876
6   Sentry                              0x0000000105e745f0 +[SentryCrashIntegration enrichScope:crashWrapper:] + 1632
7   Sentry                              0x0000000105e73df8 __40-[SentryCrashIntegration configureScope]_block_invoke + 120
8   Sentry                              0x0000000105eba8a8 -[SentryHub configureScope:] + 136
9   Sentry                              0x0000000105e73d14 -[SentryCrashIntegration configureScope] + 144
10  Sentry                              0x0000000105e7382c -[SentryCrashIntegration installWithOptions:] + 488
11  Sentry                              0x0000000105ef513c +[SentrySDK installIntegrations] + 1192
12  Sentry                              0x0000000105ef376c +[SentrySDK startWithOptions:] + 792
13  SentryCapacitor                     0x00000001059fc230 $s15SentryCapacitorAAC13initNativeSdkyySo13CAPPluginCallCF + 1044
14  SentryCapacitor                     0x00000001059fcdc0 $s15SentryCapacitorAAC13initNativeSdkyySo13CAPPluginCallCFTo + 52
15  Capacitor                           0x0000000105815528 $s9Capacitor0A6BridgeC12handleJSCall4callyAA0D0V_tFyycfU0_ + 856
16  Capacitor                           0x00000001058099d0 $sIeg_IeyB_TR + 48
17  libdispatch.dylib                   0x0000000105cac520 _dispatch_call_block_and_release + 32
18  libdispatch.dylib                   0x0000000105cae038 _dispatch_client_callout + 20
19  libdispatch.dylib                   0x0000000105cb60b0 _dispatch_lane_serial_drain + 984
20  libdispatch.dylib                   0x0000000105cb6df4 _dispatch_lane_invoke + 412
21  libdispatch.dylib                   0x0000000105cc3c74 _dispatch_workloop_worker_thread + 736
22  libsystem_pthread.dylib             0x00000001fc4c6ddc _pthread_wqthread + 288
23  libsystem_pthread.dylib             0x00000001fc4c6b7c start_wqthread + 8
2023-08-15 11:30:52.260468+0200 App[599:38098] [reports] Main Thread Checker: UI API called on a background thread: -[UIApplication delegate]
PID: 599, TID: 38098, Thread name: (none), Queue name: bridge, QoS: 0
Backtrace:
4   Sentry                              0x0000000105f18828 -[SentryUIApplication getApplicationDelegate:] + 64
5   Sentry                              0x0000000105f18c94 -[SentryUIApplication windows] + 876
6   Sentry                              0x0000000105e745f0 +[SentryCrashIntegration enrichScope:crashWrapper:] + 1632
7   Sentry                              0x0000000105e73df8 __40-[SentryCrashIntegration configureScope]_block_invoke + 120
8   Sentry                              0x0000000105eba8a8 -[SentryHub configureScope:] + 136
9   Sentry                              0x0000000105e73d14 -[SentryCrashIntegration configureScope] + 144
10  Sentry                              0x0000000105e7382c -[SentryCrashIntegration installWithOptions:] + 488
11  Sentry                              0x0000000105ef513c +[SentrySDK installIntegrations] + 1192
12  Sentry                              0x0000000105ef376c +[SentrySDK startWithOptions:] + 792
13  SentryCapacitor                     0x00000001059fc230 $s15SentryCapacitorAAC13initNativeSdkyySo13CAPPluginCallCF + 1044
14  SentryCapacitor                     0x00000001059fcdc0 $s15SentryCapacitorAAC13initNativeSdkyySo13CAPPluginCallCFTo + 52
15  Capacitor                           0x0000000105815528 $s9Capacitor0A6BridgeC12handleJSCall4callyAA0D0V_tFyycfU0_ + 856
16  Capacitor                           0x00000001058099d0 $sIeg_IeyB_TR + 48
17  libdispatch.dylib                   0x0000000105cac520 _dispatch_call_block_and_release + 32
18  libdispatch.dylib                   0x0000000105cae038 _dispatch_client_callout + 20
19  libdispatch.dylib                   0x0000000105cb60b0 _dispatch_lane_serial_drain + 984
20  libdispatch.dylib                   0x0000000105cb6df4 _dispatch_lane_invoke + 412
21  libdispatch.dylib                   0x0000000105cc3c74 _dispatch_workloop_worker_thread + 736
22  libsystem_pthread.dylib             0x00000001fc4c6ddc _pthread_wqthread + 288
23  libsystem_pthread.dylib             0x00000001fc4c6b7c start_wqthread + 8
=================================================================
Main Thread Checker: UI API called on a background thread: -[UIWindow screen]
PID: 599, TID: 38098, Thread name: (none), Queue name: bridge, QoS: 0
Backtrace:
4   Sentry                              0x0000000105e7464c +[SentryCrashIntegration enrichScope:crashWrapper:] + 1724
5   Sentry                              0x0000000105e73df8 __40-[SentryCrashIntegration configureScope]_block_invoke + 120
6   Sentry                              0x0000000105eba8a8 -[SentryHub configureScope:] + 136
7   Sentry                              0x0000000105e73d14 -[SentryCrashIntegration configureScope] + 144
8   Sentry                              0x0000000105e7382c -[SentryCrashIntegration installWithOptions:] + 488
9   Sentry                              0x0000000105ef513c +[SentrySDK installIntegrations] + 1192
10  Sentry                              0x0000000105ef376c +[SentrySDK startWithOptions:] + 792
11  SentryCapacitor                     0x00000001059fc230 $s15SentryCapacitorAAC13initNativeSdkyySo13CAPPluginCallCF + 1044
12  SentryCapacitor                     0x00000001059fcdc0 $s15SentryCapacitorAAC13initNativeSdkyySo13CAPPluginCallCFTo + 52
13  Capacitor                           0x0000000105815528 $s9Capacitor0A6BridgeC12handleJSCall4callyAA0D0V_tFyycfU0_ + 856
14  Capacitor                           0x00000001058099d0 $sIeg_IeyB_TR + 48
15  libdispatch.dylib                   0x0000000105cac520 _dispatch_call_block_and_release + 32
16  libdispatch.dylib                   0x0000000105cae038 _dispatch_client_callout + 20
17  libdispatch.dylib                   0x0000000105cb60b0 _dispatch_lane_serial_drain + 984
18  libdispatch.dylib                   0x0000000105cb6df4 _dispatch_lane_invoke + 412
19  libdispatch.dylib                   0x0000000105cc3c74 _dispatch_workloop_worker_thread + 736
20  libsystem_pthread.dylib             0x00000001fc4c6ddc _pthread_wqthread + 288
21  libsystem_pthread.dylib             0x00000001fc4c6b7c start_wqthread + 8
2023-08-15 11:30:52.369919+0200 App[599:38098] [reports] Main Thread Checker: UI API called on a background thread: -[UIWindow screen]
PID: 599, TID: 38098, Thread name: (none), Queue name: bridge, QoS: 0
Backtrace:
4   Sentry                              0x0000000105e7464c +[SentryCrashIntegration enrichScope:crashWrapper:] + 1724
5   Sentry                              0x0000000105e73df8 __40-[SentryCrashIntegration configureScope]_block_invoke + 120
6   Sentry                              0x0000000105eba8a8 -[SentryHub configureScope:] + 136
7   Sentry                              0x0000000105e73d14 -[SentryCrashIntegration configureScope] + 144
8   Sentry                              0x0000000105e7382c -[SentryCrashIntegration installWithOptions:] + 488
9   Sentry                              0x0000000105ef513c +[SentrySDK installIntegrations] + 1192
10  Sentry                              0x0000000105ef376c +[SentrySDK startWithOptions:] + 792
11  SentryCapacitor                     0x00000001059fc230 $s15SentryCapacitorAAC13initNativeSdkyySo13CAPPluginCallCF + 1044
12  SentryCapacitor                     0x00000001059fcdc0 $s15SentryCapacitorAAC13initNativeSdkyySo13CAPPluginCallCFTo + 52
13  Capacitor                           0x0000000105815528 $s9Capacitor0A6BridgeC12handleJSCall4callyAA0D0V_tFyycfU0_ + 856
14  Capacitor                           0x00000001058099d0 $sIeg_IeyB_TR + 48
15  libdispatch.dylib                   0x0000000105cac520 _dispatch_call_block_and_release + 32
16  libdispatch.dylib                   0x0000000105cae038 _dispatch_client_callout + 20
17  libdispatch.dylib                   0x0000000105cb60b0 _dispatch_lane_serial_drain + 984
18  libdispatch.dylib                   0x0000000105cb6df4 _dispatch_lane_invoke + 412
19  libdispatch.dylib                   0x0000000105cc3c74 _dispatch_workloop_worker_thread + 736
20  libsystem_pthread.dylib             0x00000001fc4c6ddc _pthread_wqthread + 288
21  libsystem_pthread.dylib             0x00000001fc4c6b7c start_wqthread + 8
=================================================================
Main Thread Checker: UI API called on a background thread: -[UIWindow rootViewController]
PID: 599, TID: 38098, Thread name: (none), Queue name: bridge, QoS: 0
Backtrace:
4   Sentry                              0x0000000105f202f0 -[SentryUIViewControllerSwizzling swizzleRootViewControllerFromUIApplication:] + 1136
5   Sentry                              0x0000000105f1e560 -[SentryUIViewControllerSwizzling start] + 84
6   Sentry                              0x0000000105ed7e18 -[SentryPerformanceTrackingIntegration installWithOptions:] + 536
7   Sentry                              0x0000000105ef513c +[SentrySDK installIntegrations] + 1192
8   Sentry                              0x0000000105ef376c +[SentrySDK startWithOptions:] + 792
9   SentryCapacitor                     0x00000001059fc230 $s15SentryCapacitorAAC13initNativeSdkyySo13CAPPluginCallCF + 1044
10  SentryCapacitor                     0x00000001059fcdc0 $s15SentryCapacitorAAC13initNativeSdkyySo13CAPPluginCallCFTo + 52
11  Capacitor                           0x0000000105815528 $s9Capacitor0A6BridgeC12handleJSCall4callyAA0D0V_tFyycfU0_ + 856
12  Capacitor                           0x00000001058099d0 $sIeg_IeyB_TR + 48
13  libdispatch.dylib                   0x0000000105cac520 _dispatch_call_block_and_release + 32
14  libdispatch.dylib                   0x0000000105cae038 _dispatch_client_callout + 20
15  libdispatch.dylib                   0x0000000105cb60b0 _dispatch_lane_serial_drain + 984
16  libdispatch.dylib                   0x0000000105cb6df4 _dispatch_lane_invoke + 412
17  libdispatch.dylib                   0x0000000105cc3c74 _dispatch_workloop_worker_thread + 736
18  libsystem_pthread.dylib             0x00000001fc4c6ddc _pthread_wqthread + 288
19  libsystem_pthread.dylib             0x00000001fc4c6b7c start_wqthread + 8
2023-08-15 11:30:52.489425+0200 App[599:38098] [reports] Main Thread Checker: UI API called on a background thread: -[UIWindow rootViewController]
PID: 599, TID: 38098, Thread name: (none), Queue name: bridge, QoS: 0
Backtrace:
4   Sentry                              0x0000000105f202f0 -[SentryUIViewControllerSwizzling swizzleRootViewControllerFromUIApplication:] + 1136
5   Sentry                              0x0000000105f1e560 -[SentryUIViewControllerSwizzling start] + 84
6   Sentry                              0x0000000105ed7e18 -[SentryPerformanceTrackingIntegration installWithOptions:] + 536
7   Sentry                              0x0000000105ef513c +[SentrySDK installIntegrations] + 1192
8   Sentry                              0x0000000105ef376c +[SentrySDK startWithOptions:] + 792
9   SentryCapacitor                     0x00000001059fc230 $s15SentryCapacitorAAC13initNativeSdkyySo13CAPPluginCallCF + 1044
10  SentryCapacitor                     0x00000001059fcdc0 $s15SentryCapacitorAAC13initNativeSdkyySo13CAPPluginCallCFTo + 52
11  Capacitor                           0x0000000105815528 $s9Capacitor0A6BridgeC12handleJSCall4callyAA0D0V_tFyycfU0_ + 856
12  Capacitor                           0x00000001058099d0 $sIeg_IeyB_TR + 48
13  libdispatch.dylib                   0x0000000105cac520 _dispatch_call_block_and_release + 32
14  libdispatch.dylib                   0x0000000105cae038 _dispatch_client_callout + 20
15  libdispatch.dylib                   0x0000000105cb60b0 _dispatch_lane_serial_drain + 984
16  libdispatch.dylib                   0x0000000105cb6df4 _dispatch_lane_invoke + 412
17  libdispatch.dylib                   0x0000000105cc3c74 _dispatch_workloop_worker_thread + 736
18  libsystem_pthread.dylib             0x00000001fc4c6ddc _pthread_wqthread + 288
19  libsystem_pthread.dylib             0x00000001fc4c6b7c start_wqthread + 8
=================================================================
Main Thread Checker: UI API called on a background thread: -[UIViewController childViewControllers]
PID: 599, TID: 38098, Thread name: (none), Queue name: bridge, QoS: 0
Backtrace:
4   Sentry                              0x0000000105f28f24 -[UIViewController(Sentry) sentry_descendantViewControllers] + 80
5   Sentry                              0x0000000105f204e8 -[SentryUIViewControllerSwizzling swizzleRootViewControllerAndDescendant:] + 72
6   Sentry                              0x0000000105f20450 -[SentryUIViewControllerSwizzling swizzleRootViewControllerFromUIApplication:] + 1488
7   Sentry                              0x0000000105f1e560 -[SentryUIViewControllerSwizzling start] + 84
8   Sentry                              0x0000000105ed7e18 -[SentryPerformanceTrackingIntegration installWithOptions:] + 536
9   Sentry                              0x0000000105ef513c +[SentrySDK installIntegrations] + 1192
10  Sentry                              0x0000000105ef376c +[SentrySDK startWithOptions:] + 792
11  SentryCapacitor                     0x00000001059fc230 $s15SentryCapacitorAAC13initNativeSdkyySo13CAPPluginCallCF + 1044
12  SentryCapacitor                     0x00000001059fcdc0 $s15SentryCapacitorAAC13initNativeSdkyySo13CAPPluginCallCFTo + 52
13  Capacitor                           0x0000000105815528 $s9Capacitor0A6BridgeC12handleJSCall4callyAA0D0V_tFyycfU0_ + 856
14  Capacitor                           0x00000001058099d0 $sIeg_IeyB_TR + 48
15  libdispatch.dylib                   0x0000000105cac520 _dispatch_call_block_and_release + 32
16  libdispatch.dylib                   0x0000000105cae038 _dispatch_client_callout + 20
17  libdispatch.dylib                   0x0000000105cb60b0 _dispatch_lane_serial_drain + 984
18  libdispatch.dylib                   0x0000000105cb6df4 _dispatch_lane_invoke + 412
19  libdispatch.dylib                   0x0000000105cc3c74 _dispatch_workloop_worker_thread + 736
20  libsystem_pthread.dylib             0x00000001fc4c6ddc _pthread_wqthread + 288
21  libsystem_pthread.dylib             0x00000001fc4c6b7c start_wqthread + 8
2023-08-15 11:30:52.605653+0200 App[599:38098] [reports] Main Thread Checker: UI API called on a background thread: -[UIViewController childViewControllers]
PID: 599, TID: 38098, Thread name: (none), Queue name: bridge, QoS: 0
Backtrace:
4   Sentry                              0x0000000105f28f24 -[UIViewController(Sentry) sentry_descendantViewControllers] + 80
5   Sentry                              0x0000000105f204e8 -[SentryUIViewControllerSwizzling swizzleRootViewControllerAndDescendant:] + 72
6   Sentry                              0x0000000105f20450 -[SentryUIViewControllerSwizzling swizzleRootViewControllerFromUIApplication:] + 1488
7   Sentry                              0x0000000105f1e560 -[SentryUIViewControllerSwizzling start] + 84
8   Sentry                              0x0000000105ed7e18 -[SentryPerformanceTrackingIntegration installWithOptions:] + 536
9   Sentry                              0x0000000105ef513c +[SentrySDK installIntegrations] + 1192
10  Sentry                              0x0000000105ef376c +[SentrySDK startWithOptions:] + 792
11  SentryCapacitor                     0x00000001059fc230 $s15SentryCapacitorAAC13initNativeSdkyySo13CAPPluginCallCF + 1044
12  SentryCapacitor                     0x00000001059fcdc0 $s15SentryCapacitorAAC13initNativeSdkyySo13CAPPluginCallCFTo + 52
13  Capacitor                           0x0000000105815528 $s9Capacitor0A6BridgeC12handleJSCall4callyAA0D0V_tFyycfU0_ + 856
14  Capacitor                           0x00000001058099d0 $sIeg_IeyB_TR + 48
15  libdispatch.dylib                   0x0000000105cac520 _dispatch_call_block_and_release + 32
16  libdispatch.dylib                   0x0000000105cae038 _dispatch_client_callout + 20
17  libdispatch.dylib                   0x0000000105cb60b0 _dispatch_lane_serial_drain + 984
18  libdispatch.dylib                   0x0000000105cb6df4 _dispatch_lane_invoke + 412
19  libdispatch.dylib                   0x0000000105cc3c74 _dispatch_workloop_worker_thread + 736
20  libsystem_pthread.dylib             0x00000001fc4c6ddc _pthread_wqthread + 288
21  libsystem_pthread.dylib             0x00000001fc4c6b7c start_wqthread + 8

Originally posted by @valeriomazzeo in #207 (comment)

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

This bug was fixed and the fix will be included on the next version. If the error persists, feel free to reopen this issue