-
Notifications
You must be signed in to change notification settings - Fork 189
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
Occasional crash soon after connecting #5
Comments
Can you share console output before crash occurs? |
Responsible line:
Fix
|
@parfeon i've turned off info logging on PubNub. But i know it happens when the |
I can't accept this fix because we need to test conditions in which this error occur and check how code will go with it. |
I will try to get you some log lines from PubNub. On Wednesday, March 20, 2013 at 2:38 PM, Sergey wrote:
|
It will be great!. Thank you! |
Ok. now i'm not able to make it happen again. i will keep a lookout for it though.
it is obviously wrong. the code is not taking the location of the search range when creating i do now know the details of how this code is used. but perhaps knowing your code, you can figure out when |
Got it to crash. I was testing behavior over disconnect and reconnect from network. Here is the log On disconnect internet
On reconnect
|
Am able to repeat this consistently now by disconnecting and reconnecting network. NOTE: The app fetches full history when the connection is reestablished. Maybe the huge message size has something to do with it? |
@rakeshta thanks! we will investigate this today, and provide a fix shortly. |
@rakeshta can you please email us at support at pubnub, I think we can expedite a solution for you via email. |
We are also facing this issue. Any pointers on how to fix this ? I get this log * Terminating app due to uncaught exception 'NSRangeException', reason: '* -[NSConcreteMutableData rangeOfData:options:range:]: range {359, 4294967284} causes integer overflow' |
@definelabs can you check out branch zd-1731 and let us know if it solves the issue for you? |
zd-1731 seems to solve it. 👍 |
@definelabs good to hear, fix was merged into master branch. |
Sometimes soon after connecting to PubNub and subscribing to a channel, a crash occurs on the following line:
PNResponseDeserialize.m
Exception:
The text was updated successfully, but these errors were encountered: