AppsFlyerSDK / AppsFlyerFramework

AppsFlyer Apple SDK
https://support.appsflyer.com/hc/en-us/articles/207032066-AppsFlyer-SDK-Integration-iOS
Other
167 stars 90 forks source link

Crash on calling handleDidFinishLaunch, with version 4.9 #87

Closed hugebug4ever closed 4 years ago

hugebug4ever commented 5 years ago

it's triggered by launching app from URL Scheme ( for example: from safri). Here is the output and the calling stack (which was took while trying 4.8.11. 4.9 is the same):

AppsFlyer SDK version 4.8.11 started build (774)

[DEBUG] AppsFlyer: -[AppsFlyerTracker setIsDebug:] AppsFlyer is set to debug mode. This should only be used in development enviornment!!!!

[DEBUG] AppsFlyer: -[AppsFlyerTracker handleDidFinishLaunch:] Source application: com.apple.mobilesafari

[DEBUG] AppsFlyer: -[AppsFlyerTracker handleDidFinishLaunch:] Source application: com.apple.mobilesafari

"0  CoreFoundation                 0x00000001bb33df20 CFRelease + 124",
"1  CoreFoundation                 0x00000001bb39b7d4 0x00000001bb33c000 + 391124",
"2  CoreFoundation                 0x00000001bb399b0c 0x00000001bb33c000 + 383756",
"3  CoreFoundation                 0x00000001bb3999cc CFBundleGetBundleWithIdentifier + 240",
"4  \U9583\U8000\U6696\U6696-\U958b\U767c                        0x0000000100fc6fbc -[AppsFlyerTracker handleDidFinishLaunch:] + 588",
"5  CoreFoundation                 0x00000001bb3c6928 0x00000001bb33c000 + 567592",
"6  CoreFoundation                 0x00000001bb3c68f4 0x00000001bb33c000 + 567540",
"7  CoreFoundation                 0x00000001bb3c5de4 0x00000001bb33c000 + 564708",
"8  CoreFoundation                 0x00000001bb3c5a90 0x00000001bb33c000 + 563856",
"9  CoreFoundation                 0x00000001bb33dd70 0x00000001bb33c000 + 7536",
"10 CoreFoundation                 0x00000001b<…>
andr-ggn commented 5 years ago

Hello, @hugebug4ever!

Can you reproduce a crash?

hugebug4ever commented 5 years ago

yes. it always crash. but it's ok with 4.8.9, or earlier version

hugebug4ever commented 5 years ago

PS: it's iOS 12+ only it's ok with 11.x We tried dozens iPhones (yes, we do)

andr-ggn commented 5 years ago

Can you share a code or demo application with a problem. This is interesting case.

andr-ggn commented 5 years ago

@hugebug4ever

hugebug4ever commented 5 years ago

It's a pity that we can not reproduce it with the demo project. and our project is too large to be shared. The callstack seems pointed to some nulled pointer. If we can have some code snip around the stack, maybe we can guess what's wrong (conflicating) with AppFlyer.

andr-ggn commented 5 years ago

Can you call somewhere in your project:

CFBundleRef bundle = CFBundleGetBundleWithIdentifier((__bridge CFStringRef)@"com.apple.UIKit");
andr-ggn commented 4 years ago

Closed due to inactivity