[Wayland-bugs] [Bug 753185] New: gdk_device_get_source: assertion 'GDK_IS_DEVICE (device)' failed

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Mon Aug 3 08:31:38 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=753185

            Bug ID: 753185
           Summary: gdk_device_get_source: assertion 'GDK_IS_DEVICE
                    (device)' failed
    Classification: Platform
           Product: gtk+
           Version: unspecified
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: Backend: Wayland
          Assignee: gtk-bugs at gtk.org
          Reporter: carlosg at gnome.org
        QA Contact: gtk-bugs at gtk.org
                CC: rob at robster.org.uk, wayland-bugs at lists.freedesktop.org
     GNOME version: ---

On wayland we may destroy the "master" pointer/keyboard devices right when we
receive a wl_seat.capability event, despite the events that might be queued for
these at that time.

This is visible on tty switch, mutter will first send the key release for the
ctrl/alt modifiers, gtk+ queues these events, but destroys the devices
immediately after. The focused window will then spawn several:

Gdk-CRITICAL **: gdk_device_get_source: assertion 'GDK_IS_DEVICE (device)'
failed

Triggered when the GtkGesture generic event handling code receives the event.

This didn't use to trigger on X11 because VCP/VCK are not removed, only the
slave devices are, although if we had performed any checks on the source
devices, we would surely have received warnings as well.

I'm attaching a patch that makes the private device/source_device event fields
refcounted, so the events at least contain valid GdkDevices when processed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20150803/24dd0462/attachment.html>


More information about the wayland-bugs mailing list