-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
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
Memory corruption while running ESP32 test_wifi_example
#1560
Comments
Let's check if this crash is related in any manner to the previous error:
|
this happens after #1546 - seems related to network_driver callbacks - reverting the PR change makes everything green.. but as @pguyot said it's most likely some other error, being surfaced.. I can replicate real esp32 and c3, real devices seems to be green if this network:sta_rssi(); is commented out,
but CI is still bad with it commented out https://github.com/petermm/AtomVM/actions/runs/13444665723/job/37567165049 |
timestamps;-) this error is after the crashing starts, and only happens due to the restarts.. |
This should not be used in the sim test. What you get is the equivalent of an Ethernet interface, there is no wireless signal strength to be measured. Also this will always return an error if a station mode connection is not active. This only measures the signal strength to the associated access point. |
sim simulates wifi - so it's good to use - and fwiw error can be replicated on real devices. |
My second point is still valid, using network:sta_rssi/0 before a connection is established will always result in an error. We should expect to catch an error here and only expect success after a connected callback. But this does not explain the memory corruption… it is more of a side issue that I didn’t notice before. |
test_wifi_example
crashes on ESP32 (main) due to a memory corruption.See also: https://github.com/atomvm/AtomVM/actions/runs/13771138211/job/38520707727#step:9:691
The text was updated successfully, but these errors were encountered: