Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Disconnecting USB causes IDE to use 100% CPU on Linux #2333

Closed
Labels
Component: IDEThe Arduino IDE OS: LinuxSpecific to the Linux version of the Arduino IDE Type: Bug
@nickgammon

Description

On the Ubuntu version of the Arduino IDE 1.0.5, disconnecting (unplugging) the USB cable from the PC to the Arduino Uno causes CPU usage for the Java IDE runtime to jump to 100%. What is it doing?

Code:

top - 09:43:14 up 1 day, 23:54, 4 users, load average: 0.71, 0.60, 0.60
Tasks: 246 total, 1 running, 244 sleeping, 0 stopped, 1 zombie
%Cpu(s): 8.8 us, 5.7 sy, 0.0 ni, 85.5 id, 0.1 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem: 16376056 total, 16104688 used, 271368 free, 641840 buffers
KiB Swap: 31249404 total, 0 used, 31249404 free. 9019168 cached Mem
 PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 
 2142 nick 20 0 6874812 163476 25408 S 100.1 1.0 0:27.44 java 
 ^^^^^

Steps to reproduce:

  • Compile and upload Blink sketch
  • Open Serial monitor
  • Run the "top" command in a console window
  • Unplug the USB cable from the Arduino
  • Note that the java process CPU climbs from around 7% to 100%

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: IDEThe Arduino IDE OS: LinuxSpecific to the Linux version of the Arduino IDE Type: Bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /