atlas-engineer / nyxt

Nyxt - the hacker's browser.
https://nyxt-browser.com/
9.64k stars 404 forks source link

paste-from-clipboard-ring does not work #3373

Open pretentious7 opened 2 months ago

pretentious7 commented 2 months ago

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

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

[21:34:36] Source location: #P"/gnu/store/qb3yl85wsslvyyp67l6kavhl4fxd83qa-nyxt-3.11.5/share/nyxt/" [21:34:36] Loading Lisp file #P"/home/abhishek/.config/nyxt/auto-config.3.lisp". [21:34:37] Listening to socket: #P"/run/user/1000/nyxt/nyxt.socket" [21:34:37] Reload the buffer for no-script-mode to take effect. [21:34:38] Loading #P"/home/abhishek/.local/share/nyxt/history/default.lisp". [21:34:38] Restoring 1 buffer from history. [21:34:38] Reload the buffer for no-script-mode to take effect. [21:34:38] Loading #P"/home/abhishek/.local/share/nyxt/auto-rules.lisp". [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 commented 2 months ago

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

aadcg commented 2 months ago

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

pretentious7 commented 2 months ago

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?

aadcg commented 2 months ago

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?

pretentious7 commented 2 months ago

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

pretentious7 commented 2 months ago

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

here's a video

aadcg commented 2 months ago

@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.

pretentious7 commented 2 months ago

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.

aadcg commented 2 months ago

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)?

pretentious7 commented 2 months ago

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 commented 2 months ago

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.

aadcg commented 2 months ago

Others GNOME users might be able to provide more information.