Copying from Gtk.Window does not work and can even freeze apps trying to paste into

Investigated Error writing data to X11 selection Failed to flush selection output stream BadWindow invalid Window parameter preventing copying from my pomodoro prompt window.

It just gets worse the more i look, not sure it’s something my little script can fix or not.

Error writing data to X11 selection: Failed to flush selection output stream: BadWindow (invalid Window parameter)

Repeated a dozen times immediately.

It didn’t show that error again, instead i see things like:

Jun 25 13:48:08 d64 gnome-terminal-[4830]: ../../../../../gdk/wayland/gdkselection-wayland.c:280: error reading selection buffer: Operation was cancelled

And maybe related, from my syslog also:

Jun 25 13:39:02 d64 gnome-shell[1934]: libinput error: event0  - AT Translated Set 2 keyboard: client bug: event processing lagging behind by 30ms, your system is too slow
Jun 25 13:40:29 d64 systemd[1]: run-docker-runtime\x2drunc-moby-8cd7c143d0ccf636884a9a03fe8feeacc0ee2ad97e2344cfd773d2d8e12ccfd4-runc.UmxdC4.mount: Succeeded.
Jun 25 13:40:29 d64 systemd[1744]: run-docker-runtime\x2drunc-moby-8cd7c143d0ccf636884a9a03fe8feeacc0ee2ad97e2344cfd773d2d8e12ccfd4-runc.UmxdC4.mount: Succeeded.
Jun 25 13:41:29 d64 systemd[1]: run-docker-runtime\x2drunc-moby-8cd7c143d0ccf636884a9a03fe8feeacc0ee2ad97e2344cfd773d2d8e12ccfd4-runc.42XcHB.mount: Succeeded.
Jun 25 13:41:29 d64 systemd[1]: run-docker-runtime\x2drunc-moby-a087a30bf4a02bbf59de8b1822ff22307f0cd0f4800d80e3ce065f3d2f8ebabe-runc.hnv4bF.mount: Succeeded.
Jun 25 13:41:29 d64 systemd[1744]: run-docker-runtime\x2drunc-moby-8cd7c143d0ccf636884a9a03fe8feeacc0ee2ad97e2344cfd773d2d8e12ccfd4-runc.42XcHB.mount: Succeeded.
Jun 25 13:41:29 d64 systemd[1744]: run-docker-runtime\x2drunc-moby-a087a30bf4a02bbf59de8b1822ff22307f0cd0f4800d80e3ce065f3d2f8ebabe-runc.hnv4bF.mount: Succeeded.
Jun 25 13:41:50 d64 kernel: [369309.601488] ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.PEG0.PEGP.BRT6.LCD], AE_NOT_FOUND (20200925/psargs-330)
Jun 25 13:41:50 d64 kernel: [369309.601494] ACPI Error: Aborting method \_SB.PCI0.PEG0.PEGP.BRT6 due to previous error (AE_NOT_FOUND) (20200925/psparse-529)
Jun 25 13:41:50 d64 kernel: [369309.601521] ACPI Error: Aborting method \EV5 due to previous error (AE_NOT_FOUND) (20200925/psparse-529)
Jun 25 13:41:50 d64 kernel: [369309.601547] ACPI Error: Aborting method \SMEE due to previous error (AE_NOT_FOUND) (20200925/psparse-529)
Jun 25 13:41:50 d64 kernel: [369309.601573] ACPI Error: Aborting method \SMIE due to previous error (AE_NOT_FOUND) (20200925/psparse-529)
Jun 25 13:41:50 d64 kernel: [369309.601600] ACPI Error: Aborting method \NEVT due to previous error (AE_NOT_FOUND) (20200925/psparse-529)
Jun 25 13:41:50 d64 kernel: [369309.601627] ACPI Error: Aborting method \_SB.PCI0.LPCB.ECDV._Q66 due to previous error (AE_NOT_FOUND) (20200925/psparse-529)
Jun 25 13:41:51 d64 kernel: [369309.811206] ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.PEG0.PEGP.BRT6.LCD], AE_NOT_FOUND (20200925/psargs-330)
Jun 25 13:41:51 d64 kernel: [369309.811212] ACPI Error: Aborting method \_SB.PCI0.PEG0.PEGP.BRT6 due to previous error (AE_NOT_FOUND) (20200925/psparse-529)
Jun 25 13:41:51 d64 kernel: [369309.811245] ACPI Error: Aborting method \EV5 due to previous error (AE_NOT_FOUND) (20200925/psparse-529)
Jun 25 13:41:51 d64 kernel: [369309.811277] ACPI Error: Aborting method \SMEE due to previous error (AE_NOT_FOUND) (20200925/psparse-529)
Jun 25 13:41:51 d64 kernel: [369309.811309] ACPI Error: Aborting method \SMIE due to previous error (AE_NOT_FOUND) (20200925/psparse-529)
Jun 25 13:41:51 d64 kernel: [369309.811353] ACPI Error: Aborting method \NEVT due to previous error (AE_NOT_FOUND) (20200925/psparse-529)
Jun 25 13:41:51 d64 kernel: [369309.811390] ACPI Error: Aborting method \_SB.PCI0.LPCB.ECDV._Q66 due to previous error (AE_NOT_FOUND) (20200925/psparse-529)
Jun 25 13:41:51 d64 kernel: [369310.010230] ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.PEG0.PEGP.BRT6.LCD], AE_NOT_FOUND (20200925/psargs-330)
Jun 25 13:41:51 d64 kernel: [369310.010254] ACPI Error: Aborting method \_SB.PCI0.PEG0.PEGP.BRT6 due to previous error (AE_NOT_FOUND) (20200925/psparse-529)
Jun 25 13:41:51 d64 kernel: [369310.010774] ACPI Error: Aborting method \EV5 due to previous error (AE_NOT_FOUND) (20200925/psparse-529)
Jun 25 13:41:51 d64 kernel: [369310.010925] ACPI Error: Aborting method \SMEE due to previous error (AE_NOT_FOUND) (20200925/psparse-529)
Jun 25 13:41:51 d64 kernel: [369310.011099] ACPI Error: Aborting method \SMIE due to previous error (AE_NOT_FOUND) (20200925/psparse-529)
Jun 25 13:41:51 d64 kernel: [369310.011236] ACPI Error: Aborting method \NEVT due to previous error (AE_NOT_FOUND) (20200925/psparse-529)
Jun 25 13:41:51 d64 kernel: [369310.011373] ACPI Error: Aborting method \_SB.PCI0.LPCB.ECDV._Q66 due to previous error (AE_NOT_FOUND) (20200925/psparse-529)
Jun 25 13:41:51 d64 kernel: [369310.202967] ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.PEG0.PEGP.BRT6.LCD], AE_NOT_FOUND (20200925/psargs-330)
Jun 25 13:41:51 d64 kernel: [369310.202973] ACPI Error: Aborting method \_SB.PCI0.PEG0.PEGP.BRT6 due to previous error (AE_NOT_FOUND) (20200925/psparse-529)
Jun 25 13:41:51 d64 kernel: [369310.203010] ACPI Error: Aborting method \EV5 due to previous error (AE_NOT_FOUND) (20200925/psparse-529)
Jun 25 13:41:51 d64 kernel: [369310.203047] ACPI Error: Aborting method \SMEE due to previous error (AE_NOT_FOUND) (20200925/psparse-529)
Jun 25 13:41:51 d64 kernel: [369310.203083] ACPI Error: Aborting method \SMIE due to previous error (AE_NOT_FOUND) (20200925/psparse-529)
Jun 25 13:41:51 d64 kernel: [369310.203119] ACPI Error: Aborting method \NEVT due to previous error (AE_NOT_FOUND) (20200925/psparse-529)
Jun 25 13:41:51 d64 kernel: [369310.203157] ACPI Error: Aborting method \_SB.PCI0.LPCB.ECDV._Q66 due to previous error (AE_NOT_FOUND) (20200925/psparse-529)

Maybe maybe tangentially related issues out there:

https://unix.stackexchange.com/questions/204547/cannot-copy-paste-from-or-to-the-gnome-terminal https://github.com/hluk/CopyQ/issues/1070 https://gitlab.gnome.org/GNOME/gtk/-/issues/820

So reportedly https://gitlab.gnome.org/GNOME/mutter has fixed it but Debian 11 with Gnome 3.38.5 isn’t using Mutter? Presumably apt install mutter won’t make anything actually use it…