Coder Social home page Coder Social logo

Comments (4)

MichaelDanielTom avatar MichaelDanielTom commented on August 15, 2024

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.

Out1and3r avatar Out1and3r commented on August 15, 2024

@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.

jeiting avatar jeiting commented on August 15, 2024

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.

aboedo avatar aboedo commented on August 15, 2024

closing this out due to inactivity.

from purchases-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.