Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_commands] Now inside def Shell(self, command, timeout_ms=None) (line 378)
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_commands] command: dumpsys power | grep "Display Power"
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_commands] timeout_ms: None
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] Inside StreamingCommand(cls, usb, service, command='', timeout_ms=None) (line 518)
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] command before type test: dumpsys power | grep "Display Power" (<class 'str'>)
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] cls: <class 'adb.adb_protocol.AdbMessage'>
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] usb: <adb.common.TcpHandle object at 0x7fb494cf5c18>
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] service: b'shell'
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] command after type test: b'dumpsys power | grep "Display Power"' (<class 'bytes'>)
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] timeout_ms: None
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] Now inside def Open (line 429)
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] destination: b'shell:dumpsys power | grep "Display Power"'
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] cls: <class 'adb.adb_protocol.AdbMessage'>
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] usb: <adb.common.TcpHandle object at 0x7fb494cf5c18>
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] Sending msg: <adb.adb_protocol.AdbMessage object at 0x7fb494b63d30>
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] Now inside def Pack(self) (line 251)
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] self.format: b'<6I'
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] self.command: 1313165391
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] self.arg0: 1
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] self.arg1: 0
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] len(self.data)): 43
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] self.checksum: 3973
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] self.magic: 2981801904
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] packed: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00+\x00\x00\x00\x85\x0f\x00\x00\xb0\xaf\xba\xb1'
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] Now inside def Unpack (line 271)
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] cls: <class 'adb.adb_protocol.AdbMessage'>
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] message: b'WRTE\xf8k\x00\x00\x01\x00\x00\x00\x18\x00\x00\x00b\x08\x00\x00\xa8\xad\xab\xba'
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] cmd: 1163154007
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] arg0: 27640
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] arg1: 1
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] data_length: 24
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] data_checksum: 2146
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] unused_magic: 3131813288
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] Now inside def Read (line 296)
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] msg: b'WRTE\xf8k\x00\x00\x01\x00\x00\x00\x18\x00\x00\x00b\x08\x00\x00\xa8\xad\xab\xba'
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] cmd: 1163154007
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] arg0: 27640
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] arg1: 1
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] data_length: 24
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] data_checksum: 2146
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] command: b'WRTE'
- 2018-11-12 13:23:02 INFO (ThreadPoolExecutor-0_15) [adb.adb_protocol] expected_cmds: [b'CLSE', b'OKAY']
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_commands] Now inside def Shell(self, command, timeout_ms=None) (line 378)
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_commands] command: dumpsys power | grep "Display Power"
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_commands] timeout_ms: None
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] Inside StreamingCommand(cls, usb, service, command='', timeout_ms=None) (line 518)
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] command before type test: dumpsys power | grep "Display Power" (<class 'str'>)
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] cls: <class 'adb.adb_protocol.AdbMessage'>
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] usb: <adb.common.TcpHandle object at 0x7fb494cf5c18>
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] service: b'shell'
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] command after type test: b'dumpsys power | grep "Display Power"' (<class 'bytes'>)
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] timeout_ms: None
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] Now inside def Open (line 429)
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] destination: b'shell:dumpsys power | grep "Display Power"'
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] cls: <class 'adb.adb_protocol.AdbMessage'>
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] usb: <adb.common.TcpHandle object at 0x7fb494cf5c18>
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] Sending msg: <adb.adb_protocol.AdbMessage object at 0x7fb4f01906a0>
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] Now inside def Pack(self) (line 251)
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] self.format: b'<6I'
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] self.command: 1313165391
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] self.arg0: 1
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] self.arg1: 0
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] len(self.data)): 43
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] self.checksum: 3973
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] self.magic: 2981801904
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] packed: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00+\x00\x00\x00\x85\x0f\x00\x00\xb0\xaf\xba\xb1'
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] Now inside def Unpack (line 271)
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] cls: <class 'adb.adb_protocol.AdbMessage'>
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] message: b'Display Power: state=ON\n'
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] cmd: 1886611780
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] arg0: 544825708
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] arg1: 1702326096
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] data_length: 1931491954
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] data_checksum: 1702125940
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] unused_magic: 172904253
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] Now inside def Read (line 296)
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] msg: b'Display Power: state=ON\n'
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] cmd: 1886611780
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] arg0: 544825708
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] arg1: 1702326096
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] data_length: 1931491954
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] data_checksum: 1702125940
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] command: None
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] expected_cmds: [b'CLSE', b'OKAY']
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] About to throw InvalidCommandError in def Read (line 306)
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] Now inside InvalidCommandError class def __init__ (line 62)
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] message: Unknown command: 70736944
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] response_header: 1886611780
- 2018-11-12 13:23:15 INFO (ThreadPoolExecutor-0_16) [adb.adb_protocol] response_data: (544825708, 1702326096)
- In our Home Assistant environment the traceback is as follows
- Mon Nov 12 2018 13:23:15 GMT-0500 (Eastern Standard Time)
- Update for media_player.shieldtv fails
- Traceback (most recent call last):
- File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 221, in async_update_ha_state
- await self.async_device_update()
- File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 347, in async_device_update
- await self.async_update()
- File "/home/homeassistant/.homeassistant/custom_components/media_player/androidtv.py", line 255, in async_update
- await self._androidtv.update()
- File "/srv/homeassistant/lib/python3.6/site-packages/androidtv/__init__.py", line 361, in update
- screen_on = await self._screen_on
- File "/srv/homeassistant/lib/python3.6/site-packages/androidtv/__init__.py", line 407, in _screen_on
- screen_on = await self._dump_has('power', 'Display Power', 'state=ON')
- File "/srv/homeassistant/lib/python3.6/site-packages/androidtv/__init__.py", line 461, in _dump_has
- dump_result = await self._dump(service, grep=grep)
- File "/srv/homeassistant/lib/python3.6/site-packages/androidtv/__init__.py", line 448, in _dump
- result = await self._adb.shell('dumpsys {0} | grep "{1}"'.format(service, grep))
- File "/srv/homeassistant/lib/python3.6/site-packages/androidtv/__init__.py", line 298, in shell
- return await fut
- File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
- result = self.fn(*self.args, **self.kwargs)
- File "/srv/homeassistant/lib/python3.6/site-packages/adb/adb_commands.py", line 383, in Shell
- timeout_ms=timeout_ms)
- File "/srv/homeassistant/lib/python3.6/site-packages/adb/adb_protocol.py", line 493, in Command
- result = ''.join(cls.StreamingCommand(usb, service, command, timeout_ms))
- File "/srv/homeassistant/lib/python3.6/site-packages/adb/adb_protocol.py", line 529, in StreamingCommand
- timeout_ms=timeout_ms)
- File "/srv/homeassistant/lib/python3.6/site-packages/adb/adb_protocol.py", line 440, in Open
- timeout_ms=timeout_ms)
- File "/srv/homeassistant/lib/python3.6/site-packages/adb/adb_protocol.py", line 308, in Read
- 'Unknown command: %x' % cmd, cmd, (arg0, arg1))
- adb.adb_protocol.InvalidCommandError: ('Unknown command: 70736944', 1886611780, (544825708, 1702326096))
- Mon Nov 12 2018 13:23:02 GMT-0500 (Eastern Standard Time)
- Update for media_player.shieldtv fails
- Traceback (most recent call last):
- File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 221, in async_update_ha_state
- await self.async_device_update()
- File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 347, in async_device_update
- await self.async_update()
- File "/home/homeassistant/.homeassistant/custom_components/media_player/androidtv.py", line 255, in async_update
- await self._androidtv.update()
- File "/srv/homeassistant/lib/python3.6/site-packages/androidtv/__init__.py", line 361, in update
- screen_on = await self._screen_on
- File "/srv/homeassistant/lib/python3.6/site-packages/androidtv/__init__.py", line 407, in _screen_on
- screen_on = await self._dump_has('power', 'Display Power', 'state=ON')
- File "/srv/homeassistant/lib/python3.6/site-packages/androidtv/__init__.py", line 461, in _dump_has
- dump_result = await self._dump(service, grep=grep)
- File "/srv/homeassistant/lib/python3.6/site-packages/androidtv/__init__.py", line 448, in _dump
- result = await self._adb.shell('dumpsys {0} | grep "{1}"'.format(service, grep))
- File "/srv/homeassistant/lib/python3.6/site-packages/androidtv/__init__.py", line 298, in shell
- return await fut
- File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
- result = self.fn(*self.args, **self.kwargs)
- File "/srv/homeassistant/lib/python3.6/site-packages/adb/adb_commands.py", line 383, in Shell
- timeout_ms=timeout_ms)
- File "/srv/homeassistant/lib/python3.6/site-packages/adb/adb_protocol.py", line 493, in Command
- result = ''.join(cls.StreamingCommand(usb, service, command, timeout_ms))
- File "/srv/homeassistant/lib/python3.6/site-packages/adb/adb_protocol.py", line 529, in StreamingCommand
- timeout_ms=timeout_ms)
- File "/srv/homeassistant/lib/python3.6/site-packages/adb/adb_protocol.py", line 440, in Open
- timeout_ms=timeout_ms)
- File "/srv/homeassistant/lib/python3.6/site-packages/adb/adb_protocol.py", line 312, in Read
- if time.time() - start > total_timeout_ms:
- TypeError: '>' not supported between instances of 'float' and 'NoneType'
- Mon Nov 12 2018 13:22:49 GMT-0500 (Eastern Standard Time)
- Update for media_player.shieldtv fails
- Traceback (most recent call last):
- File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 221, in async_update_ha_state
- await self.async_device_update()
- File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 347, in async_device_update
- await self.async_update()
- File "/home/homeassistant/.homeassistant/custom_components/media_player/androidtv.py", line 255, in async_update
- await self._androidtv.update()
- File "/srv/homeassistant/lib/python3.6/site-packages/androidtv/__init__.py", line 366, in update
- wake_lock = await self._wake_lock
- File "/srv/homeassistant/lib/python3.6/site-packages/androidtv/__init__.py", line 419, in _wake_lock
- wake_lock = await self._dump_has('power', 'Locks', 'size=0')
- File "/srv/homeassistant/lib/python3.6/site-packages/androidtv/__init__.py", line 461, in _dump_has
- dump_result = await self._dump(service, grep=grep)
- File "/srv/homeassistant/lib/python3.6/site-packages/androidtv/__init__.py", line 448, in _dump
- result = await self._adb.shell('dumpsys {0} | grep "{1}"'.format(service, grep))
- File "/srv/homeassistant/lib/python3.6/site-packages/androidtv/__init__.py", line 298, in shell
- return await fut
- File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
- result = self.fn(*self.args, **self.kwargs)
- File "/srv/homeassistant/lib/python3.6/site-packages/adb/adb_commands.py", line 383, in Shell
- timeout_ms=timeout_ms)
- File "/srv/homeassistant/lib/python3.6/site-packages/adb/adb_protocol.py", line 493, in Command
- result = ''.join(cls.StreamingCommand(usb, service, command, timeout_ms))
- File "/srv/homeassistant/lib/python3.6/site-packages/adb/adb_protocol.py", line 531, in StreamingCommand
- for data in connection.ReadUntilClose():
- File "/srv/homeassistant/lib/python3.6/site-packages/adb/adb_protocol.py", line 169, in ReadUntilClose
- cmd, data = self.ReadUntil(b'CLSE', b'WRTE')
- File "/srv/homeassistant/lib/python3.6/site-packages/adb/adb_protocol.py", line 160, in ReadUntil
- self.remote_id, remote_id))
- adb.adb_protocol.InvalidResponseError: Incorrect remote id, expected 27640 got 27639
- Update for media_player.shieldtv fails
- Traceback (most recent call last):
- File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 221, in async_update_ha_state
- await self.async_device_update()
- File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 347, in async_device_update
- await self.async_update()
- File "/home/homeassistant/.homeassistant/custom_components/media_player/androidtv.py", line 255, in async_update
- await self._androidtv.update()
- File "/srv/homeassistant/lib/python3.6/site-packages/androidtv/__init__.py", line 361, in update
- screen_on = await self._screen_on
- File "/srv/homeassistant/lib/python3.6/site-packages/androidtv/__init__.py", line 407, in _screen_on
- screen_on = await self._dump_has('power', 'Display Power', 'state=ON')
- File "/srv/homeassistant/lib/python3.6/site-packages/androidtv/__init__.py", line 461, in _dump_has
- dump_result = await self._dump(service, grep=grep)
- File "/srv/homeassistant/lib/python3.6/site-packages/androidtv/__init__.py", line 448, in _dump
- result = await self._adb.shell('dumpsys {0} | grep "{1}"'.format(service, grep))
- File "/srv/homeassistant/lib/python3.6/site-packages/androidtv/__init__.py", line 298, in shell
- return await fut
- File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
- result = self.fn(*self.args, **self.kwargs)
- File "/srv/homeassistant/lib/python3.6/site-packages/adb/adb_commands.py", line 383, in Shell
- timeout_ms=timeout_ms)
- File "/srv/homeassistant/lib/python3.6/site-packages/adb/adb_protocol.py", line 493, in Command
- result = ''.join(cls.StreamingCommand(usb, service, command, timeout_ms))
- File "/srv/homeassistant/lib/python3.6/site-packages/adb/adb_protocol.py", line 531, in StreamingCommand
- for data in connection.ReadUntilClose():
- AttributeError: 'NoneType' object has no attribute 'ReadUntilClose'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement