aporto / mariamole

MariaMole: An alternative Arduino IDE
GNU General Public License v3.0
78 stars 21 forks source link

Upload- progressbar still runs after upload is finished #38

Open sirtet opened 9 years ago

sirtet commented 9 years ago

I imported the Blink-example and uploaded it. After about 1sec. the program runs, as the blinking led tells me. But the Progress-Bar with the cancel-button is only at about 10%, and finishes 10sec. later... This is on a mega 2560 Board.

AlexxNB commented 9 years ago

Have you seen "Project Blink binaries successfully uploaded to board" in msgs tab?

sirtet commented 9 years ago

No, there's a "Error uploading... ...see output window" message, but the output window has no error messages.

PS: On an arduino uno this runs well, the success message is there after less than 1sec. uploading.

aporto commented 9 years ago

Hi, sirtet. Which board is yours?

AlexxNB commented 9 years ago

I have same trouble with Nano aprox in 1 of 20 uploads. Firmware uploads succesfuly, but in msgs tab appears "Error uploading...".

aporto commented 9 years ago

One thing that may cause this is that MariaMole is not receiving the AVRDUDE output, despite the upload is correcly finished. In these cases, MariaMole will terminate AVRDUDE process, and then return an error message.

Please try increasing the upload timeout (Menu Edit->Preferences) and see if that changes this behaviour

On Mon, Feb 2, 2015 at 4:24 PM, AlexxNB notifications@github.com wrote:

I have same trouble with Nano aprox in 1 of 20 uploads. Firmware uploads succesfuly, but in msgs tab appears "Error uploading...".

— Reply to this email directly or view it on GitHub https://github.com/aporto/mariamole/issues/38#issuecomment-72509223.

sirtet commented 9 years ago

Hi, sirtet. Which board is yours?

Arduino Mega 2560

Please try increasing the upload timeout

Changing the Timeout to 60s fixes the issue, returning to 30s brings it back. Strange, My Upload is 1sec. and then the progress bar finishes 10s later, so still well within the original 30s timeout...

AlexxNB commented 9 years ago

AVRDude report that upload done in Output tab:

avrdude: reading on-chip flash data:
avrdude: verifying ...
avrdude: 11026 bytes of flash verified

avrdude done.  Thank you.
aporto commented 9 years ago

Even if avrdude finishes, MariaMole still waits for the operating system to close the avrdude process. If it stop responding after avrdude has finished, MariaMole will probably wait for the timeout and request a process kill, and return an error message, even if the upload has happened correctly

Gonna need some more time for a better solution

On Tue, Feb 3, 2015 at 2:10 PM, AlexxNB notifications@github.com wrote:

AVRDude report that upload done in Output tab:

avrdude: reading on-chip flash data: avrdude: verifying ... avrdude: 11026 bytes of flash verified

avrdude done. Thank you.

— Reply to this email directly or view it on GitHub https://github.com/aporto/mariamole/issues/38#issuecomment-72678617.

aporto commented 9 years ago

That's a solution... :)

On Tue, Feb 3, 2015 at 8:19 PM, Alexey Schebelev notifications@github.com wrote:

Maybe close progressbar by Output message parsing and check avrdude proccess in background?

— Reply to this email directly or view it on GitHub https://github.com/aporto/mariamole/issues/38#issuecomment-72747895.

AlexxNB commented 9 years ago

Sorry, I've delete my msg after reading your pre-previous post =)