Comments (5)
Hello @mdeaconu -
Glad to hear the new branch/PR is resolving the memory leak issue you saw previously. This change will go into our next release of the SDK and we will update this thread with the released version once completed.
from braintree_ios.
Hello @mdeaconu -
This was released in version 6.5.0. Please let us know if you run into any issues after making the update. Thanks again for bringing this issue to our attention! 🚀
from braintree_ios.
👋 Hi @mdeaconu - thank you for bringing this issues to us. I am trying to replicate it now.
Can you provide us with the URL that you're getting back in your scene or app delegate that you then pass to one of BTAppContextSwitcher's handleOpenURL methods?
from braintree_ios.
We are in the process of fixing the cancel case that you mentioned and will link that PR soon.
In the meantime, we were not able to replicate a memory leak like you showed. You should check on your VenmoTokenizationHandler
.
Feel free to test on this branch we made which uses the async Swift function for BTVenmoClient.tokenize()
in our Demo app (see specific line here). Using this Demo app, we aren't able to replicate a leak of BTVenmoClient
.
from braintree_ios.
We are in the process of fixing the cancel case that you mentioned and will link that PR soon.
In the meantime, we were not able to replicate a memory leak like you showed. You should check on your
VenmoTokenizationHandler
.Feel free to test on this branch we made which uses the async Swift function for
BTVenmoClient.tokenize()
in our Demo app (see specific line here). Using this Demo app, we aren't able to replicate a leak ofBTVenmoClient
.
Hello,
VenmoTokenizationHandler
class acts similar to BraintreeDemoVenmoViewController
which keeps a strong ref to BTVenmoClient
. Normally it should go away and release memory once tokenize()
call finishes.
Using the branch specified I was able to create some leaks:
2023-08-02 18:26:58.227297+0300 Demo[34922:145802] Fetching Client Token…
2023-08-02 18:27:00.933036+0300 Demo[34922:145802] Loading integration: BraintreeDemoVenmoViewController
2023-08-02 18:27:01.190886+0300 Demo[34922:145802] Using Client Token
2023-08-02 18:27:01.191329+0300 Demo[34922:145802] Presenting Demo.BraintreeDemoVenmoViewController
2023-08-02 18:27:03.457479+0300 Demo[34922:145802] Tapped Venmo - initiating Venmo auth
2023-08-02 18:27:13.406876+0300 Demo[34922:145802] Tapped Venmo ECD - initiating Venmo auth
SWIFT TASK CONTINUATION MISUSE: tokenize(_:) leaked its continuation!
2023-08-02 18:27:14.050144+0300 Demo[34922:145802] SWIFT TASK CONTINUATION MISUSE: tokenize(_:) leaked its continuation!
2023-08-02 18:40:22.739811+0300 Demo[34922:145802] Fetching Client Token…
2023-08-02 18:40:29.207586+0300 Demo[34922:145802] Loading integration: BraintreeDemoVenmoViewController
2023-08-02 18:40:29.466513+0300 Demo[34922:145802] Using Client Token
2023-08-02 18:40:29.466871+0300 Demo[34922:145802] Presenting Demo.BraintreeDemoVenmoViewController
2023-08-02 18:40:31.870273+0300 Demo[34922:145802] Tapped Venmo - initiating Venmo auth
2023-08-02 18:40:44.188042+0300 Demo[34922:145802] Tapped Venmo - initiating Venmo auth
SWIFT TASK CONTINUATION MISUSE: tokenize(_:) leaked its continuation!
2023-08-02 18:40:45.761560+0300 Demo[34922:145802] SWIFT TASK CONTINUATION MISUSE: tokenize(_:) leaked its continuation!
2023-08-02 18:40:52.471816+0300 Demo[34922:145802] Tapped Venmo - initiating Venmo auth
SWIFT TASK CONTINUATION MISUSE: tokenize(_:) leaked its continuation!
2023-08-02 18:40:53.112100+0300 Demo[34922:145802] SWIFT TASK CONTINUATION MISUSE: tokenize(_:) leaked its continuation!
Steps to reproduce:
- Tap on
Settings
- Select
Venmo - Custom Button
Integration - Tap on
Done
- Tap several times on
Venmo
button (used MockVenmo sample app available) - Repeat step 1-4
However, I used this branch venmo-cancel-error
and it looks the issue got fixed.
Will the change/fix be part of the next release? I am trying just to get an ETA.
Thanks!
from braintree_ios.
Related Issues (20)
- Apple Review Rejection for saving the payment method for future transaction HOT 1
- PayPalDataCollector.h HOT 4
- fetchPaymentMethodNonces in BTAPIClient return wrong nonce types HOT 4
- Staging URLs present in production code - Security Issue - For our Customer HOT 18
- Error on pod install after the release of Braintree version 6.8.0 HOT 5
- Unable to Publish Build to App Store with Xcode 15.0 HOT 7
- Unable to Use The Package HOT 5
- policy required: Xcode15 requires Privacy Manifest HOT 22
- V6 Migration guide has incorrect system requirement HOT 2
- Production Access HOT 1
- Better Error Handling HOT 3
- BTThreeDSecureClient.initializeChallenge never completes HOT 3
- Expose SDK struct definitions to consumer apps to enable overridability exclusively for writing unit tests. HOT 4
- ErrorCode 2 and ErrorMessage is 無法完成作業。forbidden HOT 3
- Archiving using Xcode 15.3 Fails Due when Including PPRiskMagnes.framework (minimum OS Version specified in the Info.plist) HOT 17
- Command SwiftCompile failed with a nonzero exit code HOT 3
- 📣 Upgrade your integration to continue accepting Braintree payments HOT 3
- Expose `prefersEphemeralWebBrowserSession` HOT 2
- Braintree iOS SDK takes a long amount of time to resolve via SPM HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from braintree_ios.