GDK/GTK app crash in XFCE when performing drag operation (in gdk_window_cache_new <- gdk_window_cache_get <- drag_context_find_window_cache <- gdk_x11_drag_context_find_window)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GTK+ |
Fix Released
|
Unknown
|
|||
gtk+3.0 (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
gtk4 (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
For many months now, whenever any mouse drag is attempted in an application using the gtk tool kit, the application immediately crashes. I've noticed this at least in Firefox and thunar. It also occurs when displaying these applications from a Virtualbox machine or from another server running something other than Ubuntu. The VM was running CentOS 8 and the remote server was running Mageia. Both Firefox and thunar run fine with Mageia's Xorg. It seems like the issue may be with the Xorg server on Ubuntu.
I tried setting the GDK_SYNCHRONIZE variable to various settings but was unable to produce further debug output. The only other debug output I was able to gather is when running thunar with the --gtk-debug parameter (attached). I also tried running thunar with GDB but without recompiling it, it doesn't produce much information other than it's stopping in glib.
Let me know what other information I can provide.
(firefox:110380): Gdk-ERROR **: 13:47:04.663: The program 'firefox' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
(Details: serial 8405 error_code 3 request_code 141 (Composite) minor_code 8)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the GDK_SYNCHRONIZE environment
variable to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
ExceptionHandle
ExceptionHandle
ExceptionHandle
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
[1]+ Trace/breakpoint trap (core dumped) firefox
(Thunar:2961220): Gdk-ERROR **: 13:55:39.621: The program 'Thunar' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
(Details: serial 64804 error_code 3 request_code 141 (Composite) minor_code 8)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the GDK_SYNCHRONIZE environment
variable to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
Trace/breakpoint trap (core dumped)
$ ldd /bin/thunar
libSM.so.6 => /lib/x86_
libICE.so.6 => /lib/x86_
libc.so.6 => /lib/x86_
libm.so.6 => /lib/x86_
libbsd.so.0 => /lib/x86_
libX11.so.6 => /lib/x86_
libXi.so.6 => /lib/x86_
librt.so.1 => /lib/x86_
libxcb.so.1 => /lib/x86_
libz.so.1 => /lib/x86_
libdl.so.2 => /lib/x86_
libffi.so.7 => /lib/x86_
libXau.so.6 => /lib/x86_
liblz4.so.1 => /lib/x86_
$ gdb thunar
(gdb) run
Starting program: /usr/bin/thunar
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_
[New Thread 0x7ffff5c97700 (LWP 2463163)]
[New Thread 0x7ffff57b4700 (LWP 2463164)]
[New Thread 0x7ffff5257700 (LWP 2463165)]
[New Thread 0x7ffff4d74700 (LWP 2463166)]
[Thread 0x7ffff5257700 (LWP 2463165) exited]
(thunar:2463155): Gdk-ERROR **: 09:40:34.956: The program 'thunar' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
(Details: serial 9526 error_code 3 request_code 141 (Composite) minor_code 8)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the GDK_SYNCHRONIZE environment
variable to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
Thread 1 "thunar" received signal SIGTRAP, Trace/breakpoint trap.
0x00007ffff71410d5 in ?? () from /lib/x86_
$ lsb_release -rd
Description: Ubuntu 20.04.1 LTS
Release: 20.04
$ apt-cache policy thunar
thunar:
Installed: 1.8.14-0ubuntu1
Candidate: 1.8.14-0ubuntu1
Version table:
*** 1.8.14-0ubuntu1 500
500 http://
100 /var/lib/
$ /opt/firefox/
Mozilla Firefox 84.0.2
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: xorg 1:7.7+19ubuntu14
ProcVersionSign
Uname: Linux 5.4.0-58-generic x86_64
NonfreeKernelMo
.proc.driver.
.proc.driver.
.proc.driver.
.proc.driver.
.proc.driver.
.proc.driver.
.proc.driver.
.proc.driver.
.proc.driver.
NVRM version: NVIDIA UNIX x86_64 Kernel Module 450.80.02 Wed Sep 23 01:13:39 UTC 2020
GCC version: gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1
ApportVersion: 2.20.11-
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CasperMD5CheckR
CompositorRunning: None
CurrentDesktop: XFCE
Date: Mon Jan 11 10:14:51 2021
DistUpgraded: Fresh install
DistroCodename: focal
DistroVariant: ubuntu
ExtraDebuggingI
GraphicsCard:
NVIDIA Corporation GM206GL [Quadro M2000] [10de:1430] (rev a1) (prog-if 00 [VGA controller])
Subsystem: Hewlett-Packard Company GM206GL [Quadro M2000] [103c:1190]
NVIDIA Corporation GM206GL [Quadro M2000] [10de:1430] (rev a1) (prog-if 00 [VGA controller])
Subsystem: Hewlett-Packard Company GM206GL [Quadro M2000] [103c:1190]
InstallationDate: Installed on 2020-05-24 (231 days ago)
InstallationMedia: Xubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
MachineType: Hewlett-Packard HP Z840 Workstation
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: xorg
Symptom: display
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 11/07/2019
dmi.bios.vendor: Hewlett-Packard
dmi.bios.version: M60 v02.50
dmi.board.
dmi.board.name: 2129
dmi.board.vendor: Hewlett-Packard
dmi.board.version: 1.01
dmi.chassis.
dmi.chassis.type: 6
dmi.chassis.vendor: Hewlett-Packard
dmi.modalias: dmi:bvnHewlett-
dmi.product.family: 103C_53335X G=D
dmi.product.name: HP Z840 Workstation
dmi.product.sku: 4SW15U8R#ABA
dmi.sys.vendor: Hewlett-Packard
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.101-2
version.
version.
version.
version.
version.
version.
version.
version.
summary: |
- GDK/GTK app crash when performing drag operation + GDK/GTK app crash when performing drag operation (in + gdk_window_cache_new <- gdk_window_cache_get <- + drag_context_find_window_cache <- gdk_x11_drag_context_find_window) |
Changed in gtk+3.0 (Ubuntu): | |
status: | Triaged → Fix Committed |
tags: | added: fixed-in-3.24.28 fixed-in-4.1.3 fixed-upstream |
Changed in gtk4 (Ubuntu): | |
status: | New → Fix Committed |
importance: | Undecided → Medium |
Changed in gtk: | |
status: | Unknown → Fix Released |
Thank you for taking the time to report this bug and helping to make Ubuntu better. It sounds like some part of the system has crashed. To help us find the cause of the crash please follow these steps:
1. Look in /var/crash for crash files and if found run:
ubuntu-bug YOURFILE.crash
Then tell us the ID of the newly-created bug.
2. If step 1 failed then look at https:/ /errors. ubuntu. com/user/ ID where ID is the content of file /var/lib/ whoopsie/ whoopsie- id on the machine. Do you find any links to recent problems on that page? If so then please send the links to us.
3. If step 2 also failed then apply the workaround from bug 994921, reboot, reproduce the crash, and retry step 1.
Please take care to avoid attaching .crash files to bugs as we are unable to process them as file attachments. It would also be a security risk for yourself.