payu-intrepos / PayUMoney-IOS-SDK

Easy to integrate SDK for iOS to facilitate fast mobile checkout
https://www.payumoney.com/
MIT License
11 stars 21 forks source link

Random crash in payUMoney SDK #27

Closed techximumsolutions closed 6 years ago

techximumsolutions commented 6 years ago

I am using payUmoney for my project and it is getting crashed sometimes and below is the stacktrace when i got crash.

2018-03-30 11:52:29.380876+0530 FunBook[19790:4407301] -[NSCFNumber length]: unrecognized selector sent to instance 0xbffffffffffffff3 2018-03-30 11:52:29.383212+0530 FunBook[19790:4407301] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSCFNumber length]: unrecognized selector sent to instance 0xbffffffffffffff3' *** First throw call stack: ( 0 CoreFoundation 0x00000001136ea12b exceptionPreprocess + 171 1 libobjc.A.dylib 0x0000000112634f41 objc_exception_throw + 48 2 CoreFoundation 0x000000011376b024 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132 3 CoreFoundation 0x000000011366cf78 __forwarding + 1432 4 CoreFoundation 0x000000011366c958 _CF_forwarding_prep_0 + 120 5 UIKit 0x000000011011a8e2 -[UILabel _setText:] + 136 6 PlugNPlay 0x000000010e6ae3fc -[PopUpView addMessageLabel:] + 293 7 PlugNPlay 0x000000010e6ae196 -[PopUpView initWithHeaderImage:bottomButtonTitle:messageFont:message:title:] + 209 8 PlugNPlay 0x000000010e6bd37b -[PnPPopUpViewController addPopUpViewWithHeaderImage:bottomButtonTitle:messageFont:message:title:] + 160 9 PlugNPlay 0x000000010e6bcf32 -[PnPPopUpViewController initWithHeaderImage:bottomButtonTitle:messageFont:message:title:] + 148 10 PlugNPlay 0x000000010e6c104b +[PnPUtility handleFailureWithViewC:message:title:] + 219 11 PlugNPlay 0x000000010e6c0cdd +[PnPUtility handlePaymentData:error:success:viewC:] + 848 12 PlugNPlay 0x000000010e69b390 -[PnPWalletPayViewController transactinFailedWithResponse:errorDescription:tag:] + 60 13 PlugNPlay 0x000000010e6ad5fe 43-[PnPAddCardViewController proccessPayment]_block_invoke + 674 14 PayUMoneyCoreSDK 0x000000010e5bf9b0 -[PayUMoneyCoreSDK transactinFailedWithResponse:errorDescription:tag:] + 347 15 PayUMoneyCoreSDK 0x000000010e5ba31a -[PUMWebVC paymentFailedWithResponse:errorDescription:] + 240 16 PayUMoneyCoreSDK 0x000000010e5b9d06 71-[PUMWebVC requestVerifyPayment:isPost:body:tag:isAccessTokenRequired:]_block_invoke + 371 17 PayUMoneyCoreSDK 0x000000010e5aed56 124-[PUMRequestManager hitWebServiceForURLWithPostBlock:isAccessTokenRequired:webServiceURL:withBody:andTag:completionHandler:]_block_invoke + 215 18 CFNetwork 0x0000000112ec8454 75-[NSURLSessionLocal taskForClass:request:uploadFile:bodyData:completion:]_block_invoke + 19 19 CFNetwork 0x0000000112ec7cad 49-[NSCFLocalSessionTask _task_onqueue_didFinish]_block_invoke + 147 20 Foundation 0x000000011204822f NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK + 7 21 Foundation 0x0000000112048091 -[NSBlockOperation main] + 68 22 Foundation 0x000000011204654e -[__NSOperationInternal _start:] + 778 23 libdispatch.dylib 0x000000011522333d _dispatch_client_callout + 8 24 libdispatch.dylib 0x00000001152289f3 _dispatch_block_invoke_direct + 592 25 libdispatch.dylib 0x000000011522333d _dispatch_client_callout + 8 26 libdispatch.dylib 0x00000001152289f3 _dispatch_block_invoke_direct + 592 27 libdispatch.dylib 0x0000000115228783 dispatch_block_perform + 109 28 Foundation 0x000000011204255c NSOQSchedule_f + 342 29 libdispatch.dylib 0x000000011522333d _dispatch_client_callout + 8 30 libdispatch.dylib 0x000000011522e5f9 _dispatch_main_queue_callback_4CF + 628 31 CoreFoundation 0x00000001136ace39 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9 32 CoreFoundation 0x0000000113671462 __CFRunLoopRun + 2402 33 CoreFoundation 0x0000000113670889 CFRunLoopRunSpecific + 409 34 GraphicsServices 0x0000000116d409c6 GSEventRunModal + 62 35 UIKit 0x000000010fe5a5d6 UIApplicationMain + 159 36 FunBook 0x000000010c3223c7 main + 55 37 libdyld.dylib 0x000000011529fd81 start + 1 38 ??? 0x0000000000000001 0x0 + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)

DishaMukherjee commented 6 years ago

Hi,

If you are using latest PnP module then also use latest dependencies.

Kindly go through link https://github.com/citruspay/citruspay-ios-sdk/releases/tag/graphics.2.1.0 or git clone in a recursive manner.