Zentrust / OTPublishersHeadlessSDK

OTPublishersHeadlessSDK for iOS
Other
6 stars 6 forks source link

[React Native][Expo] Crash on launch #38

Open alexisloiselle opened 1 month ago

alexisloiselle commented 1 month ago

I have an Expo app that I needed to upgrade to support Android 14. I then needed to update Expo to 50 and thus react-native-onetrust-cmp from 202309.1.0 to 202407.2.0.

Since then, we're getting a lot of crashes. It was hard to trace what the error was, but I just got two clues that leads to here.

First is the crash report, including:

Thread 4 name:   Dispatch queue: com.facebook.react.OneTrustQueue
Thread 4 Crashed:
0   MY_APP                                 0x102dca91c 0x10286c000 + 5630236
1   MY_APP                                 0x102dc875c 0x10286c000 + 5621596
2   CoreFoundation                         0x19b059814 __invoking___ + 148
3   CoreFoundation                         0x19b058860 -[NSInvocation invoke] + 428
4   CoreFoundation                         0x19b0cf1dc -[NSInvocation invokeWithTarget:] + 64
5   MY_APP                                 0x102b14f4c 0x10286c000 + 2789196
6   MY_APP                                 0x102b17054 0x10286c000 + 2797652
7   MY_APP                                 0x102b16ca4 0x10286c000 + 2796708
8   libdispatch.dylib                      0x1a2f6113c _dispatch_call_block_and_release + 32
9   libdispatch.dylib                      0x1a2f62dd4 _dispatch_client_callout + 20
10  libdispatch.dylib                      0x1a2f6a400 _dispatch_lane_serial_drain + 748
11  libdispatch.dylib                      0x1a2f6af30 _dispatch_lane_invoke + 380
12  libdispatch.dylib                      0x1a2f75cb4 _dispatch_root_queue_drain_deferred_wlh + 288
13  libdispatch.dylib                      0x1a2f75528 _dispatch_workloop_worker_thread + 404
14  libsystem_pthread.dylib                0x1f7b0c934 _pthread_wqthread + 288
15  libsystem_pthread.dylib                0x1f7b090cc start_wqthread + 8

And also the two last lines that my app printed which I get in the MacOS Console.app:

OTHeadlessSDK:  Info : [OTPublishersHeadlessSDK.swift]: init() -> Initializing OneTrust Publishers Headless SDK 202407.2.0.
nw_path_evaluator_start [DE3A1C7E-6348-481A-B79E-0FB5CA8A5BC4 <NULL> generic, attribution: developer]
    path: satisfied (Path is satisfied), interface: en0[802.11], ipv4, dns, uses wifi

Additional Info: We're able to consistently trigger this crash when downgrading to a previous version in TestFlight.

I suspect that something is making the app crash in the initializer of the SDK, but since this is closed-source and I'm pretty powerless, I'm posting to this Github repo where I see absolutely no activity of OneTrust employees... Please help!