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

Crashes almost every boot #566

Closed
heynnema opened this issue Mar 1, 2022 · 10 comments
Closed

Crashes almost every boot #566

heynnema opened this issue Mar 1, 2022 · 10 comments
Labels
Milestone

Comments

@heynnema
Copy link

heynnema commented Mar 1, 2022

Ubuntu 21.10

touchegg crashes almost every boot

version 202201222146-stable-2.0.13~ubuntu21.10.1

touchegg crashed with SIGABRT (from the .crash log)

What other info can I provide?

@JoseExposito
Copy link
Owner

Hi and thanks for your bug report.

I guess you are using GNOME and you are seeing a notification of the crash?

After the crash, does Touchégg start working after 5-10 seconds? Or do you have to manually restart it?

After the crash, if you run touchegg --debug in the terminal, what's the output?

Also, please make sure you are in the X11 session, Touchégg won't work in the Wayland session:
https://github.com/JoseExposito/touchegg#does-touch%C3%A9gg-work-on-wayland

@rprinsen
Copy link

I have the same issue. Right after logging in, it shows the crash dialog.
Touchégg keeps working though.

running touchegg --debug shows the same crash report dialog though.
Could it be that touchegg is started twice at boot? Is there a way to check that?

@JoseExposito
Copy link
Owner

Hi @rprinsen

Could you share the output of touchegg --debug, please?

Also, the output of sudo journalctl -u touchegg -b would be helpful.

@rprinsen
Copy link

For sure, here's the output of journalctl:

mrt 30 18:32:40 rienk-XPS-15-9570 systemd[1]: Started Touchégg Daemon.
mrt 30 18:32:40 rienk-XPS-15-9570 touchegg[1197]: Touchégg v2.0.13.
mrt 30 18:32:40 rienk-XPS-15-9570 touchegg[1197]: Starting Touchégg in daemon mode
mrt 30 18:32:40 rienk-XPS-15-9570 touchegg[1197]: Starting daemon server...
mrt 30 18:32:40 rienk-XPS-15-9570 touchegg[1197]: Generating D-Bus introspection data
mrt 30 18:32:40 rienk-XPS-15-9570 touchegg[1197]: Creating D-Bus server
mrt 30 18:32:40 rienk-XPS-15-9570 touchegg[1197]: Server started at address unix:abstract=touchegg
mrt 30 18:32:40 rienk-XPS-15-9570 touchegg[1197]: A list of detected compatible devices will be displayed below:
mrt 30 18:32:40 rienk-XPS-15-9570 touchegg[1197]: Compatible device detected:
mrt 30 18:32:40 rienk-XPS-15-9570 touchegg[1197]: Name: SYNA2393:00 06CB:7A13 Touchpad
mrt 30 18:32:40 rienk-XPS-15-9570 touchegg[1197]: Size: 102.333mm x 77.3333mm
mrt 30 18:32:40 rienk-XPS-15-9570 touchegg[1197]: Calculating start_threshold and finish_threshold. You can tune this values in your service file
mrt 30 18:32:40 rienk-XPS-15-9570 touchegg[1197]: start_threshold: 30.4462
mrt 30 18:32:40 rienk-XPS-15-9570 touchegg[1197]: finish_threshold_horizontal: 362.598
mrt 30 18:32:40 rienk-XPS-15-9570 touchegg[1197]: finish_threshold_vertical: 274.016
mrt 30 18:32:43 rienk-XPS-15-9570 touchegg[1197]: terminate called after throwing an instance of 'std::runtime_error'
mrt 30 18:32:43 rienk-XPS-15-9570 touchegg[1197]: what(): Error initialising Touchégg: libinput open.
mrt 30 18:32:43 rienk-XPS-15-9570 touchegg[1197]: Touchégg should be run in daemon mode by systemd in order to be part of the 'input' group and have access to your touchpad.
mrt 30 18:32:43 rienk-XPS-15-9570 touchegg[1197]: If you prefer to run Touchégg without using systemd, please execute the following command:
mrt 30 18:32:43 rienk-XPS-15-9570 touchegg[1197]: $ sudo usermod -a -G input $USER
mrt 30 18:32:43 rienk-XPS-15-9570 touchegg[1197]: And reboot to solve this issue
mrt 30 18:32:44 rienk-XPS-15-9570 systemd[1]: touchegg.service: Main process exited, code=dumped, status=6/ABRT
mrt 30 18:32:44 rienk-XPS-15-9570 systemd[1]: touchegg.service: Failed with result 'core-dump'.
mrt 30 18:32:49 rienk-XPS-15-9570 systemd[1]: touchegg.service: Scheduled restart job, restart counter is at 1.
mrt 30 18:32:49 rienk-XPS-15-9570 systemd[1]: Stopped Touchégg Daemon.
mrt 30 18:32:49 rienk-XPS-15-9570 systemd[1]: Started Touchégg Daemon.
mrt 30 18:32:49 rienk-XPS-15-9570 touchegg[2496]: Touchégg v2.0.13.
mrt 30 18:32:49 rienk-XPS-15-9570 touchegg[2496]: Starting Touchégg in daemon mode
mrt 30 18:32:49 rienk-XPS-15-9570 touchegg[2496]: Starting daemon server...
mrt 30 18:32:49 rienk-XPS-15-9570 touchegg[2496]: Generating D-Bus introspection data
mrt 30 18:32:49 rienk-XPS-15-9570 touchegg[2496]: Creating D-Bus server
mrt 30 18:32:49 rienk-XPS-15-9570 touchegg[2496]: Server started at address unix:abstract=touchegg
mrt 30 18:32:49 rienk-XPS-15-9570 touchegg[2496]: A list of detected compatible devices will be displayed below:
mrt 30 18:32:51 rienk-XPS-15-9570 touchegg[2496]: New client connection request
mrt 30 18:32:51 rienk-XPS-15-9570 touchegg[2496]: New client connected
mrt 30 18:32:52 rienk-XPS-15-9570 touchegg[2496]: New client connection request
mrt 30 18:32:52 rienk-XPS-15-9570 touchegg[2496]: New client connected
mrt 30 18:32:55 rienk-XPS-15-9570 touchegg[2496]: Compatible device detected:
mrt 30 18:32:55 rienk-XPS-15-9570 touchegg[2496]: Name: Apple Inc. Magic Trackpad 2
mrt 30 18:32:55 rienk-XPS-15-9570 touchegg[2496]: Size: 161.957mm x 115.114mm
mrt 30 18:32:55 rienk-XPS-15-9570 touchegg[2496]: Calculating start_threshold and finish_threshold. You can tune this values in your service file
mrt 30 18:32:55 rienk-XPS-15-9570 touchegg[2496]: start_threshold: 45.3203
mrt 30 18:32:55 rienk-XPS-15-9570 touchegg[2496]: finish_threshold_horizontal: 573.865
mrt 30 18:32:55 rienk-XPS-15-9570 touchegg[2496]: finish_threshold_vertical: 407.883
mrt 30 18:32:55 rienk-XPS-15-9570 touchegg[2496]: Compatible device detected:
mrt 30 18:32:55 rienk-XPS-15-9570 touchegg[2496]: Name: SYNA2393:00 06CB:7A13 Touchpad
mrt 30 18:32:55 rienk-XPS-15-9570 touchegg[2496]: Size: 102.333mm x 77.3333mm
mrt 30 18:32:55 rienk-XPS-15-9570 touchegg[2496]: Calculating start_threshold and finish_threshold. You can tune this values in your service file
mrt 30 18:32:55 rienk-XPS-15-9570 touchegg[2496]: start_threshold: 30.4462
mrt 30 18:32:55 rienk-XPS-15-9570 touchegg[2496]: finish_threshold_horizontal: 362.598
mrt 30 18:32:55 rienk-XPS-15-9570 touchegg[2496]: finish_threshold_vertical: 274.016
mrt 30 18:32:55 rienk-XPS-15-9570 touchegg[2496]: libinput error: event21 - Apple Inc. Magic Trackpad 2: kernel bug: Touch jump detected and discarded.
mrt 30 18:32:55 rienk-XPS-15-9570 touchegg[2496]: See https://wayland.freedesktop.org/libinput/doc/1.18.1/touchpad-jumping-cursors.html for details

@rprinsen
Copy link

when running touchegg --debug it complains there's already a instance running, which checks out because systemd restarts the service

@JoseExposito
Copy link
Owner

Thanks for the logs. Touchégg runs in 2 different processes, the systemd daemon and the client. It looks like the daemon is crashing and probably displaying the notification in GNOME:

mrt 30 18:32:43 rienk-XPS-15-9570 touchegg[1197]: terminate called after throwing an instance of 'std::runtime_error'
mrt 30 18:32:43 rienk-XPS-15-9570 touchegg[1197]: what(): Error initialising Touchégg: libinput open.

I'll try to add more logs and reproduce the error here to see if I manage to figure out why it is crashing.

Thankfully, the daemon is automatically restarted after a crash, so it keeps working... But the annoying notification is displayed :S

@JoseExposito
Copy link
Owner

Hi again @rprinsen, I pushed a fix for this issue to the master branch in case you want to test it.

I'll try to release a new version soon including it 👍

@heynnema
Copy link
Author

heynnema commented Apr 1, 2022

Good job on finding a problem. My touchegg hadn't crashed since we last spoke, so I hadn't been able to get more debug info for you.

@JoseExposito
Copy link
Owner

Good to know. I found it easier to reproduce after adding and removing a few input devices. Hopefully once the new release is out you won't experiment more crashes. Let me know if you keep seeing them.

@JoseExposito JoseExposito added this to the 2.0.14 milestone Apr 2, 2022
@rprinsen
Copy link

rprinsen commented Apr 2, 2022

Thanks for the quick fix @JoseExposito!
I'll wait for the new release to be available through the ppa (i see you did a release just now 👍 )

Will let you know the results!

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

No branches or pull requests

3 participants