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

Unable to Display Images in Neovim Using ueberzug on macOS #260

Open
inkfin opened this issue Dec 29, 2024 · 8 comments
Open

Unable to Display Images in Neovim Using ueberzug on macOS #260

inkfin opened this issue Dec 29, 2024 · 8 comments

Comments

@inkfin
Copy link

inkfin commented Dec 29, 2024

Hi, I had a issue when trying to install image.nvim on my mac and I need some help:

I've tested on both iTerm2 and WezTerm, so it probably not related to the emulator.

I've download the minimal-setup.lua (and I change the backend to ueberzug) and start it with nvim --clean -c ":luafile minimal-setup.lua", here's what I got:

image

I put the ImageReport here for reference

Details

image.nvim report

Make sure you don't leak any personal information before sharing this report.

System Information

OS: Darwin
Neovim: 0.10.3
Process Tree: nvim(90651) <- nvim(90647) <- /bin/zsh(97825) <- zsh(qterm)(97817) <- login(97816) <- /Users/inkfin/Library/ApplicationSupport/iTerm2/iTermServer-3.5.10(2502) <- /Applications/iTerm.app/Contents/MacOS/iTerm2(1078)
TERM: xterm-256color

Plugin Configuration

{
    "hijack_file_patterns": {
      1: "*.png",
      2: "*.jpg",
      3: "*.jpeg",
      4: "*.gif",
      5: "*.webp",
      6: "*.avif",
    },
    "editor_only_render_when_focused": false,
    "processor": "magick_rock",
    "max_height_window_percentage": 50,
    "tmux_show_only_in_active_window": false,
    "backend": "ueberzug",
    "scale_factor": 1,
    "max_width_window_percentage": 100,
    "integrations": {
      "markdown": {
        "filetypes": {
          1: "markdown",
          2: "vimwiki",
        },
        "enabled": true,
        "clear_in_insert_mode": false,
        "download_remote_images": true,
        "only_render_image_at_cursor": false,
      },
      "typst": {
        "enabled": true,
      },
      "css": {
        "enabled": false,
      },
      "html": {
        "enabled": false,
      },
      "syslang": {
        "enabled": true,
      },
      "neorg": {
        "enabled": true,
      },
    },
    "kitty_method": "normal",
    "window_overlap_clear_enabled": false,
    "window_overlap_clear_ft_ignore": {
      1: "cmp_menu",
      2: "cmp_docs",
      3: "scrollview",
      4: "scrollview_sign",
    },
  }

Processor Information

Active Processor: magick_rock
Magick Rock Available: true
Magick Rock Version: 1.6.0

Backend Information

Active Backend: ueberzug
Backend Features: {
  crop = false
}

Images

ID: 1000:2:2:513deedbe66ce661bd411c17909f4658640924a9a07016d1a748a53d1b16eb02
  Dimensions: 603x141
  Window: 1000
  Buffer: 2
  Rendered: true

ID: 1002:2:2:513deedbe66ce661bd411c17909f4658640924a9a07016d1a748a53d1b16eb02
  Dimensions: 603x141
  Window: 1002
  Buffer: 2
  Rendered: true

then I open ueberzugpp log and I found this:

The ueberzugpp log

 _   _      _
| | | |    | |                                _     _
| | | | ___| |__   ___ _ __ _____   _  __ _ _| |_ _| |_
| | | |/ _ \ '_ \ / _ \ '__|_  / | | |/ _` |_   _|_   _|
| |_| |  __/ |_) |  __/ |   / /| |_| | (_| | |_|   |_|
 \___/ \___|_.__/ \___|_|  /___|\__,_|\__, |
                                       __/ |
                                      |___/     v2.9.6
[2024-12-29 17:26:05.772] [terminal] [info] TERM = xterm-256color
[2024-12-29 17:26:05.772] [terminal] [info] TERM_PROGRAM = iTerm.app
[2024-12-29 17:26:05.772] [terminal] [debug] stat failed (No such file or directory) for pty /dev/ttys16777215, pid 1078, ignoring
[2024-12-29 17:26:05.772] [terminal] [debug] stat failed (No such file or directory) for pty /dev/ttys16777215, pid 2502, ignoring
[2024-12-29 17:26:05.772] [terminal] [debug] stat failed (No such file or directory) for pty , pid 20417, ignoring
[2024-12-29 17:26:05.772] [terminal] [info] PTY = /dev/ttys005
[2024-12-29 17:26:05.772] [terminal] [debug] ioctl sizes: COLS=93 ROWS=25 XPIXEL=837 YPIXEL=575
[2024-12-29 17:26:05.772] [terminal] [debug] iterm2 is supported
[2024-12-29 17:26:05.772] [terminal] [debug] padding_horiz=0 padding_vert=0
[2024-12-29 17:26:05.772] [terminal] [debug] font_width=9 font_height=23
[2024-12-29 17:26:05.772] [main] [debug] Wayland support not compiled in the binary
[2024-12-29 17:26:05.772] [main] [debug] X11 support not compiled in the binary
[2024-12-29 17:26:05.772] [iterm2] [info] Canvas created
[2024-12-29 17:26:05.772] [main] [info] Listening for commands on socket /var/folders/dz/ks_xmzgx60v0vs35cs4ll2vh0000gn/T//ueberzugpp-15492.socket
[2024-12-29 17:26:27.794] [main] [info] Command received: {"action":"add","height":5,"identifier":"1000:2:2:513deedbe66ce661bd411c17909f4658640924a9a07016d1a748a53d1b16eb01","path":"/var/folders/dz/ks_xmzgx60v0vs35cs4ll2vh0000gn/T/nvim.inkfin/Q3aT7y/0/MTAwMDoyOjI6NTEzZGVlZGJlNjZjZTY2MWJkNDExYzE3OTA5ZjQ2NTg2NDA5MjRhOWEwNzAxNmQxYTc0OGE1M2QxYjE2ZWIwMg==-resized-495-115.png","width":55,"x":8,"y":16}
[2024-12-29 17:26:27.807] [vips] [info] loading file /var/folders/dz/ks_xmzgx60v0vs35cs4ll2vh0000gn/T/nvim.inkfin/Q3aT7y/0/MTAwMDoyOjI6NTEzZGVlZGJlNjZjZTY2MWJkNDExYzE3OTA5ZjQ2NTg2NDA5MjRhOWEwNzAxNmQxYTc0OGE1M2QxYjE2ZWIwMg==-resized-495-115.png
[2024-12-29 17:26:27.807] [vips] [debug] Failed to process image animation
[2024-12-29 17:26:27.809] [iterm2] [info] Displaying image with id 1000:2:2:513deedbe66ce661bd411c17909f4658640924a9a07016d1a748a53d1b16eb01

to test it out I run ueberzug layer with the command in log, and it displays correctly outside neovim

image

I've spent hours debugging this issue and I'm stuck with this. Is there something I'm missing, or are there specific configurations required to make ueberzug work within Neovim?

@UnaTried
Copy link
Contributor

Don't forget to configure image.nvim

@3rd
Copy link
Owner

3rd commented Jan 17, 2025

Hey, can you check the instructions added here? #270

@UnaTried
Copy link
Contributor

Hey, can you check the instructions added here? #270

I wanted to recommend that but ueberzug works in their terminal, so it can't be that

@3rd
Copy link
Owner

3rd commented Jan 17, 2025

Got it, going to debug it on a mac this weekend.

@UnaTried
Copy link
Contributor

Got it, going to debug it on a mac this weekend.

I also added a comment in my PR

@jiuhao47
Copy link

Same problem, hopefully a quick fix.
But my platform is Linux (Ubuntu 24.04)

@HadyMash
Copy link

HadyMash commented Mar 3, 2025

Same issue here on macos

@sghuang19
Copy link

Same issue here, I also tried modify the minimal startup to use backend = "iterm2", processor = "magick_cli".

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

6 participants