From unknown Thu Jun 19 14:04:06 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#47642 <47642@debbugs.gnu.org> To: bug#47642 <47642@debbugs.gnu.org> Subject: Status: 28.0.50; (error "Selection owner couldn't convert" UTF8_STRING) Reply-To: bug#47642 <47642@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:04:06 +0000 retitle 47642 28.0.50; (error "Selection owner couldn't convert" UTF8_STRIN= G) reassign 47642 emacs submitter 47642 Jean Louis severity 47642 minor tag 47642 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 07 13:56:11 2021 Received: (at submit) by debbugs.gnu.org; 7 Apr 2021 17:56:11 +0000 Received: from localhost ([127.0.0.1]:45151 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUCPS-0001PI-G3 for submit@debbugs.gnu.org; Wed, 07 Apr 2021 13:56:11 -0400 Received: from lists.gnu.org ([209.51.188.17]:51030) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUCPQ-0001P9-F6 for submit@debbugs.gnu.org; Wed, 07 Apr 2021 13:56:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49266) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUCPQ-0004Xn-3J for bug-gnu-emacs@gnu.org; Wed, 07 Apr 2021 13:56:08 -0400 Received: from stw1.rcdrun.com ([217.170.207.13]:50073) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUCPN-00061o-FU for bug-gnu-emacs@gnu.org; Wed, 07 Apr 2021 13:56:07 -0400 Received: from localhost ([::ffff:41.210.159.189]) (AUTH: PLAIN securesender, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 000000000001DF46.00000000606DF212.00007044; Wed, 07 Apr 2021 10:55:29 -0700 From: Jean Louis To: bug-gnu-emacs@gnu.org Subject: 28.0.50; (error "Selection owner couldn't convert" UTF8_STRING) Date: Wed, 07 Apr 2021 20:51:05 +0300 Message-ID: <86czv656gm.fsf@protected.rcdrun.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=217.170.207.13; envelope-from=admin@protected.rcdrun.com; helo=stw1.rcdrun.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) I never had this error. It now happens in the longer running instance, it started suddenly. I don;t remember using any chars outside of ASCII. It is invoked when I pres C-k or C-y -- it started mysteriously and then after a while it stopped. I cannot replicate it in 'emacs -Q'. Debugger entered--Lisp error: (error "Selection owner couldn't convert" UTF= 8_STRING) x-get-selection-internal(CLIPBOARD UTF8_STRING nil nil) #f(compiled-function (selection-symbol target-type &optional time-stamp t= erminal) #)(CLIPBOARD UTF8_STRING) apply(#f(compiled-function (selection-symbol target-type &optional time-s= tamp terminal) #) (CLIPBOARD UTF8_STRING)) gui-backend-get-selection(CLIPBOARD UTF8_STRING) gui-get-selection(CLIPBOARD UTF8_STRING) gui--selection-value-internal(CLIPBOARD) gui-selection-value() kill-new("0786111111 contact-JIJI ") kill-region(12 36) kill-line(nil) funcall-interactively(kill-line nil) call-interactively(kill-line nil nil) command-execute(kill-line) read-string("Last name: " "0786111111 contact-JIJI " nil nil) (if area (read-from-buffer value (format "%s ID %s" column id) mode) (rea= d-string comment value nil nil)) (cond ((member column columns-to-choose-contact) (let* ((query (read-from= -minibuffer "Find person: ")) (id (string-to-number (cf-search-id query))))= id)) ((and foreign-key (string=3D type "integer")) (if (member foreign-tab= le foreign-tables-to-ignore) (read-number comment value) (rcd-db-combo-sele= ction foreign-table))) ((string=3D type "integer") (read-number comment val= ue)) ((string-match "numeric" type) (read-number comment value)) ((string= =3D type "text") (if area (read-from-buffer value (format "%s ID %s" column= id) mode) (read-string comment value nil nil))) ((string=3D type "date") (= read-string comment value nil value)) ((string-match "varying" type) (read-= string comment value nil value)) ((string-match "array" type) (read-string = comment (if value value "{}") nil value)) ((string=3D type "timestamp witho= ut time zone") (read-string comment value nil value)) ((string=3D type "tim= estamp with time zone") (read-string comment value nil value)) ((string=3D = type "boolean") (read-boolean comment value))) (let ((new-value (cond ((member column columns-to-choose-contact) (let* (= (query ...) (id ...)) id)) ((and foreign-key (string=3D type "integer")) (i= f (member foreign-table foreign-tables-to-ignore) (read-number comment valu= e) (rcd-db-combo-selection foreign-table))) ((string=3D type "integer") (re= ad-number comment value)) ((string-match "numeric" type) (read-number comme= nt value)) ((string=3D type "text") (if area (read-from-buffer value (forma= t "%s ID %s" column id) mode) (read-string comment value nil nil))) ((strin= g=3D type "date") (read-string comment value nil value)) ((string-match "va= rying" type) (read-string comment value nil value)) ((string-match "array" = type) (read-string comment (if value value "{}") nil value)) ((string=3D ty= pe "timestamp without time zone") (read-string comment value nil value)) ((= string=3D type "timestamp with time zone") (read-string comment value nil v= alue)) ((string=3D type "boolean") (read-boolean comment value))))) (rcd-db= -update-entry table column id new-value *cf*)) (let* ((type (rcd-db-column-type table column *cf*)) (comment (rcd-db-col= umn-comment table column *cf*)) (foreign (rcd-db-foreign-table-column table= column *cf*)) (value (rcd-db-get-entry table column id *cf*)) (size (if (e= q (type-of value) 'string) (length value) nil)) (foreign-key (if foreign t = nil)) (foreign-table (or (car foreign) nil)) (area (or (rcd/column-area-p t= able column *cf*) (and size (> size 80)))) (comment (append-colon-space com= ment))) (let ((new-value (cond ((member column columns-to-choose-contact) (= let* (... ...) id)) ((and foreign-key (string=3D type "integer")) (if (memb= er foreign-table foreign-tables-to-ignore) (read-number comment value) (rcd= -db-combo-selection foreign-table))) ((string=3D type "integer") (read-numb= er comment value)) ((string-match "numeric" type) (read-number comment valu= e)) ((string=3D type "text") (if area (read-from-buffer value ... mode) (re= ad-string comment value nil nil))) ((string=3D type "date") (read-string co= mment value nil value)) ((string-match "varying" type) (read-string comment= value nil value)) ((string-match "array" type) (read-string comment (if va= lue value "{}") nil value)) ((string=3D type "timestamp without time zone")= (read-string comment value nil value)) ((string=3D type "timestamp with ti= me zone") (read-string comment value nil value)) ((string=3D type "boolean"= ) (read-boolean comment value))))) (rcd-db-update-entry table column id new= -value *cf*))) rcd/edit-entry("people" "people_lastname" 359712) (let* ((id (tabulated-list-get-id)) (id (split-string id ":")) (table (ca= r id)) (column (car (cdr id))) (id (car (cdr (cdr id)))) (id (string-to-num= ber id)) (point (point))) (rcd/edit-entry table column id) (kill-this-buffe= r) (rcd-db-tabulated-table-edit table id) (goto-char point)) rcd-db-tabulated-edit-value() funcall-interactively(rcd-db-tabulated-edit-value) call-interactively(rcd-db-tabulated-edit-value nil nil) command-execute(rcd-db-tabulated-edit-value) In GNU Emacs 28.0.50 (build 4, x86_64-pc-linux-gnu, X toolkit, cairo versio= n 1.17.4, Xaw3d scroll bars) of 2021-04-05 built on protected.rcdrun.com Repository revision: a44d423a5aaf97790ce95350a38590fbb17b3220 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12010000 Configured using: 'configure --prefix=3D/package/text/emacs --with-x-toolkit=3Dlucid' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XAW3D XDBE XIM XPM LUCID ZLIB Important settings: value of $LC_ALL: en_US.UTF-8 value of $LANG: de_DE.UTF-8 value of $XMODIFIERS: @im=3Dexwm-xim locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 53549 8043) (symbols 48 7031 1) (strings 32 19837 1894) (string-bytes 1 640374) (vectors 16 13037) (vector-slots 8 174775 11503) (floats 8 23 51) (intervals 56 406 44) (buffers 992 11)) --=20 Thanks, Jean Louis Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 07 15:58:48 2021 Received: (at 47642) by debbugs.gnu.org; 7 Apr 2021 19:58:48 +0000 Received: from localhost ([127.0.0.1]:45287 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUEK8-0004U5-7C for submit@debbugs.gnu.org; Wed, 07 Apr 2021 15:58:48 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58594) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUEK6-0004Tt-Ii for 47642@debbugs.gnu.org; Wed, 07 Apr 2021 15:58:47 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52409) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUDzk-0002af-1Y; Wed, 07 Apr 2021 15:37:44 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2093 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lUDzj-0001Y7-AC; Wed, 07 Apr 2021 15:37:43 -0400 Date: Wed, 07 Apr 2021 22:37:32 +0300 Message-Id: <83im4xansz.fsf@gnu.org> From: Eli Zaretskii To: Jean Louis In-Reply-To: <86czv656gm.fsf@protected.rcdrun.com> (message from Jean Louis on Wed, 07 Apr 2021 20:51:05 +0300) Subject: Re: bug#47642: 28.0.50; (error "Selection owner couldn't convert" UTF8_STRING) References: <86czv656gm.fsf@protected.rcdrun.com> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 47642 Cc: 47642@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) > From: Jean Louis > Date: Wed, 07 Apr 2021 20:51:05 +0300 > > > I never had this error. It now happens in the longer running instance, > it started suddenly. I don;t remember using any chars outside of > ASCII. It is invoked when I pres C-k or C-y -- it started mysteriously > and then after a while it stopped. > > I cannot replicate it in 'emacs -Q'. > > Debugger entered--Lisp error: (error "Selection owner couldn't convert" UTF8_STRING) Why do you think it's an Emacs problem? The error message points to an external program, which owns the selection. From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 07 16:16:39 2021 Received: (at 47642) by debbugs.gnu.org; 7 Apr 2021 20:16:39 +0000 Received: from localhost ([127.0.0.1]:45329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUEbO-0004y5-Re for submit@debbugs.gnu.org; Wed, 07 Apr 2021 16:16:38 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:51031) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUEbM-0004xq-Th for 47642@debbugs.gnu.org; Wed, 07 Apr 2021 16:16:37 -0400 Received: from mail.gandi.net (m91-129-107-223.cust.tele2.ee [91.129.107.223]) (Authenticated sender: juri@linkov.net) by relay11.mail.gandi.net (Postfix) with ESMTPSA id C9D6E100002; Wed, 7 Apr 2021 20:16:29 +0000 (UTC) From: Juri Linkov To: Jean Louis Subject: Re: bug#47642: 28.0.50; (error "Selection owner couldn't convert" UTF8_STRING) Organization: LINKOV.NET References: <86czv656gm.fsf@protected.rcdrun.com> Date: Wed, 07 Apr 2021 22:58:34 +0300 In-Reply-To: <86czv656gm.fsf@protected.rcdrun.com> (Jean Louis's message of "Wed, 07 Apr 2021 20:51:05 +0300") Message-ID: <87y2dteurl.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 47642 Cc: 47642@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > I cannot replicate it in 'emacs -Q'. > > Debugger entered--Lisp error: (error "Selection owner couldn't convert" UTF8_STRING) > x-get-selection-internal(CLIPBOARD UTF8_STRING nil nil) I can replicate exactly the same error: Debugger entered--Lisp error: (error "Selection owner couldn't convert" UTF8_STRING) x-get-selection-internal(CLIPBOARD UTF8_STRING nil nil) #f(compiled-function (selection-symbol target-type &optional time-stamp terminal) ...) apply(#f(compiled-function (selection-symbol target-type &optional time-stamp terminal) ...) gui-backend-get-selection(CLIPBOARD UTF8_STRING) gui-get-selection(CLIPBOARD UTF8_STRING) gui--selection-value-internal(CLIPBOARD) after copying an image in Gimp, then exiting Gimp, and trying to paste in Emacs. From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 12 06:11:42 2021 Received: (at 47642) by debbugs.gnu.org; 12 Apr 2021 10:11:42 +0000 Received: from localhost ([127.0.0.1]:56570 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVtXi-0008RP-8f for submit@debbugs.gnu.org; Mon, 12 Apr 2021 06:11:42 -0400 Received: from quimby.gnus.org ([95.216.78.240]:49986) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVtXf-0008RA-J7 for 47642@debbugs.gnu.org; Mon, 12 Apr 2021 06:11:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=MqhvEtd/hAxhGFiOcQvGBAE0ApkFIBWrd9QZ7IdrzWs=; b=MWzu1h4BhNFjMBD1G3LzE5nq3s qqa+EhcEYOrTb6p7+n15QtWXdKCvtucBpGkF5WZEcYxlYlPRWnL2CaCkShP7SVeR8A7TD0RsnAwUs m2WJ0XlsbUgLavSGE+MRQe7dni/wXOmGaEB1i9UjvKCs74wS7GnUg1KIuG5ZWiYoyFBE=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lVtXV-0006Ao-9v; Mon, 12 Apr 2021 12:11:33 +0200 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#47642: 28.0.50; (error "Selection owner couldn't convert" UTF8_STRING) References: <86czv656gm.fsf@protected.rcdrun.com> <87y2dteurl.fsf@mail.linkov.net> X-Now-Playing: Stereolab's _Switched On Vol. 4: Electrically Possessed (1)_: "Outer Bongolia" Date: Mon, 12 Apr 2021 12:11:28 +0200 In-Reply-To: <87y2dteurl.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 07 Apr 2021 22:58:34 +0300") Message-ID: <87im4ryfqn.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: > after copying an image in Gimp, then exiting Gimp, and trying to paste > in Emacs. I was unable to reproduce that (on Debian/bullseye) -- I just get nil back from Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 47642 Cc: 47642@debbugs.gnu.org, Jean Louis X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Juri Linkov writes: > after copying an image in Gimp, then exiting Gimp, and trying to paste > in Emacs. I was unable to reproduce that (on Debian/bullseye) -- I just get nil back from (x-get-selection-internal 'CLIPBOARD 'UTF8_STRING nil nil) no matter whether Gimp is running or not (after choosing Edit -> Copy). In any case -- I'm not sure there's anything we can do on the Emacs side... except perhaps change the error message? "Couldn't convert" isn't really informative. "Couldn't get selection from selection owner", perhaps? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 12 12:14:22 2021 Received: (at 47642) by debbugs.gnu.org; 12 Apr 2021 16:14:22 +0000 Received: from localhost ([127.0.0.1]:57807 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVzCg-0003No-78 for submit@debbugs.gnu.org; Mon, 12 Apr 2021 12:14:22 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:43173) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVzCf-0003NZ-7I for 47642@debbugs.gnu.org; Mon, 12 Apr 2021 12:14:21 -0400 Received: from mail.gandi.net (m91-129-96-157.cust.tele2.ee [91.129.96.157]) (Authenticated sender: juri@linkov.net) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 9D989240005; Mon, 12 Apr 2021 16:14:13 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#47642: 28.0.50; (error "Selection owner couldn't convert" UTF8_STRING) Organization: LINKOV.NET References: <86czv656gm.fsf@protected.rcdrun.com> <87y2dteurl.fsf@mail.linkov.net> <87im4ryfqn.fsf@gnus.org> Date: Mon, 12 Apr 2021 19:03:48 +0300 In-Reply-To: <87im4ryfqn.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 12 Apr 2021 12:11:28 +0200") Message-ID: <87k0p73e1n.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 47642 Cc: 47642@debbugs.gnu.org, Jean Louis X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> after copying an image in Gimp, then exiting Gimp, and trying to paste >> in Emacs. > > I was unable to reproduce that (on Debian/bullseye) -- I just get nil > back from > > (x-get-selection-internal 'CLIPBOARD 'UTF8_STRING nil nil) > > no matter whether Gimp is running or not (after choosing Edit -> Copy). Here is a complete test case with 100% reproducibility: 1. In GIMP 2.10.18 on Ubuntu create a new image 2. Select a rectangle 3. Copy with Ctrl+C or Edit -> Copy 4. in 'emacs -Q' version 28, GTK+ version 3.24.20 5. evaluating (x-get-selection-internal 'CLIPBOARD 'UTF8_STRING nil nil) returns nil 6. quit Gimp 7. evaluate the same (x-get-selection-internal 'CLIPBOARD 'UTF8_STRING nil nil) 8. it fails with Debugger entered--Lisp error: (error "Selection owner couldn't convert" UTF8_STRING) x-get-selection-internal(CLIPBOARD UTF8_STRING nil nil) (progn (x-get-selection-internal 'CLIPBOARD 'UTF8_STRING nil nil)) eval((progn (x-get-selection-internal 'CLIPBOARD 'UTF8_STRING nil nil)) t) elisp--eval-last-sexp(nil) eval-last-sexp(nil) funcall-interactively(eval-last-sexp nil) call-interactively(eval-last-sexp nil nil) command-execute(eval-last-sexp) This is strange since there is no owner anymore, the selection owner was closed. It's a big problem for me because I customized save-interprogram-paste-before-kill to t, and I can't use copy/paste in Emacs anymore after this error, because I raises the same error on trying to copy a new text, so even can't overwrite the old unavailable selection with a new one in Emacs. Then I need to switch to some other app, copy some text from it to the clipboard, that fixes the broken state of copy/paste in Emacs. > In any case -- I'm not sure there's anything we can do on the Emacs > side... except perhaps change the error message? "Couldn't convert" > isn't really informative. "Couldn't get selection from selection > owner", perhaps? I wonder why this error should be raised at all instead of just returning nil? From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 13 01:38:36 2021 Received: (at 47642) by debbugs.gnu.org; 13 Apr 2021 05:38:36 +0000 Received: from localhost ([127.0.0.1]:58783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWBky-0006tY-HW for submit@debbugs.gnu.org; Tue, 13 Apr 2021 01:38:36 -0400 Received: from stw1.rcdrun.com ([217.170.207.13]:54695) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWBkw-0006tG-HE; Tue, 13 Apr 2021 01:38:35 -0400 Received: from localhost ([::ffff:197.157.34.191]) (AUTH: PLAIN securesender, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 00000000000280CD.0000000060752E53.00000789; Mon, 12 Apr 2021 22:38:27 -0700 Date: Tue, 13 Apr 2021 08:37:22 +0300 From: Jean Louis To: Eli Zaretskii Subject: Re: bug#47642: 28.0.50; (error "Selection owner couldn't convert" UTF8_STRING) Message-ID: References: <86czv656gm.fsf@protected.rcdrun.com> <83im4xansz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: <83im4xansz.fsf@gnu.org> User-Agent: Mutt/2.0.6 (2021-03-06) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 47642 Cc: 47642@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * Eli Zaretskii [2021-04-07 23:03]: > > From: Jean Louis > > Date: Wed, 07 Apr 2021 20:51:05 +0300 > > > > > > I never had this error. It now happens in the longer running instance, > > it started suddenly. I don;t remember using any chars outside of > > ASCII. It is invoked when I pres C-k or C-y -- it started mysteriously > > and then after a while it stopped. > > > > I cannot replicate it in 'emacs -Q'. > > > > Debugger entered--Lisp error: (error "Selection owner couldn't convert" UTF8_STRING) > > Why do you think it's an Emacs problem? The error message points to > an external program, which owns the selection. I get it, this is clear and may be closed. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 13 03:31:47 2021 Received: (at 47642) by debbugs.gnu.org; 13 Apr 2021 07:31:47 +0000 Received: from localhost ([127.0.0.1]:58854 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWDWV-0001EM-3N for submit@debbugs.gnu.org; Tue, 13 Apr 2021 03:31:47 -0400 Received: from quimby.gnus.org ([95.216.78.240]:59114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWDWT-0001E8-6W for 47642@debbugs.gnu.org; Tue, 13 Apr 2021 03:31:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=MKTogkK1QZJHRD7Sg1LsZaWnt36aF45S9rYf+W2DAFw=; b=HjHhRn3fPf/2YMPMFgeUj9xc2D YiIJYiy0FZeoP2abMqeUpxu9/fqWqsaVocg62f40C8zUXUg5CRu+E1/s3dfvYhUaQKHIX6OFRVxiC o0ZTHlFWu0skvMp8jwlu8PD75587g9Na2fEHWW2pkVgQl9ja1/+LYAnST2fdFz6wQY4M=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lWDWG-0000fj-Jf; Tue, 13 Apr 2021 09:31:38 +0200 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#47642: 28.0.50; (error "Selection owner couldn't convert" UTF8_STRING) References: <86czv656gm.fsf@protected.rcdrun.com> <87y2dteurl.fsf@mail.linkov.net> <87im4ryfqn.fsf@gnus.org> <87k0p73e1n.fsf@mail.linkov.net> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEXx6Oy8pMpvc6/d aJr///8sYALUAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+UEDQceASu+R0AAAAF1SURBVDjLdZRbgoMw CEXDZAMhbKBkNiCy/70Nj2g1OqkfNofnhbYUP4itrGccpy8M7dg19vF5OAV8RjMH7H0Yud/3mYJX cib/F/C4pxkXEm74AJ3fASPfsoxLVW85mNcWT4fWXstlt28vobIasM8KwngF+8iuEQregI6sycxv APXorRUkFali78xcSPoJNM9W3LbqCZqlqULaSgRX4AwOOeUxAmBR7Jz1Ih8LEIAUsxP4yp5vauln KFANkNpVr9hcfhxsVy2ni61jWri3d+NZPL2DKf9WrR0AVPH0DkoJUyXvE0yKbpXaQ5LZUwGrLQRz RRrsnwOQEJJ1Zfcmh5kAJhAx49hiJRuOvz2A7rmVE2gIRF7Inks5ASXQCUbHK2g1vuR2z3IpZ57g d78AcRAieLxmg/x6FPcQV/rSuQQgDclTRJISQBp8QC+zoM0e3VAQuP/qd60hKUkrBmT5sdeNsJgH r/8C1bbAwXof62Hb2n3acxn+AE6tVO1qmSHXAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTA0LTEz VDA3OjMwOjAxKzAwOjAwHlQbjAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0wNC0xM1QwNzozMDow MSswMDowMG8JozAAAAAASUVORK5CYII= X-Now-Playing: Marianne Faithfull's _A Child's Adventure_: "Times Square" Date: Tue, 13 Apr 2021 09:31:32 +0200 In-Reply-To: <87k0p73e1n.fsf@mail.linkov.net> (Juri Linkov's message of "Mon, 12 Apr 2021 19:03:48 +0300") Message-ID: <87a6q2tzcb.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: > Here is a complete test case with 100% reproducibility: I tried the recipe with Gimp 2.10.22 on Debian/bullseye, but I just get nil, so I guess there's some difference in how this is handled... Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 47642 Cc: 47642@debbugs.gnu.org, Jean Louis X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Juri Linkov writes: > Here is a complete test case with 100% reproducibility: I tried the recipe with Gimp 2.10.22 on Debian/bullseye, but I just get nil, so I guess there's some difference in how this is handled... > I wonder why this error should be raised at all > instead of just returning nil? That's a really good point -- this low-level error surely can't be of interest to the Emacs user. So you're right -- it should just return nil here. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 13 12:21:14 2021 Received: (at 47642) by debbugs.gnu.org; 13 Apr 2021 16:21:14 +0000 Received: from localhost ([127.0.0.1]:60620 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWLmr-0002RI-Uj for submit@debbugs.gnu.org; Tue, 13 Apr 2021 12:21:14 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:36593) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWLmq-0002Qg-6M for 47642@debbugs.gnu.org; Tue, 13 Apr 2021 12:21:12 -0400 X-Originating-IP: 91.129.96.157 Received: from mail.gandi.net (m91-129-96-157.cust.tele2.ee [91.129.96.157]) (Authenticated sender: juri@linkov.net) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id F00D3FF80A; Tue, 13 Apr 2021 16:21:04 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#47642: 28.0.50; (error "Selection owner couldn't convert" UTF8_STRING) Organization: LINKOV.NET References: <86czv656gm.fsf@protected.rcdrun.com> <87y2dteurl.fsf@mail.linkov.net> <87im4ryfqn.fsf@gnus.org> <87k0p73e1n.fsf@mail.linkov.net> <87a6q2tzcb.fsf@gnus.org> Date: Tue, 13 Apr 2021 19:20:47 +0300 In-Reply-To: <87a6q2tzcb.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 13 Apr 2021 09:31:32 +0200") Message-ID: <87lf9m88i8.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 47642 Cc: 47642@debbugs.gnu.org, Jean Louis X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain >> I wonder why this error should be raised at all >> instead of just returning nil? > > That's a really good point -- this low-level error surely can't be of > interest to the Emacs user. So you're right -- it should just return > nil here. Here's the patch that does this: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=selection_owner.patch diff --git a/src/xselect.c b/src/xselect.c index 030f624071..cd6d86bdf4 100644 --- a/src/xselect.c +++ b/src/xselect.c @@ -1482,14 +1482,21 @@ x_get_window_property_as_lisp_data (struct x_display_info *dpyinfo, = XGetSelectionOwner (display, selection_atom) != 0; unblock_input (); if (there_is_a_selection_owner) - signal_error ("Selection owner couldn't convert", - actual_type - ? list2 (target_type, - x_atom_to_symbol (dpyinfo, actual_type)) - : target_type); + { + AUTO_STRING (format, "Selection owner couldn't convert: %s"); + CALLN (Fmessage, format, + actual_type + ? list2 (target_type, + x_atom_to_symbol (dpyinfo, actual_type)) + : target_type); + return Qnil; + } else - signal_error ("No selection", - x_atom_to_symbol (dpyinfo, selection_atom)); + { + AUTO_STRING (format, "No selection: %s"); + CALLN (Fmessage, format, x_atom_to_symbol (dpyinfo, selection_atom)); + return Qnil; + } } if (actual_type == dpyinfo->Xatom_INCR) --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 14 14:23:58 2021 Received: (at 47642) by debbugs.gnu.org; 14 Apr 2021 18:23:59 +0000 Received: from localhost ([127.0.0.1]:35678 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWkBC-0005Ge-HE for submit@debbugs.gnu.org; Wed, 14 Apr 2021 14:23:58 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:42043) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWkBA-0005GJ-UV; Wed, 14 Apr 2021 14:23:57 -0400 X-Originating-IP: 91.129.96.157 Received: from mail.gandi.net (m91-129-96-157.cust.tele2.ee [91.129.96.157]) (Authenticated sender: juri@linkov.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 4DFEFE0008; Wed, 14 Apr 2021 18:23:47 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#47642: 28.0.50; (error "Selection owner couldn't convert" UTF8_STRING) Organization: LINKOV.NET References: <86czv656gm.fsf@protected.rcdrun.com> <87y2dteurl.fsf@mail.linkov.net> <87im4ryfqn.fsf@gnus.org> <87k0p73e1n.fsf@mail.linkov.net> <87a6q2tzcb.fsf@gnus.org> <87lf9m88i8.fsf@mail.linkov.net> Date: Wed, 14 Apr 2021 21:23:23 +0300 In-Reply-To: <87lf9m88i8.fsf@mail.linkov.net> (Juri Linkov's message of "Tue, 13 Apr 2021 19:20:47 +0300") Message-ID: <878s5kn2sk.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 47642 Cc: 47642@debbugs.gnu.org, Jean Louis X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) tags 47642 fixed close 47642 28.0.50 quit >>> I wonder why this error should be raised at all >>> instead of just returning nil? >> >> That's a really good point -- this low-level error surely can't be of >> interest to the Emacs user. So you're right -- it should just return >> nil here. > > Here's the patch that does this: Pushed now. From unknown Thu Jun 19 14:04:06 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 13 May 2021 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator