OneSignal / OneSignal-iOS-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your native iOS app with OneSignal. https://onesignal.com
Other
496 stars 263 forks source link

[Bug]: Thread Performance Checker warning on OneSignal.initialize #1385

Open lundstroem opened 8 months ago

lundstroem commented 8 months ago

What happened?

Thead Performance Checker warning when calling OneSignal.initialize (OneSignalXCFramework 5.1.0)

Steps to reproduce?

- Enable Thread Performance Checker in schemes
- Run OneSignal.initialize

What did you expect to happen?

I would expect no warning to be shown

OneSignal iOS SDK version

OneSignalXCFramework 5.1.0

iOS version

15

Specific iOS version

* iOS 17.4

Relevant log output

Thread Performance Checker: Thread running at User-initiated quality-of-service class waiting on a thread without a QoS class specified (base priority 33). Investigate ways to avoid priority inversions
PID: 2130, TID: 793297
Backtrace
=================================================================
3   CFNetwork                           0x00000001a0caca08 estimatedPropertyListSize + 37652
4   CFNetwork                           0x00000001a0b173a8 cfnTranslateCFError + 2688
5   libdispatch.dylib                   0x00000001038da7bc _dispatch_client_callout + 20
6   libdispatch.dylib                   0x00000001038dc34c _dispatch_once_callout + 140
7   CFNetwork                           0x00000001a0b1737c cfnTranslateCFError + 2644
8   CFNetwork                           0x00000001a0cac8c8 estimatedPropertyListSize + 37332
9   libdispatch.dylib                   0x00000001038da7bc _dispatch_client_callout + 20
10  libdispatch.dylib                   0x00000001038dc34c _dispatch_once_callout + 140

11  CFNetwork                           0x00000001a0cac790 estimatedPropertyListSize + 37020
12  CFNetwork                           0x00000001a0cac81c estimatedPropertyListSize + 37160
13  libdispatch.dylib                   0x00000001038da7bc _dispatch_client_callout + 20
14  libdispatch.dylib                   0x00000001038dc34c _dispatch_once_callout + 140
15  CFNetwork                           0x00000001a0cac804 estimatedPropertyListSize + 37136
16  CFNetwork                           0x00000001a0c490a8 CFHTTPCookieStorageUnscheduleFromRunLoop + 277468
17  CFNetwork                           0x00000001a0b4ad94 _CFStreamErrorFromCFError + 111308
18  CFNetwork                           0x00000001a0b4f974 _CFStreamErrorFromCFError + 130732
19  CFNetwork                           0x00000001a0b342b0 _CFStreamErrorFromCFError + 18408
20  CFNetwork                           0x00000001a0b3af18 _CFStreamErrorFromCFError + 46160
21  CFNetwork                           0x00000001a0b4f1d0 _CFStreamErrorFromCFError + 128776
22  CFNetwork                           0x00000001a0bab334 _CFStreamErrorFromCFError + 505964
23  CFNetwork                           0x00000001a0aab910 CFNetServiceBrowserSearchForServices + 3476
24  CFNetwork                           0x00000001a0b56104 _CFStreamErrorFromCFError + 157244
25  CFNetwork                           0x00000001a0b542c0 _CFStreamErrorFromCFError + 149496
26  CFNetwork                           0x00000001a0a62c00 _CFNetworkSetHSTSStoragePath + 35396
27  CFNetwork                           0x00000001a0a6281c _CFNetworkSetHSTSStoragePath + 34400
28  CFNetwork                           0x00000001a0b9f7cc _CFStreamErrorFromCFError + 457988
29  CFNetwork                           0x00000001a0b9e4e4 _CFStreamErrorFromCFError + 453148
30  CFNetwork                           0x00000001a0ba1468 _CFStreamErrorFromCFError + 465312
31  CFNetwork                           0x00000001a0cad8f8 estimatedPropertyListSize + 41476
32  libdispatch.dylib                   0x00000001038d8b98 _dispatch_call_block_and_release + 32
33  libdispatch.dylib                   0x00000001038da7bc _dispatch_client_callout + 20
34  libdispatch.dylib                   0x00000001038e266c _dispatch_lane_serial_drain + 832
35  libdispatch.dylib                   0x00000001038e343c _dispatch_lane_invoke + 460
36  libdispatch.dylib                   0x00000001038e4abc _dispatch_workloop_invoke + 2336
37  libdispatch.dylib                   0x00000001038f0404 _dispatch_root_queue_drain_deferred_wlh + 328
38  libdispatch.dylib                   0x00000001038efa38 _dispatch_workloop_worker_thread + 444
39  libsystem_pthread.dylib             0x00000001fb858f20 _pthread_wqthread + 288
40  libsystem_pthread.dylib             0x00000001fb858fc0 start_wqthread + 8

Code of Conduct

fceldeiro commented 7 months ago

I have the same issue.

nan-li commented 6 months ago

Hi @lundstroem and @fceldeirom thank you for reporting. We will take a look at these warnings.