Skip to content
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

ESP Rainmaker Crashing Bug - OTA #5420

Closed
JohnMacrae opened this issue Jul 19, 2021 · 8 comments · Fixed by #7242 or espressif/esp32-arduino-lib-builder#86
Closed

ESP Rainmaker Crashing Bug - OTA #5420

JohnMacrae opened this issue Jul 19, 2021 · 8 comments · Fixed by #7242 or espressif/esp32-arduino-lib-builder#86
Labels
Status: Needs investigation We need to do some research before taking next steps on this issue
Milestone

Comments

@JohnMacrae
Copy link
Contributor

What you are trying to do?
OTA update via Dashboard with Arduino IDE-compiled binary.

Describe your system( Hardware, computer, O/S, core version, environment).
Ubuntu 20.04, Dell XPS15 9550, Arduino IDE 1.8.15, Latest arduino-esp32 2.0.0a

Describe what is failing.
Replication instruction:
Take Rainmaker Switch example and change Line 65 to: RMaker.enableOTA(OTA_USING_TOPICS);
Compile, upload and confirm normal behaviour.
Now upload same binary to dashboard with random version number. Create OTA job and force update - watch serial output as you press the button. Continuous restarts.

Backtrace:0x400d7b93:0x3ffce8400x40177825:0x3ffce870 0x40177ac4:0x3ffce8a0
Decoding stack results
0x400d7b93: loopTask(void*) at /home/john/arduino-1.8.15/hardware/espressif/esp32/cores/esp32/main.cpp line 35
0x40177825: esp_rmaker_handle_work_queue at ../components/esp-rainmaker/components/esp_rainmaker/src/core/esp_rmaker_core.c line 354
0x40177ac4: esp_rmaker_task at ../components/esp-rainmaker/components/esp_rainmaker/src/core/esp_rmaker_core.c line 445

Now go to dashboard and cancel the OTA job. Watch serial: device reverts to normal behaviour.

RM Serial output.txt

@stale
Copy link

stale bot commented Sep 19, 2021

[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status: Stale Issue is stale stage (outdated/stuck) label Sep 19, 2021
@JohnMacrae
Copy link
Contributor Author

This behaviour also confirmed with CLI

@VojtechBartoska
Copy link
Collaborator

Hello @JohnMacrae , sorry for late reply. Are you able to test your issue on development version 2.0.3-RC1 to check if this is still valid? You can take a look on Docs where is explained how to choose development release version in Arduino IDE.

@VojtechBartoska VojtechBartoska added Resolution: Awaiting response Waiting for response of author and removed Status: Stale Issue is stale stage (outdated/stuck) labels Mar 30, 2022
@VojtechBartoska
Copy link
Collaborator

Hello,

as there was no answer in last 14 days, I'm closing the issue as expired to keep our backlog manageable. If it's still needed, please reopen the issue.

Thanks for understanding.

@JohnMacrae
Copy link
Contributor Author

This issue is still a problem. I tested today on ESP32 with latest Arduino-esp32 2.0.4 and initiation of OTA by topics from dashboard causes a reboot. Surely after all this time (1 year) someone else has noticed?

@VojtechBartoska
Copy link
Collaborator

@JohnMacrae I'm reopening the issue.

@VojtechBartoska VojtechBartoska added Status: Needs investigation We need to do some research before taking next steps on this issue and removed Resolution: Expired More info wasn't provided labels Jul 14, 2022
@me-chiel
Copy link

Same here. When trying the OTA from the dashboard, and OTA in the Arduino IDE it reboots after connecting with WiFi.
(when using RMaker.enableOTA(OTA_USING_TOPICS); ) help would be appreciated. (ESP2.0.4 board definitions installed.)

@JohnMacrae
Copy link
Contributor Author

There is a workaround: Use Arduino OTA. This didn't originally work but seems to with IDE 1.8.19 and the latest (2.0.4) release https://youtu.be/V-g45CFSFr4

sanketwadekar added a commit to sanketwadekar/arduino-esp32 that referenced this issue Sep 12, 2022
sanketwadekar added a commit to sanketwadekar/arduino-esp32 that referenced this issue Sep 12, 2022
me-no-dev pushed a commit that referenced this issue Sep 14, 2022
Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs investigation We need to do some research before taking next steps on this issue
Projects
3 participants