nyxt icon indicating copy to clipboard operation
nyxt copied to clipboard

paste-from-clipboard-ring does not work

Open pretentious7 opened this issue 10 months ago • 12 comments

Describe the bug When I'm in a text box or something and use M-y and select something to paste, it does not then paste.

Precise recipe to reproduce the issue

  1. C-l test
  2. select some text on the page then M-w
  3. focus search box and M-y
  4. notice that the copied text doesn't show up

Information

  • OS name+version: guix linux 6.7.10
  • Graphics card and driver: intel
  • Desktop environment / Window manager name+version: gnome
  • How you installed Nyxt (Guix pack, package manager, build from source): guix package -I
  • Information from show-system-information:
Nyxt version: 3.11.5
Renderer: GI-GTK
Operating system kernel: Linux 6.7.10
Lisp implementation: SBCL 2.4.0 (Dynamic space size: 3221225472)
Features: (:NYXT-GI-GTK :NYXT-GTK :NYXT-3.11 :NYXT-3 :NYXT-3.11.5 :CLIPBOARD-CONTENT-METHOD :SWANK :SLYNK :PLUMP-UTF-32 :PARENSCRIPT :NSYMBOLS :FSET-EXT-STRINGS :NAMED-READTABLES :CL-FAD :LPARALLEL :21BIT-CHARS :CUSTOM-HASH-TABLE-NATIVE :CL-PPCRE-UNICODE :CL-UNICODE :CHUNGA :FLEXI-STREAMS :CL-PPCRE :WEBKIT2 :WEBKIT-2.42.5 :WEBKIT-2.42 :WEBKIT-2 :WEBKIT2-CORS-ALLOWLIST :WEBKIT2-PASTE-PLAINTEXT :WEBKIT2-TRACKING :WEBKIT2-MUTE :WEBKIT2-EMOJI :WEBKIT2-MEDIA :WEBKIT2-SANDBOXING :GTK-3-22 :GTK-3-20 :GTK-3-18 :GTK-3-16 :GTK-3-14 :GTK-3-12 :GTK-3-10 :GTK-3-8 :GTK-3-6 :GTK-3-4 :GTK :GDK-3-22 :GDK-3-20 :GDK-3-18 :GDK-3-16 :GDK-3-14 :GDK-3-12 :GDK-3-10 :GDK-3-8 :GDK-3-6 :GDK-3-4 :CAIRO-1-10 :CAIRO-1-12 :GDK-PIXBUF :CLOSER-MOP :GLIB-2-30 :GLIB-2-32 :GLIB-2-34 :GLIB-2-36 :GLIB-2-38 :GLIB-2-40 :GLIB-2-42 :GLIB-2-44 :GLIB-2-46 :GLIB-2-48 :GLIB-2-50 :GLIB-2-52 :GLIB-2-54 :GLIB-2-56 :GLIB-2-58 :GLIB :BORDEAUX-THREADS :GLOBAL-VARS :ASDF-SYSTEM-CONNECTIONS :LPARALLEL.WITH-CLTL2 :LPARALLEL.WITH-CAS :LPARALLEL.WITH-STEALING-SCHEDULER :SPLIT-SEQUENCE CFFI-FEATURES:FLAT-NAMESPACE CFFI-FEATURES:X86-64 CFFI-FEATURES:UNIX :CFFI CFFI-SYS::FLAT-NAMESPACE ALEXANDRIA::SEQUENCE-EMPTYP :FAST-IO-SV :FAST-IO :CL-JSON-CLOS :CL-JSON :SBCL-USES-SB-ROTATE-BYTE CHIPZ-SYSTEM:GRAY-STREAMS :THREAD-SUPPORT :ASDF3.3 :ASDF3.2 :ASDF3.1 :ASDF3 :ASDF2 :ASDF :OS-UNIX :NON-BASE-CHARS-EXIST-P :ASDF-UNICODE :ARENA-ALLOCATOR :X86-64 :GENCGC :64-BIT :ANSI-CL :COMMON-LISP :ELF :IEEE-FLOATING-POINT :LINUX :LITTLE-ENDIAN :PACKAGE-LOCAL-NICKNAMES :SB-CORE-COMPRESSION :SB-LDB :SB-PACKAGE-LOCKS :SB-THREAD :SB-UNICODE :SBCL :UNIX)

ASDF version: 3.3.5
ASDF registries: (NYXT-SOURCE-REGISTRY ENVIRONMENT-SOURCE-REGISTRY USER-SOURCE-REGISTRY USER-SOURCE-REGISTRY-DIRECTORY DEFAULT-USER-SOURCE-REGISTRY SYSTEM-SOURCE-REGISTRY SYSTEM-SOURCE-REGISTRY-DIRECTORY DEFAULT-SYSTEM-SOURCE-REGISTRY)
Critical dependencies: (/gnu/store/v1q4sy44h53vmgcxwr6v4gm1vad4cb2j-sbcl-cl-cffi-gtk-3.8.8-3.1700fe6/share/common-lisp/sbcl/cl-cffi-gtk/gtk/cl-cffi-gtk.asd /gnu/store/5llhygicxsfqwgrfhxnfal5v5y8a8f3g-cl-gobject-introspection-0.3-3.83beec4/share/common-lisp/source/cl-gobject-introspection/cl-gobject-introspection.asd /gnu/store/lq8fsn986wm2p5yn22hrx9kx3grv01hs-sbcl-cl-webkit-3.5.10/share/common-lisp/sbcl/cl-webkit/webkit2/cl-webkit2.asd)

Guix version: 

Output when started from a shell

Nyxt version 3.11.5
<INFO> [21:34:36] Source location: #P"/gnu/store/qb3yl85wsslvyyp67l6kavhl4fxd83qa-nyxt-3.11.5/share/nyxt/"
<INFO> [21:34:36] Loading Lisp file #P"/home/abhishek/.config/nyxt/auto-config.3.lisp".
<INFO> [21:34:37] Listening to socket: #P"/run/user/1000/nyxt/nyxt.socket"
<INFO> [21:34:37] Reload the buffer for no-script-mode to take effect.
<INFO> [21:34:38] Loading #P"/home/abhishek/.local/share/nyxt/history/default.lisp".
<INFO> [21:34:38] Restoring 1 buffer from history.
<INFO> [21:34:38] Reload the buffer for no-script-mode to take effect.
<INFO> [21:34:38] Loading #P"/home/abhishek/.local/share/nyxt/auto-rules.lisp".
<INFO> [21:34:38] Loading #P"/home/abhishek/.local/share/nyxt/hostlist-stevenblack.txt".

(gst-plugin-scanner:20): GStreamer-WARNING **: 01:34:41.427: Failed to load plugin '/home/abhishek/.guix-profile/lib/gstreamer-1.0/libgstpipewire.so': /gnu/store/p7z1kafgszjbcvxdv65z2kn862nx79ib-gst-plugins-base-1.22.3/lib/libgsttag-1.0.so.0: undefined symbol: g_string_free_and_steal

(gst-plugin-scanner:20): GStreamer-WARNING **: 01:34:41.429: Failed to load plugin '/home/abhishek/.guix-profile/lib/gstreamer-1.0/libgstcoreelements.so': /home/abhishek/.guix-profile/lib/gstreamer-1.0/libgstcoreelements.so: undefined symbol: g_string_free_and_steal

(gst-plugin-scanner:20): GStreamer-WARNING **: 01:34:41.429: Failed to load plugin '/home/abhishek/.guix-profile/lib/gstreamer-1.0/libgstpipewire.so': /gnu/store/p7z1kafgszjbcvxdv65z2kn862nx79ib-gst-plugins-base-1.22.3/lib/libgsttag-1.0.so.0: undefined symbol: g_string_free_and_steal

(gst-plugin-scanner:20): GStreamer-WARNING **: 01:34:41.430: Failed to load plugin '/home/abhishek/.guix-profile/lib/gstreamer-1.0/libgstcoreelements.so': /home/abhishek/.guix-profile/lib/gstreamer-1.0/libgstcoreelements.so: undefined symbol: g_string_free_and_steal

(gst-plugin-scanner:20): GStreamer-WARNING **: 01:34:41.927: Failed to load plugin '/run/current-system/profile/lib/gstreamer-1.0/libgstcogl.so': /gnu/store/13dndyqh8br5hy38nikzspmwa3j91jy1-cogl-1.22.8/lib/libcogl.so.20: undefined symbol: g_assertion_message_cmpint

(gst-plugin-scanner:20): GStreamer-WARNING **: 01:34:41.931: Failed to load plugin '/run/current-system/profile/lib/gstreamer-1.0/libcluttergst3.so': /gnu/store/13dndyqh8br5hy38nikzspmwa3j91jy1-cogl-1.22.8/lib/libcogl.so.20: undefined symbol: g_assertion_message_cmpint

pretentious7 avatar Mar 31 '24 01:03 pretentious7

as a side effect of this the password paste functions don't seem to work either.

pretentious7 avatar Mar 31 '24 01:03 pretentious7

@pretentious7 what do you mean by focus search box in step 3? In other words, where are you trying to paste?

aadcg avatar Apr 01 '24 08:04 aadcg

As in, click on the search box and try and paste there.

Clarified the report a bit.

Also, confirmed the gstreamer warnings are spurious, library version mismatch.

I'm guessing this is some sort of odd gnome interaction, but emacs works fine... any hints for debugging? Can i breakpoint the clipboard functions somehow?

pretentious7 avatar Apr 01 '24 10:04 pretentious7

I can't reproduce with the details provided.

It's still not clear which search box you mean. What's the URL of the search box you're pasting to?

aadcg avatar Apr 01 '24 13:04 aadcg

let me see if i can get a video with screenkeys.

pretentious7 avatar Apr 01 '24 20:04 pretentious7

https://github.com/atlas-engineer/nyxt/assets/29604460/ced0613d-bb51-43e9-80f0-aac7782151a8

here's a video

pretentious7 avatar Apr 02 '24 03:04 pretentious7

@pretentious7 now it's clear. The search box you mention is the one from https://search.atlas.engineer/.

Oddly, I can't reproduce the issue.

Can you reproduce when you start Nyxt via nyxt --failsafe? Note that you'll need to call the commands bound to M-w and M-y by name. Respectively, choosing copy and paste-from-clipboard-ring after pressing C-space.

aadcg avatar Apr 02 '24 07:04 aadcg

Yes, same thing with nyxt --failsafe. Although paste works, paste-from-clipboard-ring does not.

Is this some sort of gnome/dbus thing? I suspect this cause I see a bunch of window border blinking when I copy and paste (only in nyxt).

any advice on further debugging? I'm going to try set up slime and breakpoint the function see what's happening.

pretentious7 avatar Apr 02 '24 15:04 pretentious7

Is Alt+y bound to something in GNOME?

Also, what happens when you do C-space paste-from-clipboard-ring without selecting any input field (like a search box)?

aadcg avatar Apr 02 '24 16:04 aadcg

Nothing (except the nyxt thing in the menu bar blinks to "Unknown application" a few times, but that also happens with an input field focused.)

Also Alt+y isn't bound to anything.

pretentious7 avatar Apr 02 '24 18:04 pretentious7

Also, sometimes, paste doesn't work either, but at other times it does. I've not been able to establish a clear way to reproduce that behavior though.

pretentious7 avatar Apr 02 '24 18:04 pretentious7

Others GNOME users might be able to provide more information.

aadcg avatar Apr 02 '24 19:04 aadcg

Stale.

aadcg avatar Aug 28 '24 10:08 aadcg