Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash using library : [__NSMallocBlock__ handleClientConnectionStateChange:]: unrecognized selector sent to instance 0x17044e460 #108

Open
fceldeiro opened this issue Jun 26, 2015 · 3 comments

Comments

@fceldeiro
Copy link

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.

@fceldeiro
Copy link
Author

screen shot 2015-06-26 at 10 48 18 am

@geremyCohen
Copy link
Contributor

Fabian, we may already have a fix for this, can you contact us at
support@pubnub.com so we can get some more information from you?

On Fri, Jun 26, 2015 at 6:59 AM, Fabián notifications@github.com 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
#108 (comment).

Geremy Cohen
Director, Client Engineering
PubNub

@fceldeiro
Copy link
Author

@geremyCohen Just did, but nobody asked about the extra info that you need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants