silkimen / cordova-plugin-advanced-http

Cordova / Phonegap plugin for communicating with HTTP servers. Allows for SSL pinning!
MIT License
400 stars 320 forks source link

[Bug] iOS Crash when using latest version 3.1.0 #377

Open JonSmart opened 4 years ago

JonSmart commented 4 years ago

Describe the bug Our latest build uses the new 3.1.0 version, our test users are reporting random crashes, using Firebase Crashlytics the crash has been identified within this plugin.

System info

Are you using ionic-native-wrapper? NO

Crash Info Crashed: com.apple.main-thread EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x00000004eb887310 -[_AFURLSessionTaskSwizzling af_resume]

AFURLSessionManager.m - Line 458 -[_AFURLSessionTaskSwizzling af_resume] + 458

AFHTTPSessionManager.m - Line 355 -[AFHTTPSessionManager downloadTaskWithHTTPMethod:URLString:parameters:progress:success:failure:] + 355

CordovaHttpPlugin.m - Line 244 -[CordovaHttpPlugin executeRequestWithoutData:withMethod:] + 244

-[CDVCommandQueue execute:] + 63452

-[CDVWebViewEngine userContentController:didReceiveScriptMessage:] + 84668

-[CDVWebViewWeakScriptMessageHandler userContentController:didReceiveScriptMessage:] + 87532

We have a number of Apps being used by users on 3.0.1 and did not see this error.

silkimen commented 3 years ago

Hi Jon, can you please try downgrading cordova-ios to 5.1.1? I'd like to know if this problem is related to that version.

JonSmart commented 3 years ago

That might prove quite difficult as this is hard to replicate and we only saw this when testing with a volume of users - which makes it risky to revert on the core as that could have other side-effects. What I can tell you that we reverted to 3.0.1 of this lib and it has continued to work perfectly every time.

NLueg commented 3 years ago

Hello, we also have the same problem with the crash on iOS. It happens almost every 4 of 5 times when we start the app. The downgrade of cordova-ios is not really an option as this doesn't work with other plugins.

BunnyUmar commented 3 years ago

Hello please check your certification this is correct format .cer.