-
-
Notifications
You must be signed in to change notification settings - Fork 172
SEGFAULT when hotplugging a mouse and libinput is using udev as a backend #71
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
Comments
Are there any updates on this bug as it happens to me too. If i use your raspberrypi-fast-ts in combination with a script to turn of the screen after n seconds per echo 1 | sudo tee /sys/class/backlight/rpi_backlight/bl_power the raspberrypi-fast-ts sometimes crashes because of an i2c error, the systemd service for it restarts it and than the flutter-pi crashes too. So i guess the segv happens when ever the list of devices changes, either per usb-keyboard or per reinitialisation of the virtual-devices of raspberrypi-fast-ts after a restart of the service. You can even force this error with the raspberrypi-fast-ts by
Then you have a loop of flutter-app starting and crashing. (as long as you have configured the flutter-app to restart on failure per systemd service) |
I should probably add some documentation for that, changing the backlight via the sysfs while I haven't debugged it thoroughly, but it seems to be caused by libinput itself. I'll look into it |
fyi: is was using this library to turn the screen off: https://github.com/timothyhollabaugh/pi-touchscreen-timeout/blob/master/timeout.c with gdb it says its a nullpointer dereferencing at the same address inside of libinput. |
Libinput supports hotplugging, it'd be odd if it couldn't handle a simple device unplug. |
tried it and it works. thx for the fast fix^^ fyi: running the flutter-pi with --no-text-input now causes a new segv (on keyboard plugging out/in)^^ Thread 1 "flutter-pi" received signal SIGSEGV, Segmentation fault. (gdb) bt |
Thanks, fixed it. Though I should really just remove the |
thx again for the fast response. keep up the good work^^ |
When libinput is using udev as a backend and a mouse is plugged in while flutter-pi is running, some time later a call to
libinput_dispatch
will result in a SEGFAULT because libinput somehow tries to invoke a function pointer that has a NULL value.The text was updated successfully, but these errors were encountered: