Created
June 13, 2019 14:27
-
-
Save lawrencelomax/c0df8f552e13ae023d7882aadd718531 to your computer and use it in GitHub Desktop.
Passing close and release of grpc stream
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:15:36,947 [DEBUG] - hpack.hpack - Adding (b'user-agent', b'grpc-python-grpclib/0.3.0rc4 (darwin; cpython/3.6.2+)') to the header table | |
2019-06-13 15:15:36,947 [DEBUG] - hpack.hpack - Encoding 58 with 6 bits | |
2019-06-13 15:15:36,947 [DEBUG] - hpack.hpack - Encoding 41 with 7 bits | |
2019-06-13 15:15:36,947 [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:15:37,073 [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:15:37,073 [DEBUG] - hpack.hpack - Decoded 8, consumed 1 bytes | |
2019-06-13 15:15:37,073 [DEBUG] - hpack.hpack - Decoded (b':status', b'200'), consumed 1 | |
2019-06-13 15:15:37,074 [DEBUG] - hpack.hpack - Decoded 12, consumed 1 bytes | |
2019-06-13 15:15:37,074 [DEBUG] - hpack.hpack - Decoded 16, consumed 1 bytes | |
2019-06-13 15:15:37,074 [DEBUG] - hpack.hpack - Decoded (<memory at 0x10ab8b588>, <memory at 0x10ab8b888>), total consumed 31 bytes, indexed True | |
2019-06-13 15:15:37,074 [DEBUG] - hpack.hpack - Decoded 11, consumed 1 bytes | |
2019-06-13 15:15:37,074 [DEBUG] - hpack.hpack - Decoded 1, consumed 1 bytes | |
2019-06-13 15:15:37,074 [DEBUG] - hpack.hpack - Decoded (<memory at 0x10ab8be88>, <memory at 0x10ab8bf48>), total consumed 15 bytes, indexed True | |
2019-06-13 15:15:37,074 [DEBUG] - hpack.hpack - Decoded 12, consumed 1 bytes | |
2019-06-13 15:15:37,074 [DEBUG] - hpack.hpack - Decoded 164, consumed 2 bytes | |
2019-06-13 15:15:37,074 [DEBUG] - hpack.hpack - Decoded (<memory at 0x10ab8b708>, <memory at 0x10ab8b948>), total consumed 180 bytes, indexed True | |
2019-06-13 15:15:37,576 [DEBUG] - idb - launch failed | |
2019-06-13 15:15:37,576 [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/server.py", line 396, in request_handler | |
await method_func(stream) | |
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 110, in _async_wrapper | |
raise self.translate_exception(ex) | |
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 341, in recv_initial_metadata | |
self._raise_for_grpc_status(headers_map) | |
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 301, in _raise_for_grpc_status | |
raise GRPCError(grpc_status_enum, status_message) | |
grpclib.exceptions.GRPCError: (<Status.FAILED_PRECONDITION: 9>, "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:15:37,577 [DEBUG] - hpack.hpack - HPACK encoding <generator object _reject_pseudo_header_fields at 0x10ad880a0> | |
2019-06-13 15:15:37,577 [DEBUG] - hpack.hpack - Adding (b':status', b'200') to the header table | |
2019-06-13 15:15:37,577 [DEBUG] - hpack.hpack - Encoding 8 with 7 bits | |
2019-06-13 15:15:37,577 [DEBUG] - hpack.hpack - Adding (b'content-type', b'application/grpc+proto') to the header table | |
2019-06-13 15:15:37,577 [DEBUG] - hpack.hpack - Encoding 31 with 6 bits | |
2019-06-13 15:15:37,577 [DEBUG] - hpack.hpack - Encoding 16 with 7 bits | |
2019-06-13 15:15:37,577 [DEBUG] - hpack.hpack - Adding (b'grpc-status', b'9') to the header table | |
2019-06-13 15:15:37,577 [DEBUG] - hpack.hpack - Encoding 8 with 7 bits | |
2019-06-13 15:15:37,578 [DEBUG] - hpack.hpack - Encoding 1 with 7 bits | |
2019-06-13 15:15:37,578 [DEBUG] - hpack.hpack - Adding (b'grpc-message', b"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") to the header table | |
2019-06-13 15:15:37,578 [DEBUG] - hpack.hpack - Encoding 9 with 7 bits | |
2019-06-13 15:15:37,578 [DEBUG] - hpack.hpack - Encoding 122 with 7 bits | |
2019-06-13 15:15:37,578 [DEBUG] - hpack.hpack - Encoded header block to b"\x88_\x90\x1du\xd0b\r&=LMed\xffu\xd8t\x9f@\x88\x9a\xca\xc8\xb2\x124\xda\x8f\x81\x7f@\x89\x9a\xca\xc8\xb5%B\x071\x7f\xfa\x86\xba\xe81\x06\x93\x1e\xa5.\xdbT\x94\x15M#\xa4\xb7\x14\xdd9\xecI-J\x14\xff\x8ad\xbfqC!\x7f\x07\xb3\xac\xb4\x1f\xc2\xf4\xfa\\u\xd6\xa7\xfcS%HH\xe8\xa1M\xfe\xab*\x96\xa0\xb6)\xff\x14\xbcz\x923T[\x14\xfe\xaa\xb6\x8a?\xb5\x08:\xaa:T\x8c\xaaP;j$\xe5\x91A\xa1C'\xfd!J\x8e\x95\x10i\xaa,\x8ax2gPjH^\xe5\xa0\xf5\xd2Z\x92\xa1\xa4-I2}\x7f" | |
======== release_stream 1 | |
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/site-packages/grpclib/server.py", line 415, in request_handler | |
release_stream() | |
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 474, in release_stream | |
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() | |
========== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment