Kochava init crashing at startup

Kochava crashes when i try to call init function. Have tested it with empty project (Only the plugin on my build.settings) and it still happens. Here is the crash log/stack trace. Happens only on iOS (device). Tested on Android and it works ok. Using build 3145 and newer. Have not tested older Corona versions. This did not happen with previous builds on October. 

"NSInvalidArgumentException: \*\*\* -[\_\_NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[1]\n(\n\0090 CoreFoundation 0x000000018418bd50 \<redacted\> + 148\n\0091 libobjc.A.dylib 0x00000001836a0528 objc\_exception\_throw + 56\n\0092 CoreFoundation 0x0000000184124c44 \_CFArgv + 0\n\0093 CoreFoundation 0x000000018405d4b0 \<redacted\> + 352\n\0094 CoreFoundation 0x000000018405d32c \<redacted\> + 64\n\0095 Epic Heroes 0x00000001011fecd8 \_ZN13KochavaPlugin4initEP9lua\_State + 1432\n\0096 Epic Heroes 0x0000000100fee908 \_ZNK3Rtt12VideoTexture9GetFilterEv + 277964\n\0097 Epic Heroes 0x0000000101001824 \_ZNK3Rtt12VideoTexture9GetFilterEv + 355560\n\0098 Epic Heroes 0x0000000100feee58 \_ZNK3Rtt12VideoTexture9GetFilterEv + 279324\n\0099 Epic Heroes 0x0000000101002458 \_ZNK3Rtt12VideoTexture9GetFilterEv + 358684\n\00910 Epic Heroes 0x0000000100fef200 \_ZNK3Rtt12VideoTexture9GetFilterEv + 280260\n\00911 Epic Heroes 0x0000000100fe5a2c \_ZNK3Rtt12VideoTexture9GetFilterEv + 241392\n\00912 Epic Heroes 0x0000000100fe832c \_ZNK3Rtt12VideoTexture9GetFilterEv + 251888\n\00913 Epic Heroes 0x0000000100fee908 \_ZNK3Rtt12VideoTexture9GetFilterEv + 277964\n\00914 Epic Heroes 0x0000000101001824 \_ZNK3Rtt12VideoTexture9GetFilterEv + 355560\n\00915 Epic Heroes 0x0000000100feee58 \_ZNK3Rtt12VideoTexture9GetFilterEv + 279324\n\00916 Epic Heroes 0x0000000101002458 \_ZNK3Rtt12VideoTexture9GetFilterEv + 358684\n\00917 Epic Heroes 0x0000000100fef200 \_ZNK3Rtt12VideoTexture9GetFilterEv + 280260\n\00918 Epic Heroes 0x0000000100fe5a2c \_ZNK3Rtt12VideoTexture9GetFilterEv + 241392\n\00919 Epic Heroes 0x000000010102d5a4 \_ZNK3Rtt12VideoTexture9GetFilterEv + 535144\n\00920 Epic Heroes 0x000000010104e168 \_ZNK3Rtt12VideoTexture9GetFilterEv + 669228\n\00921 Epic Heroes 0x0000000100f871ec Epic Heroes + 94700\n\00922 GLKit 0x0000000190f87954 \<redacted\> + 256\n\00923 GLKit 0x0000000190f88b50 \<redacted\> + 520\n\00924 QuartzCore 0x0000000188056fd4 \<redacted\> + 672\n\00925 IOKit 0x00000001843f630c IODispatchCalloutFromCFMessage + 392\n\00926 CoreFoundation 0x000000018411a080 \<redacted\> + 188\n\00927 CoreFoundation 0x00000001841349dc \<redacted\> + 56\n\00928 CoreFoundation 0x00000001841340e0 \<redacted\> + 440\n\00929 CoreFoundation 0x0000000184131bb4 \<redacted\> + 2196\n\00930 CoreFoundation 0x00000001840522d8 CFRunLoopRunSpecific + 436\n\00931 GraphicsServices 0x0000000185ee3f84 GSEventRunModal + 100\n\00932 UIKit 0x000000018d5ff880 UIApplicationMain + 208\n\00933 Epic Heroes 0x0000000100f742d8 Epic Heroes + 17112\n\00934 libdyld.dylib 0x0000000183b7656c \<redacted\> + 4\n)"

This is the full kochava plugin, not the FAA one. 

I’ll ask Engineering about it.

Rob

Any news on this? Currently my app crashes too when using Kochava.

Hi guys,

We still cannot reproduce this issue on our devices/projects.

basiliogerman, can you submit an issue at https://portal.coronalabs.com/bug-submission? It would be really helpful.
Make sure that you’ve included your empty project as a sample, we’ll look more closely to it. Maybe we should fill a bug report to Kochava.

I posted a stack trace which should be helpful, it says a nil object is being inserted, the project is huge and have no time to make a compact version of it. Here is my build.settings if it is of any help

settings = { build = { neverStripDebugInfo = true -- Debugger, Logger }, splashScreen = { enable = false, }, orientation = { default = "landscapeRight", content = "landscapeRight", supported = {"landscapeRight", "landscapeLeft"}, }, window = { defaultMode = "normal", resizable = false, minViewWidth = 1024, minViewHeight = 768, titleText = { default = "Yogome Epic Heroes of Knowledge", }, }, plugins = true and { ["plugin.appboy"] = { publisherId = "com.seobits", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, ["appletvos"] = false, ["android"] = true, }, }, ["plugin.kochava"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, ["appletvos"] = false, ["android"] = true, }, }, ["plugin.qrscanner"] = { publisherId = "com.spiralcodestudio", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, ["appletvos"] = false, ["android"] = true, }, }, ["plugin.zip"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, ["appletvos"] = true, ["android"] = true, }, }, ["plugin.utf8"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, ["android"] = true, ["appletvos"] = true, }, }, ["plugin.notifications"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, ["android"] = true, }, }, ["CoronaProvider.gameNetwork.apple"] = { -- Apple Game Center publisherId = "com.coronalabs", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, }, }, ["plugin.gpgs"] = { -- Google Play Game Services publisherId = "com.coronalabs", supportedPlatforms = { ["android"] = true, }, }, ["plugin.advertisingId"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, ["android"] = true, }, }, ["facebook"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, ["android"] = true, }, }, ["plugin.google.iap.v3"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["android"] = true, }, }, ["plugin.openssl"] = { publisherId = "com.coronalabs", }, ["plugin.tenjin"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["iphone"] = true, ["android"] = true, ["iphone-sim"] = true , } }, ["plugin.musicStreaming"] = { publisherId = "tech.scotth", supportedPlatforms = { iphone = true, android = true } }, }, excludeFiles = { all = { "packs/", "spec/", --"data/levels/", -- epic.levels "\*.md", "\*.out", "\*.ai", "\*.psd", "\*.txt", "\*.DS\_Store", "install.js", "bower.json", "pack.js", "packs.json", }, }, iphone = { xcassets = "Images.xcassets", plist = { NSAppTransportSecurity = { NSAllowsArbitraryLoads = true }, CFBundleShortVersionString = "2.65", UIStatusBarHidden = true, UIPrerenderedIcon = true, NSPhotoLibraryUsageDescription = "To select user profile picture", NSCameraUsageDescription = "Used to scan QR codes", CFBundleDisplayName = "EpicHeroes", UIApplicationExitsOnSuspend = false, FacebookAppID = "1176460919038399", LSApplicationQueriesSchemes = { "fb", -- Needed for the facebook-v4.isFacebookAppEnabled() API "fbapi", "fbauth2", "fb-messenger-api", "fbshareextension" }, CFBundleURLTypes = { { CFBundleURLSchemes = { "fb-----", "EpicKnowledge" }, }, }, CFBundleIdentifier = "com.yogome.HeroesOfKnowledge" } }, android = { applicationChildElements = { [[\<service android:name="com.appboy.services.AppboyDataSyncService"/\>]], }, minSdkVersion = "16", facebookAppId = "-----", googlePlayGamesAppId = "-----", largeHeap = true, versionCode = "60", usesExpansionFile = true, permissions = { { name = ".permission.C2D\_MESSAGE", protectionLevel = "signature" }, -- Push notifications }, usesPermissions = { "android.permission.WAKE\_LOCK", "com.android.vending.BILLING", -- IAP "android.permission.INTERNET", -- Debugging, Network "android.permission.ACCESS\_WIFI\_STATE", "android.permission.ACCESS\_NETWORK\_STATE", "com.android.vending.CHECK\_LICENSE", -- IAP, Expansion files, GPGS "android.permission.WRITE\_EXTERNAL\_STORAGE", -- Expansion files "android.permission.GET\_ACCOUNTS", -- Push notifications "android.permission.RECEIVE\_BOOT\_COMPLETED", -- Push notifications "com.google.android.c2dm.permission.RECEIVE", -- Push notifications ".permission.C2D\_MESSAGE", -- Push notifications }, intentFilters = { { label = "Epic Heroes of Knowledge", actions = { "android.intent.action.VIEW" }, categories = { "android.intent.category.DEFAULT", "android.intent.category.BROWSABLE", }, data = { scheme = "EpicKnowledge", }, }, }, }, tvos = { icon = { small = { -- 400x240 "Icon-tvOS-Small-4.png", "Icon-tvOS-Small-3.png", "Icon-tvOS-Small-2.png", "Icon-tvOS-Small-1.png", }, large = { -- 1280x768 "Icon-tvOS-Large-4.png", "Icon-tvOS-Large-3.png", "Icon-tvOS-Large-2.png", "Icon-tvOS-Large-1.png", } }, topShelfImage = "Icon-tvOS-TopShelf.png", -- 1920x720 launchImage = "Icon-tvOS-Launch.png", -- 1920x1080 plist = { NSAppTransportSecurity = { NSAllowsArbitraryLoads = true }, }, }, }

