Conversation
NonPIayerCharacter
approved these changes
Sep 11, 2026
Contributor
Author
|
Created a CI run on my fork and doing another 120+ hours of live testing on the device with so far no errors, no reboots, strange crashes, core dumps or mqtt disconnects. to stress again I am doing all the tests that I can think of on actual HW and will present final results after extensive testing, but I would love to get any feedback if anybody did a similar check on their device as I can make all of mine work on my bench 😁 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes an ESP-IDF-specific MQTT/lwIP thread ownership problem found while investigating intermittent watchdog resets.
Incoming MQTT callbacks run in the TCP/IP task, while OBK processes the received data from its own task. The shared receive buffer previously used the broader MQTT mutex, while raw lwIP operations could also be called without ESP-IDF TCP/IP core ownership. Under sustained MQTT traffic, this could produce an invalid interleaving and eventually trigger a very random watchdog reset that I spent 10 days chasing.
The change is intentionally small:
CONFIG_LWIP_TCPIP_CORE_LOCKINGfor ESP-IDF builds.Just to expand on the matter, I devised and ran multiple crash tests and out of 4 on demand induced crashes all 4 were pointing to this issue. After this edit I was not able to trigger a crash just a normal MQTT reconnect.