Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Occasional Socket crashes #25

Open
benpackard opened this issue Apr 6, 2016 · 1 comment
Open

Occasional Socket crashes #25

benpackard opened this issue Apr 6, 2016 · 1 comment

Comments

@benpackard
Copy link
Contributor

I've had a few crashes from time to time, always with the same log:

*** Assertion failure in -[SRWebSocket sendPing:], /Users/benpackard/Cocoa/Zetta/Pods/SocketRocket/SocketRocket/SRWebSocket.m:705
Uncaught exception: Invalid State: Cannot call send: until connection is open

Looks like this comes from SocketRocket, though perhaps there is something in ZettaKit that triggers it.

A couple of cases where I've seen this:

  • Leaving the app running in the simulator while away (e.g. for 15+ minutes).
  • Connecting via certain networks (this crash happened on every launch while I was on a hotel's WiFi, and again at an airport recently).
  • Sometimes after spells of heavy foregrounding and backgrounding activity - i.e. closing and opening the app, switching apps, locking the screen, etc.

I know that's not the best bug report... I will update this ticket if @landlessness or I can find a reliable reproduction short of driving to the Westin Alexandria Hotel in VA.

@mdobson
Copy link
Contributor

mdobson commented Apr 6, 2016

Interesting. I'll try and get around to this in the next week or two. Let
me know if you have a consistent way to reproduce in the mean time.

I'm not incredibly surprised that some public access points show this
error. Public wifi has been notoriously bad with web sockets. I've seen
blocked web socket traffic, or interference in different ways.

-Matt

--
Matthew Dobson | apigee https://apigee.com/ | m: +1.734.634.5472 |
twitter @mdobs http://twitter.com/mdobs @apigee
https://twitter.com/apigee | Apigee Community
http://community.apigee.com/
for answers, ideas and support!

On Wed, Apr 6, 2016 at 3:03 PM, Ben Packard [email protected]
wrote:

I've had a few crashes from time to time, always with the same log:

*** Assertion failure in -[SRWebSocket sendPing:], /Users/benpackard/Cocoa/Zetta/Pods/SocketRocket/SocketRocket/SRWebSocket.m:705
Uncaught exception: Invalid State: Cannot call send: until connection is open

Looks like this comes from SocketRocket, though perhaps there is something
in ZettaKit that triggers it.

A couple of cases where I've seen this:

  • Leaving the app running in the simulator while away (e.g. for 15+
    minutes).
  • Connecting via certain networks (this crash happened on every launch
    while I was on a hotel's WiFi, and again at an airport recently).
  • Sometimes after spells of heavy foregrounding and backgrounding
    activity - i.e. closing and opening the app, switching apps, locking the
    screen, etc.

I know that's not the best bug report... I will update this ticket if
@landlessness https://github.com/landlessness or I can find a reliable
reproduction short of driving to the Westin Alexandria Hotel in VA.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#25

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

No branches or pull requests

2 participants