It works fine on Android, it’s just iOS that is causing the problem. Do i have to contact the Kochava team for this?

Hi basiliogerman,

As I’ve said, you should fill a report with included sample, because we cannot reproduce it. You’ve said earlier that you have an empty project with just a plugin, couldn’t you just include it?

I have added a bug report with an example project here:
http://support.coronalabs.com/helpdesk/Ticket/11915222

Hi DevilSquid – René,

Thanks!

We’ve cooperated with Kochava team. Fix will be available ASAP.

Great! Thank you!

We are facing the exact same crash for a long time now too.

We talked to Kochava’s support and they told us the issue should be fixed by the Corona team, but that they aren’t able to reproduce it on their end. This doesn’t sound promising…

So will there be a fix soon or not?

Please inform us where this issue stands, since it’s completely blocking our road-map. 

Hi stanga,

As I’ve said, fix will be available soon, we are working on it.

Hi guys,

Updated plugin is available for everyone, so you can build and test it out!  B)

I’ll ask Engineering about it.

Rob

Any news on this? Currently my app crashes too when using Kochava.

Hi guys,

We still cannot reproduce this issue on our devices/projects.

basiliogerman, can you submit an issue at https://portal.coronalabs.com/bug-submission? It would be really helpful.
Make sure that you’ve included your empty project as a sample, we’ll look more closely to it. Maybe we should fill a bug report to Kochava.

I posted a stack trace which should be helpful, it says a nil object is being inserted, the project is huge and have no time to make a compact version of it. Here is my build.settings if it is of any help

settings = { build = { neverStripDebugInfo = true -- Debugger, Logger }, splashScreen = { enable = false, }, orientation = { default = "landscapeRight", content = "landscapeRight", supported = {"landscapeRight", "landscapeLeft"}, }, window = { defaultMode = "normal", resizable = false, minViewWidth = 1024, minViewHeight = 768, titleText = { default = "Yogome Epic Heroes of Knowledge", }, }, plugins = true and { ["plugin.appboy"] = { publisherId = "com.seobits", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, ["appletvos"] = false, ["android"] = true, }, }, ["plugin.kochava"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, ["appletvos"] = false, ["android"] = true, }, }, ["plugin.qrscanner"] = { publisherId = "com.spiralcodestudio", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, ["appletvos"] = false, ["android"] = true, }, }, ["plugin.zip"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, ["appletvos"] = true, ["android"] = true, }, }, ["plugin.utf8"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, ["android"] = true, ["appletvos"] = true, }, }, ["plugin.notifications"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, ["android"] = true, }, }, ["CoronaProvider.gameNetwork.apple"] = { -- Apple Game Center publisherId = "com.coronalabs", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, }, }, ["plugin.gpgs"] = { -- Google Play Game Services publisherId = "com.coronalabs", supportedPlatforms = { ["android"] = true, }, }, ["plugin.advertisingId"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, ["android"] = true, }, }, ["facebook"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, ["android"] = true, }, }, ["plugin.google.iap.v3"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["android"] = true, }, }, ["plugin.openssl"] = { publisherId = "com.coronalabs", }, ["plugin.tenjin"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["iphone"] = true, ["android"] = true, ["iphone-sim"] = true , } }, ["plugin.musicStreaming"] = { publisherId = "tech.scotth", supportedPlatforms = { iphone = true, android = true } }, }, excludeFiles = { all = { "packs/", "spec/", --"data/levels/", -- epic.levels "\*.md", "\*.out", "\*.ai", "\*.psd", "\*.txt", "\*.DS\_Store", "install.js", "bower.json", "pack.js", "packs.json", }, }, iphone = { xcassets = "Images.xcassets", plist = { NSAppTransportSecurity = { NSAllowsArbitraryLoads = true }, CFBundleShortVersionString = "2.65", UIStatusBarHidden = true, UIPrerenderedIcon = true, NSPhotoLibraryUsageDescription = "To select user profile picture", NSCameraUsageDescription = "Used to scan QR codes", CFBundleDisplayName = "EpicHeroes", UIApplicationExitsOnSuspend = false, FacebookAppID = "1176460919038399", LSApplicationQueriesSchemes = { "fb", -- Needed for the facebook-v4.isFacebookAppEnabled() API "fbapi", "fbauth2", "fb-messenger-api", "fbshareextension" }, CFBundleURLTypes = { { CFBundleURLSchemes = { "fb-----", "EpicKnowledge" }, }, }, CFBundleIdentifier = "com.yogome.HeroesOfKnowledge" } }, android = { applicationChildElements = { [[\<service android:name="com.appboy.services.AppboyDataSyncService"/\>]], }, minSdkVersion = "16", facebookAppId = "-----", googlePlayGamesAppId = "-----", largeHeap = true, versionCode = "60", usesExpansionFile = true, permissions = { { name = ".permission.C2D\_MESSAGE", protectionLevel = "signature" }, -- Push notifications }, usesPermissions = { "android.permission.WAKE\_LOCK", "com.android.vending.BILLING", -- IAP "android.permission.INTERNET", -- Debugging, Network "android.permission.ACCESS\_WIFI\_STATE", "android.permission.ACCESS\_NETWORK\_STATE", "com.android.vending.CHECK\_LICENSE", -- IAP, Expansion files, GPGS "android.permission.WRITE\_EXTERNAL\_STORAGE", -- Expansion files "android.permission.GET\_ACCOUNTS", -- Push notifications "android.permission.RECEIVE\_BOOT\_COMPLETED", -- Push notifications "com.google.android.c2dm.permission.RECEIVE", -- Push notifications ".permission.C2D\_MESSAGE", -- Push notifications }, intentFilters = { { label = "Epic Heroes of Knowledge", actions = { "android.intent.action.VIEW" }, categories = { "android.intent.category.DEFAULT", "android.intent.category.BROWSABLE", }, data = { scheme = "EpicKnowledge", }, }, }, }, tvos = { icon = { small = { -- 400x240 "Icon-tvOS-Small-4.png", "Icon-tvOS-Small-3.png", "Icon-tvOS-Small-2.png", "Icon-tvOS-Small-1.png", }, large = { -- 1280x768 "Icon-tvOS-Large-4.png", "Icon-tvOS-Large-3.png", "Icon-tvOS-Large-2.png", "Icon-tvOS-Large-1.png", } }, topShelfImage = "Icon-tvOS-TopShelf.png", -- 1920x720 launchImage = "Icon-tvOS-Launch.png", -- 1920x1080 plist = { NSAppTransportSecurity = { NSAllowsArbitraryLoads = true }, }, }, }

It works fine on Android, it’s just iOS that is causing the problem. Do i have to contact the Kochava team for this?

Hi basiliogerman,

As I’ve said, you should fill a report with included sample, because we cannot reproduce it. You’ve said earlier that you have an empty project with just a plugin, couldn’t you just include it?

I have added a bug report with an example project here:
http://support.coronalabs.com/helpdesk/Ticket/11915222

Hi DevilSquid – René,

Thanks!

We’ve cooperated with Kochava team. Fix will be available ASAP.

Great! Thank you!