Open
Description
I am seeing a crash on the Portenta C33 when using an MQTT client for a long duration (~15 minutes). The crash occurs within the delay call and occurs within the lwip_task of CNetIF.cpp. It certainly looks like we are seeing a memory management issue with the networking code.
We are using an SSL Client and certificates for our server authentication.
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
Spinnaker-design commentedon Feb 14, 2024
Here is the call stack for the crash:
andreagilardoni commentedon Feb 15, 2024
Thanks for your report, I got the same error while working on #234. In that PR I am trying to deal with all the network related issues, for the time being Ethernet and WiFi. I will try to address this issue with that PR.
Spinnaker-design commentedon Feb 15, 2024
Thanks, @andreagilardoni, Is there a workaround in the mean time to unblock us until that PR is done?
andreagilardoni commentedon Feb 15, 2024
You can try using my PR and disable the timer inside the network stack.
CLwipIf::getInstance().task()
inside theloop()
functionAny kind of feedback on this work is appreciated.
Spinnaker-design commentedon Feb 20, 2024
@andreagilardoni was able to build with you PR, 2 items
CLwipIf::getInstance().task()
, you'll get the following error:Compilation error: 'class CLwipIf' has no member named 'task'
zsnave commentedon Jun 19, 2024
Well, after many weeks of wireless networking problems on the C33 platform, it looks like there are no fixes anytime soon. On our system we even "disable" networking after power-on (and brief use to access NTP), but the networking still causes a system hang after many hours of running (rare but fatal). It appears that there is something the class destructors are not doing correctly, since fragments of "WiFi" functionality are left operating after disconnection/shutdown. I think the advertisements for the Arduino C33 should NOT list networking, since it doesn't work correctly as yet.
jeremypy972 commentedon Nov 21, 2024
Hello
Have you find a way to fix this issue which is very annoying ?
Jérémy