Created
June 13, 2019 14:28
-
-
Save lawrencelomax/961c4d93ab3f1748570d2fadaea89c53 to your computer and use it in GitHub Desktop.
Failing close release grpclib example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2019-06-13 15:14:51,407 [DEBUG] - hpack.hpack - Encoded header block to b"\x83\x86D\x94`\xd2F\xbd\xe3\xd3X\xea1\xea\xdc[;\x98\x85b\x81\xdbQ'A\x8b\xa0\xe4\x1d\x13\x9d\t\xb8\x10<\xf0\xbf@\x82I\x7f\x86M\x835\x05\xb1\x1f_\x90\x1du\xd0b\r&=LMed\xffu\xd8t\x9fz\xa9\x9a\xca\xc8\xb5~\x939\xeaZk+%\x06\x8d\x80.\xca\xe0\xb0\x8d)\xfdH;<\x1a\xaf\xb5\t_\xa4\xcez\x98ew\x17\x17\xfb\xfe\xff" | |
2019-06-13 15:14:51,637 [DEBUG] - hpack.hpack - Decoding b"\x88@\x0ccontent-type\x10application/grpc@\x0bgrpc-status\x019@\x0cgrpc-message\x7f%Application Bundle Name: Shortcuts | ID: is.workflow.my.app | Install Type user | Container (null) cannot be launched as it's not signed with a development identity" | |
2019-06-13 15:14:51,637 [DEBUG] - hpack.hpack - Decoded 8, consumed 1 bytes | |
2019-06-13 15:14:51,637 [DEBUG] - hpack.hpack - Decoded (b':status', b'200'), consumed 1 | |
2019-06-13 15:14:51,637 [DEBUG] - hpack.hpack - Decoded 12, consumed 1 bytes | |
2019-06-13 15:14:51,637 [DEBUG] - hpack.hpack - Decoded 16, consumed 1 bytes | |
2019-06-13 15:14:51,637 [DEBUG] - hpack.hpack - Decoded (<memory at 0x10ab8b948>, <memory at 0x10ab8b648>), total consumed 31 bytes, indexed True | |
2019-06-13 15:14:51,637 [DEBUG] - hpack.hpack - Decoded 11, consumed 1 bytes | |
2019-06-13 15:14:51,637 [DEBUG] - hpack.hpack - Decoded 1, consumed 1 bytes | |
2019-06-13 15:14:51,637 [DEBUG] - hpack.hpack - Decoded (<memory at 0x10ab8ba08>, <memory at 0x10ab8bac8>), total consumed 15 bytes, indexed True | |
2019-06-13 15:14:51,637 [DEBUG] - hpack.hpack - Decoded 12, consumed 1 bytes | |
2019-06-13 15:14:51,637 [DEBUG] - hpack.hpack - Decoded 164, consumed 2 bytes | |
2019-06-13 15:14:51,637 [DEBUG] - hpack.hpack - Decoded (<memory at 0x10ab8bb88>, <memory at 0x10ab8bc48>), total consumed 180 bytes, indexed True | |
======== CLOSE | |
File "/opt/homebrew/bin/idb", line 10, in <module> | |
sys.exit(main()) | |
File "/opt/homebrew/Cellar/python36/3.6.2+_254.20170915/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/idb/cli/main.py", line 242, in main | |
return loop.run_until_complete(gen_main(cmd_input)) | |
File "/opt/homebrew/Cellar/python36/3.6.2+_254.20170915/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/base_events.py", line 454, in run_until_complete | |
self.run_forever() | |
File "/opt/homebrew/Cellar/python36/3.6.2+_254.20170915/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/base_events.py", line 421, in run_forever | |
self._run_once() | |
File "/opt/homebrew/Cellar/python36/3.6.2+_254.20170915/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/base_events.py", line 1426, in _run_once | |
handle._run() | |
File "/opt/homebrew/Cellar/python36/3.6.2+_254.20170915/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/events.py", line 127, in _run | |
self._callback(*self._args) | |
File "/opt/homebrew/Cellar/python36/3.6.2+_254.20170915/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/selector_events.py", line 731, in _read_ready | |
self._protocol.data_received(data) | |
File "/opt/homebrew/Cellar/python36/3.6.2+_254.20170915/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/grpclib/protocol.py", line 615, in data_received | |
self.processor.close() | |
File "/opt/homebrew/Cellar/python36/3.6.2+_254.20170915/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/grpclib/protocol.py", line 487, in close | |
traceback.print_stack() | |
========== | |
======== CLOSE | |
File "/opt/homebrew/bin/idb", line 10, in <module> | |
sys.exit(main()) | |
File "/opt/homebrew/Cellar/python36/3.6.2+_254.20170915/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/idb/cli/main.py", line 242, in main | |
return loop.run_until_complete(gen_main(cmd_input)) | |
File "/opt/homebrew/Cellar/python36/3.6.2+_254.20170915/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/base_events.py", line 454, in run_until_complete | |
self.run_forever() | |
File "/opt/homebrew/Cellar/python36/3.6.2+_254.20170915/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/base_events.py", line 421, in run_forever | |
self._run_once() | |
File "/opt/homebrew/Cellar/python36/3.6.2+_254.20170915/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/base_events.py", line 1426, in _run_once | |
handle._run() | |
File "/opt/homebrew/Cellar/python36/3.6.2+_254.20170915/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/events.py", line 127, in _run | |
self._callback(*self._args) | |
File "/opt/homebrew/Cellar/python36/3.6.2+_254.20170915/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/selector_events.py", line 663, in _call_connection_lost | |
self._protocol.connection_lost(exc) | |
File "/opt/homebrew/Cellar/python36/3.6.2+_254.20170915/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/grpclib/protocol.py", line 629, in connection_lost | |
self.processor.close() | |
File "/opt/homebrew/Cellar/python36/3.6.2+_254.20170915/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/grpclib/protocol.py", line 487, in close | |
traceback.print_stack() | |
========== | |
2019-06-13 15:14:52,142 [DEBUG] - idb - launch failed | |
2019-06-13 15:14:52,142 [ERROR] - grpclib.server - Application error | |
Traceback (most recent call last): | |
File "/opt/homebrew/Cellar/python36/3.6.2+_254.20170915/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/grpclib/client.py", line 325, in recv_initial_metadata | |
headers = await self._stream.recv_headers() | |
File "/opt/homebrew/Cellar/python36/3.6.2+_254.20170915/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/grpclib/protocol.py", line 269, in recv_headers | |
return await self.__headers__.get() | |
File "/opt/homebrew/Cellar/python36/3.6.2+_254.20170915/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/queues.py", line 167, in get | |
yield from getter | |
concurrent.futures._base.CancelledError | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/opt/homebrew/Cellar/python36/3.6.2+_254.20170915/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/idb/common/logging.py", line 85, in _async_wrapper | |
value = await function(*args, **kwargs) | |
File "/opt/homebrew/Cellar/python36/3.6.2+_254.20170915/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/idb/grpc/ipc_loader.py", line 182, in _tramp | |
await partial_call(stream=stream) | |
File "/opt/homebrew/Cellar/python36/3.6.2+_254.20170915/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/idb/ipc/launch.py", line 40, in daemon | |
await join_streams(stream, out_stream) | |
File "/opt/homebrew/Cellar/python36/3.6.2+_254.20170915/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/idb/grpc/stream.py", line 82, in join_streams | |
_pipe_to_client(out_stream, in_stream, started_future), | |
File "/opt/homebrew/Cellar/python36/3.6.2+_254.20170915/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/idb/grpc/stream.py", line 104, in _pipe_to_client | |
async for message in in_stream: | |
File "/opt/homebrew/Cellar/python36/3.6.2+_254.20170915/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/grpclib/stream.py", line 61, in __anext__ | |
message = await self.recv_message() | |
File "/opt/homebrew/Cellar/python36/3.6.2+_254.20170915/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/grpclib/client.py", line 389, in recv_message | |
await self.recv_initial_metadata() | |
File "/opt/homebrew/Cellar/python36/3.6.2+_254.20170915/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/grpclib/client.py", line 345, in recv_initial_metadata | |
self.initial_metadata = im | |
File "/opt/homebrew/Cellar/python36/3.6.2+_254.20170915/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/grpclib/utils.py", line 67, in __exit__ | |
raise self._error | |
grpclib.exceptions.StreamTerminatedError: Connection was closed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment