Skip to content

GUI issues when doing fask clicks on verify or upload buttons #2718

Closed
@bperrybap

Description

@bperrybap

Here is an issue I'm seeing with the IDE.
This is triggered by a bad mouse and/or potentially a mouse driver.
I've seen this issue with lots of other software not just the Arduino IDE.

Here is the scenario. The left button on the mouse is not making as clean connection
as it should. i.e. it is creating lots of switch bounce.
Also, for some silly reason neither the mouse itself or the mouse driver are properly
filtering this switch bounce and and are sending several left button up/down events.

The IDE doesn't properly handle/ignore/block multiple button presses.
It may be do to the way it is handling the UI and its internal threads.
So what happens is that the if you click on the "upload" button more than once fairly quickly
(which this bounce issue does). The first click starts the compile/build process then the second click also
tries to kick it off and you end up with a confusing output that can contain errors yet kind of still appear to work.
Depending on the timing, it can work and print errors that it didn't or fail with odd error messages.

I'm assuming this is a s/w issue in the IDE GUI code in that it is not properly mutexing
the build code thread when the Verify and Upload buttons are pressed and
is allowing secondary button presses to kick of the process while the build process from
the previous button press is still pending.

Yeah I know this is being triggered by a bad mouse but it
seems like this is something that should be fixed in the GUI.

--- bill

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions