flxzt / rnote

Sketch and take handwritten notes.
https://rnote.flxzt.net
GNU General Public License v3.0
8.14k stars 280 forks source link

Drawing pad shortcuts not working #857

Open NandorKovacs opened 11 months ago

NandorKovacs commented 11 months ago

Describe the bug
Drawing Pad Button 1-4 Action doesn't work on my Ubuntu

To Reproduce
Steps to reproduce the behavior:

  1. Set the Drawing Pad Button 1 Action to Eraser
  2. Click the button
  3. Click all other buttons, because what if im pushing the wrong button
  4. Nothing happens

Expected behavior
I would expect my tool to change to the tool that i configured it to change to, for example the eraser in the above description

Console Output
2023-10-30T22:13:09.183Z DEBUG rnote > ... env_logger initialized

(rnote:2): Gtk-CRITICAL **: 23:13:11.223: gtk_widget_class_set_accessible_role: assertion '!gtk_accessible_role_is_abstract (accessible_role)' failed

Desktop (please complete the following information):

Additional context
I am using a Wacom Intuos S 4100WL. In the settings, the tablet is set to Tablet Mode, and the buttons are mapped to "App defined" -> not to a keybind, or the on screen help, or to switch monitors, which would be the other options.

It might be related to this pr #533

flxzt commented 11 months ago

Does the app log anything when one of the buttons is pressed?

NandorKovacs commented 11 months ago

Im unsure, i ran rnote with the command provided in the bug report form, and the terminal only printed what i copied into the issue. Is the debug output located in a file somewhere, or was there just nothing else?

flxzt commented 11 months ago

no, it should log a message (code here). Then the actions themselves are not triggered. I am not sure why.

UlyssesZh commented 11 months ago

Maybe related: flatpak/flatpak#4910

flxzt commented 10 months ago

Depending whether the OP runs on wayland or X11 this issue might be related. Gnome 45 apparently had broken tablet support. It's unclear if Gnome 44 also was affected, but it might be worth it to wait for a release that includes this fix

abd-liac commented 10 months ago

I have the very same issue on i3wm. From Opentabletdriver side, I can observe the state change when button pressed, but RUST_LOG=rnote=debug RUST_BACKTRACE=1 rnote output nothing relevant, IIUC.

 2023-12-03T16:26:08.055Z DEBUG rnote > ... env_logger initialized

(rnote:7309): Gtk-CRITICAL **: 00:26:08.200: gtk_widget_class_set_accessible_role: assertion '!gtk_accessible_role_is_abstract (accessible_role)' failed
 2023-12-03T16:26:08.202Z DEBUG rnote::canvas > did not load `engine-config` from settings, was empty
 2023-12-03T16:26:36.915Z DEBUG rnote_engine::store > state has not changed, no need to record

(rnote:7309): Gtk-WARNING **: 00:26:37.050: Layout managers of type GtkBoxLayout do not implement the GtkLayoutManager::create_layout_child method

(rnote:7309): Gtk-CRITICAL **: 00:26:37.050: The layout manager of type GtkBoxLayout 0x55a9a5a0db20 does not create GtkLayoutChild instances

Confirmed on the opentabletdriver side: relevant issue