cdown / clipmenu

Clipboard management using dmenu
MIT License
1.11k stars 90 forks source link

Error trying to take a screenshot in dwm #167

Closed santilococo closed 2 years ago

santilococo commented 3 years ago

Hi. If I take a screenshot of the root window (maim -s | xclip -selection clipboard -t image/png) and then try to copy its output to another program (like discord for example) it will freeze the app. I can unfreeze it by choosing another clipmenu entry. I tried debugging clipmenud execution and it says xsel: malloc error: Cannot allocate memory. Do you know what could be happening?

cdown commented 3 years ago

I have no repro, the exact steps listed work here. I'd suggest working with the xsel developers to debug.

santilococo commented 3 years ago

Here are the steps to reproduce:

  1. Run maim -k -s | xclip-clipboard selection -t image / png
  2. Move to a clean tag (without any programs on it)
  3. Click on the "background" to take a screenshot of the root window.

If you can't reproduce, I'll talk to the xsel developers. TY!

cdown commented 3 years ago

Yeah, I'm afraid that all works for me just fine, so I guess it's something more specific to your setup.