Bug: Likely with NSMutableSet

  • 17 November 2020
  • 1 reply

I am observing a crash in my app from mixpanel and I think this is related 

These two following lines might be culprits In MixPanel.m file and unarchiveProperties method.

self.people.unidentifiedQueue = [NSMutableArray arrayWithArray:properties[@"peopleUnidentifiedQueue"]] ?: [NSMutableArray array];

self.shownNotifications = [NSMutableSet setWithSet:properties[@"shownNotifications"]] ?: [NSMutableSet set];

showNotifications should be NSMutableSet and the above line is not setting this to NSMutableSet.

Please refer to the attachment -Modified.png.

Stacktrace is also attached. 


Crash happening mostly on iPad and iOS13.7 and above, while in Background.

1 reply

Userlevel 6
Badge +3

I noticed that you submitted a few tickets to our support team, but for anyone else experiencing the issue the first step is to make sure you are using the most updated Mixpanel versions in your application. I would suggest upgrading and rolling out an app release that initiates Mixpanel's latest library.