Description
Describe the problem
Originally reported by @per1234:
🐛 When uploading to a board over a network port, the Arduino IDE UI continues to indicate an upload is in progress even after the process has completed successfully.
To reproduce
Equipment
Steps
Follow the instructions to set up the board and do an OTA upload here: https://docs.arduino.cc/tutorials/mkr-1000-wifi/wifi-101-ota
The Output view shows that the process completed successfully:
Connecting to board ... done
Uploading sketch ... done
Flashing sketch ... done
Sketch uploaded successfully
The board is running the sketch that was uploaded.
🐛 Yet the IDE UI remains permanently in the uploading state:
- "Upload" button has the gold color
- "Uploading..." notification with progress bar
Expected behavior
IDE recognizes completion of upload process.
Arduino IDE version
2.0.0-rc9.2-snapshot-9e2b73a
Operating system
Linux
Operating system version
Ubuntu 20.04
Additional context
I also reproduced it using a slightly older version of the Arduino IDE 2.0.0-rc9.2-snapshot-0b33b51, which indicates it was not introduced by any of the commits after that.
While I was in the bisection stage of the investigation, the issue stopped happening even though it had occurred 100% consistently prior to that. So I was not able to bisect the introduction of the issue, check whether it also occurs with ESP32 boards, nor determine whether it also occurs when using Arduino CLI directly.
Related
- Uploading the sketch OTA unfortunately hangs #1357
- IDE remains in uploading state after successful completion of upload process #1801
Other reports
- IDE remains in uploading state after completion of upload to network port #1356 (comment)
- IDE remains in uploading state after completion of upload to network port #1356 (comment)
- IDE remains in uploading state after completion of upload to network port #1356 (comment)
- IDE remains in uploading state after completion of upload to network port #1356 (comment)
- IDE remains in uploading state after completion of upload to network port #1356 (comment)
- IDE remains in uploading state after completion of upload to network port #1356 (comment)
- IDE remains in uploading state after completion of upload to network port #1356 (comment)
- IDE remains in uploading state after completion of upload to network port #1356 (comment)
- IDE remains in uploading state after completion of upload to network port #1356 (comment)
- IDE remains in uploading state after completion of upload to network port #1356 (comment)
- IDE remains in uploading state after completion of upload to network port #1356 (comment)
- OTA doesn't close properly after upload to ESP32 #1871
- Using the network port to upload the program requires three questions such as entering a password #1770
- OTA upload freezes #1641
- Problems with ArduinoOTA. #1510
- uploading progress bar persists #1864
- BasicOTA upload button remain disabled after successfully uploading code. esp8266/Arduino#8684
- https://forum.arduino.cc/t/when-uploading-over-the-network-uploading-progress-window-does-not-go-away/1023158
- https://forum.arduino.cc/t/upload-stall-on-ota/1035843/1
- https://forum.arduino.cc/t/upload-stall-on-ota/1035843/3
- https://forum.arduino.cc/t/ota-upload-doesnt-stop/1037126/1
- https://forum.arduino.cc/t/ota-upload-doesnt-stop/1037126/5
- https://forum.arduino.cc/t/ota-upload-doesnt-stop/1037126/6
- https://forum.arduino.cc/t/ota-upload-doesnt-stop/1037126/7
- https://forum.arduino.cc/t/ota-upload-doesnt-stop/1037126/8
- https://forum.arduino.cc/t/ota-upload-doesnt-stop/1037126/9
- https://forum.arduino.cc/t/ota-upload-doesnt-stop/1037126/10
- https://forum.arduino.cc/t/ota-upload-doesnt-stop/1037126/17
- https://forum.arduino.cc/t/ota-upload-doesnt-stop/1037126/18
- https://forum.arduino.cc/t/bsdthread-register-error-when-try-to-use-adruinoota-update/1090730/10
- https://forum.arduino.cc/t/ota-outputs-not-displaying-anything-on-serial-monitor/1093690
- https://forum.arduino.cc/t/arduino-ide-2-0-stuck-on-uploading-to-ep32-wroom-32/1096329
- https://forum.arduino.cc/t/ide-2-0-3-complation-error-no-connection-established/1066586/28
Workaround
- Select File > Quit from the Arduino IDE menus.
- Restart Arduino IDE.
Issue checklist
- I searched for previous reports in the issue tracker
- I verified the problem still occurs when using the latest nightly build
- My report contains all necessary details