arduino / arduino/Arduino

Latest Arduino corrupted sketch when upload failed

Open
#3,121 9 comments 0 reactions 0 assignees View on GitHub
Component: IDE Type: Bug
Dominant language
Java
Stars
14.6k
Forks
7k
PR merge metrics
No merged PRs in 30d

Description

hi,

this is a deadly bug. i was uploading a sketch to Pro-Mini. the upload was hanging, so i unplugged the USB cable. after that, the sketch is completed corrupted. it turned into a binary file containing all NULs when viewed with editor.

has this been reported? anyway the sketch can be recovered.?

![image](https://cloud.githubusercontent.com/assets/12404214/7579231/9a72a004-f82e-11e4-9faa-2374b9dcd863.png)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failed upload with an Arduino Pro Mini and inspect how the IDE handles the sketch when the USB cable is disconnected. Compare the sketch before and after the interruption; done means the source is not replaced by NUL bytes and the failure is covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
arduino, java
Domain
desktop, embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.