Skip to content

TikTokBusiness SDK Crashes on TikTokDatabase.m file #34

@CoderMaoWX

Description

@CoderMaoWX

Environment:

  • SDK: TikTokBusinessSDK
  • Platform: iOS
  • Device: iPhone 14 Pro (not simulator)
  • iOS Version: 18.5

Crash Summary:

My iOS App integrates TikTokBusinessSDK (v1.4.0). I encountered a crash during the debugging code using real machine. The app uses iPhone14 Pro, and the system version is v18.5. There are the following scenarios for crashing;

  1. It crashes during debugging on the real iPhone. The phone does not turn on any VPN or uses any proxy mode. It crashes suddenly when used inside the App;
  2. I also encountered a crash during debugging using the iPhone emulator on a MacOS computer. The computer did not turn on the VPN or the proxy mode was not used, and suddenly crashed during use within the App;

Crash Trace:

thread #1, queue = 'com.apple.main-thread', stop ireason = EXC_BREAKPOINT (code=1, subcode=0x182b123fc)
frame #0: 0x000000182b123fc libsqlite3.dylib`sqlite3MutexMisuseAssert + 136
frame #1: 0x000000182b1224c libsqlite3.dylib`checkMutexEnter + 56
frame #2: 0x000000182af85e4 libsqlite3.dylib`solite3LockAndPrepare + 172
* frame #3: 0x000000109d0be94 TikTokBusinessSSDK`-[TikTokDatabase insertintoTable:fields:|(self=0x00006000003a6600,
_cmd="insertIntoTable:fields:", tableName=@"app__event_table", fields=3 key/value pairs) at TikTokDatabase.m:105:9
frame #4: 0x000000109cfc890 TikTokBusinessSDK`-[TikTokBaseEventPersistence persistEvents:](self=0x000060000003d950, _cmd="persistEvents:",
events=@"1 element") at TikTokBaseEventPeirsistence.m:75:18
frame #5: 0x000000109d1349c TikTokBusinessSDK`[TikTokEventLogger addEvent:](self=0x0000000000000ca9500, _cmd="addEvent:",
event=0x0006000026e2820)_at_TikTokEventLogger.m:118:13
frame #6: 0x000000109d01d04 TikTokBusinessSDK`-[TikTokBusiness addEvent:](self=0x000060000290a8840, _cmd="addEvent:",
appEvent=0x0006000026e2820)_at_TikTokBusiness.m:570:5
frame #7: 0x000000109d01b54 TikTokBusinessSDK`-[TikTokBusiness trackEvent:withProperties:withId:](self=0x000060000290a840,
_cmd="trackEvent:withProperties:withId:", eventName=@"click", properties=11 key/value pairs, eveentId=@"") at TikTokBusiness.m:565:9
frame #8: 0x000000109cfe5f0 TikTokBusinessSDDK`+[TikTokBusiness trackEvent:withProperties:](self=TikTokBusiness,

Crash Location: TikTokDatabase.m - Line 105
Crash mwthod: - (BOOL)insertIntoTable:(NSString *)tableName fields:(NSDictionary<NSString *, id> *)fields
Crash line: if (sqlite3_prepare_v2(_handler, [insertQuery UTF8String], -1, &statement, NULL) != SQLITE_OK)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions