SUPERCILEX / gnome-clipboard-history

Gnome Clipboard History is a clipboard manager Gnome extension that saves what you've copied into an easily accessible, searchable history panel.
https://extensions.gnome.org/extension/4839/clipboard-history/
MIT License
471 stars 46 forks source link

No history shown #150

Closed nigelatdas closed 1 year ago

nigelatdas commented 1 year ago

Describe the bug

I'm not getting any history any more. It was working fine, then I went to use it and found this... image

How To Reproduce

sorry. no idea.

Versions

GNOME Shell 44.3
GCH   Version: 27
org.gnome.shell.extensions.clipboard-history cache-only-favorites false
org.gnome.shell.extensions.clipboard-history cache-size 100
org.gnome.shell.extensions.clipboard-history clear-history @as []
org.gnome.shell.extensions.clipboard-history confirm-clear true
org.gnome.shell.extensions.clipboard-history disable-down-arrow true
org.gnome.shell.extensions.clipboard-history display-mode 0
org.gnome.shell.extensions.clipboard-history enable-keybindings true
org.gnome.shell.extensions.clipboard-history history-size 1000
org.gnome.shell.extensions.clipboard-history move-item-first true
org.gnome.shell.extensions.clipboard-history next-entry @as []
org.gnome.shell.extensions.clipboard-history notify-on-copy true
org.gnome.shell.extensions.clipboard-history paste-on-selection true
org.gnome.shell.extensions.clipboard-history prev-entry @as []
org.gnome.shell.extensions.clipboard-history private-mode false
org.gnome.shell.extensions.clipboard-history process-primary-selection false
org.gnome.shell.extensions.clipboard-history strip-text false
org.gnome.shell.extensions.clipboard-history toggle-menu ['<Super><Shift>V']
org.gnome.shell.extensions.clipboard-history toggle-private-mode ['<Super><Shift>P']
org.gnome.shell.extensions.clipboard-history topbar-preview-size 50
org.gnome.shell.extensions.clipboard-history window-width-percentage 48

Steps to repro

No idea. it runs fine. just shows no history

Additional context (if a crash, provide stack trace)

Add any other context about the problem here.

journal history
```
                                                _onPropertiesChanged/<@/usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com/appIndicator.js:666:17
                                                _onPropertiesChanged@/usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com/appIndicator.js:662:15
Oct 20 19:00:26 192.168.2mon gnome-shell[6140]: DING: Detected async api for thumbnails
Oct 20 19:00:26 192.168.2mon gnome-shell[6140]: DING: DBus interface for Gvfs daemon (org.gtk.vfs.Metadata) is now available.
Oct 20 19:00:26 192.168.2mon gnome-shell[6140]: DING: DBus interface for Nautilus (org.gnome.Nautilus.FileOperations2) is now available.
Oct 20 19:00:26 192.168.2mon gnome-shell[6140]: DING: DBus interface for Nautilus (org.freedesktop.FileManager1) is now available.
Oct 20 19:00:26 192.168.2mon gnome-shell[6140]: DING: DBus interface for Switcheroo control (net.hadess.SwitcherooControl) is now available.
Oct 20 19:00:26 192.168.2mon gnome-shell[6140]: DING: ** Message: 19:00:26.589: Connecting to org.freedesktop.Tracker3.Miner.Files
Oct 20 19:00:26 192.168.2mon gnome-shell[6140]: DING: GNOME nautilus 44.2.1
Oct 20 19:00:26 192.168.2mon gnome-shell[6140]: JS ERROR: Gio.IOErrorEnum: Unexpected early end-of-stream
                                                loop/<@/home/nigel/.local/share/gnome-shell/extensions/clipboard-history@alexsaveau.dev/store.js:128:15
Oct 20 19:00:26 192.168.2mon gnome-shell[6140]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a).
Oct 20 19:00:26 192.168.2mon gnome-shell[6140]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
Oct 20 19:00:26 192.168.2mon gnome-shell[6140]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c).
Oct 20 19:00:26 192.168.2mon gnome-shell[6140]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
Oct 20 19:00:26 192.168.2mon gnome-shell[6140]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
Oct 20 19:00:26 192.168.2mon gnome-shell[6140]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
Oct 20 19:00:26 192.168.2mon gnome-shell[6140]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11).
Oct 20 19:00:26 192.168.2mon gnome-shell[6140]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
Oct 20 19:00:26 192.168.2mon gnome-shell[6140]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
Oct 20 19:00:27 192.168.2mon gnome-shell[6140]: Trying to set property Menu of type s but according to the expected interface the type is o
--
Oct 21 14:43:04 192.168.2mon dbus-daemon[4012]: [session uid=1000 pid=4012] Successfully activated service 'org.gtk.vfs.AfcVolumeMonitor'
Oct 21 14:43:04 192.168.2mon systemd[3990]: Started gvfs-afc-volume-monitor.service - Virtual filesystem service - Apple File Conduit monitor.
Oct 21 14:43:04 192.168.2mon dbus-daemon[4012]: [session uid=1000 pid=4012] Activating via systemd: service name='org.gtk.vfs.MTPVolumeMonitor' unit='gvfs-mtp-volume-monitor.service' requested by ':1.37' (uid=1000 pid=4412 comm="/usr/bin/gnome-shell" label="unconfined")
Oct 21 14:43:04 192.168.2mon systemd[3990]: Starting gvfs-mtp-volume-monitor.service - Virtual filesystem service - Media Transfer Protocol monitor...
Oct 21 14:43:04 192.168.2mon dbus-daemon[4012]: [session uid=1000 pid=4012] Successfully activated service 'org.gtk.vfs.MTPVolumeMonitor'
Oct 21 14:43:04 192.168.2mon systemd[3990]: Started gvfs-mtp-volume-monitor.service - Virtual filesystem service - Media Transfer Protocol monitor.
Oct 21 14:43:04 192.168.2mon dbus-daemon[4012]: [session uid=1000 pid=4012] Successfully activated service 'org.gnome.evolution.dataserver.Calendar8'
Oct 21 14:43:04 192.168.2mon systemd[3990]: Started evolution-calendar-factory.service - Evolution calendar service.
Oct 21 14:43:04 192.168.2mon dbus-daemon[4012]: [session uid=1000 pid=4012] Activating service name='org.gnome.Shell.Notifications' requested by ':1.37' (uid=1000 pid=4412 comm="/usr/bin/gnome-shell" label="unconfined")
Oct 21 14:43:04 192.168.2mon dbus-daemon[4012]: [session uid=1000 pid=4012] Activating via systemd: service name='org.gnome.evolution.dataserver.AddressBook10' unit='evolution-addressbook-factory.service' requested by ':1.54' (uid=1000 pid=4785 comm="/usr/libexec/evolution-calendar-factory" label="unconfined")
Oct 21 14:43:04 192.168.2mon gnome-shell[4412]: JS ERROR: Could not load extension clip_hist: Error: uuid "clipboard-history@alexsaveau.dev" from metadata.json does not match directory name "clip_hist"
                                                createExtensionObject@resource:///org/gnome/shell/ui/extensionSystem.js:355:19
                                                _loadExtensions/extensionObjects<@resource:///org/gnome/shell/ui/extensionSystem.js:675:34
                                                _loadExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:655:49
                                                async*_enableAllExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:692:48
                                                _sessionUpdated@resource:///org/gnome/shell/ui/extensionSystem.js:727:20
                                                async*init@resource:///org/gnome/shell/ui/extensionSystem.js:60:14
                                                _initializeUI@resource:///org/gnome/shell/ui/main.js:321:22
                                                start@resource:///org/gnome/shell/ui/main.js:196:5
                                                @resource:///org/gnome/shell/ui/init.js:6:17
Oct 21 14:43:04 192.168.2mon gnome-shell[4412]: JS ERROR: Could not load extension .vscode: Error: Missing metadata.json
--
Oct 21 14:43:06 192.168.2mon gnome-shell[4412]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
Oct 21 14:43:06 192.168.2mon gnome-shell[4412]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
Oct 21 14:43:06 192.168.2mon gnome-shell[4412]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
Oct 21 14:43:06 192.168.2mon gnome-shell[4412]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
Oct 21 14:43:06 192.168.2mon gnome-shell[4412]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
Oct 21 14:43:06 192.168.2mon gnome-shell[4412]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11).
Oct 21 14:43:06 192.168.2mon gnome-shell[4412]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
Oct 21 14:43:06 192.168.2mon bluetoothd[810]: src/profile.c:record_cb() Unable to get Hands-Free Voice gateway SDP record: Host is down
Oct 21 14:43:06 192.168.2mon synergy.desktop[4998]: QSystemTrayIcon::setVisible: No Icon set
Oct 21 14:43:06 192.168.2mon gnome-shell[4412]: JS ERROR: Gio.IOErrorEnum: Unexpected early end-of-stream
                                                loop/<@/home/nigel/.local/share/gnome-shell/extensions/clipboard-history@alexsaveau.dev/store.js:128:15
Oct 21 14:43:06 192.168.2mon synergy.desktop[4998]: ("-f", "--no-tray", "--debug", "INFO", "--name", "nigel-Precision-3570", "--enable-crypto", "--tls-cert", "/home/nigel/.synergy/SSL/Synergy.pem", "-c", "/home/nigel/.synergy/config", "--address", ":24800", "--serial-key", "7B76313B70726F3B6E6967656C3B313B73796E65726779406E6967656C74686F726E652E636F6D3B203B303B307D")
Oct 21 14:43:06 192.168.2mon synergy.desktop[4998]: QString::arg: Argument missing: Synergy is waiting for clients,
Oct 21 14:43:06 192.168.2mon dbus-daemon[811]: [system] Activating via systemd: service name='org.freedesktop.fwupd' unit='fwupd.service' requested by ':1.132' (uid=1000 pid=5153 comm="/snap/snap-store/959/usr/bin/snap-store --gapplica" label="snap.snap-store.ubuntu-software (enforce)")
Oct 21 14:43:06 192.168.2mon systemd[1]: Starting fwupd.service - Firmware update daemon...
Oct 21 14:43:06 192.168.2mon gnome-shell[4412]: GNOME Shell started at Sat Oct 21 2023 14:43:04 GMT+1100 (Australian Eastern Daylight Time)
Oct 21 14:43:06 192.168.2mon gnome-shell[4412]: Registering session with GDM
Oct 21 14:43:06 192.168.2mon org.gnome.Shell.desktop[2834]: XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
Oct 21 14:43:06 192.168.2mon org.gnome.Shell.desktop[2834]:       after 12363 requests (12363 known processed) with 0 events remaining.
Oct 21 14:43:06 192.168.2mon /usr/libexec/gdm-x-session[2794]: dbus-daemon[2794]: [session uid=120 pid=2794] Activating service name='org.freedesktop.systemd1' requested by ':1.11' (uid=120 pid=2991 comm="/usr/libexec/gsd-sharing" label="unconfined")
Oct 21 14:43:06 192.168.2mon gsd-housekeepin[3043]: Error releasing name org.gnome.SettingsDaemon.Housekeeping: The connection is closed
--
Oct 22 09:02:12 192.168.2mon gnome-shell[4412]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c).
Oct 22 09:02:12 192.168.2mon gnome-shell[4412]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a).
Oct 22 09:02:12 192.168.2mon gnome-shell[4412]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
Oct 22 09:02:12 192.168.2mon gnome-shell[4412]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
Oct 22 09:02:12 192.168.2mon gnome-shell[4412]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
Oct 22 09:02:12 192.168.2mon gnome-shell[4412]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
Oct 22 09:02:12 192.168.2mon gnome-shell[4412]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
Oct 22 09:02:12 192.168.2mon gnome-shell[4412]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11).
Oct 22 09:02:12 192.168.2mon gnome-shell[4412]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
Oct 22 09:02:12 192.168.2mon gnome-shell[4412]: JS ERROR: Gio.IOErrorEnum: Unexpected early end-of-stream
                                                loop/<@/home/nigel/.local/share/gnome-shell/extensions/clipboard-history@alexsaveau.dev/store.js:128:15
Oct 22 09:02:13 192.168.2mon gnome-shell[4412]: Trying to set property Menu of type s but according to the expected interface the type is o
Oct 22 09:02:14 192.168.2mon gnome-shell[4412]: Trying to set property Menu of type s but according to the expected interface the type is o
Oct 22 09:02:15 192.168.2mon gnome-shell[4412]: Trying to set property Menu of type s but according to the expected interface the type is o
Oct 22 09:02:19 192.168.2mon kernel: Loading of module with unavailable key is rejected
Oct 22 09:02:19 192.168.2mon gdm-session-worker[215330]: modprobe: ERROR: could not insert 'nvidia': Key was rejected by service
Oct 22 09:02:30 192.168.2mon gdm-session-worker[215340]: modprobe: ERROR: could not insert 'nvidia': Key was rejected by service
Oct 22 09:02:30 192.168.2mon kernel: Loading of module with unavailable key is rejected
Oct 22 09:02:41 192.168.2mon /usr/libexec/gdm-x-session[4083]: (II) modeset(0): EDID vendor "BOE", prod id 2366
Oct 22 09:02:41 192.168.2mon /usr/libexec/gdm-x-session[4083]: (II) modeset(0): Printing DDC gathered Modelines:
Oct 22 09:02:41 192.168.2mon /usr/libexec/gdm-x-session[4083]: (II) modeset(0): Modeline "1920x1080"x0.0  143.76  1920 1968 2000 2124  1080 1083 1089 1128 +hsync -vsync (67.7 kHz eP)
--
Oct 22 13:09:21 192.168.2mon synergy.desktop[222967]: service event received, message: true
Oct 22 13:09:21 192.168.2mon synergy.desktop[222967]: service event: message true
Oct 22 13:09:21 192.168.2mon synergy.desktop[222967]: updating settings after service message event
Oct 22 13:09:21 192.168.2mon synergy.desktop[222967]: fetching settings from service
Oct 22 13:09:21 192.168.2mon synergy.desktop[222967]: fetch url: http://localhost:24803/v1/settings
Oct 22 13:09:21 192.168.2mon synergy.desktop[222967]: fetch ok status code: 200
Oct 22 13:09:21 192.168.2mon synergy.desktop[222967]: settings updated
Oct 22 13:09:21 192.168.2mon synergy.desktop[222967]: email was set for sentry
Oct 22 13:09:21 192.168.2mon synergy.desktop[222967]: no permission window, skipping close
Oct 22 13:09:31 192.168.2mon systemd[3990]: app-gnome-synergy-222967.scope: Consumed 1min 25.843s CPU time.
Oct 22 13:12:49 192.168.2mon dbus-daemon[4012]: [session uid=1000 pid=4012] Activating service name='org.gnome.Shell.Extensions' requested by ':1.288' (uid=1000 pid=258208 comm="gnome-extensions show clipboard-history@alexsaveau" label="snap.zellij.zellij (complain)")
Oct 22 13:12:50 192.168.2mon dbus-daemon[4012]: [session uid=1000 pid=4012] Successfully activated service 'org.gnome.Shell.Extensions'
Oct 22 13:13:52 192.168.2mon systemd[1]: docker-880db1c986835297482086a325faa8ba002efa97fc21bcb8da5a14ed2663a10d.scope: Deactivated successfully.
Oct 22 13:13:52 192.168.2mon containerd[1138]: time="2023-10-22T13:13:52.163416706+11:00" level=info msg="shim disconnected" id=880db1c986835297482086a325faa8ba002efa97fc21bcb8da5a14ed2663a10d
Oct 22 13:13:52 192.168.2mon containerd[1138]: time="2023-10-22T13:13:52.163484182+11:00" level=warning msg="cleaning up after shim disconnected" id=880db1c986835297482086a325faa8ba002efa97fc21bcb8da5a14ed2663a10d namespace=moby
Oct 22 13:13:52 192.168.2mon containerd[1138]: time="2023-10-22T13:13:52.163502433+11:00" level=info msg="cleaning up dead shim"
Oct 22 13:13:52 192.168.2mon dockerd[1515]: time="2023-10-22T13:13:52.163434921+11:00" level=info msg="ignoring event" container=880db1c986835297482086a325faa8ba002efa97fc21bcb8da5a14ed2663a10d module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
Oct 22 13:13:52 192.168.2mon containerd[1138]: time="2023-10-22T13:13:52.171967652+11:00" level=warning msg="cleanup warnings time=\"2023-10-22T13:13:52+11:00\" level=info msg=\"starting signal loop\" namespace=moby pid=258356 runtime=io.containerd.runc.v2\n"
Oct 22 13:13:52 192.168.2mon kernel: br-89e2f3ed1993: port 1(veth3e60d1c) entered disabled state
Oct 22 13:13:52 192.168.2mon kernel: veth3d1ad49: renamed from eth0
Oct 22 13:13:52 192.168.2mon NetworkManager[944]:   [1697940832.2743] manager: (veth3d1ad49): new Veth device (/org/freedesktop/NetworkManager/Devices/579)
```

If the issue could be database corruption, run this command to encrypt your clipboard history: database_enc.zip

SUPERCILEX commented 1 year ago

Could you try rebooting? Seems like an I/O error.

nigelatdas commented 1 year ago

sure..

nigelatdas commented 1 year ago

no luck.

When I grab latest and build it... and try to install..

 -> cat metadata.json
{
  "name": "Clipboard History",
  "version": 30,
  "uuid": "clipboard-history@alexsaveau.dev",
  "gettext-domain": "clipboard-history@alexsaveau.dev",
  "settings-schema": "org.gnome.shell.extensions.clipboard-history",
  "description": "Gnome Clipboard History is a Gnome extension that saves items you've copied into an easily accessible, searchable history panel.",
  "url": "https://github.com/SUPERCILEX/gnome-clipboard-history",
  "shell-version": ["45"]
}

my shell-version is no longer supported.

nigelatdas commented 1 year ago

At some point I think I tried adding "44" to that list and installing it :innocent: ... which may have :cactus: something up. ... (man. you can't trust users!)

nigelatdas commented 1 year ago

I think 1.3.5 is the last one to officially support 44. If I make and make install that version (from the tag) , then Atl+F2 r I still get no history shown. Still nothing after reboot either

SUPERCILEX commented 1 year ago

Ah, yeah your database is corrupted unfortunately. Do this to recover most of it:

cd ~/.local/share/gnome-shell/extensions/clipboard-history@alexsaveau.dev/
head -c 126775 database.log > next
mv database.log /tmp/clipboard.bak
mv next database.log

Then restart gnome and you should be good to go.

nigelatdas commented 1 year ago

I found the database.log in the ~/.cache/clipboard_history@alexsaveau.dev folder. I tried truncating it... but in the end i just deleted it and started again from scratch. That worked. Now it's working again!

SUPERCILEX commented 1 year ago

Sounds good!