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

High cpu load when usbtty device is unplugged without disconnecting before #81

Open
re-vax opened this issue Jun 2, 2023 · 0 comments

Comments

@re-vax
Copy link

re-vax commented Jun 2, 2023

Hi!

I'm using this amazing tool CuteCom version 0.30.3-1+b2 on debian 11.6 / KDE-plasma

The problem appends when I'm connected to a device using a usb to serial adapter and when I unplug the dongle without clicking on the 'close' button. The result is a 100% CPU usage on the process.

with strace, CuteCom seems to loop on:

poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=15, events=POLLIN}], 3, 13515) = 1 ([{fd=15, revents=POLLIN|POLLERR|POLLHUP}])
read(15, "", 32768) = 0
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=15, events=POLLIN}], 3, 13515) = 1 ([{fd=15, revents=POLLIN|POLLERR|POLLHUP}])
read(15, "", 32768) = 0
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=15, events=POLLIN}], 3, 13515) = 1 ([{fd=15, revents=POLLIN|POLLERR|POLLHUP}])
read(15, "", 32768) = 0
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=15, events=POLLIN}], 3, 13515) = 1 ([{fd=15, revents=POLLIN|POLLERR|POLLHUP}])
read(15, "", 32768) = 0

Any advice to go further in the debug process?

Do someone have the same issue (on same or other OS).

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant