From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrew Tropin Newsgroups: gmane.emacs.bugs Subject: bug#62291: 30.0.50; PGTK copy + paste to other app problem Date: Mon, 20 Mar 2023 14:33:30 +0400 Message-ID: <877cvbiuf9.fsf@trop.in> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31517"; mail-complaints-to="usenet@ciao.gmane.io" To: 62291@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 20 11:34:18 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1peCqH-0007vC-Qz for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 Mar 2023 11:34:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1peCq5-0005yb-9M; Mon, 20 Mar 2023 06:34:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1peCq3-0005w3-1b for bug-gnu-emacs@gnu.org; Mon, 20 Mar 2023 06:34:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1peCq2-000659-PZ for bug-gnu-emacs@gnu.org; Mon, 20 Mar 2023 06:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1peCq2-0007hy-Dn for bug-gnu-emacs@gnu.org; Mon, 20 Mar 2023 06:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrew Tropin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Mar 2023 10:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62291 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.167930842629604 (code B ref -1); Mon, 20 Mar 2023 10:34:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Mar 2023 10:33:46 +0000 Original-Received: from localhost ([127.0.0.1]:53736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peCpl-0007hQ-SN for submit@debbugs.gnu.org; Mon, 20 Mar 2023 06:33:46 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:35966) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peCpj-0007hH-8r for submit@debbugs.gnu.org; Mon, 20 Mar 2023 06:33:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1peCpi-0005rv-SS for bug-gnu-emacs@gnu.org; Mon, 20 Mar 2023 06:33:42 -0400 Original-Received: from relay7-d.mail.gandi.net ([217.70.183.200]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1peCpf-00063X-Sq for bug-gnu-emacs@gnu.org; Mon, 20 Mar 2023 06:33:42 -0400 Original-Received: (Authenticated sender: andrew@trop.in) by mail.gandi.net (Postfix) with ESMTPSA id EC13920013 for ; Mon, 20 Mar 2023 10:33:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop.in; s=gm1; t=1679308414; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=+OwtKQVqUImf+BgQ+5dyC29sOIWgWd6MH9k3pyP2kjM=; b=H3hdf7KpEWmeby8odRQ1wO0waZ5Lqq/ZdBSEePyXZPUTDNK95s2iy5f1cR0XIDC5nGJomA BK+VI1HWgq/BLF0wuSJEEic9sItwNGEZ6HrBmTQ23L5S+M3c7B/WrqXYws2q8rlM73y7WI A+09C+kknLBGlZtk+UT5Xf2NYYQFrKgciG0UF/SusQie/Nsm6psvi0tb6t545NcaOos3WF OUE7Fb3TtsW/hIazZhn3pAqu+Q9hVsDpqu64coK8+x3tNytwBxllxMq9lkBZlDNQWSFdvr 1L8wbA6JEgU2yjQzdsGaPt1/ckaNaCVFw8jeeVVPpoCLBTxx3NXHxOzOL5Bo1Q== Received-SPF: pass client-ip=217.70.183.200; envelope-from=andrew@trop.in; helo=relay7-d.mail.gandi.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:258276 Archived-At: 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