You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ESP crashes when wso(x) is executed in a script >B or >BS section. Delaying the initialization using a timer fixes the issue, but is obviously less then ideal. Enabling the script after boot also works, but is not ideal as well.
REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
I tried various versions between 14.0 and develop as well as prebuilds I could find (sadly TCP_SERVER is not enabled by default), all of them crash the same way.
I also added extra log lines to the script interpreter during debugging and it seems to crash inside glob_script_mem.tcp_server->begin();here.
While debugging I also noticed a secondary bug (however thats not my issue), that being if new WiFiServer(port) where to ever return null it would crash as well because it unconditionally references the pointer after setting the result code.
In addition theres a memory leak if a script calls wso more than once because it does not check/delete the WiFiServer instance before reassigning it.
The text was updated successfully, but these errors were encountered:
you may not open a tcp server or access any wifi related resources when wifi is not connected.
on a reboot this is never the case during >B
you can open the port when wifi is connected which you can check e.g during >S with 'wifis'
you may not open a tcp server or access any wifi related resources when wifi is not connected.
Yeah that's what I assumed (though opening it with a timer of 1s still does before the wifi is connected and works fine), however I couldn't find anything related to that in the docs and all the example scripts on the internet I found (apparently) have it working fine in >BS.
However I think the other two issues I noted in additional context are still valid.
PROBLEM DESCRIPTION
ESP crashes when
wso(x)
is executed in a script>B
or>BS
section. Delaying the initialization using a timer fixes the issue, but is obviously less then ideal. Enabling the script after boot also works, but is not ideal as well.REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
Backlog Template; Module; GPIO 255
:Backlog Rule1; Rule2; Rule3
:Status 0
:weblog
to 4 and then, when you experience your issue, provide the output of the Console log:TO REPRODUCE
EXPECTED BEHAVIOUR
ESP boots normally and opens a tcp port.
SCREENSHOTS
N/A
ADDITIONAL CONTEXT
I tried various versions between 14.0 and develop as well as prebuilds I could find (sadly TCP_SERVER is not enabled by default), all of them crash the same way.
I also added extra log lines to the script interpreter during debugging and it seems to crash inside
glob_script_mem.tcp_server->begin();
here.While debugging I also noticed a secondary bug (however thats not my issue), that being if
new WiFiServer(port)
where to ever return null it would crash as well because it unconditionally references the pointer after setting the result code.In addition theres a memory leak if a script calls wso more than once because it does not check/delete the WiFiServer instance before reassigning it.
The text was updated successfully, but these errors were encountered: