objective-c
objective-c copied to clipboard
Crash using library : [__NSMallocBlock__ handleClientConnectionStateChange:]: unrecognized selector sent to instance 0x17044e460
PubNub version : PubNub (= 3.7.11)
In my app i do the following (viewDidLoad)
"PNConfiguration *configuration = [PNConfiguration configurationForOrigin:kPubNubURL
publishKey:kPubNubPublishKey
subscribeKey:kPubNubSubscribeKey
secretKey:kPubNubSecretKey
cipherKey:kPubNubCipherKey];
configuration.useSecureConnection = YES;
self.pubNub = [PubNub connectingClientWithConfiguration:configuration andSuccessBlock:^(NSString *origin) {
[self.pubNub setDelegate:self];
[self.pubNub setClientIdentifier:self.myselfChatMember.chatId];
self.channel = [PNChannel channelWithName:[self channelKey] shouldObservePresence:NO];
[self.pubNub subscribeOn:@[self.channel]];
[self loadChatHistory];
} errorBlock:^(PNError *error) {
DLog("%@",error);
}];"
Then in my dealloc
[self.pubNub setDelegate:nil]; [self.pubNub unsubscribeFrom:@[self.channel]]; [self.pubNub disconnect]; self.pubNub = nil; }
If i pop that controller ocasionally i get a crash. Seems like after the PubNub object is released is still trying to call a notification.

Fabian, we may already have a fix for this, can you contact us at [email protected] so we can get some more information from you?
On Fri, Jun 26, 2015 at 6:59 AM, Fabián [email protected] wrote:
[image: screen shot 2015-06-26 at 10 48 42 am] https://cloud.githubusercontent.com/assets/1914557/8378817/62289d6a-1bf2-11e5-8223-ea0aff36a391.png [image: screen shot 2015-06-26 at 10 48 18 am] https://cloud.githubusercontent.com/assets/1914557/8378818/622be812-1bf2-11e5-8e54-fdc3c01fb2da.png
Reply to this email directly or view it on GitHub https://github.com/pubnub/objective-c/issues/108#issuecomment-115699031.
Geremy Cohen Director, Client Engineering PubNub
@geremyCohen Just did, but nobody asked about the extra info that you need.