Closed mayanksuman closed 3 years ago
Hi Mayank, thanks for reporting, I will see if I can reproduce this. Will request more info from your side if necessary.
I think that calling write
in device-vibrate.cc:431 (on socket attached to Read Only QSocketNotifier) is causing this issue. Flame graph generated for the application (using perf for 1 minute of activity) after the device has vibrated show some call to QSocketNotifier and a lot of system calls.
Among the system calls, call to poll is prominent, which suggests that program is checking for an event on a file descriptor (of HID device).
After vibration, the program constantly use one of core for 100% time.
To reproduce:
The device will vibrate but this point onwards the application use one core continuously as visible in Gnome system monitor.
OS: Debian Testing
Desktop/Window Manager and Version: Gnome 3.28
Did you built Projecteur yourself?:
[y/n]
nWhat is the output of
projecteur -f
?: ... Projecteur 0.9.1What is the output of
projecteur -d
?: ... Projecteur 0.9.1; device scan+++ name: 'Logitech USB Receiver' userName: 'Logitech Spotlight (USB)' vendorId: 046d productId: c53e phys: usb-0000:04:00.3-2 busType: USB devices: /dev/hidraw6, /dev/input/event22, /dev/input/event24, /dev/input/event23, /dev/input/event25 readable: true writable: true