Public bug reported:

[ Impact ]

GTK4 applications using the X11 backend will crash when attaching a physical 
touch device to a different logical master device in the XInput hierarchy.
This usually requires manual configuring from a terminal, and would not be 
affecting the average user.

[ Test plan ]

1. Set up a touchscreen device
2. Log-in to Ubuntu (on Xorg)
3. Launch Files, Settings and Text Editor (GTK4 apps)
4. From a terminal, run:

   xinput list

   and annotate the "id" of the physical touch device, for example:
   $ xinput list
   ⎡ Virtual core pointer                          id=2    [master pointer  (3)]
   ⎜   ↳ xwayland-touch:15                         id=10   [slave  pointer  (2)]

   would be id 10

5. From a terminal, run:

   xinput create-master Touch
   xinput reattach <id> "Touch pointer"

6. Verify that all GTK4 applications did not crash
7. Verify that all GTK4 applications are still responsive to touch input

[ Where problems could occur ]

The patch only impacts a piece of logic reachable on:
* X11 only
* Touchscreen only
* Processing a re-attach event
Because this previously caused a crashed, no regressions are to be expected. We 
are only resolving the crash.

[ Other info ]

The bug was introduced in a downstream patch fixing bug 2119066, applied
to noble only. The same patch is now also being applied to resolute, but
already including this crash fix.

** Affects: gtk4 (Ubuntu)
     Importance: Undecided
         Status: Invalid

** Affects: gtk4 (Ubuntu Noble)
     Importance: Low
     Assignee: Alessandro Astone (aleasto)
         Status: In Progress

** Affects: gtk4 (Ubuntu Resolute)
     Importance: Undecided
         Status: Invalid


** Tags: noble

** Also affects: gtk4 (Ubuntu Resolute)
   Importance: Undecided
       Status: New

** Also affects: gtk4 (Ubuntu Noble)
   Importance: Undecided
       Status: New

** Changed in: gtk4 (Ubuntu Resolute)
       Status: New => Invalid

** Changed in: gtk4 (Ubuntu Noble)
       Status: New => In Progress

** Changed in: gtk4 (Ubuntu Noble)
     Assignee: (unassigned) => Alessandro Astone (aleasto)

** Changed in: gtk4 (Ubuntu Noble)
   Importance: Undecided => Low

** Tags added: noble

** Description changed:

  [ Impact ]
  
  GTK4 applications using the X11 backend will crash when attaching a physical 
touch device to a different logical master device in the XInput hierarchy.
  This usually requires manual configuring from a terminal, and would not be 
affecting the average user.
  
  [ Test plan ]
  
  1. Set up a touchscreen device
  2. Log-in to Ubuntu (on Xorg)
  3. Launch Files, Settings and Text Editor (GTK4 apps)
  4. From a terminal, run:
  
-    xinput list
+    xinput list
  
-    and annotate the "id" of the physical touch device, for example:
-    $ xinput list
-    ⎡ Virtual core pointer                          id=2    [master pointer  
(3)]
-    ⎜   ↳ xwayland-touch:15                         id=10   [slave  pointer  
(2)]
+    and annotate the "id" of the physical touch device, for example:
+    $ xinput list
+    ⎡ Virtual core pointer                          id=2    [master pointer  
(3)]
+    ⎜   ↳ xwayland-touch:15                         id=10   [slave  pointer  
(2)]
  
-    would be id 10
+    would be id 10
  
  5. From a terminal, run:
  
-    xinput create-master Touch
-    xinput reattach <id> "Touch pointer"
+    xinput create-master Touch
+    xinput reattach <id> "Touch pointer"
  
  6. Verify that all GTK4 applications did not crash
  7. Verify that all GTK4 applications are still responsive to touch input
  
  [ Where problems could occur ]
  
  The patch only impacts a piece of logic reachable on:
  * X11 only
  * Touchscreen only
  * Processing a re-attach event
  Because this previously caused a crashed, no regressions are to be expected. 
We are only resolving the crash.
+ 
+ [ Other info ]
+ 
+ The bug was introduced in a downstream patch fixing bug 2119066, applied
+ to noble only. The same patch is now also being applied to resolute, but
+ already including this crash fix.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gtk4 in Ubuntu.
https://bugs.launchpad.net/bugs/2144632

Title:
  GTK4 X11 applications crash when reattaching touch device

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gtk4/+bug/2144632/+subscriptions


-- 
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to