Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

'Server mode should have already opened streams.' #56

Open
kisileno opened this issue Aug 24, 2016 · 1 comment
Open

'Server mode should have already opened streams.' #56

kisileno opened this issue Aug 24, 2016 · 1 comment

Comments

@kisileno
Copy link

On PocketSocket version 1.0.1, OS X 10.11.6 (15G31), Xcode Version 7.3.1 (7D1014), Safari 9.1.2 (11601.7.7) I have got this error:

Server mode should have already opened streams.
2016-08-24 01:01:32.906 MyApp[4222:219540] (
    0   CoreFoundation                      0x00007fff8f4d84f2 __exceptionPreprocess + 178
    1   libobjc.A.dylib                     0x00007fffa0eb8f7e objc_exception_throw + 48
    2   CoreFoundation                      0x00007fff8f53f4bd +[NSException raise:format:] + 205
    3   MyApp                              0x000000010001a3a9 -[PSWebSocket stream:handleEvent:] + 233
    4   MyApp                              0x000000010002a021 __40-[PSWebSocketServer stream:handleEvent:]_block_invoke + 161
    5   libdispatch.dylib                   0x0000000100218070 _dispatch_call_block_and_release + 12
    6   libdispatch.dylib                   0x000000010020acc5 _dispatch_client_callout + 8
    7   libdispatch.dylib                   0x0000000100210112 _dispatch_queue_drain + 351
    8   libdispatch.dylib                   0x0000000100217e24 _dispatch_queue_invoke + 557
    9   libdispatch.dylib                   0x000000010020edab _dispatch_root_queue_drain + 1226
    10  libdispatch.dylib                   0x000000010020e8a5 _dispatch_worker_thread3 + 106
    11  libsystem_pthread.dylib             0x000000010026d336 _pthread_wqthread + 1129
    12  libsystem_pthread.dylib             0x000000010026af91 start_wqthread + 13
)
2016-08-24 01:01:32.906 MyApp[4222:219540] *** Terminating app due to uncaught exception 'Invalid State', reason: 'Server mode should have already opened streams.'
*** First throw call stack:
(
    0   CoreFoundation                      0x00007fff8f4d84f2 __exceptionPreprocess + 178
    1   libobjc.A.dylib                     0x00007fffa0eb8f7e objc_exception_throw + 48
    2   CoreFoundation                      0x00007fff8f53f4bd +[NSException raise:format:] + 205
    3   MyApp                              0x000000010001a3a9 -[PSWebSocket stream:handleEvent:] + 233
    4   MyApp                              0x000000010002a021 __40-[PSWebSocketServer stream:handleEvent:]_block_invoke + 161
    5   libdispatch.dylib                   0x0000000100218070 _dispatch_call_block_and_release + 12
    6   libdispatch.dylib                   0x000000010020acc5 _dispatch_client_callout + 8
    7   libdispatch.dylib                   0x0000000100210112 _dispatch_queue_drain + 351
    8   libdispatch.dylib                   0x0000000100217e24 _dispatch_queue_invoke + 557
    9   libdispatch.dylib                   0x000000010020edab _dispatch_root_queue_drain + 1226
    10  libdispatch.dylib                   0x000000010020e8a5 _dispatch_worker_thread3 + 106
    11  libsystem_pthread.dylib             0x000000010026d336 _pthread_wqthread + 1129
    12  libsystem_pthread.dylib             0x000000010026af91 start_wqthread + 13
)
libc++abi.dylib: terminating with uncaught exception of type NSException
@songxuhua
Copy link

I also have get this issue,do you any solution?

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