@postlund found this in the logs today:
2021-07-23 08:58:35 ERROR (MainThread) [homeassistant] Error doing job: An open stream object is being garbage collected; call “stream.close()” explicitly.
2021-07-23 08:58:35 ERROR (MainThread) [homeassistant] Error doing job: An open stream object is being garbage collected; call “stream.close()” explicitly.
2021-07-23 08:59:16 ERROR (MainThread) [pyatv.mrp.protocol] heartbeat 1 failed after 2 tries
2021-07-23 09:04:49 ERROR (MainThread) [homeassistant] Error doing job: An open stream object is being garbage collected; call “stream.close()” explicitly.
2021-07-23 09:04:49 ERROR (MainThread) [homeassistant] Error doing job: An open stream object is being garbage collected; call “stream.close()” explicitly.
2021-07-23 09:05:29 ERROR (MainThread) [pyatv.mrp.protocol] heartbeat 1 failed after 2 tries
2021-07-23 09:11:26 ERROR (MainThread) [homeassistant] Error doing job: An open stream object is being garbage collected; call “stream.close()” explicitly.
2021-07-23 09:11:26 ERROR (MainThread) [homeassistant] Error doing job: An open stream object is being garbage collected; call “stream.close()” explicitly.
2021-07-23 09:12:08 ERROR (MainThread) [pyatv.mrp.protocol] heartbeat 1 failed after 2 tries
2021-07-23 09:20:16 ERROR (MainThread) [homeassistant] Error doing job: An open stream object is being garbage collected; call “stream.close()” explicitly.
2021-07-23 09:20:16 ERROR (MainThread) [homeassistant] Error doing job: An open stream object is being garbage collected; call “stream.close()” explicitly.
2021-07-23 09:20:57 ERROR (MainThread) [pyatv.mrp.protocol] heartbeat 1 failed after 2 tries
2021-07-23 09:21:12 WARNING (MainThread) [zeroconf] Choked at offset 0 while unpacking b’\n\xba\x10\x00’
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.8/site-packages/zeroconf/_protocol.py”, line 99, in init
self.read_header()
File “/srv/homeassistant/lib/python3.8/site-packages/zeroconf/_protocol.py”, line 137, in read_header
) = self.unpack(b’!6H’)
File “/srv/homeassistant/lib/python3.8/site-packages/zeroconf/_protocol.py”, line 124, in unpack
info = struct.unpack(format_, self.data[self.offset : self.offset + length])
struct.error: unpack requires a buffer of 12 bytes
2021-07-23 09:21:16 ERROR (MainThread) [pyatv.support.mdns] exception during data handling
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.8/site-packages/pyatv/support/mdns.py”, line 256, in datagram_received
delegate.datagram_received(data, addr)
File “/srv/homeassistant/lib/python3.8/site-packages/pyatv/support/mdns.py”, line 366, in datagram_received
services = parse_services(DnsMessage().unpack(data))
File “/srv/homeassistant/lib/python3.8/site-packages/pyatv/support/dns.py”, line 365, in unpack
header = DnsHeader.unpack_read(buffer)
File “/srv/homeassistant/lib/python3.8/site-packages/pyatv/support/dns.py”, line 286, in unpack_read
return cls._make(unpack_stream(">6H", buffer))
File “/srv/homeassistant/lib/python3.8/site-packages/pyatv/support/dns.py”, line 22, in unpack_stream
return struct.unpack(fmt, buffer.read(size))
struct.error: unpack requires a buffer of 12 bytes
2021-07-23 09:26:11 ERROR (MainThread) [homeassistant] Error doing job: An open stream object is being garbage collected; call “stream.close()” explicitly.
2021-07-23 09:26:11 ERROR (MainThread) [homeassistant] Error doing job: An open stream object is being garbage collected; call “stream.close()” explicitly.
2021-07-23 09:26:41 WARNING (MainThread) [pyatv.mrp.protocol] There were 1 outstanding requests
2021-07-23 09:26:41 WARNING (MainThread) [homeassistant.components.apple_tv] Connection lost to Apple TV “MojitoTV”
2021-07-23 09:26:41 ERROR (MainThread) [pyatv.mrp.protocol] heartbeat 1 failed after 2 tries
2021-07-23 09:26:41 ERROR (MainThread) [homeassistant] Error doing job: An open stream object is being garbage collected; call “stream.close()” explicitly.
2021-07-23 09:26:41 ERROR (MainThread) [homeassistant] Error doing job: An open stream object is being garbage collected; call “stream.close()” explicitly.
2021-07-23 09:27:23 ERROR (MainThread) [pyatv.mrp.protocol] heartbeat 1 failed after 2 tries
2021-07-23 09:27:23 ERROR (MainThread) [homeassistant] Error doing job: An open stream object is being garbage collected; call “stream.close()” explicitly.
2021-07-23 09:27:23 ERROR (MainThread) [homeassistant] Error doing job: An open stream object is being garbage collected; call “stream.close()” explicitly