processing / processing/processing4

Serial.list does not update.

Open
#1,256 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Java
Stars
494
Forks
183
Avg merge
4h 39m
Merged PRs (30d)
3

Description

Most appropriate sub-area of Processing 4?

Events, IO

Processing version

4.4.7

Operating system

Windows 10

Bug description

I noticed that when you physically remove a connected serial device processing does not detect it and serial.list() does not update.

Steps to reproduce this

1.connect serial device.

2.run below sketch (set correct serial port).

3.unplug serial device.

snippet

import processing.serial.*;

Serial myPort;  // Create object from Serial class

void setup() 
{
  size(200, 200);

  String portName = Serial.list()[0];
  myPort = new Serial(this, portName, 9600);
}

void draw()
{
  println(Serial.list());
  delay(500);
}
Additional context

The https://fazecast.github.io/jSerialComm/ library can detect hardware disconnects.

Would you like to work on the issue?

No, I’m just reporting the issue

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Serial.list() entry point and reproduce the Windows 10 behavior using the provided Processing sketch, then inspect how connected ports are discovered and refreshed after unplugging a device. The issue is done when Serial.list() reflects the removed device without restarting the sketch; jSerialComm is noted as a comparison for disconnect detection.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.