blank gray screen
buginvalid
### Useful information:
Please, try to gather as much of useful information as possible and follow
these instructions:
- **Version:**
- Run this command: `wayvnc -V`
- Provide context, including but not limited to
- Command line arguments
- Special environment variables, if any
- Which wayland compositor are you using? Which version?
- What VNC client are you using?
- Did you configure your VNC client in a specific manner?
- Linux distro/operating system
- Kernel version
- Graphics drivers
- Try to reproduce the problem while capturing a **trace log:**
- `wayvnc -Ltrace | tee wayvnc-bug.log`
- Get the **stack trace**, in case of a crash:
- If you have `coredumpctl`, you can gather the stack trace after a crash
using `coredumpctl gdb wayvnc` and then run `bt full` to obtain the stack
trace.
- Otherwise, you can either locate the core file and load it into gdb or run
wayvnc in gdb like so:
- `gdb --args wayvnc -Ltrace`
- If the lines mentioning wayvnc, neatvnc or aml have `??`, please compile
wayvnc and those other projects from source with debug symbols and try
again.
- Describe how to **reproduce** the problem
- Try to think about your problem beyond these instructions and include
whatever information that you believe will help to resolve the issue
$ wayvnc -V
wayvnc: v0.9.1-e4ec935 (makepkg)
neatvnc: v0.9.5-36ef59a (makepkg)
aml: v0.3.0-0-gb83f357 (makepkg)
I've been using wayvnc for a long time and it always worked but a few days back it just stopped displaying the desktop and I get a blank gray screen.
I'm using hyprland v0.54.0 on arch.
logs:
```
Info: Capturing output HDMI-A-1
Info: >> Acer Technologies KG242Y P 0x05113CAC (HDMI-A-1) 1920x1080+0x0 Power:UNKNOWN
DEBUG: ../wayvnc/src/ctl-server.c: 809: Initializing
wayvncctl socket: /run/user/1000/wayvncctl
DEBUG: ../neatvnc/src/server.c: 2150: Trying address: 0.0.0.0
DEBUG: ../neatvnc/src/server.c: 2165: Successfully bound to address
Info: Listening for connections on 0.0.0.0:5900
DEBUG: ../wayvnc/src/ext-image-copy-capture.c: 326: Buffer dimensions: 1920x1080
DEBUG: ../wayvnc/src/buffer.c: 606: Reconfiguring buffer pool
DEBUG: ../wayvnc/src/ext-image-copy-capture.c: 470: Init done
Info: New client connection from 10.10.10.30: 0x55e10f5573b0
DEBUG: ../neatvnc/src/server.c: 362: Client chose security type: 1
DEBUG: ../wayvnc/src/main.c: 1640: Configuring cursor capturing
DEBUG: ../wayvnc/src/main.c: 1667: Configured cursor
capturing
Info: Starting screen capture
DEBUG: ../wayvnc/src/main.c: 1030: Acquired power state management. Waiting for power event to start capturing
DEBUG: ../wayvnc/src/main.c: 1383: Client connected,
new client count: 1
DEBUG: ../wayvnc/src/ctl-server.c: 941: Enqueueing client-connected event: {"id":"1","address":"10.10.10.30","username":null,"seat":"Hyprland","connection_count":1}
DEBUG: ../wayvnc/src/ctl-server.c: 968: Enqueued client-connected event for 0 clients
Info: Client 0x55e10f5573b0 initialised. MIN-RTT during handshake was 6 ms
ext_image_copy_capture_session_v1#24: error -1: no formats available
ERROR: ../wayvnc/src/main.c: 521: Failed to dispatch
pending
DEBUG: ../wayvnc/src/ctl-server.c: 941: Enqueueing detached event: {}
DEBUG: ../wayvnc/src/ctl-server.c: 968: Enqueued detached event for 0 clients
DEBUG: ../neatvnc/src/server.c: 546: Using color palette for client 0x55e10f5573b0
DEBUG: ../neatvnc/src/server.c: 560: Client 0x55e10f5573b0 chose pixel format: XRGB8888
DEBUG: ../neatvnc/src/server.c: 683: Client 0x55e10f5573b0 set encodings: tight,zrle,copyrect,hextile,rre,raw,cursor,desktop-size,extended-desktop-size,qemu-extended-key-event,extended-clipboard
Info: Choosing tight encoding for client 0x55e10f5573b0
DEBUG: ../neatvnc/src/server.c: 1655: Sending extended desktop resize rect: 1920x1080
DEBUG: ../neatvnc/src/server.c: 1701: Client requested resize to 1220x2388, result: 1
DEBUG: ../neatvnc/src/server.c: 1655: Sending extended desktop resize rect: 1220x2388
DEBUG: ../neatvnc/src/server.c: 1655: Sending extended desktop resize rect: 1920x1080
DEBUG: ../neatvnc/src/server.c: 1701: Client requested resize to 1220x2388, result: 1
DEBUG: ../neatvnc/src/server.c: 1655: Sending extended desktop resize rect: 1220x2388
DEBUG: ../neatvnc/src/server.c: 1655: Sending extended desktop resize rect: 1920x1080
Info: Client 0x55e10f5573b0 hung up
Info: Closing client connection 0x55e10f5573b0
DEBUG: ../wayvnc/src/main.c: 1331: Client disconnected, new client count: 0
DEBUG: ../wayvnc/src/ctl-server.c: 380: Don't know how to convert sa_family 0 to string
DEBUG: ../wayvnc/src/ctl-server.c: 941: Enqueueing client-disconnected event: {"id":"1","address":null,"username":null,"seat":null,"connection_count":0}
DEBUG: ../wayvnc/src/ctl-server.c: 968: Enqueued client-disconnected event for 0 clients
```
^^ at this point the server is still running and accepting connections fine
i use wayvnc from the extra arch repository.
If i install the wayvnc-git package from aur I get the following log
```
WAYLAND_DISPLAY=wayland-1 wayvnc -Ltrace 0.0.0.0
DEBUG: ../wayvnc/src/main.c: 2108: Attaching to (null)
Info: Capturing output HDMI-A-1
Info: >> Acer Technologies KG242Y P 0x05113CAC (HDMI-A-1) 1920x1080+0x0 Power:UNKNOWN
DEBUG: ../wayvnc/src/ctl-server.c: 858: Initializing
wayvncctl socket: /run/user/1000/wayvncctl
DEBUG: ../wayvnc/src/main.c: 962: Adding display at 0, 0
DEBUG: ../wayvnc/subprojects/neatvnc/src/server.c: 2249: Trying address: 0.0.0.0
DEBUG: ../wayvnc/subprojects/neatvnc/src/server.c: 2264: Successfully bound to address
Info: Listening for connections on 0.0.0.0:5900
Info: New client connection from 10.10.10.30: 0x557d952f5f70
DEBUG: ../wayvnc/subprojects/neatvnc/src/server.c: 364: Client chose security type: 1
DEBUG: ../wayvnc/src/main.c: 1888: Configuring cursor capturing
DEBUG: ../wayvnc/src/main.c: 1916: Configured cursor
capturing
Info: Starting screen capture
DEBUG: ../wayvnc/src/main.c: 1163: Acquired power state management. Waiting for power event to start capturing
DEBUG: ../wayvnc/src/main.c: 1597: Client connected,
new client count: 1
DEBUG: ../wayvnc/src/ctl-server.c: 990: Enqueueing client-connected event: {"id":"1","address":"10.10.10.30","username":null,"seat":"Hyprland","connection_count":1}
DEBUG: ../wayvnc/src/ctl-server.c: 1017: Enqueued client-connected event for 0 clients
Info: Client 0x557d952f5f70 initialised. MIN-RTT during handshake was 6 ms
ext_image_copy_capture_session_v1#23: error -1: no formats available
ERROR: ../wayvnc/src/wayland.c: 265: Failed to dispatch pending
DEBUG: ../wayvnc/src/ctl-server.c: 990: Enqueueing detached event: {}
DEBUG: ../wayvnc/src/ctl-server.c: 1017: Enqueued detached event for 0 clients
Info: Exiting...
Info: Closing client connection 0x557d952f5f70
DEBUG: ../wayvnc/src/main.c: 1544: Client disconnected, new client count: 0
```
^^ here wayvnc exits cleanly with code 0
EDIT: the wayvnc-git version also doesn't even display anything but my vnc client reports it just disconnects immediately, then closes the server.
i believe the issue might be on this line:
```
DEBUG: ../wayvnc/src/main.c: 1163: Acquired power state management. Waiting for power event to start capturing
```
or on these lines:
```
ext_image_copy_capture_session_v1#23: error -1: no formats available
ERROR: ../wayvnc/src/wayland.c: 265: Failed to dispatch pending
```
if you need any other information please let me know because I probably missed something.
关闭于 2026-03-03 6 条评论