paypal / paypal-here-sdk-ios-distribution

Add credit card (tap, insert, swipe & key-in) capabilities to your iOS app
Other
81 stars 91 forks source link

Long running and high volume crash, looks like type mismatch in SDK #363

Open sammcewan opened 3 years ago

sammcewan commented 3 years ago

We see Frequent issues with the PayPalRetailSDK within our Point of Sale. This is high volume for us and it’s consistently our largest source of instability and seems to be related to types and JS bridging.

Crash report is as follows. Any help resolving greatly appreciated.

0  JavaScriptCore                 0x1b82cb888 JSC::functionProtoFuncToString(JSC::JSGlobalObject*, JSC::CallFrame*) + 1160
1  JavaScriptCore                 0x1b82cb7b8 JSC::functionProtoFuncToString(JSC::JSGlobalObject*, JSC::CallFrame*) + 952
2  JavaScriptCore                 0x1b7ab2a0c llint_entry + 149964
3  JavaScriptCore                 0x1b7ab0064 llint_entry + 139300
4  JavaScriptCore                 0x1b7ab0064 llint_entry + 139300
5  JavaScriptCore                 0x1b7a8dd98 vmEntryToJavaScript + 264
6  JavaScriptCore                 0x1b807b62c JSC::Interpreter::executeCall(JSC::JSGlobalObject*, JSC::JSObject*, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 480
7  JavaScriptCore                 0x1b837f420 JSC::JSObject::ordinaryToPrimitive(JSC::JSGlobalObject*, JSC::PreferredPrimitiveType) const + 2184
8  JavaScriptCore                 0x1b8382b60 JSC::JSObject::toPrimitive(JSC::JSGlobalObject*, JSC::PreferredPrimitiveType) const + 1596
9  JavaScriptCore                 0x1b8310640 JSC::JSValue::toStringSlowCase(JSC::JSGlobalObject*, bool) const + 1048
10 JavaScriptCore                 0x1b8310a08 JSC::JSValue::toWTFStringSlowCase(JSC::JSGlobalObject*) const + 632
11 JavaScriptCore                 0x1b7b17194 JSValueToStringCopy + 212
12 JavaScriptCore                 0x1b7ad11e4 valueToString(OpaqueJSContext*, OpaqueJSValue const*, OpaqueJSValue const**) + 84
13 JavaScriptCore                 0x1b78bcab0 -[JSValue toString] + 52
14 PayPalRetailSDK                0x102665a90 __53-[PPRetailNativeInterface offerReceipt:withCallback:]_block_invoke + 144
15 PayPalRetailSDK                0x102676a90 -[PPReceiptOptionsController doneButtonPressed] + 240
EarthyOrange commented 2 years ago

@sammcewan Thank you for submitting the bug report! We have been aware of this issue for a while now. A fix has evaded us so far because of our inability to reproduce this issue on our end. Please be sure to look out for our next release where we have applied further improvements on the receipt screen.

Does your app have any custom options on the receipt screen?

sammcewan commented 2 years ago

@EarthyOrange Thanks for the reply. No custom options. We're running the latest version, still a high volume of issues from PayPal. This still accounts for most stability issues in our app due to the injected javascript that's going on, this seems very volatile and unreliable.

Have you got an ETA for the update?

EarthyOrange commented 2 years ago

@sammcewan If all goes well the release should be out by end of this week or beginning of next week.