We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
See python repl write client crash when ondone is called
INFO:PythonMatterControllerTEST:Received WriteResponse: [AttributeStatus(Path=AttributePath(EndpointId=0, ClusterId=40, AttributeId=5), Status=<Status.Success: 0>), AttributeStatus(Path=AttributePath(EndpointId=0, ClusterId=40, AttributeId=6), Status=<Status.InvalidValue: 135>)] INFO:PythonMatterControllerTEST:2: Write chunked list INFO:PythonMatterControllerTEST:Received WriteResponse: [AttributeStatus(Path=AttributePath(EndpointId=1, ClusterId=1295, AttributeId=42), Status=<Status.Success: 0>)] INFO:PythonMatterControllerTEST:1: Send Timed Command Request INFO:PythonMatterControllerTEST:2: Send Timed Write Request INFO:PythonMatterControllerTEST:3: Sending TestCluster-TimedInvokeRequest without timedRequestTimeoutMs should be rejected INFO:PythonMatterControllerTEST:4: Writing TestCluster-TimedWriteBoolean without timedRequestTimeoutMs should be rejected INFO:PythonMatterControllerTEST:1: Send Timed Command Request -- Timeout INFO:PythonMatterControllerTEST:2: Send Timed Write Request -- Timeout
Thread 2 "python3" received signal SIGPIPE, Broken pipe. [Switching to Thread 0x7ffff3954700 (LWP 4350)] 0x00007ffff7eef5ac in send () from /lib/x86_64-linux-gnu/libc.so.6 #0 0x00007ffff7eef5ac in send () at /lib/x86_64-linux-gnu/libc.so.6 #1 0x000000000062377a in () #2 0x000000000062793a in () #3 0x0000000000627ff2 in () #4 0x0000000000504c7d in () #5 0x000000000056b1da in _PyEval_EvalFrameDefault () #6 0x00000000005f6836 in _PyFunction_Vectorcall () #7 0x000000000056b1da in _PyEval_EvalFrameDefault () #8 0x000000000056939a in _PyEval_EvalCodeWithName () #9 0x00000000005f6a13 in _PyFunction_Vectorcall () #10 0x000000000056b1da in _PyEval_EvalFrameDefault () #11 0x00000000005f6836 in _PyFunction_Vectorcall () #12 0x000000000056b1da in _PyEval_EvalFrameDefault () #13 0x00000000005f6836 in _PyFunction_Vectorcall () #14 0x00000000005f6517 in PyObject_CallObject () #15 0x00007ffff75233f1 in () at /usr/lib/python3.8/lib-dynload/_ctypes.cpython-38-x86_64-linux-gnu.so #16 0x00007ffff7510e06 in () at /lib/x86_64-linux-gnu/libffi.so.7 #17 0x00007ffff7511188 in () at /lib/x86_64-linux-gnu/libffi.so.7 #18 0x00007ffff43ff0b3 in chip::python::WriteClientCallback::OnDone(chip::app::WriteClient*) (this=0x7fffe4032bf0, apWriteClient=0x7fffe4023f20) at ../../src/controller/python/chip/clusters/attribute.cpp:272 #19 0x00007ffff4491a12 in chip::app::ChunkedWriteCallback::OnDone(chip::app::WriteClient*) (this=0x7fffe4032bf8, apWriteClient=0x7fffe4023f20) at ../../src/app/ChunkedWriteCallback.cpp:75 #20 0x00007ffff44bfd26 in chip::app::WriteClient::Close() (this=0x7fffe4023f20) at ../../src/app/WriteClient.cpp:52 #21 0x00007ffff44c1ee2 in chip::app::WriteClient::OnMessageReceived(chip::Messaging::ExchangeContext*, chip::PayloadHeader const&, chip::System::PacketBufferHandle&&) (this=0x7fffe4023f20, apExchangeContext=0x1750930, aPayloadHeader=..., aPayload=...) at ../../src/app/WriteClient.cpp:492 #22 0x00007ffff4547794 in chip::Messaging::ExchangeContext::HandleMessage(unsigned int, chip::PayloadHeader const&, chip::BitFlags<chip::Messaging::MessageFlagValues, unsigned int>, chip::System::PacketBufferHandle&&) (this=0x1750930, messageCounter=12540318, payloadHeader=..., msgFlags=..., msgBuf=...) at ../../src/messaging/ExchangeContext.cpp:474 #23 0x00007ffff454a133 in chip::Messaging::ExchangeManager::<lambda(auto:5*)>::operator()chip::Messaging::ExchangeContext(chip::Messaging::ExchangeContext ) const (__closure=0x7ffff3953670, ec=0x1750930) at ../../src/messaging/ExchangeMgr.cpp:215 #24 0x00007ffff454a37c in chip::internal::LambdaProxy<chip::Messaging::ExchangeContext, chip::Messaging::ExchangeManager::OnMessageReceived(const chip::PacketHeader&, const chip::PayloadHeader&, const chip::SessionHandle&, chip::SessionMessageDelegate::DuplicateMessage, chip::System::PacketBufferHandle&&)::<lambda(auto:5)> >::Call(void , void ) (context=0x7ffff3953670, target=0x1750930) at ../../src/lib/support/Pool.h:126 #25 0x00007ffff4544090 in chip::internal::StaticAllocatorBitmap::ForEachActiveObjectInner(void, chip::Loop ()(void*, void*)) (this=0x17508e8, context=0x7ffff3953670, lambda=0x7ffff454a355 <chip::internal::LambdaProxy<chip::Messaging::ExchangeContext, chip::Messaging::ExchangeManager::OnMessageReceived(const chip::PacketHeader&, const chip::PayloadHeader&, const chip::SessionHandle&, chip::SessionMessageDelegate::DuplicateMessage, chip::System::PacketBufferHandle&&)::<lambda(auto:5*)> >::Call(void , void )>) at ../../src/lib/support/Pool.cpp:95 #26 0x00007ffff454a1c1 in chip::BitMapObjectPool<chip::Messaging::ExchangeContext, 150>::ForEachActiveObject<chip::Messaging::ExchangeManager::OnMessageReceived(const chip::PacketHeader&, const chip::PayloadHeader&, const chip::SessionHandle&, chip::SessionMessageDelegate::DuplicateMessage, chip::System::PacketBufferHandle&&)::<lambda(auto:5)> >(chip::Messaging::ExchangeManager::<lambda(auto:5)> &&) (this=0x17508e8, function=...) at ../../src/lib/support/Pool.h:256 #27 0x00007ffff454982f in chip::Messaging::ExchangeManager::OnMessageReceived(chip::PacketHeader const&, chip::PayloadHeader const&, chip::SessionHandle const&, chip::SessionMessageDelegate::DuplicateMessage, chip::System::PacketBufferHandle&&) (this=0x174f5b0, packetHeader=..., payloadHeader=..., session=..., isDuplicate=chip::SessionMessageDelegate::DuplicateMessage::No, msgBuf=...) at ../../src/messaging/ExchangeMgr.cpp:208 #28 0x00007ffff4565d8a in chip::SessionManager::SecureUnicastMessageDispatch(chip::PacketHeader const&, chip::Transport::PeerAddress const&, chip::System::PacketBufferHandle&&) (this=0x174e730, packetHeader=..., peerAddress=..., msg=...) at ../../src/transport/SessionManager.cpp:640 #29 0x00007ffff4564e04 in chip::SessionManager::OnMessageReceived(chip::Transport::PeerAddress const&, chip::System::PacketBufferHandle&&) (this=0x174e730, peerAddress=..., msg=...) at ../../src/transport/SessionManager.cpp:449 #30 0x00007ffff456924d in chip::TransportMgrBase::HandleMessageReceived(chip::Transport::PeerAddress const&, chip::System::PacketBufferHandle&&) (this=0xa1cb40, peerAddress=..., msg=...) at ../../src/transport/TransportMgrBase.cpp:71 #31 0x00007ffff46e9539 in chip::Transport::Base::HandleMessageReceived(chip::Transport::PeerAddress const&, chip::System::PacketBufferHandle&&) (this=0xa1cbd0, source=..., buffer=...) at ../../src/transport/raw/Base.h:102 #32 0x00007ffff46e9d56 in chip::Transport::UDP::OnUdpReceive(chip::Inet::UDPEndPoint*, chip::System::PacketBufferHandle&&, chip::Inet::IPPacketInfo const*) (endPoint=0xdf17c0, buffer=..., pktInfo=0x7ffff3953c10) at ../../src/transport/raw/UDP.cpp:122 #33 0x00007ffff4726b1a in chip::Inet::UDPEndPointImplSockets::HandlePendingIO(chip::BitFlags<chip::System::SocketEventFlags, unsigned char>) (this=0xdf17c0, events=...) at ../../src/inet/UDPEndPointImplSockets.cpp:688 #34 0x00007ffff4726388 in chip::Inet::UDPEndPointImplSockets::HandlePendingIO(chip::BitFlags<chip::System::SocketEventFlags, unsigned char>, long) (events=..., data=14620608) at ../../src/inet/UDPEndPointImplSockets.cpp:569 #35 0x00007ffff455fb8f in chip::System::LayerImplSelect::HandleEvents() (this=0x7ffff47ab720 chip::DeviceLayer::SystemLayerImpl()::gSystemLayerImpl) at ../../src/system/SystemLayerImplSelect.cpp:407 #36 0x00007ffff46663ca in chip::DeviceLayer::Internal::GenericPlatformManagerImpl_POSIXchip::DeviceLayer::PlatformManagerImpl::_RunEventLoop() (this=0x7ffff47ae490 chip::DeviceLayer::PlatformManagerImpl::sInstance+16) at ../../src/include/platform/internal/GenericPlatformManagerImpl_POSIX.ipp:181 #37 0x00007ffff4407a66 in chip::DeviceLayer::PlatformManager::RunEventLoop() (this=0x7ffff47ae480 chip::DeviceLayer::PlatformManagerImpl::sInstance) at ../../src/include/platform/PlatformManager.h:362 #38 0x00007ffff4407f5a in (anonymous namespace)::PlatformMainLoop(void*) () at ../../src/controller/python/chip/native/StackInit.cpp:38 #39 0x00007ffff7db4609 in start_thread () at /lib/x86_64-linux-gnu/libpthread.so.0 #40 0x00007ffff7eee163 in clone () at /lib/x86_64-linux-gnu/libc.so.6 (gdb) quit A debugging session is active.
Inferior 1 [process 4345] will be killed.
Quit anyway? (y or n) [answered Y; input not from terminal]
2022-04-28 05:30:41,748 [MobileDeviceTest] ERROR Test failed: non-zero return code Traceback (most recent call last): File "/home/runner/work/connectedhomeip/connectedhomeip/src/test_driver/linux-cirque/helper/CHIPTestBase.py", line 65, in run_test self.test_routine() File "/home/runner/work/connectedhomeip/connectedhomeip/scripts/tests/../..//src/test_driver/linux-cirque/MobileDeviceTest.py", line 75, in test_routine self.run_controller_test() File "/home/runner/work/connectedhomeip/connectedhomeip/scripts/tests/../..//src/test_driver/linux-cirque/MobileDeviceTest.py", line 102, in run_controller_test self.assertEqual(ret['return_code'], '0', File "/home/runner/work/connectedhomeip/connectedhomeip/src/test_driver/linux-cirque/helper/CHIPTestBase.py", line 311, in assertEqual raise AssertionError AssertionError 2022-04-28 05:30:42,110 [MobileDeviceTest] INFO destroying home: 8601037d-73e7-4bdb-9159-0213acd6cb03 MobileDeviceTest.log
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Sorry, something went wrong.
This stale issue has been automatically closed. Thank you for your contributions.
erjiaqing
No branches or pull requests
Problem
See python repl write client crash when ondone is called
INFO:PythonMatterControllerTEST:Received WriteResponse: [AttributeStatus(Path=AttributePath(EndpointId=0, ClusterId=40, AttributeId=5), Status=<Status.Success: 0>), AttributeStatus(Path=AttributePath(EndpointId=0, ClusterId=40, AttributeId=6), Status=<Status.InvalidValue: 135>)]
INFO:PythonMatterControllerTEST:2: Write chunked list
INFO:PythonMatterControllerTEST:Received WriteResponse: [AttributeStatus(Path=AttributePath(EndpointId=1, ClusterId=1295, AttributeId=42), Status=<Status.Success: 0>)]
INFO:PythonMatterControllerTEST:1: Send Timed Command Request
INFO:PythonMatterControllerTEST:2: Send Timed Write Request
INFO:PythonMatterControllerTEST:3: Sending TestCluster-TimedInvokeRequest without timedRequestTimeoutMs should be rejected
INFO:PythonMatterControllerTEST:4: Writing TestCluster-TimedWriteBoolean without timedRequestTimeoutMs should be rejected
INFO:PythonMatterControllerTEST:1: Send Timed Command Request -- Timeout
INFO:PythonMatterControllerTEST:2: Send Timed Write Request -- Timeout
Thread 2 "python3" received signal SIGPIPE, Broken pipe.
[Switching to Thread 0x7ffff3954700 (LWP 4350)]
0x00007ffff7eef5ac in send () from /lib/x86_64-linux-gnu/libc.so.6
#0 0x00007ffff7eef5ac in send () at /lib/x86_64-linux-gnu/libc.so.6
#1 0x000000000062377a in ()
#2 0x000000000062793a in ()
#3 0x0000000000627ff2 in ()
#4 0x0000000000504c7d in ()
#5 0x000000000056b1da in _PyEval_EvalFrameDefault ()
#6 0x00000000005f6836 in _PyFunction_Vectorcall ()
#7 0x000000000056b1da in _PyEval_EvalFrameDefault ()
#8 0x000000000056939a in _PyEval_EvalCodeWithName ()
#9 0x00000000005f6a13 in _PyFunction_Vectorcall ()
#10 0x000000000056b1da in _PyEval_EvalFrameDefault ()
#11 0x00000000005f6836 in _PyFunction_Vectorcall ()
#12 0x000000000056b1da in _PyEval_EvalFrameDefault ()
#13 0x00000000005f6836 in _PyFunction_Vectorcall ()
#14 0x00000000005f6517 in PyObject_CallObject ()
#15 0x00007ffff75233f1 in ()
at /usr/lib/python3.8/lib-dynload/_ctypes.cpython-38-x86_64-linux-gnu.so
#16 0x00007ffff7510e06 in () at /lib/x86_64-linux-gnu/libffi.so.7
#17 0x00007ffff7511188 in () at /lib/x86_64-linux-gnu/libffi.so.7
#18 0x00007ffff43ff0b3 in chip::python::WriteClientCallback::OnDone(chip::app::WriteClient*) (this=0x7fffe4032bf0, apWriteClient=0x7fffe4023f20)
at ../../src/controller/python/chip/clusters/attribute.cpp:272
#19 0x00007ffff4491a12 in chip::app::ChunkedWriteCallback::OnDone(chip::app::WriteClient*) (this=0x7fffe4032bf8, apWriteClient=0x7fffe4023f20)
at ../../src/app/ChunkedWriteCallback.cpp:75
#20 0x00007ffff44bfd26 in chip::app::WriteClient::Close()
(this=0x7fffe4023f20) at ../../src/app/WriteClient.cpp:52
#21 0x00007ffff44c1ee2 in chip::app::WriteClient::OnMessageReceived(chip::Messaging::ExchangeContext*, chip::PayloadHeader const&, chip::System::PacketBufferHandle&&)
(this=0x7fffe4023f20, apExchangeContext=0x1750930, aPayloadHeader=..., aPayload=...) at ../../src/app/WriteClient.cpp:492
#22 0x00007ffff4547794 in chip::Messaging::ExchangeContext::HandleMessage(unsigned int, chip::PayloadHeader const&, chip::BitFlags<chip::Messaging::MessageFlagValues, unsigned int>, chip::System::PacketBufferHandle&&)
(this=0x1750930, messageCounter=12540318, payloadHeader=..., msgFlags=..., msgBuf=...) at ../../src/messaging/ExchangeContext.cpp:474
#23 0x00007ffff454a133 in chip::Messaging::ExchangeManager::<lambda(auto:5*)>::operator()chip::Messaging::ExchangeContext(chip::Messaging::ExchangeContext ) const (__closure=0x7ffff3953670, ec=0x1750930)
at ../../src/messaging/ExchangeMgr.cpp:215
#24 0x00007ffff454a37c in chip::internal::LambdaProxy<chip::Messaging::ExchangeContext, chip::Messaging::ExchangeManager::OnMessageReceived(const chip::PacketHeader&, const chip::PayloadHeader&, const chip::SessionHandle&, chip::SessionMessageDelegate::DuplicateMessage, chip::System::PacketBufferHandle&&)::<lambda(auto:5)> >::Call(void , void ) (context=0x7ffff3953670, target=0x1750930)
at ../../src/lib/support/Pool.h:126
#25 0x00007ffff4544090 in chip::internal::StaticAllocatorBitmap::ForEachActiveObjectInner(void, chip::Loop ()(void*, void*))
(this=0x17508e8, context=0x7ffff3953670, lambda=0x7ffff454a355 <chip::internal::LambdaProxy<chip::Messaging::ExchangeContext, chip::Messaging::ExchangeManager::OnMessageReceived(const chip::PacketHeader&, const chip::PayloadHeader&, const chip::SessionHandle&, chip::SessionMessageDelegate::DuplicateMessage, chip::System::PacketBufferHandle&&)::<lambda(auto:5*)> >::Call(void , void )>)
at ../../src/lib/support/Pool.cpp:95
#26 0x00007ffff454a1c1 in chip::BitMapObjectPool<chip::Messaging::ExchangeContext, 150>::ForEachActiveObject<chip::Messaging::ExchangeManager::OnMessageReceived(const chip::PacketHeader&, const chip::PayloadHeader&, const chip::SessionHandle&, chip::SessionMessageDelegate::DuplicateMessage, chip::System::PacketBufferHandle&&)::<lambda(auto:5)> >(chip::Messaging::ExchangeManager::<lambda(auto:5)> &&) (this=0x17508e8, function=...) at ../../src/lib/support/Pool.h:256
#27 0x00007ffff454982f in chip::Messaging::ExchangeManager::OnMessageReceived(chip::PacketHeader const&, chip::PayloadHeader const&, chip::SessionHandle const&, chip::SessionMessageDelegate::DuplicateMessage, chip::System::PacketBufferHandle&&)
(this=0x174f5b0, packetHeader=..., payloadHeader=..., session=..., isDuplicate=chip::SessionMessageDelegate::DuplicateMessage::No, msgBuf=...)
at ../../src/messaging/ExchangeMgr.cpp:208
#28 0x00007ffff4565d8a in chip::SessionManager::SecureUnicastMessageDispatch(chip::PacketHeader const&, chip::Transport::PeerAddress const&, chip::System::PacketBufferHandle&&)
(this=0x174e730, packetHeader=..., peerAddress=..., msg=...)
at ../../src/transport/SessionManager.cpp:640
#29 0x00007ffff4564e04 in chip::SessionManager::OnMessageReceived(chip::Transport::PeerAddress const&, chip::System::PacketBufferHandle&&)
(this=0x174e730, peerAddress=..., msg=...)
at ../../src/transport/SessionManager.cpp:449
#30 0x00007ffff456924d in chip::TransportMgrBase::HandleMessageReceived(chip::Transport::PeerAddress const&, chip::System::PacketBufferHandle&&)
(this=0xa1cb40, peerAddress=..., msg=...)
at ../../src/transport/TransportMgrBase.cpp:71
#31 0x00007ffff46e9539 in chip::Transport::Base::HandleMessageReceived(chip::Transport::PeerAddress const&, chip::System::PacketBufferHandle&&)
(this=0xa1cbd0, source=..., buffer=...)
at ../../src/transport/raw/Base.h:102
#32 0x00007ffff46e9d56 in chip::Transport::UDP::OnUdpReceive(chip::Inet::UDPEndPoint*, chip::System::PacketBufferHandle&&, chip::Inet::IPPacketInfo const*)
(endPoint=0xdf17c0, buffer=..., pktInfo=0x7ffff3953c10)
at ../../src/transport/raw/UDP.cpp:122
#33 0x00007ffff4726b1a in chip::Inet::UDPEndPointImplSockets::HandlePendingIO(chip::BitFlags<chip::System::SocketEventFlags, unsigned char>)
(this=0xdf17c0, events=...)
at ../../src/inet/UDPEndPointImplSockets.cpp:688
#34 0x00007ffff4726388 in chip::Inet::UDPEndPointImplSockets::HandlePendingIO(chip::BitFlags<chip::System::SocketEventFlags, unsigned char>, long)
(events=..., data=14620608)
at ../../src/inet/UDPEndPointImplSockets.cpp:569
#35 0x00007ffff455fb8f in chip::System::LayerImplSelect::HandleEvents()
(this=0x7ffff47ab720 chip::DeviceLayer::SystemLayerImpl()::gSystemLayerImpl) at ../../src/system/SystemLayerImplSelect.cpp:407
#36 0x00007ffff46663ca in chip::DeviceLayer::Internal::GenericPlatformManagerImpl_POSIXchip::DeviceLayer::PlatformManagerImpl::_RunEventLoop()
(this=0x7ffff47ae490 chip::DeviceLayer::PlatformManagerImpl::sInstance+16)
at ../../src/include/platform/internal/GenericPlatformManagerImpl_POSIX.ipp:181
#37 0x00007ffff4407a66 in chip::DeviceLayer::PlatformManager::RunEventLoop()
(this=0x7ffff47ae480 chip::DeviceLayer::PlatformManagerImpl::sInstance)
at ../../src/include/platform/PlatformManager.h:362
#38 0x00007ffff4407f5a in (anonymous namespace)::PlatformMainLoop(void*) ()
at ../../src/controller/python/chip/native/StackInit.cpp:38
#39 0x00007ffff7db4609 in start_thread ()
at /lib/x86_64-linux-gnu/libpthread.so.0
#40 0x00007ffff7eee163 in clone () at /lib/x86_64-linux-gnu/libc.so.6
(gdb) quit
A debugging session is active.
Quit anyway? (y or n) [answered Y; input not from terminal]
2022-04-28 05:30:41,748 [MobileDeviceTest] ERROR Test failed: non-zero return code
Traceback (most recent call last):
File "/home/runner/work/connectedhomeip/connectedhomeip/src/test_driver/linux-cirque/helper/CHIPTestBase.py", line 65, in run_test
self.test_routine()
File "/home/runner/work/connectedhomeip/connectedhomeip/scripts/tests/../..//src/test_driver/linux-cirque/MobileDeviceTest.py", line 75, in test_routine
self.run_controller_test()
File "/home/runner/work/connectedhomeip/connectedhomeip/scripts/tests/../..//src/test_driver/linux-cirque/MobileDeviceTest.py", line 102, in run_controller_test
self.assertEqual(ret['return_code'], '0',
File "/home/runner/work/connectedhomeip/connectedhomeip/src/test_driver/linux-cirque/helper/CHIPTestBase.py", line 311, in assertEqual
raise AssertionError
AssertionError
2022-04-28 05:30:42,110 [MobileDeviceTest] INFO destroying home: 8601037d-73e7-4bdb-9159-0213acd6cb03
MobileDeviceTest.log
The text was updated successfully, but these errors were encountered: