Comments (4)
Not sure if this is related, but we're getting a bunch of EXC_BAD_ACCESS crashes in production from [RCPurchases cachePurchaserInfo:]
. It's hard to reproduce locally. I included a stack trace - hopefully this can be helpful!
Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x1edb23dac object_isClass + 16
1 Foundation 0x1ef3cc928 KVO_IS_RETAINING_ALL_OBSERVERS_OF_THIS_OBJECT_IF_IT_CRASHES_AN_OBSERVER_WAS_OVERRELEASED_OR_SMASHED + 68
2 Foundation 0x1ef3cc70c -[NSObject(NSKeyValueObservingPrivate) _changeValueForKeys:count:maybeOldValuesDict:maybeNewValuesDict:usingBlock:] + 328
3 Foundation 0x1ef31c804 -[NSObject(NSKeyValueObservingPrivate) _notifyObserversOfChangeFromValuesForKeys:toValuesForKeys:] + 644
4 CoreFoundation 0x1ee84d1d0 -[CFPrefsSource forEachObserver:] + 260
5 CoreFoundation 0x1ee84ec40 -[CFPrefsSource _notifyObserversOfChangeFromValuesForKeys:toValuesForKeys:] + 76
6 CoreFoundation 0x1ee993ffc ___CFPrefsDeliverPendingKVONotificationsGuts_block_invoke + 416
7 CoreFoundation 0x1ee8b0fd8 __CFDictionaryApplyFunction_block_invoke + 24
8 CoreFoundation 0x1ee97d8a0 CFBasicHashApply + 132
9 CoreFoundation 0x1ee8b0fb4 CFDictionaryApplyFunction + 180
10 CoreFoundation 0x1ee98ce54 _CFPrefsDeliverPendingKVONotificationsGuts + 260
11 CoreFoundation 0x1ee8d0928 __108-[_CFXPreferences(SearchListAdditions) withSearchListForIdentifier:container:cloudConfigurationURL:perform:]_block_invoke + 300
12 CoreFoundation 0x1ee8d025c normalizeQuintuplet + 356
13 CoreFoundation 0x1ee83cdb4 -[_CFXPreferences(SearchListAdditions) withSearchListForIdentifier:container:cloudConfigurationURL:perform:] + 108
14 CoreFoundation 0x1ee83fda4 -[_CFXPreferences setValue:forKey:appIdentifier:container:configurationURL:] + 92
15 CoreFoundation 0x1ee9924d8 _CFPreferencesSetAppValueWithContainerAndConfiguration + 132
16 Foundation 0x1ef3174dc -[NSUserDefaults(NSUserDefaults) setObject:forKey:] + 68
17 Purchases 0x1022674b4 -[RCPurchases cachePurchaserInfo:] (RCPurchases.m:216)
18 Purchases 0x10226941c __48-[RCPurchases handleUpdatedPurchaserInfo:error:]_block_invoke (RCPurchases.m:463)
from purchases-ios.
@MichaelDanielTom how do you init Purchases and reference the object after? From my point init of the singleton is a bit weird and actually you still can have multiple objects that a listening to delegates. This might cause the issue.
from purchases-ios.
Hey Michael,
That is an interesting crash. We haven't seen it reported before but it looks like maybe NSUserDefaults has a dealloced observer somewhere in your app?
I sent you an email about it.
from purchases-ios.
closing this out due to inactivity.
from purchases-ios.
Related Issues (20)
- Cannot get the active entitlements in `Sandbox` environment when having same type of entitlements in `Prod`. HOT 3
- PaywallViewController does not auto dismiss on restore purchase success HOT 7
- NonSubscriptionTransaction.transactionIdentifier Does not match StoreTransaction.identifier HOT 3
- Paywall shows in English despite iPhone being set to German HOT 8
- Control PaywallView dismiss HOT 6
- Paywall bug for visionOS, Template 4, not enough room for "Monthly" split over two lines HOT 1
- RevenueCat randomly can't fetch offerings for ONE of my devices (iPadOS 17.4 beta) HOT 9
- ErrorCode description should be localized HOT 3
- Invalid reason on xcprivacy report file: Privacy Accessed API Types USERDEFAULT HOT 3
- purchases-ios stuck fetching in Xcode HOT 4
- SPM install takes forever HOT 17
- /v1/receipts api returns status_code 529 HOT 7
- Paywall language changes on every app re-install HOT 6
- "can't find package" error. HOT 4
- Add support for the native macOS platform to the RevenueCat Paywalls HOT 2
- Way to test Promotions in-app purchases from Store HOT 1
- Unable to fetch offering on real device when using Storekit file HOT 5
- Weird state of checkTrialOrIntroDiscountEligibility HOT 6
- Bug: Writing Keys out of container HOT 7
- macOS App hanging for at least 2000 ms because of check for macOS app running on the main thread. 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 purchases-ios.