GNU bug report logs -
#76414
31.0.50; can't paste images with yank-media
Previous Next
Reported by: the_wurfkreuz <the_wurfkreuz <at> proton.me>
Date: Wed, 19 Feb 2025 14:45:03 UTC
Severity: normal
Found in version 31.0.50
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 76414 in the body.
You can then email your comments to 76414 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76414
; Package
emacs
.
(Wed, 19 Feb 2025 14:45:05 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
the_wurfkreuz <the_wurfkreuz <at> proton.me>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 19 Feb 2025 14:45:05 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
I was previously using Emacs that I built from commit b568ff418ce. Now I've tried to use the latest one, and I can't paste images using yank-media after using this command 'grim -g "$(slurp)" - | wl-copy'. If I go back to the b568ff418ce commit, then everything works fine.
I have instances of Emacs opened right now, and evaluating (gui-get-selection 'CLIPBOARD 'TARGETS) on the one built from the b568ff418ce commit returns '[image/png]' and i can paste the image. The one built from the latest commit returns '[]'.
In GNU Emacs 31.0.50 (build 3, x86_64-pc-linux-gnu, GTK+ Version
3.24.43, cairo version 1.18.0) of 2025-02-19 built on ub-void
Repository revision: b568ff418ce7147c27d7f82fe4a8eef325b9de2c
Repository branch: HEAD
System Description: Void Linux
Configured using:
'configure --with-native-compilation=aot --with-tree-sitter --with-gif
--with-png --with-jpeg --with-rsvg --with-tiff --with-imagemagick
--with-pgtk --with-mailutils CC=/usr/bin/gcc CXX=/usr/bin/gcc'
Configured features:
CAIRO DBUS FREETYPE GLIB GMP GNUTLS GSETTINGS HARFBUZZ IMAGEMAGICK JPEG
LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG
SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP
XIM GTK3 ZLIB
Important settings:
value of $LC_COLLATE: C
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
Major mode: Bash
Minor modes in effect:
windmove-mode: t
savehist-mode: t
icomplete-vertical-mode: t
icomplete-mode: t
meow-global-mode: t
meow-mode: t
meow-normal-mode: t
meow-esc-mode: t
envrc-global-mode: t
envrc-mode: t
buffer-terminator-mode: t
global-git-commit-mode: t
magit-auto-revert-mode: t
which-key-mode: t
undo-fu-session-global-mode: t
undo-fu-session-mode: t
global-treesit-auto-mode: t
global-auto-revert-mode: t
save-place-mode: t
electric-pair-mode: t
recentf-mode: t
global-display-line-numbers-mode: t
display-line-numbers-mode: t
override-global-mode: t
tooltip-mode: t
show-paren-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tab-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
minibuffer-regexp-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
Load-path shadows:
/home/wurfkreuz/.emacs.d/elpa/transient-20250108.1351/transient hides /usr/local/share/emacs/31.0.50/lisp/transient
Features:
(shadow sort mail-extr emacsbug dired-aux tramp-cmds windmove image-file
image-converter oc-basic ol-eww eww vtable mule-util url-queue mm-url
ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-art mm-uu mml2015
mm-view mml-smime smime gnutls dig gnus-sum shr pixel-fill kinsoku
url-file svg dom gnus-group gnus-undo gnus-start gnus-dbus dbus xml
gnus-cloud nnimap nnmail mail-source utf7 nnoo gnus-spec gnus-int
gnus-range gnus-win gnus nnheader range ol-docview doc-view image-mode
exif ol-bibtex bibtex ol-bbdb ol-w3m ol-doi org-link-doi vc-git
vc-dispatcher jka-compr savehist icomplete f em-tramp esh-cmd esh-ext
esh-proc esh-opt esh-io esh-arg esh-module esh-module-loaddefs esh-util
meow meow-tutor meow-cheatsheet meow-cheatsheet-layout meow-core
meow-shims meow-esc meow-command array meow-thing meow-visual
meow-keypad meow-beacon meow-helpers meow-util meow-keymap meow-face
meow-var delsel org-tempo tempo org-drill persist org-agenda embark-org
org-element org-persist org-id org-refile org-element-ast inline
avl-tree org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro
org-src ob-comint org-pcomplete org-list org-footnote org-faces
org-entities ob-emacs-lisp ob-core ob-eval org-cycle org-table ol
org-fold org-fold-core org-keys oc org-version org-loaddefs cal-menu
calendar cal-loaddefs org-compat org-macs eglot external-completion
jsonrpc ert ewoc debug backtrace kdl-mode generic markdown-mode color
nix-mode nix-repl nix-shell nix-store nix-log nix-instantiate
nix-shebang nix-format nix yaml-mode haskell-mode haskell-cabal
haskell-utils haskell-font-lock haskell-indentation haskell-string
haskell-sort-imports haskell-lexeme haskell-align-imports
haskell-complete-module haskell-ghc-support flymake-proc flymake dabbrev
haskell-customize dockerfile-mode sh-script executable terraform-mode
noutline outline hcl-mode lua-mode go-mode find-file etags fileloop xref
raku-mode raku-repl raku-imenu raku-indent smie raku-font-lock
raku-detect envrc inheritenv buffer-terminator transpose-frame
magit-bookmark magit-submodule magit-blame magit-stash magit-reflog
magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote
magit-commit magit-sequence magit-notes magit-worktree magit-tag
magit-merge magit-branch magit-reset magit-files magit-refs magit-status
magit magit-repos magit-apply magit-wip magit-log which-func imenu
magit-diff git-commit log-edit message sendmail yank-media puny rfc822
mml mml-sec epa derived epg rfc6068 epg-config gnus-util mm-decode
mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util
ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader
pcvs-util add-log magit-core magit-autorevert magit-margin
magit-transient magit-process magit-mode benchmark magit-git magit-base
magit-section cursor-sensor crm smerge-mode diff-mode track-changes diff
hydra lv with-editor server embark-consult embark ffap thingatpt consult
bookmark project orderless tempel-collection tempel wgrep grep compile
text-property-search which-key docker docker-context docker-volume
docker-network docker-image docker-container docker-faces docker-core
docker-compose docker-process docker-utils tablist advice tablist-filter
semantic/wisent/comp semantic/wisent semantic/wisent/wisent
semantic/util-modes semantic/util semantic semantic/tag semantic/lex
semantic/fw mode-local find-func cedet dired dired-loaddefs docker-group
transient edmacro kmacro compat dash aio generator s goto-chg
undo-fu-session undo-fu zig-ts-mode clojure-ts-mode treesit-auto treesit
rose-pine-theme cus-edit pp cus-load midnight autorevert filenotify
saveplace tramp-cache time-stamp tramp-sh tramp trampver
tramp-integration files-x tramp-message tramp-compat shell pcomplete
comint ansi-osc ring parse-time iso8601 time-date format-spec ansi-color
tramp-loaddefs desktop frameset elec-pair recentf tree-widget wid-edit
comp comp-cstr warnings comp-run comp-common display-line-numbers
cl-extra help-mode use-package use-package-ensure use-package-delight
use-package-diminish use-package-bind-key bind-key easy-mmode
use-package-core finder-inf annalist-autoloads
buffer-terminator-autoloads cape-autoloads clojure-ts-mode-autoloads
cursor-undo-autoloads docker-autoloads aio-autoloads
dockerfile-mode-autoloads embark-consult-autoloads consult-autoloads
embark-autoloads envrc-autoloads f-autoloads go-mode-autoloads
goto-chg-autoloads haskell-mode-autoloads hydra-autoloads
inheritenv-autoloads lua-mode-autoloads lv-autoloads magit-autoloads
pcase markdown-mode-autoloads meow-autoloads nix-mode-autoloads
magit-section-autoloads orderless-autoloads org-drill-autoloads
persist-autoloads queue-autoloads raku-mode-autoloads rx s-autoloads
tablist-autoloads tempel-collection-autoloads tempel-autoloads
terraform-mode-autoloads dash-autoloads hcl-mode-autoloads
transient-autoloads transpose-frame-autoloads treesit-auto-autoloads
undo-fu-autoloads undo-fu-session-autoloads wgrep-autoloads info
with-editor-autoloads yaml-mode-autoloads zig-ts-mode-autoloads package
browse-url xdg url url-proxy url-privacy url-expand url-methods
url-history url-cookie generate-lisp-file url-domsuf url-util mailcap
url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs icons
password-cache json subr-x map byte-opt gv bytecomp byte-compile
url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren
electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel
term/pgtk-win pgtk-win term/common-win touch-screen pgtk-dnd tool-bar
dnd fontset image regexp-opt fringe tabulated-list replace newcomment
text-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 nadvice seq simple cl-generic
indonesian philippine 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 emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads dbusbind inotify
dynamic-setting system-font-setting font-render-setting cairo gtk pgtk
lcms2 multi-tty move-toolbar make-network-process tty-child-frames
native-compile emacs)
Memory information:
((conses 16 835549 128037) (symbols 48 51293 2) (strings 32 245230 9187)
(string-bytes 1 7485537) (vectors 16 94513) (vector-slots 8 1827314 117978)
(floats 8 705 83) (intervals 56 2038 869) (buffers 992 18))
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76414
; Package
emacs
.
(Sat, 22 Feb 2025 10:15:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 76414 <at> debbugs.gnu.org (full text, mbox):
> Date: Wed, 19 Feb 2025 14:44:05 +0000
> From: the_wurfkreuz via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>
> I was previously using Emacs that I built from commit b568ff418ce. Now I've tried to use the latest one, and I
> can't paste images using yank-media after using this command 'grim -g "$(slurp)" - | wl-copy'. If I go back to
> the b568ff418ce commit, then everything works fine.
>
> I have instances of Emacs opened right now, and evaluating (gui-get-selection 'CLIPBOARD 'TARGETS) on
> the one built from the b568ff418ce commit returns '[image/png]' and i can paste the image. The one built
> from the latest commit returns '[]'.
Visuwesh, could you please see if you can reproduce, and if so, try to
find the offending change? This is before I installed your yank-media
changes.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76414
; Package
emacs
.
(Sat, 22 Feb 2025 14:55:11 GMT)
Full text and
rfc822 format available.
Message #11 received at 76414 <at> debbugs.gnu.org (full text, mbox):
[சனி பிப்ரவரி 22, 2025] Eli Zaretskii wrote:
>> Date: Wed, 19 Feb 2025 14:44:05 +0000
>> From: the_wurfkreuz via "Bug reports for GNU Emacs,
>> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>>
>> I was previously using Emacs that I built from commit b568ff418ce. Now I've tried to use the latest one, and I
>> can't paste images using yank-media after using this command 'grim -g "$(slurp)" - | wl-copy'. If I go back to
>> the b568ff418ce commit, then everything works fine.
This commit was pushed after Po Lu's fix for bug#72254 so it is not a
regression from that fix.
>> I have instances of Emacs opened right now, and evaluating (gui-get-selection 'CLIPBOARD 'TARGETS) on
>> the one built from the b568ff418ce commit returns '[image/png]' and i can paste the image. The one built
>> from the latest commit returns '[]'.
What version of Org do you have loaded? A recent workaround for
bug#72254 was pushed for Emacs≤29 to the bugfix branch (I think?). It
shouldn't be enabled when you run the master branch but I might have
messed up the logic of the test. To be sure this isn't the case, can
you tell what
(pgtk-get-selection-internal 'CLIPBOARD 'TARGETS)
returns? If it returns the same thing, then we can rule out this
possibility. You can skip this if you're using the version that ships
with Emacs.
The only commit that touched src/pgtkselect.c after b568ff418ce is
Paul's commit intended to pacify GCC warnings. It seems to have changed
a function that is used by pgtk-get-selection-internal, could you please
check if reverting ff65cc9944dc0b37986d512ee8b9817c6913db36 fixes the
issue?
> Visuwesh, could you please see if you can reproduce, and if so, try to
> find the offending change? This is before I installed your yank-media
> changes.
Thanks for reminding me, Eli. I neglected to allot time to look at this
bug when I came across it earlier.
It would be nice if someone could check if they can reproduce the bug on
Wayland in a pgtk build. I am still on Xorg.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76414
; Package
emacs
.
(Sat, 22 Feb 2025 17:24:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 76414 <at> debbugs.gnu.org (full text, mbox):
>> What version of Org do you have loaded?
9.7.11
>> could you please check if reverting ff65cc9944dc0b37986d512ee8b9817c6913db36 fixes the
issue?
Reverting the commit fixes the issue.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76414
; Package
emacs
.
(Sun, 23 Feb 2025 04:18:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 76414 <at> debbugs.gnu.org (full text, mbox):
[சனி பிப்ரவரி 22, 2025] the_wurfkreuz wrote:
>>> could you please check if reverting ff65cc9944dc0b37986d512ee8b9817c6913db36 fixes the
> issue?
>
> Reverting the commit fixes the issue.
Paul, can you please take a look at this bug report? Your recent commit
commit ff65cc9944dc0b37986d512ee8b9817c6913db36
Author: Paul Eggert <eggert <at> cs.ucla.edu>
Date: Sun Jan 26 22:15:49 2025 -0800
Pacify GCC in pgtkselect malloc alignment
* src/pgtkselect.c (pgtk_size_for_format): Remove.
(pgtk_get_window_property): Third arg is now void **, not unsigned
char **. Omit last arg. All callers changed. Simplify
allocation to pacify GCC 14.2.1 complaint about malloc size
mismatching size of array: there’s no need for an extra byte when
converting from ldata to idata.
(selection_data_to_lisp_data): Third arg is now void const *,
not unsigned char const *. All callers changed.
Omit unnecessary casts. Make some locals more local.
seems to have introduced a regression. Details of reproduction are in
OP.
Reply sent
to
Paul Eggert <eggert <at> cs.ucla.edu>
:
You have taken responsibility.
(Sun, 23 Feb 2025 06:57:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
the_wurfkreuz <the_wurfkreuz <at> proton.me>
:
bug acknowledged by developer.
(Sun, 23 Feb 2025 06:57:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 76414-done <at> debbugs.gnu.org (full text, mbox):
On 2/22/25 21:16, Visuwesh wrote:
> the_wurfkreuz wrote:
>
>>>> could you please check if reverting ff65cc9944dc0b37986d512ee8b9817c6913db36 fixes the
>> issue?
>>
>> Reverting the commit fixes the issue.
Thanks for reporting that, and for reporting that reverting fixes the
problem. For now I've reverted, to fix the immediate problem. I may try
to come up with a better (less intrusive) way to pacify GCC.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76414
; Package
emacs
.
(Mon, 03 Mar 2025 00:01:01 GMT)
Full text and
rfc822 format available.
Message #25 received at 76414 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 2025-02-22 22:56, Paul Eggert wrote:
> I may try to come up with a better (less intrusive) way to pacify GCC.
I did that and installed the attached into the master branch; please
give it a try.
[0001-Pacify-GCC-in-pgtkselect-malloc-alignment.patch (text/x-patch, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76414
; Package
emacs
.
(Tue, 04 Mar 2025 06:13:02 GMT)
Full text and
rfc822 format available.
Message #28 received at 76414 <at> debbugs.gnu.org (full text, mbox):
It works in my case.
On Monday, March 3rd, 2025 at 12:00 AM, Paul Eggert <eggert <at> cs.ucla.edu> wrote:
> On 2025-02-22 22:56, Paul Eggert wrote:
>
> > I may try to come up with a better (less intrusive) way to pacify GCC.
>
>
> I did that and installed the attached into the master branch; please
> give it a try.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76414
; Package
emacs
.
(Wed, 19 Mar 2025 18:40:02 GMT)
Full text and
rfc822 format available.
Message #31 received at 76414 <at> debbugs.gnu.org (full text, mbox):
On 2025-03-13 10:17, Satrapes wrote:
> Just here to add that I have had the same issue where yank-media wouldn't work but after some testing I realized that it doesn't work with large selections. If I select a smaller image it seems to work. Just curious if this happen to the person who posted the bug.
It sounds like you still have a problem with current master. Do you have
the same problem with (say) commit
b06364f1b667e7960d1724293398179f280e910b? If so, the problem is surely
independent of Bug#76414.
I'll cc this email to the bug-report address so that it gets to the
person who posted the bug.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 17 Apr 2025 11:24:08 GMT)
Full text and
rfc822 format available.
This bug report was last modified 61 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.