ncspot icon indicating copy to clipboard operation
ncspot copied to clipboard

Failed to run Ueberzug: Broken pipe (os error 32)

Open joshuajeschek opened this issue 2 years ago • 9 comments

Describe the bug Instead of seeing a cover, ueberzug seems to fail. I compiled using cargo build --release --features cover And debug using RUST_BACKTRACE=full ncspot -d debug.log 2> stderr.log

To Reproduce Steps to reproduce the behavior:

  1. play a song
  2. go to cover view

Expected behavior I'm not entirely sure, as I have never seen the cover view working, but I think I should see a cover! ;)

Screenshots image

System (please complete the following information):

  • OS: Ubuntu 22.04 with X11
  • Terminal: Alacritty 0.10.1
  • Version: 0.10.0
  • Installed from: cargo build --release --features cover

Backtrace/Debug log

[2022-07-12][21:56:20] [ncspot::ui::layout] [DEBUG] layout: new screen selected: Some("cover")
[2022-07-12][21:56:20] [ncspot::ui::cover] [ERROR] Failed to run Ueberzug: Broken pipe (os error 32)
  • I didn't find anything more helpful in the logs, but I could've missed something. Let me know if I should look for something specific or send more!

Additional context lmk if you need anything :)

joshuajeschek avatar Jul 12 '22 20:07 joshuajeschek

Iirc ueberzug doesn't work in Alacritty yet. Ueberzug works on Kitty though

Bettehem avatar Jul 13 '22 10:07 Bettehem

Firstly, I tried the example from the ueberzug repository in Alacritty yesterday, and it worked. (However today there was a system update and now the demo is stuck on loading :/) However, on Kitty its the same. The same error also occurs there.

joshuajeschek avatar Jul 13 '22 14:07 joshuajeschek

I see. That would suggest that the problem is with something that you updated in your system update and not with ncspot

Bettehem avatar Jul 13 '22 14:07 Bettehem

I thought the same, tinkered a bit more and tried out

this example from the ueberzug repository (expand)
import ueberzug.lib.v0 as ueberzug
import time

if name == 'main': with ueberzug.Canvas() as c: paths = ['/some/path/some_image.png', '/some/path/another_image.png'] demo = c.create_placement('demo', x=0, y=0, scaler=ueberzug.ScalerOption.COVER.value) demo.path = paths[0] demo.visibility = ueberzug.Visibility.VISIBLE

    for i in range(30):
        with c.lazy_drawing:
            demo.x = i * 3
            demo.y = i * 3
            demo.path = paths[i % 2]
        time.sleep(1/30)

    time.sleep(2)

and that worked...

I would be interested in finding out why I'm getting this error, so I can try to fix it

joshuajeschek avatar Jul 13 '22 14:07 joshuajeschek

Alacritty seems to be working on my machine image

Suya1671 avatar Jul 16 '22 19:07 Suya1671

@Suyashtnt could you share a bit more about you setup? most notably, on which commit did you compile?

joshuajeschek avatar Jul 17 '22 09:07 joshuajeschek

@Suyashtnt could you share a bit more about you setup? most notably, on which commit did you compile?

commit is 0.10.0. Compiled with ALSA, PulseAudio, Mpris, Cover, share_clipboard, and pancurses

Suya1671 avatar Jul 17 '22 12:07 Suya1671

I also can't see a cover no matter what. I have kitty

raffaem avatar Dec 26 '22 14:12 raffaem

Also having same issue, was able to replicate the broken pipe error by leaving ueberzugpp unconfigured but after setting output to either sixels or kitty the error went away but the cover art still won't appear.

deadbody13 avatar Oct 14 '23 16:10 deadbody13