unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Andrew Tropin <andrew@trop.in>
To: 62291@debbugs.gnu.org
Subject: bug#62291: 30.0.50; PGTK copy + paste to other app problem
Date: Mon, 20 Mar 2023 14:33:30 +0400	[thread overview]
Message-ID: <877cvbiuf9.fsf@trop.in> (raw)

Hello dear maintainers!

I use pgtk emacs on wayland (sway) and a few months ago started facing a
problem with copy/pasting to ungoogled-chromium.  Tried to find relevant
reports on bug-gun-emacs, but didn't succeed.

Way to reproduce and observed behavior:

0. guix shell emacs-next-pgtk (or build a fresh emacs with pgtk from master).
1. Launch emacs -Q.
2. Select any text and optionally copy it with M-w.
3. Paste it to chromium address bar with middle mouse or C-v if it was
copied with M-w.
4. Both chromium and emacs get frozen for some time.
5. After some time Emacs crashes, chromium unfreezes.
6. A few times I saw "waiting for reply from selection owner." in emacs
echo area, but can't reproduce it right now.

- The same workflow, but with foot terminal instead of emacs works fine.
- The same version of Emacs, but built without PGTK, works fine too:
guix shell emacs-next-tree-sitter -- emacs -Q
- Copy pasting from emacs-next-pgtk to alacritty and icecat works fine.

The report of this problem on bug-guix and a backtrace of segfault:
https://yhetil.org/guix-bugs/871qqwfr5d.fsf@trop.in/

A temporary workaround we use (it solves M-w + C-v, but not selection +
middle mouse):
https://git.sr.ht/~abcdw/rde/commit/b6aef2d8b34d1166f33629b4b3a1a0f5751f90f9

Let me know if I can provide any additional information or testing.


In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.30, cairo version 1.16.0)
System Description: Guix System

Configured using:
 'configure
 CONFIG_SHELL=/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bin/bash
 SHELL=/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bin/bash
 --prefix=/gnu/store/701xsj5ngwasz7i962q5mdyqklvfhvx0-emacs-next-pgtk-30.0.50-0.ac7ec87
 --enable-fast-install --with-pgtk --with-modules --with-cairo
 --with-native-compilation --disable-build-details'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP
NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER XIM GTK3 ZLIB

Important settings:
  value of $EMACSLOADPATH: /home/bob/.guix-home/profile/share/emacs/site-lisp:/gnu/store/701xsj5ngwasz7i962q5mdyqklvfhvx0-emacs-next-pgtk-30.0.50-0.ac7ec87/share/emacs/30.0.50/lisp:/gnu/store/701xsj5ngwasz7i962q5mdyqklvfhvx0-emacs-next-pgtk-30.0.50-0.ac7ec87/share/emacs/30.0.50/lisp
  value of $EMACSNATIVELOADPATH: /home/bob/.guix-home/profile/lib/emacs/native-site-lisp
  value of $LANG: en_US.utf8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Memory information:
((conses 16 77880 5562)
 (symbols 48 7125 0)
 (strings 32 19872 2975)
 (string-bytes 1 650293)
 (vectors 16 16564)
 (vector-slots 8 328550 6303)
 (floats 8 27 24)
 (intervals 56 222 0)
 (buffers 984 11))

-- 
Best regards,
Andrew Tropin





             reply	other threads:[~2023-03-20 10:33 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-20 10:33 Andrew Tropin [this message]
2023-03-20 11:05 ` bug#62291: 30.0.50; PGTK copy + paste to other app problem Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-20 11:17   ` Andrew Tropin
2023-03-20 12:36     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-21  9:10       ` Andrew Tropin
2023-03-21 10:30         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-21 13:25           ` Andrew Tropin
2023-03-21 16:13           ` Andrew Tropin
2023-03-22  0:39             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-22  4:42               ` Andrew Tropin
2023-03-22  6:11                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-22  7:28                   ` Andrew Tropin
2023-03-22 10:33                     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-22 11:02                       ` Andrew Tropin
2023-03-23  0:44                         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-23  5:18                           ` Andrew Tropin
2023-03-23  7:16                             ` Eli Zaretskii
2023-03-23 18:22                               ` Andrew Tropin
2023-03-24  1:00                                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-24  4:31                                   ` Andrew Tropin
2023-03-24  7:51                                     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-24 10:39                                       ` Andrew Tropin
2023-03-24 11:40                                         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-12  0:11                                           ` Stefan Kangas
2023-09-12 11:24                                             ` Andrew Tropin
2023-09-12 14:50                                               ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877cvbiuf9.fsf@trop.in \
    --to=andrew@trop.in \
    --cc=62291@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).