connectedhomeip icon indicating copy to clipboard operation
connectedhomeip copied to clipboard

fix(python): fix no event loop on resubscribe

Open caubut-charter opened this issue 2 years ago • 2 comments

Problem

The initial event loop passed to AsyncReadTransaction is closed by the time a resubscribe occurs. It only lives until ZCLSubscribeAttribute returns.

2022-08-09 21:50:17 548360307136 ERROR    chip.DMG             _RedirectToPythonLogging:38 Subscription Liveness timeout with SubscriptionID = 0xc2da39a0, Peer = 01:000000008BD4493D
2022-08-09 21:50:17 548360307136 INFO     chip.DMG             _RedirectToPythonLogging:40 Will try to resubscribe to 01:000000008BD4493D at retry index 0 after 0ms due to error ../../src/app/ReadClient.cpp:824: CHIP Error 0x00000032: Timeout
Exception ignored on calling ctypes callback function: <function _OnResubscriptionAttemptedCallback at 0x7fb2084c10>
Traceback (most recent call last):
  File "/home/pi/matterlib/.venv/lib/python3.9/site-packages/chip/clusters/Attribute.py", line 865, in _OnResubscriptionAttemptedCallback
    closure.handleResubscriptionAttempted(terminationCause, nextResubscribeIntervalMsec)
  File "/home/pi/matterlib/.venv/lib/python3.9/site-packages/chip/clusters/Attribute.py", line 736, in handleResubscriptionAttempted
    self._event_loop.call_soon_threadsafe(
  File "/usr/lib/python3.9/asyncio/base_events.py", line 791, in call_soon_threadsafe
     self._check_closed()
   File "/usr/lib/python3.9/asyncio/base_events.py", line 510, in _check_closed
     raise RuntimeError('Event loop is closed')
 RuntimeError: Event loop is closed
2022-08-09 21:50:17 548360307136 INFO     chip.DMG             _RedirectToPythonLogging:40 OnResubscribeTimerCallback: DoCASE = 1
2022-08-09 21:50:17 548360307136 INFO     chip.SC              _RedirectToPythonLogging:40 SecureSession[0x7f9403aaf0]: Moving from state 'kActive' --> 'kDefunct'
2022-08-09 21:50:17 548360307136 INFO     chip.DIS             _RedirectToPythonLogging:40 UDP:[fd0b:ca5d:4d1d:1:9f94:5c40:bf3e:d03a%eth0]:5540: new best score: 6
2022-08-09 21:50:17 548360307136 INFO     chip.DIS             _RedirectToPythonLogging:40 Checking node lookup status after 4 ms
2022-08-09 21:50:17 548360307136 INFO     chip.DIS             _RedirectToPythonLogging:40 Keeping DNSSD lookup active
2022-08-09 21:50:17 548360307136 INFO     chip.DIS             _RedirectToPythonLogging:40 UDP:[fd0b:ca5d:4d1d:1:9f94:5c40:bf3e:d03a%eth0]:5540: score has not improved: 6
2022-08-09 21:50:17 548360307136 INFO     chip.DIS             _RedirectToPythonLogging:40 Checking node lookup status after 8 ms
2022-08-09 21:50:17 548360307136 INFO     chip.DIS             _RedirectToPythonLogging:40 Keeping DNSSD lookup active
2022-08-09 21:50:17 548360307136 INFO     chip.DIS             _RedirectToPythonLogging:40 UDP:[fd0b:ca5d:4d1d:1:9f94:5c40:bf3e:d03a%docker0]:5540: score has not improved: 6
2022-08-09 21:50:17 548360307136 INFO     chip.DIS             _RedirectToPythonLogging:40 Checking node lookup status after 13 ms
2022-08-09 21:50:17 548360307136 INFO     chip.DIS             _RedirectToPythonLogging:40 Keeping DNSSD lookup active
2022-08-09 21:50:17 548360307136 INFO     chip.DIS             _RedirectToPythonLogging:40 UDP:[fd0b:ca5d:4d1d:1:9f94:5c40:bf3e:d03a%docker0]:5540: score has not improved: 6
2022-08-09 21:50:17 548360307136 INFO     chip.DIS             _RedirectToPythonLogging:40 Checking node lookup status after 18 ms
2022-08-09 21:50:17 548360307136 INFO     chip.DIS             _RedirectToPythonLogging:40 Keeping DNSSD lookup active
2022-08-09 21:50:17 548360307136 INFO     chip.DIS             _RedirectToPythonLogging:40 UDP:[fd0b:ca5d:4d1d:1:9f94:5c40:bf3e:d03a%veth72ba261]:5540: score has not improved: 6
2022-08-09 21:50:17 548360307136 INFO     chip.DIS             _RedirectToPythonLogging:40 Checking node lookup status after 22 ms
2022-08-09 21:50:17 548360307136 INFO     chip.DIS             _RedirectToPythonLogging:40 Keeping DNSSD lookup active
2022-08-09 21:50:17 548360307136 INFO     chip.DIS             _RedirectToPythonLogging:40 UDP:[fd0b:ca5d:4d1d:1:9f94:5c40:bf3e:d03a%veth72ba261]:5540: score has not improved: 6
2022-08-09 21:50:17 548360307136 INFO     chip.DIS             _RedirectToPythonLogging:40 Checking node lookup status after 27 ms
2022-08-09 21:50:17 548360307136 INFO     chip.DIS             _RedirectToPythonLogging:40 Keeping DNSSD lookup active
2022-08-09 21:50:17 548360307136 INFO     chip.DIS             _RedirectToPythonLogging:40 UDP:[fd0b:ca5d:4d1d:1:9f94:5c40:bf3e:d03a%eth0]:5540: score has not improved: 6
2022-08-09 21:50:17 548360307136 INFO     chip.DIS             _RedirectToPythonLogging:40 Checking node lookup status after 35 ms
2022-08-09 21:50:17 548360307136 INFO     chip.DIS             _RedirectToPythonLogging:40 Keeping DNSSD lookup active
2022-08-09 21:50:17 548360307136 INFO     chip.DIS             _RedirectToPythonLogging:40 Checking node lookup status after 200 ms
2022-08-09 21:50:17 548360307136 INFO     chip.SC              _RedirectToPythonLogging:40 Initiating session on local FabricIndex 1 from 0x0000000000000001 -> 0x000000008BD4493D
2022-08-09 21:50:17 548360307136 INFO     chip.IN              _RedirectToPythonLogging:40 Prepared unauthenticated message 0x7f94037908 to 0x0000000000000000 (0)  of type 0x30 and protocolId (0, 0) on exchange 17328i with MessageCounter:205122604.
2022-08-09 21:50:17 548360307136 INFO     chip.IN              _RedirectToPythonLogging:40 Sending unauthenticated msg 0x7f94037908 with MessageCounter:205122604 to 0x0000000000000000 at monotonic time: 0000000018B8AE8F msec
2022-08-09 21:50:17 548360307136 INFO     chip.SC              _RedirectToPythonLogging:40 Sent Sigma1 msg
2022-08-09 21:50:17 548360307136 INFO     chip.EM              _RedirectToPythonLogging:40 Received message of type 0x10 with protocolId (0, 0) and MessageCounter:261366575 on exchange 17328i
2022-08-09 21:50:17 548360307136 INFO     chip.EM              _RedirectToPythonLogging:40 Received message of type 0x33 with protocolId (0, 0) and MessageCounter:261366576 on exchange 17328i
2022-08-09 21:50:17 548360307136 INFO     root                 SetSdkKey:151 SetSdkKey: g/sri = b'\x16\x15$\x01\x01&\x02\xa8\x83$\x9c\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\x    baS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\    x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85    \x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\xf6\xd7\xa7g\x18\x15$\x01\x01&\x02\xf6\xd7\xa7g\x18\x15$\x01\x01&\x02\xf6\xd7\xa7g\x18\x15$\x01\x01&\x0    2\xf6\xd7\xa7g\x18\x15$\x01\x01&\x02\x14\x141z\x18\x15$\x01\x01&\x02\x14\x141z\x18\x15$\x01\x01&\x02\x14\x141z\x18\x15$\x01\x01&\x02\x14\x141z\x18\x15$\x01\x01&\x02\x14\x141z\x18\x15$\x01\x01&\x02\x14\x141z\x18\x15$\x01\x01&\x02=I\xd4\x8b\x18\x18'
2022-08-09 21:50:17 548360307136 INFO     root                 SetSdkKey:151 SetSdkKey: f/1/s/000000008BD4493D = b'\x150\x03\x10\xbbJ\xc0s\xca\xbd\xcf\xde\xe7@\x83\xd8\x84\xe7\x00\xab0\x04 ,\xa5\xbc\xda2\x02\xe3y\x84\x9c\xa3\xcbn\xe5V\x05\xf2\xdd\xa23\xe9?\xeda\x83\xd4\x11\xe6\x1c\x1fGJ0\x05\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18'
2022-08-09 21:50:17 548360307136 INFO     root                 SetSdkKey:151 SetSdkKey: g/s/u0rAc8q9z97nQIPYhOcAqw== = b'\x15$\x01\x01&\x02=I\xd4\x8b\x18'
2022-08-09 21:50:17 548360307136 INFO     root                 SetSdkKey:151 SetSdkKey: g/sri = b'\x16\x15$\x01\x01&\x02\xa8\x83$\x9c\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\x    baS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\    x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85    \x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\x94\xbaS\x85\x18\x15$\x01\x01&\x02\xf6\xd7\xa7g\x18\x15$\x01\x01&\x02\xf6\xd7\xa7g\x18\x15$\x01\x01&\x02\xf6\xd7\xa7g\x18\x15$\x01\x01&\x0    2\xf6\xd7\xa7g\x18\x15$\x01\x01&\x02\x14\x141z\x18\x15$\x01\x01&\x02\x14\x141z\x18\x15$\x01\x01&\x02\x14\x141z\x18\x15$\x01\x01&\x02\x14\x141z\x18\x15$\x01\x01&\x02\x14\x141z\x18\x15$\x01\x01&\x02\x14\x141z\x18\x15$\x01\x01&\x02=I\xd4\x8b\x18\x15$\x01\x01&\x02=I\xd4\x8b\x18\x18'
2022-08-09 21:50:17 548360307136 INFO     chip.IN              _RedirectToPythonLogging:40 Prepared unauthenticated message 0x7f9401b4d8 to 0x0000000000000000 (0)  of type 0x40 and protocolId (0, 0) on exchange 17328i with MessageCounter:205122605.
2022-08-09 21:50:17 548360307136 INFO     chip.IN              _RedirectToPythonLogging:40 Sending unauthenticated msg 0x7f9401b4d8 with MessageCounter:205122605 to 0x0000000000000000 at monotonic time: 0000000018B8AED1 msec
2022-08-09 21:50:17 548360307136 INFO     chip.SC              _RedirectToPythonLogging:40 SecureSession[0x7f94055880]: Moving from state 'kEstablishing' --> 'kActive'
2022-08-09 21:50:17 548360307136 INFO     chip.DMG             _RedirectToPythonLogging:40 HandleDeviceConnected
2022-08-09 21:50:17 548360307136 INFO     chip.IN              _RedirectToPythonLogging:40 Prepared secure message 0x7f94033c78 to 0x000000008BD4493D (1)  of type 0x3 and protocolId (0, 1) on exchange 17329i with MessageCounter:125897414.
2022-08-09 21:50:17 548360307136 INFO     chip.IN              _RedirectToPythonLogging:40 Sending encrypted msg 0x7f94033c78 with MessageCounter:125897414 to 0x000000008BD4493D (1) at monotonic time: 0000000018B8AED7 msec
2022-08-09 21:50:17 548360307136 INFO     chip.EM              _RedirectToPythonLogging:40 Received message of type 0x10 with protocolId (0, 0) and MessageCounter:261366577 on exchange 17328i
2022-08-09 21:50:17 548360307136 INFO     chip.EM              _RedirectToPythonLogging:40 Received message of type 0x5 with protocolId (0, 1) and MessageCounter:66357020 on exchange 17329i
2022-08-09 21:50:17 547868369344 INFO     matter_manager       _handle_zcl_report_data:277 attribute updated: ZclAttributeUpdatedEvent(cluster=6, attribute=0, node_id=2345945405, endpoint_id=1, group_id=None, value=True, subscription_id=3269081504, data_version=761109445)
2022-08-09 21:50:17 548377354688 INFO     matter_manager       _handle_zcl_subscribe:359 zcl_subscribe successful: ZclSubscribeEvent(cluster=6, attribute=0, node_id=2345945405, endpoint_id=1, min_interval=0, max_interval=20)
2022-08-09 21:50:17 548360307136 INFO     chip.IN              _RedirectToPythonLogging:40 Prepared secure message 0x7f940350a8 to 0x000000008BD4493D (1)  of type 0x1 and protocolId (0, 1) on exchange 17329i with MessageCounter:125897415.
2022-08-09 21:50:17 547868369344 DEBUG    root                 matter_command_callback:419 matter command callback invoked: ZclSubscribeEvent(cluster=6, attribute=0, node_id=2345945405, endpoint_id=1, min_interval=0, max_interval=20)
2022-08-09 21:50:17 548360307136 INFO     chip.IN              _RedirectToPythonLogging:40 Sending encrypted msg 0x7f940350a8 with MessageCounter:125897415 to 0x000000008BD4493D (1) at monotonic time: 0000000018B8AF02 msec
2022-08-09 21:50:17 548360307136 INFO     chip.EM              _RedirectToPythonLogging:40 Received message of type 0x4 with protocolId (0, 1) and MessageCounter:66357021 on exchange 17329i
2022-08-09 21:50:17 548360307136 INFO     chip.DMG             _RedirectToPythonLogging:40 SubscribeResponse is received
2022-08-09 21:50:17 548360307136 INFO     chip.DMG             _RedirectToPythonLogging:40 Subscription established with SubscriptionID = 0x804addd6 MinInterval = 0s MaxInterval = 20s Peer = 01:000000008BD4493D
Exception ignored on calling ctypes callback function: <function _OnSubscriptionEstablishedCallback at 0x7fb2084b80>
Traceback (most recent call last):
  File "/home/pi/matterlib/.venv/lib/python3.9/site-packages/chip/clusters/Attribute.py", line 860, in _OnSubscriptionEstablishedCallback
    closure.handleSubscriptionEstablished(subscriptionId)
  File "/home/pi/matterlib/.venv/lib/python3.9/site-packages/chip/clusters/Attribute.py", line 728, in handleSubscriptionEstablished
    self._event_loop.call_soon_threadsafe(
 File "/usr/lib/python3.9/asyncio/base_events.py", line 791, in call_soon_threadsafe
   self._check_closed()
 File "/usr/lib/python3.9/asyncio/base_events.py", line 510, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed

Change overview

Uses asyncio.run if the event loop that is passed upon initialization of the object is closed.

Testing

Manually tested on an RPi.

caubut-charter avatar Aug 09 '22 23:08 caubut-charter

PR #21773: Size comparison from a6cdfbbd42d5c51edc07afab27a689d134c1424d to e07f99ea93254459f01b547ac539c0c590783b98

Increases (1 build for cyw30739)
platform target config section a6cdfbbd e07f99ea change % change
cyw30739 ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 596954 596962 8 0.0
.app_xip_area 474476 474484 8 0.0
Decreases (5 builds for bl602, efr32, esp32, telink)
platform target config section a6cdfbbd e07f99ea change % change
bl602 lighting-app bl602 (read/write) 1379962 1379954 -8 -0.0
.text 1048136 1048132 -4 -0.0
efr32 lock-app BRD4161A+wf200 (read/write) 1136484 1136468 -16 -0.0
.text 989576 989560 -16 -0.0
esp32 all-clusters-app c3devkit (read only) 1026078 1026076 -2 -0.0
.flash.text 1026078 1026076 -2 -0.0
telink light-switch-app tlsr9518adk80d text 569826 569824 -2 -0.0
lighting-app tlsr9518adk80d text 587800 587798 -2 -0.0
Full report (32 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section a6cdfbbd e07f99ea change % change
bl602 lighting-app bl602 (read/write) 1379962 1379954 -8 -0.0
.bss 119746 119746 0 0.0
.data 4480 4480 0 0.0
.text 1048136 1048132 -4 -0.0
bl602+rpc (read/write) 1425210 1425210 0 0.0
.bss 127186 127186 0 0.0
.data 4600 4600 0 0.0
.text 1079636 1079636 0 0.0
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 670927 670927 0 0.0
(read/write) 180456 180456 0 0.0
.bss 74276 74276 0 0.0
.data 3372 3372 0 0.0
.rodata 88471 88471 0 0.0
.text 582140 582140 0 0.0
all-clusters-minimal-app LP_CC2652R7 (read only) 636471 636471 0 0.0
(read/write) 157844 157844 0 0.0
.bss 73556 73556 0 0.0
.data 3372 3372 0 0.0
.rodata 77727 77727 0 0.0
.text 558420 558420 0 0.0
lock-ftd LP_CC2652R7 (read only) 672787 672787 0 0.0
(read/write) 168780 168780 0 0.0
.bss 71348 71348 0 0.0
.data 3296 3296 0 0.0
.rodata 76411 76411 0 0.0
.text 595896 595896 0 0.0
lock-mtd LP_CC2652R7 (read only) 655395 655395 0 0.0
(read/write) 181860 181860 0 0.0
.bss 67036 67036 0 0.0
.data 3296 3296 0 0.0
.rodata 101363 101363 0 0.0
.text 553552 553552 0 0.0
pump-app LP_CC2652R7 (read only) 683019 683019 0 0.0
(read/write) 159356 159356 0 0.0
.bss 71388 71388 0 0.0
.data 3296 3296 0 0.0
.rodata 89315 89315 0 0.0
.text 593220 593220 0 0.0
pump-controller-app LP_CC2652R7 (read only) 667487 667487 0 0.0
(read/write) 175024 175024 0 0.0
.bss 71524 71524 0 0.0
.data 3292 3292 0 0.0
.rodata 84863 84863 0 0.0
.text 582144 582144 0 0.0
shell LP_CC2652R7 (read only) 663610 663610 0 0.0
(read/write) 183292 183292 0 0.0
.bss 76596 76596 0 0.0
.data 3376 3376 0 0.0
.rodata 85418 85418 0 0.0
.text 577876 577876 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 584646 584646 0 0.0
.app_xip_area 461448 461448 0 0.0
.bss 65640 65640 0 0.0
.data 744 744 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 590582 590582 0 0.0
.app_xip_area 462600 462600 0 0.0
.bss 70424 70424 0 0.0
.data 748 748 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 596954 596962 8 0.0
.app_xip_area 474476 474484 8 0.0
.bss 64952 64952 0 0.0
.data 716 716 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read/write) 1096372 1096372 0 0.0
.bss 132844 132844 0 0.0
.data 2068 2068 0 0.0
.text 961436 961436 0 0.0
BRD4161A+rpc (read/write) 1150636 1150636 0 0.0
.bss 149532 149532 0 0.0
.data 2280 2280 0 0.0
.text 998804 998804 0 0.0
BRD4161A+rs911x (read/write) 985908 985908 0 0.0
.bss 162184 162184 0 0.0
.data 2056 2056 0 0.0
.text 821648 821648 0 0.0
lock-app BRD4161A+wf200 (read/write) 1136484 1136468 -16 -0.0
.bss 144824 144824 0 0.0
.data 2064 2064 0 0.0
.text 989576 989560 -16 -0.0
window-app BRD4161A (read/write) 1088104 1088104 0 0.0
.bss 134292 134292 0 0.0
.data 2096 2096 0 0.0
.text 951696 951696 0 0.0
esp32 all-clusters-app c3devkit (read only) 1026078 1026076 -2 -0.0
(read/write) 1487418 1487418 0 0.0
.dram0.bss 70336 70336 0 0.0
.dram0.data 14600 14600 0 0.0
.flash.rodata 217048 217048 0 0.0
.flash.text 1026078 1026076 -2 -0.0
.iram0.text 62902 62902 0 0.0
m5stack (read only) 1079367 1079367 0 0.0
(read/write) 489392 489392 0 0.0
.dram0.bss 75840 75840 0 0.0
.dram0.data 34144 34144 0 0.0
.flash.rodata 247412 247412 0 0.0
.flash.text 1073983 1073983 0 0.0
.iram0.text 123267 123267 0 0.0
k32w light k32w0+release (read/write) 643644 643644 0 0.0
.bss 69712 69712 0 0.0
.data 2044 2044 0 0.0
.text 569160 569160 0 0.0
lock k32w0+release (read/write) 701076 701076 0 0.0
.bss 70184 70184 0 0.0
.data 2052 2052 0 0.0
.text 626112 626112 0 0.0
linux chip-tool-ipv6only arm64 (read only) 10007084 10007084 0 0.0
(read/write) 695153 695153 0 0.0
.bss 32897 32897 0 0.0
.data 3272 3272 0 0.0
.data.rel.ro 640360 640360 0 0.0
.dynamic 560 560 0 0.0
.got 13656 13656 0 0.0
.init 24 24 0 0.0
.init_array 192 192 0 0.0
.rodata 474124 474124 0 0.0
.text 7903284 7903284 0 0.0
thermostat-no-ble arm64 (read only) 2350956 2350956 0 0.0
(read/write) 141681 141681 0 0.0
.bss 55313 55313 0 0.0
.data 1672 1672 0 0.0
.data.rel.ro 75880 75880 0 0.0
.dynamic 560 560 0 0.0
.got 5040 5040 0 0.0
.init 24 24 0 0.0
.init_array 408 408 0 0.0
.rodata 139716 139716 0 0.0
.text 1973712 1973712 0 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2452720 2452720 0 0.0
.bss 214556 214556 0 0.0
.data 5872 5872 0 0.0
.text 1415364 1415364 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1177959 1177959 0 0.0
bss 143222 143222 0 0.0
rodata 142776 142776 0 0.0
text 813112 813112 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read/write) 1157983 1157983 0 0.0
bss 142460 142460 0 0.0
rodata 134472 134472 0 0.0
text 802232 802232 0 0.0
p6 all-clusters-app default (read only) 881520 881520 0 0.0
(read/write) 1693812 1693812 0 0.0
.bss 149168 149168 0 0.0
.data 2656 2656 0 0.0
.text 1533600 1533600 0 0.0
all-clusters-minimal-app default (read only) 882240 882240 0 0.0
(read/write) 1637980 1637980 0 0.0
.bss 148448 148448 0 0.0
.data 2656 2656 0 0.0
.text 1478488 1478488 0 0.0
light-app default (read only) 890560 890560 0 0.0
(read/write) 1556668 1556668 0 0.0
.bss 140336 140336 0 0.0
.data 2448 2448 0 0.0
.text 1405496 1405496 0 0.0
lock-app default (read only) 886064 886064 0 0.0
(read/write) 1593980 1593980 0 0.0
.bss 144816 144816 0 0.0
.data 2464 2464 0 0.0
.text 1438312 1438312 0 0.0
telink light-switch-app tlsr9518adk80d (read/write) 806120 806120 0 0.0
bss 70976 70976 0 0.0
noinit 43488 43488 0 0.0
text 569826 569824 -2 -0.0
lighting-app tlsr9518adk80d (read/write) 827928 827928 0 0.0
bss 71820 71820 0 0.0
noinit 43488 43488 0 0.0
text 587800 587798 -2 -0.0

github-actions[bot] avatar Aug 10 '22 02:08 github-actions[bot]

PR #21773: Size comparison from 9b85c7ade8836b069aba917e2b6e7b06fd0c2926 to 9e49e57cc0664fcf50b36e7fba197227a70fa2cb

Increases (5 builds for efr32, esp32, nrfconnect, telink)
platform target config section 9b85c7ad 9e49e57c change % change
efr32 lock-app BRD4161A+wf200 (read/write) 1136676 1136692 16 0.0
.text 989768 989784 16 0.0
esp32 all-clusters-app c3devkit (read only) 1026244 1026246 2 0.0
.flash.text 1026244 1026246 2 0.0
nrfconnect all-clusters-minimal-app nrf52840dk_nrf52840 text 802356 802360 4 0.0
telink light-switch-app tlsr9518adk80d text 569992 569994 2 0.0
lighting-app tlsr9518adk80d text 587966 587968 2 0.0
Decreases (2 builds for cyw30739, nrfconnect)
platform target config section 9b85c7ad 9e49e57c change % change
cyw30739 ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 597098 597090 -8 -0.0
.app_xip_area 474620 474612 -8 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 text 813240 813236 -4 -0.0
Full report (43 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section 9b85c7ad 9e49e57c change % change
bl602 lighting-app bl602 (read/write) 1380170 1380170 0 0.0
.bss 119746 119746 0 0.0
.data 4480 4480 0 0.0
.text 1048348 1048348 0 0.0
bl602+rpc (read/write) 1425426 1425426 0 0.0
.bss 127186 127186 0 0.0
.data 4600 4600 0 0.0
.text 1079848 1079848 0 0.0
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 671071 671071 0 0.0
(read/write) 180312 180312 0 0.0
.bss 74276 74276 0 0.0
.data 3372 3372 0 0.0
.rodata 88471 88471 0 0.0
.text 582284 582284 0 0.0
all-clusters-minimal-app LP_CC2652R7 (read only) 636599 636599 0 0.0
(read/write) 157844 157844 0 0.0
.bss 73556 73556 0 0.0
.data 3372 3372 0 0.0
.rodata 77727 77727 0 0.0
.text 558548 558548 0 0.0
lock-ftd LP_CC2652R7 (read only) 672907 672907 0 0.0
(read/write) 168660 168660 0 0.0
.bss 71348 71348 0 0.0
.data 3296 3296 0 0.0
.rodata 76411 76411 0 0.0
.text 596016 596016 0 0.0
lock-mtd LP_CC2652R7 (read only) 655515 655515 0 0.0
(read/write) 181740 181740 0 0.0
.bss 67036 67036 0 0.0
.data 3296 3296 0 0.0
.rodata 101363 101363 0 0.0
.text 553672 553672 0 0.0
pump-app LP_CC2652R7 (read only) 683163 683163 0 0.0
(read/write) 159212 159212 0 0.0
.bss 71388 71388 0 0.0
.data 3296 3296 0 0.0
.rodata 89315 89315 0 0.0
.text 593364 593364 0 0.0
pump-controller-app LP_CC2652R7 (read only) 667615 667615 0 0.0
(read/write) 174896 174896 0 0.0
.bss 71524 71524 0 0.0
.data 3292 3292 0 0.0
.rodata 84863 84863 0 0.0
.text 582272 582272 0 0.0
shell LP_CC2652R7 (read only) 663746 663746 0 0.0
(read/write) 183156 183156 0 0.0
.bss 76596 76596 0 0.0
.data 3376 3376 0 0.0
.rodata 85418 85418 0 0.0
.text 578012 578012 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 584774 584774 0 0.0
.app_xip_area 461576 461576 0 0.0
.bss 65640 65640 0 0.0
.data 744 744 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 590710 590710 0 0.0
.app_xip_area 462728 462728 0 0.0
.bss 70424 70424 0 0.0
.data 748 748 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 597098 597090 -8 -0.0
.app_xip_area 474620 474612 -8 -0.0
.bss 64952 64952 0 0.0
.data 716 716 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read/write) 1096596 1096596 0 0.0
.bss 132844 132844 0 0.0
.data 2068 2068 0 0.0
.text 961660 961660 0 0.0
BRD4161A+rpc (read/write) 1150860 1150860 0 0.0
.bss 149532 149532 0 0.0
.data 2280 2280 0 0.0
.text 999028 999028 0 0.0
BRD4161A+rs911x (read/write) 986116 986116 0 0.0
.bss 162184 162184 0 0.0
.data 2056 2056 0 0.0
.text 821856 821856 0 0.0
lock-app BRD4161A+wf200 (read/write) 1136676 1136692 16 0.0
.bss 144824 144824 0 0.0
.data 2064 2064 0 0.0
.text 989768 989784 16 0.0
window-app BRD4161A (read/write) 1088328 1088328 0 0.0
.bss 134292 134292 0 0.0
.data 2096 2096 0 0.0
.text 951920 951920 0 0.0
esp32 all-clusters-app c3devkit (read only) 1026244 1026246 2 0.0
(read/write) 1487426 1487426 0 0.0
.dram0.bss 70336 70336 0 0.0
.dram0.data 14600 14600 0 0.0
.flash.rodata 217056 217056 0 0.0
.flash.text 1026244 1026246 2 0.0
.iram0.text 62902 62902 0 0.0
m5stack (read only) 1079499 1079499 0 0.0
(read/write) 489392 489392 0 0.0
.dram0.bss 75840 75840 0 0.0
.dram0.data 34144 34144 0 0.0
.flash.rodata 247412 247412 0 0.0
.flash.text 1074115 1074115 0 0.0
.iram0.text 123267 123267 0 0.0
k32w light k32w0+release (read/write) 643772 643772 0 0.0
.bss 69712 69712 0 0.0
.data 2044 2044 0 0.0
.text 569288 569288 0 0.0
lock k32w0+release (read/write) 701204 701204 0 0.0
.bss 70184 70184 0 0.0
.data 2052 2052 0 0.0
.text 626240 626240 0 0.0
linux all-clusters-app debug (read only) 3026897 3026897 0 0.0
(read/write) 155752 155752 0 0.0
.bss 61888 61888 0 0.0
.data 2096 2096 0 0.0
.data.rel.ro 85416 85416 0 0.0
.dynamic 608 608 0 0.0
.got 4568 4568 0 0.0
.init 27 27 0 0.0
.init_array 1152 1152 0 0.0
.rodata 273419 273419 0 0.0
.text 2574546 2574546 0 0.0
all-clusters-minimal-app debug (read only) 2867169 2867169 0 0.0
(read/write) 147488 147488 0 0.0
.bss 61152 61152 0 0.0
.data 2064 2064 0 0.0
.data.rel.ro 78008 78008 0 0.0
.dynamic 608 608 0 0.0
.got 4488 4488 0 0.0
.init 27 27 0 0.0
.init_array 1144 1144 0 0.0
.rodata 273547 273547 0 0.0
.text 2417394 2417394 0 0.0
bridge-app debug+rpc (read only) 2366345 2366345 0 0.0
(read/write) 127416 127416 0 0.0
.bss 50592 50592 0 0.0
.data 3600 3600 0 0.0
.data.rel.ro 67368 67368 0 0.0
.dynamic 608 608 0 0.0
.got 4392 4392 0 0.0
.init 27 27 0 0.0
.init_array 816 816 0 0.0
.rodata 202504 202504 0 0.0
.text 2001362 2001362 0 0.0
chip-tool debug (read only) 10600785 10600785 0 0.0
(read/write) 647520 647520 0 0.0
.bss 24856 24856 0 0.0
.data 3266 3266 0 0.0
.data.rel.ro 612856 612856 0 0.0
.dynamic 608 608 0 0.0
.got 5104 5104 0 0.0
.init 27 27 0 0.0
.init_array 768 768 0 0.0
.rodata 543861 543861 0 0.0
.text 8558068 8558068 0 0.0
chip-tool-ipv6only arm64 (read only) 10009948 10009948 0 0.0
(read/write) 695217 695217 0 0.0
.bss 32897 32897 0 0.0
.data 3272 3272 0 0.0
.data.rel.ro 640416 640416 0 0.0
.dynamic 560 560 0 0.0
.got 13664 13664 0 0.0
.init 24 24 0 0.0
.init_array 192 192 0 0.0
.rodata 474396 474396 0 0.0
.text 7905684 7905684 0 0.0
lighting-app debug+rpc (read only) 2589785 2589785 0 0.0
(read/write) 130008 130008 0 0.0
.bss 49728 49728 0 0.0
.data 2096 2096 0 0.0
.data.rel.ro 72248 72248 0 0.0
.dynamic 608 608 0 0.0
.got 4392 4392 0 0.0
.init 27 27 0 0.0
.init_array 912 912 0 0.0
.rodata 219184 219184 0 0.0
.text 2200034 2200034 0 0.0
lock-app debug (read only) 2574225 2574225 0 0.0
(read/write) 125376 125376 0 0.0
.bss 48256 48256 0 0.0
.data 1712 1712 0 0.0
.data.rel.ro 69416 69416 0 0.0
.dynamic 608 608 0 0.0
.got 4464 4464 0 0.0
.init 27 27 0 0.0
.init_array 888 888 0 0.0
.rodata 236272 236272 0 0.0
.text 2171442 2171442 0 0.0
ota-provider-app debug (read only) 2351537 2351537 0 0.0
(read/write) 118848 118848 0 0.0
.bss 47808 47808 0 0.0
.data 1936 1936 0 0.0
.data.rel.ro 63224 63224 0 0.0
.dynamic 608 608 0 0.0
.got 4488 4488 0 0.0
.init 27 27 0 0.0
.init_array 760 760 0 0.0
.rodata 208344 208344 0 0.0
.text 1979842 1979842 0 0.0
ota-requestor-app debug (read only) 2516361 2516361 0 0.0
(read/write) 127152 127152 0 0.0
.bss 50272 50272 0 0.0
.data 2304 2304 0 0.0
.data.rel.ro 68632 68632 0 0.0
.dynamic 608 608 0 0.0
.got 4480 4480 0 0.0
.init 27 27 0 0.0
.init_array 840 840 0 0.0
.rodata 214944 214944 0 0.0
.text 2128994 2128994 0 0.0
shell debug (read only) 2595281 2595281 0 0.0
(read/write) 141904 141904 0 0.0
.bss 57800 57800 0 0.0
.data 1264 1264 0 0.0
.data.rel.ro 77024 77024 0 0.0
.dynamic 608 608 0 0.0
.got 4136 4136 0 0.0
.init 27 27 0 0.0
.init_array 1024 1024 0 0.0
.rodata 233554 233554 0 0.0
.text 2203522 2203522 0 0.0
thermostat-no-ble arm64 (read only) 2351468 2351468 0 0.0
(read/write) 141681 141681 0 0.0
.bss 55313 55313 0 0.0
.data 1672 1672 0 0.0
.data.rel.ro 75880 75880 0 0.0
.dynamic 560 560 0 0.0
.got 5040 5040 0 0.0
.init 24 24 0 0.0
.init_array 408 408 0 0.0
.rodata 139716 139716 0 0.0
.text 1974224 1974224 0 0.0
tv-app debug (read only) 3169617 3169617 0 0.0
(read/write) 257864 257864 0 0.0
.bss 167480 167480 0 0.0
.data 4736 4736 0 0.0
.data.rel.ro 79096 79096 0 0.0
.dynamic 608 608 0 0.0
.got 4864 4864 0 0.0
.init 27 27 0 0.0
.init_array 1064 1064 0 0.0
.rodata 258152 258152 0 0.0
.text 2721698 2721698 0 0.0
tv-casting-app debug (read only) 5410321 5410321 0 0.0
(read/write) 158984 158984 0 0.0
.bss 51448 51448 0 0.0
.data 2432 2432 0 0.0
.data.rel.ro 98672 98672 0 0.0
.dynamic 608 608 0 0.0
.got 4784 4784 0 0.0
.init 27 27 0 0.0
.init_array 1032 1032 0 0.0
.rodata 341425 341425 0 0.0
.text 4800594 4800594 0 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2452848 2452848 0 0.0
.bss 214556 214556 0 0.0
.data 5872 5872 0 0.0
.text 1415492 1415492 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1178087 1178087 0 0.0
bss 143222 143222 0 0.0
rodata 142776 142776 0 0.0
text 813240 813236 -4 -0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read/write) 1158111 1158111 0 0.0
bss 142460 142460 0 0.0
rodata 134472 134472 0 0.0
text 802356 802360 4 0.0
p6 all-clusters-app default (read only) 881520 881520 0 0.0
(read/write) 1694084 1694084 0 0.0
.bss 149168 149168 0 0.0
.data 2656 2656 0 0.0
.text 1533872 1533872 0 0.0
all-clusters-minimal-app default (read only) 882240 882240 0 0.0
(read/write) 1638268 1638268 0 0.0
.bss 148448 148448 0 0.0
.data 2656 2656 0 0.0
.text 1478776 1478776 0 0.0
light-app default (read only) 890560 890560 0 0.0
(read/write) 1556956 1556956 0 0.0
.bss 140336 140336 0 0.0
.data 2448 2448 0 0.0
.text 1405784 1405784 0 0.0
lock-app default (read only) 886064 886064 0 0.0
(read/write) 1594268 1594268 0 0.0
.bss 144816 144816 0 0.0
.data 2464 2464 0 0.0
.text 1438600 1438600 0 0.0
telink light-switch-app tlsr9518adk80d (read/write) 806288 806288 0 0.0
bss 70976 70976 0 0.0
noinit 43488 43488 0 0.0
text 569992 569994 2 0.0
lighting-app tlsr9518adk80d (read/write) 828096 828096 0 0.0
bss 71820 71820 0 0.0
noinit 43488 43488 0 0.0
text 587966 587968 2 0.0

github-actions[bot] avatar Aug 10 '22 11:08 github-actions[bot]

Canceling this PR. Looks like the ChipDevCtrl.ZCL* methods will be deprecated in the future that use one shot asyncio.

caubut-charter avatar Aug 10 '22 15:08 caubut-charter