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

Burn bootloader blocks IDE until it is completed #2009

Closed
matthijskooijman opened this issue Apr 14, 2014 · 3 comments
Closed

Burn bootloader blocks IDE until it is completed #2009

matthijskooijman opened this issue Apr 14, 2014 · 3 comments
Labels
Component: IDE user interface The Arduino IDE's user interface

Comments

@matthijskooijman
Copy link
Collaborator

Tested using the ide-1.5.x branch from git.

This is probably because the bootloader process does not happen in a separate thread. There is an attempt to do this by using SwingUtilities.invokeLater, but that doesn't spawn a new thread, it just runs the given function later in the event dispatching thread, which still locks up the GUI thread for as long as the function runs.

The proper fix this is to use an actual thread, but this should probably be combined by integrating the burn bootloader process into the verify/upload process (which should be simplified a lot - there's a lot of (unneeded) processing abstractions in there).

@agdl
Copy link
Member

agdl commented Dec 5, 2014

@matthijskooijman have you got a PR for this?

@matthijskooijman
Copy link
Collaborator Author

Nope, and I can't commit the time needed to dive into this now. Also, I'm not sure if the recent GUI refactor PR changed this, it's certainly something that is in the same area and needs to be resolved by refactoring...

@per1234
Copy link
Collaborator

per1234 commented Jul 3, 2017

I can reproduce this with Arduino IDE 1.5.6-r2 (the latest IDE version at the time of the report) on Windows but it does not occur for me with Arduino IDE 1.8.3 so I'm going to close this.

If the issue still occurs for anyone with the latest IDE version please comment and I'll reopen.

@per1234 per1234 closed this as completed Jul 3, 2017
@per1234 per1234 added the Component: IDE user interface The Arduino IDE's user interface label Jul 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE user interface The Arduino IDE's user interface
Projects
None yet
Development

No branches or pull requests

4 participants