[Problem/Question]
SendbirdChatSDK seems to be triggering SQLite warnings that are sent to the console during SDK initialization:
[logging] API call with invalid database connection pointer
[logging] misuse at line 175622 of [9ff244ce07]
- I’ve confirmed that when I don’t initialize Sendbird in my app, I do not see the console warnings
- I’ve also confirmed that if disable local caching in SendbirdChat, I again do not see the console warnings (i.e. flip this to false: sendbird-uikit-ios/SendbirdUI.swift at main · sendbird/sendbird-uikit-ios · GitHub)
- This appears to be the same warning occurring in a totally separate library: [logging] misuse at line 147939 of [2b0954060f] when opening a database on iOS 11 · Issue #283 · groue/GRDB.swift · GitHub
– And here was that library’s fix: Don't call sqlite3_config() unless explicitly required to do so by groue · Pull Request #284 · groue/GRDB.swift · GitHub
// If problem, please fill out the below. If question, please delete.
[SDK Version]
UIKit v3.3.4, which uses ChatSDK v4.2.4
[Reproduction Steps]
- Clone the SendbirdUIKit repo
- Run the sample project on a simulator (sendbird-uikit-ios/Sample at main · sendbird/sendbird-uikit-ios · GitHub)
- Observe the console
For the sample UIKit project, you should see the following:
QuickStart[46307:12632638] [logging] API called with NULL prepared statement
QuickStart[46307:12632638] [logging] misuse at line 94136 of [554764a6e7]
From my own project, I see this:
[SendBirdChat] [INFO] init(useNativeSocket:cachePolicy:apiHost:wsHost:) API Host: <redacted>
[SendBirdChat] [INFO] init(useNativeSocket:cachePolicy:apiHost:wsHost:) WS Host: <redacted>
SendbirdChat [2023.01.27 13:52:21.662 -0600] [INFO] startNotifier() Start notifier: SendbirdChatSDK.Reachability
SendbirdChat [2023.01.27 13:52:21.662 -0600] [INFO] 3620: changed network connection - WiFi
SendbirdChat [2023.01.27 13:52:21.662 -0600] [INFO] init(timeInterval:userInfo:onBoard:identifier:repeats:expired:) ACK timer: <SendbirdChatSDK.SBTimer: 0x2811d2840>
[logging] API call with invalid database connection pointer
[logging] misuse at line 175622 of [9ff244ce07]
[logging] API call with invalid database connection pointer
[logging] misuse at line 175622 of [9ff244ce07]
[logging] API call with invalid database connection pointer
[logging] misuse at line 175622 of [9ff244ce07]
[Frequency]
Each time SendbirdChat is initialized
[Current impact]
Unsure of actual impact. I actually discovered this when investigating a crash stemming from Sendbird (which someone else reported here: Database Crashes). Not sure if they’re at all related.