superwall / Superwall-iOS

Remotely configure every aspect of your paywall and double your revenue.
https://superwall.com
MIT License
86 stars 22 forks source link

[BUG] Swift access race when run with Thread sanitizer #157

Closed tkafka closed 7 months ago

tkafka commented 1 year ago

General information

Describe the bug

When I turn on Thread sanitizer in a scheme, and run the app, the following warning appears:

/Users/.../Library/Developer/Xcode/DerivedData/Weathergraph-eksxezdcznqhaibhzaurdwsgkvku/SourcePackages/checkouts/Superwall-iOS/Sources/SuperwallKit/Dependencies/DependencyContainer.swift:272 Swift access race in SuperwallKit.Superwall.$subscriptionStatus.getter : Combine.Published<SuperwallKit.SubscriptionStatus>.Publisher at 0x1246653c0

image

Steps to reproduce

Run an app with SuperwallKit with thread sanitizer.

yusuftor commented 1 year ago

Hey, someone else also mentioned this but I'm yet to reproduce it. You said you managed to reproduce it our example apps? How did you do that? I tried with the thread sanitiser but nothing happened. Any more details of how to reproduce this would help a lot!

yusuftor commented 7 months ago

I'm closing this because I've been unable to reproduce this. If it still happens, let me know and I'll reopen the issue.