firebase-ios-sdk: Crash : Audience filter count out of range

Environment

  • Xcode version: 9.4.1
  • Firebase SDK version: 5.2.0

Describe the problem Every time I open the app go the same issue/crash

5.2.0 - [Firebase/Analytics][I-ACS006009] Audience definition is invalid. Audience will not be saved. Audience, error: <FIRAPBAudience: 0x604000203860>, Error Domain=com.google.gmp.measurement.ErrorDomain Code=9 "Audience filter count out of range"

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 38 (15 by maintainers)

Most upvoted comments

For anyone still struggling with this crash. What worked for our project is disabling the NSZombieEnabled environment variable. Just remember that this results in a loss of proper Memory Debugging so in case you need to do that, don’t forget to re-enable it.

Do you have the exception message as well? That will (hopefully) tell us what class is getting deallocated, which may help track the issue down.

Hello, I’m experiencing this crash intermittently on iOS 11.3 in the Simulator.

Is this a persisting problem?

Pasting this from the email thread earlier last week:

I don’t think self is the value that’s being zombified here. The call to __dealloc_zombie happens after removeObjectForKey: is invoked, so the refcount being decremented belongs to whatever object is being removed from the dictionary. A few things to note:

  • This isn’t a proper zombies exception, just a crash that happened when zombies were enabled. Notably, __dealloc_zombie was called without raising an exception, so at the point where the object is deallocated it’s being deallocated properly (it’s not already a zombie).
  • The program then crashes in the C method used by zombies to turn deallocated instances of objects into zombies instead of actually deallocating them.

I don’t have a good conclusion for what’s going on here, but I don’t think using weak self will fix it. If we could get the description of the object being deallocated (the object released by removeObjectForKey:) it’d be a lot more clear what’s happening.

What i am gettign is - Domain=FABNetworkError Code=-6 "(null)" UserInfo={retryLimit=1, NSErrorFailingURLStringKey=https://settings.crashlytics.com/spi/v2/platforms/ios/apps/com.t9l.hospalsapp/settings?build_version=1&display_version=1.0&instance=62d1e8f04ff57b97339b93f996369f0847e308e5&source=1}

Screeshot:- for more detail screen shot 2018-08-07 at 7 10 21 pm