Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FATAL: $SELECTION not in cache #70

Closed
kaihendry opened this issue Mar 16, 2018 · 5 comments
Closed

FATAL: $SELECTION not in cache #70

kaihendry opened this issue Mar 16, 2018 · 5 comments

Comments

@kaihendry
Copy link

Hi! Thanks to your debugging tip: #63 (comment)

https://s.natalian.org/2018-03-16/not-in-cache.mp4

I think I see why I am having making seemingly random selections:

[hendry@t480s tmp]$ bash -x "$(type -p clipmenu)"
+ : dmenu
+ : /run/user/1000
+ major_version=5
+ shopt -s nullglob
+ cache_dir=/run/user/1000/clipmenu.5.hendry
+ cache_file_prefix=/run/user/1000/clipmenu.5.hendry/line_cache
+ [[ '' == --help ]]
+ [[ '' == -h ]]
+ [[ dmenu == rofi ]]
++ LC_ALL=C
++ cat /run/user/1000/clipmenu.5.hendry/line_cache_clipboard /run/user/1000/clipmenu.5.hendry/line_cache_primary /dev/null
++ sort -rnk 1
++ cut '-d ' -f2-
++ awk '!seen[$0]++'
++ dmenu -l 8
+ chosen_line='QNAP TS-453BT3'
+ [[ -n QNAP TS-453BT3 ]]
++ cksum
+ file='/run/user/1000/clipmenu.5.hendry/2929688417 15'
+ [[ -f /run/user/1000/clipmenu.5.hendry/2929688417 15 ]]
+ printf 'FATAL: %s not in cache\n' 'QNAP TS-453BT3'
FATAL: QNAP TS-453BT3 not in cache
+ exit 2

I'm using the Archlinux packaged clipmenu 5.1.0-1 btw.

@cdown
Copy link
Owner

cdown commented Mar 16, 2018

I expect something is going around deleting stuff, but I suppose it's possible there's some weird edge case.

What does grep -R 'QNAP TS-453BT3' /run/user/1000/clipmenu.5.hendry say?

@kaihendry
Copy link
Author

This demonstrates the problem since I rebooted since that QNAP thing.
https://s.natalian.org/2018-03-20/clipmenu.mp4

Unfortunately my screencast was dropping some frames, so it looks a little confusing at times at what I actually selected.

@cdown
Copy link
Owner

cdown commented Apr 3, 2018

When you encounter this, can you please grep for the backing file in /run/user/1000/clipmenu.5.hendry, and show me the full contents if one exists?

When this happens, what are the total number of clips present? Does clipmenud show log messages like "Removing N old clips" with debug mode on?

If it doesn't exist and you're not hitting CM_MAX_CLIPS, I'm fairly certain something is going around and deleting entries in /tmp.

@cdown
Copy link
Owner

cdown commented Apr 3, 2018

Per e-mail, debug mode is with CM_DEBUG=1 on.

@cdown
Copy link
Owner

cdown commented Apr 7, 2018

Pretty sure this is the same as #73, since there's more discussion let's go there :-)

@cdown cdown closed this as completed Apr 7, 2018
@cdown cdown mentioned this issue Apr 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants