any1 / neatvnc

A liberally licensed VNC server library with a clean interface
ISC License
119 stars 29 forks source link

Crash when connecting from RealVNC to Raspberry Pi #113

Open noafterglow opened 1 month ago

noafterglow commented 1 month ago

wayvnc crashes on Raspberry Pi 4 model B when connecting from RealVNC Viewer 7.12.0 (r14) x64 (Jun 12 2024 12:33:32) After I enter the password a black screen pops up and instantly disappears.

uname -a 
6.6.31+rpt-rpi-v8 any1/wayvnc#1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29) aarch64 GNU/Linux

cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
...

wayvnc when run under systemd as deployed in the standard distribution crashes. Log file in journalctl is extremely unhelpful, "Segmentation Fault"

If I stop the service, and run wayvnc as the currently logged in user, then it works fine. Adding --render-cursor --gpu it still works

If I connect wayvncctl with the -v option when running under systemd I get the following, (also kind of unhelpful)

sudo wayvncctl -v -v -S /tmp/wayvnc/wayvncctl.sock event-receive
DEBUG: ../src/ctl-client.c: 131: Found socket "/tmp/wayvnc/wayvncctl.sock"
DEBUG: ../src/ctl-client.c: 594: >> {"method":"event-receive","params":{},"id":1}
DEBUG: ../src/ctl-client.c: 303: Waiting for a response
DEBUG: ../src/ctl-client.c: 225: Read buffer is empty
DEBUG: ../src/ctl-client.c: 289: Read 17 bytes
DEBUG: ../src/ctl-client.c: 290: << {"code":0,"id":1}
wayvnc-startup:

DEBUG: ../src/ctl-client.c: 654: Waiting for an event
DEBUG: ../src/ctl-client.c: 225: Read buffer is empty
DEBUG: ../src/ctl-client.c: 289: Read 120 bytes
DEBUG: ../src/ctl-client.c: 290: << {"method":"client-connected","params":{"id":"1","address":"::","username":"XXXX","seat":"default","connection_count":1}}
client-connected:
  id: 1
  address: ::
  username: XXXX
  seat: default
  connection_count: 1

DEBUG: ../src/ctl-client.c: 654: Waiting for an event
DEBUG: ../src/ctl-client.c: 225: Read buffer is empty
ERROR: ../src/ctl-client.c: 284: Disconnected
wayvnc-shutdown:
wayvnc -V
wayvnc: 0.9-dev
neatvnc: 0.9-dev
aml: 0.3.0

Happy to run any other tests you all need, but not sure how to gather more info while running under systemd.

any1 commented 1 month ago

It would be good to see the output from coredumpctl info wayvnc. If this started happening after an upgrade, it might be a good idea to revert the package and see if the problem goes away.

noafterglow commented 1 month ago

This was a fresh install.

coredumpctl was not installed. I installed it. Now the situation is different. It still crashes, but now it restarts and reconnects (successfully). After the first time, it reconnects without crashing... So this seems to be a timing issue of some kind.

           PID: 835 (wayvnc)
           UID: 992 (vnc)
           GID: 992 (vnc)
        Signal: 11 (SEGV)
     Timestamp: Thu 2024-08-08 12:28:24 PDT (5min ago)
  Command Line: wayvnc --render-cursor --detached --config /etc/wayvnc/config --socket /tmp/wayvnc/wayvncctl.sock
    Executable: /usr/bin/wayvnc
 Control Group: /system.slice/wayvnc.service
          Unit: wayvnc.service
         Slice: system.slice
       Boot ID: 6bce052242404e23b26c863ceb97f505
    Machine ID: 21140c6805c04a14b7ad5ac5b8c094c9
      Hostname: camp-power
       Storage: /var/lib/systemd/coredump/core.wayvnc.992.6bce052242404e23b26c863ceb97f505.835.1723145304000000.zst (inaccessible)
       Message: Process 835 (wayvnc) of user 992 dumped core.

                Module libudev.so.1 from deb systemd-252.26-1~deb12u2.arm64
                Stack trace of thread 988:
                #0  0x0000007fba4cc840 n/a (libneatvnc.so.0 + 0xc840)
                any1/wayvnc#1  0x0000007fba4cc1d4 n/a (libneatvnc.so.0 + 0xc1d4)
                any1/wayvnc#2  0x0000007fba5b3110 n/a (libaml.so.0 + 0x3110)
                any1/wayvnc#3  0x0000007fba2cee58 start_thread (libc.so.6 + 0x7ee58)
                any1/wayvnc#4  0x0000007fba337f9c thread_start (libc.so.6 + 0xe7f9c)

                Stack trace of thread 989:
                #0  0x0000007fba2cb6d4 __futex_abstimed_wait_common64 (libc.so.6 + 0x7b6d4)
                any1/wayvnc#1  0x0000007fba2ce210 __pthread_cond_wait_common (libc.so.6 + 0x7e210)
                any1/wayvnc#2  0x0000007fba5b30cc n/a (libaml.so.0 + 0x30cc)
                any1/wayvnc#3  0x0000007fba2cee58 start_thread (libc.so.6 + 0x7ee58)
                any1/wayvnc#4  0x0000007fba337f9c thread_start (libc.so.6 + 0xe7f9c)

                Stack trace of thread 990:
                #0  0x0000007fba2cb6d4 __futex_abstimed_wait_common64 (libc.so.6 + 0x7b6d4)
                any1/wayvnc#1  0x0000007fba2ce210 __pthread_cond_wait_common (libc.so.6 + 0x7e210)
                any1/wayvnc#2  0x0000007fba5b30cc n/a (libaml.so.0 + 0x30cc)
                any1/wayvnc#3  0x0000007fba2cee58 start_thread (libc.so.6 + 0x7ee58)
                any1/wayvnc#4  0x0000007fba337f9c thread_start (libc.so.6 + 0xe7f9c)

                Stack trace of thread 835:
                #0  0x0000007fba338134 __GI_epoll_pwait (libc.so.6 + 0xe8134)
                any1/wayvnc#1  0x0000007fba5b3ab4 n/a (libaml.so.0 + 0x3ab4)
                any1/wayvnc#2  0x0000005566b49d38 n/a (wayvnc + 0x9d38)
                any1/wayvnc#3  0x0000007fba277780 __libc_start_call_main (libc.so.6 + 0x27780)
                any1/wayvnc#4  0x0000007fba277858 __libc_start_main_impl (libc.so.6 + 0x27858)
                any1/wayvnc#5  0x0000005566b4a2b0 n/a (wayvnc + 0xa2b0)

                Stack trace of thread 991:
                #0  0x0000007fba2cb6d4 __futex_abstimed_wait_common64 (libc.so.6 + 0x7b6d4)
                any1/wayvnc#1  0x0000007fba2ce210 __pthread_cond_wait_common (libc.so.6 + 0x7e210)
                any1/wayvnc#2  0x0000007fba5b30cc n/a (libaml.so.0 + 0x30cc)
                any1/wayvnc#3  0x0000007fba2cee58 start_thread (libc.so.6 + 0x7ee58)
                any1/wayvnc#4  0x0000007fba337f9c thread_start (libc.so.6 + 0xe7f9c)
                ELF object binary architecture: AARCH64
any1 commented 1 month ago

Can you install debug symbols? It would make those backtraces more useful.

The command is apt install wayvnc-dbgsym aml-dbgsym libneatvnc0-dbgsym

noafterglow commented 1 month ago

Unable to locate package aml-dbgsym

any1 commented 1 month ago

libaml0-dbgsym

noafterglow commented 1 month ago
coredumpctl info wayvnc
           PID: 835 (wayvnc)
           UID: 992 (vnc)
           GID: 992 (vnc)
        Signal: 11 (SEGV)
     Timestamp: Thu 2024-08-08 12:28:24 PDT (21min ago)
  Command Line: wayvnc --render-cursor --detached --config /etc/wayvnc/config --socket /tmp/wayvnc/wayvncctl.sock
    Executable: /usr/bin/wayvnc
 Control Group: /system.slice/wayvnc.service
          Unit: wayvnc.service
         Slice: system.slice
       Boot ID: 6bce052242404e23b26c863ceb97f505
    Machine ID: 21140c6805c04a14b7ad5ac5b8c094c9
      Hostname: camp-power
       Storage: /var/lib/systemd/coredump/core.wayvnc.992.6bce052242404e23b26c863ceb97f505.835.1723145304000000.zst (inaccessible)
       Message: Process 835 (wayvnc) of user 992 dumped core.

                Module libudev.so.1 from deb systemd-252.26-1~deb12u2.arm64
                Stack trace of thread 988:
                #0  0x0000007fba4cc840 n/a (libneatvnc.so.0 + 0xc840)
                any1/wayvnc#1  0x0000007fba4cc1d4 n/a (libneatvnc.so.0 + 0xc1d4)
                any1/wayvnc#2  0x0000007fba5b3110 n/a (libaml.so.0 + 0x3110)
                any1/wayvnc#3  0x0000007fba2cee58 start_thread (libc.so.6 + 0x7ee58)
                any1/wayvnc#4  0x0000007fba337f9c thread_start (libc.so.6 + 0xe7f9c)

                Stack trace of thread 989:
                #0  0x0000007fba2cb6d4 __futex_abstimed_wait_common64 (libc.so.6 + 0x7b6d4)
                any1/wayvnc#1  0x0000007fba2ce210 __pthread_cond_wait_common (libc.so.6 + 0x7e210)
                any1/wayvnc#2  0x0000007fba5b30cc n/a (libaml.so.0 + 0x30cc)
                any1/wayvnc#3  0x0000007fba2cee58 start_thread (libc.so.6 + 0x7ee58)
                any1/wayvnc#4  0x0000007fba337f9c thread_start (libc.so.6 + 0xe7f9c)

                Stack trace of thread 990:
                #0  0x0000007fba2cb6d4 __futex_abstimed_wait_common64 (libc.so.6 + 0x7b6d4)
                any1/wayvnc#1  0x0000007fba2ce210 __pthread_cond_wait_common (libc.so.6 + 0x7e210)
                any1/wayvnc#2  0x0000007fba5b30cc n/a (libaml.so.0 + 0x30cc)
                any1/wayvnc#3  0x0000007fba2cee58 start_thread (libc.so.6 + 0x7ee58)
                any1/wayvnc#4  0x0000007fba337f9c thread_start (libc.so.6 + 0xe7f9c)

                Stack trace of thread 835:
                #0  0x0000007fba338134 __GI_epoll_pwait (libc.so.6 + 0xe8134)
                any1/wayvnc#1  0x0000007fba5b3ab4 n/a (libaml.so.0 + 0x3ab4)
                any1/wayvnc#2  0x0000005566b49d38 n/a (wayvnc + 0x9d38)
                any1/wayvnc#3  0x0000007fba277780 __libc_start_call_main (libc.so.6 + 0x27780)
                any1/wayvnc#4  0x0000007fba277858 __libc_start_main_impl (libc.so.6 + 0x27858)
                any1/wayvnc#5  0x0000005566b4a2b0 n/a (wayvnc + 0xa2b0)

                Stack trace of thread 991:
                #0  0x0000007fba2cb6d4 __futex_abstimed_wait_common64 (libc.so.6 + 0x7b6d4)
                any1/wayvnc#1  0x0000007fba2ce210 __pthread_cond_wait_common (libc.so.6 + 0x7e210)
                any1/wayvnc#2  0x0000007fba5b30cc n/a (libaml.so.0 + 0x30cc)
                any1/wayvnc#3  0x0000007fba2cee58 start_thread (libc.so.6 + 0x7ee58)
                any1/wayvnc#4  0x0000007fba337f9c thread_start (libc.so.6 + 0xe7f9c)
                ELF object binary architecture: AARCH64

           PID: 825 (wayvnc)
           UID: 992 (vnc)
           GID: 992 (vnc)
        Signal: 11 (SEGV)
     Timestamp: Thu 2024-08-08 12:45:51 PDT (4min 14s ago)
  Command Line: wayvnc --render-cursor --detached --config /etc/wayvnc/config --socket /tmp/wayvnc/wayvncctl.sock
    Executable: /usr/bin/wayvnc
 Control Group: /system.slice/wayvnc.service
          Unit: wayvnc.service
         Slice: system.slice
       Boot ID: 4772452bd33849479d15e598032bf8d2
    Machine ID: 21140c6805c04a14b7ad5ac5b8c094c9
      Hostname: camp-power
       Storage: /var/lib/systemd/coredump/core.wayvnc.992.4772452bd33849479d15e598032bf8d2.825.1723146351000000.zst (inaccessible)
       Message: Process 825 (wayvnc) of user 992 dumped core.

                Module libudev.so.1 from deb systemd-252.26-1~deb12u2.arm64
                Stack trace of thread 985:
                #0  0x0000007fa9f9c840 n/a (libneatvnc.so.0 + 0xc840)
                any1/wayvnc#1  0x0000007fa9f9c1d4 n/a (libneatvnc.so.0 + 0xc1d4)
                any1/wayvnc#2  0x0000007faa083110 n/a (libaml.so.0 + 0x3110)
                any1/wayvnc#3  0x0000007fa9d9ee58 start_thread (libc.so.6 + 0x7ee58)
                any1/wayvnc#4  0x0000007fa9e07f9c thread_start (libc.so.6 + 0xe7f9c)

                Stack trace of thread 825:
                #0  0x0000007fa9e08134 __GI_epoll_pwait (libc.so.6 + 0xe8134)
                any1/wayvnc#1  0x0000007faa083ab4 n/a (libaml.so.0 + 0x3ab4)
                any1/wayvnc#2  0x0000005588d09d38 n/a (wayvnc + 0x9d38)
                any1/wayvnc#3  0x0000007fa9d47780 __libc_start_call_main (libc.so.6 + 0x27780)
                any1/wayvnc#4  0x0000007fa9d47858 __libc_start_main_impl (libc.so.6 + 0x27858)
                any1/wayvnc#5  0x0000005588d0a2b0 n/a (wayvnc + 0xa2b0)

                Stack trace of thread 988:
                #0  0x0000007fa9d9b6d4 __futex_abstimed_wait_common64 (libc.so.6 + 0x7b6d4)
                any1/wayvnc#1  0x0000007fa9d9e210 __pthread_cond_wait_common (libc.so.6 + 0x7e210)
                any1/wayvnc#2  0x0000007faa0830cc n/a (libaml.so.0 + 0x30cc)
                any1/wayvnc#3  0x0000007fa9d9ee58 start_thread (libc.so.6 + 0x7ee58)
                any1/wayvnc#4  0x0000007fa9e07f9c thread_start (libc.so.6 + 0xe7f9c)

                Stack trace of thread 987:
                #0  0x0000007fa9d9b6d4 __futex_abstimed_wait_common64 (libc.so.6 + 0x7b6d4)
                any1/wayvnc#1  0x0000007fa9d9e210 __pthread_cond_wait_common (libc.so.6 + 0x7e210)
                any1/wayvnc#2  0x0000007faa0830cc n/a (libaml.so.0 + 0x30cc)
                any1/wayvnc#3  0x0000007fa9d9ee58 start_thread (libc.so.6 + 0x7ee58)
                any1/wayvnc#4  0x0000007fa9e07f9c thread_start (libc.so.6 + 0xe7f9c)

                Stack trace of thread 986:
                #0  0x0000007fa9d9b6d4 __futex_abstimed_wait_common64 (libc.so.6 + 0x7b6d4)
                any1/wayvnc#1  0x0000007fa9d9e210 __pthread_cond_wait_common (libc.so.6 + 0x7e210)
                any1/wayvnc#2  0x0000007faa0830cc n/a (libaml.so.0 + 0x30cc)
                any1/wayvnc#3  0x0000007fa9d9ee58 start_thread (libc.so.6 + 0x7ee58)
                any1/wayvnc#4  0x0000007fa9e07f9c thread_start (libc.so.6 + 0xe7f9c)
                ELF object binary architecture: AARCH64

           PID: 1965 (wayvnc)
           UID: 992 (vnc)
           GID: 992 (vnc)
        Signal: 11 (SEGV)
     Timestamp: Thu 2024-08-08 12:46:02 PDT (4min 3s ago)
  Command Line: wayvnc --render-cursor --detached --config /etc/wayvnc/config --socket /tmp/wayvnc/wayvncctl.sock
    Executable: /usr/bin/wayvnc
 Control Group: /system.slice/wayvnc.service
          Unit: wayvnc.service
         Slice: system.slice
       Boot ID: 4772452bd33849479d15e598032bf8d2
    Machine ID: 21140c6805c04a14b7ad5ac5b8c094c9
      Hostname: camp-power
       Storage: /var/lib/systemd/coredump/core.wayvnc.992.4772452bd33849479d15e598032bf8d2.1965.1723146362000000.zst (inaccessible)
       Message: Process 1965 (wayvnc) of user 992 dumped core.

                Module libudev.so.1 from deb systemd-252.26-1~deb12u2.arm64
                Stack trace of thread 1970:
                #0  0x0000007fb5e5c840 n/a (libneatvnc.so.0 + 0xc840)
                any1/wayvnc#1  0x0000007fb5e5c1d4 n/a (libneatvnc.so.0 + 0xc1d4)
                any1/wayvnc#2  0x0000007fb5f43110 n/a (libaml.so.0 + 0x3110)
                any1/wayvnc#3  0x0000007fb5c5ee58 start_thread (libc.so.6 + 0x7ee58)
                any1/wayvnc#4  0x0000007fb5cc7f9c thread_start (libc.so.6 + 0xe7f9c)

                Stack trace of thread 1965:
                #0  0x0000007fb5cc8134 __GI_epoll_pwait (libc.so.6 + 0xe8134)
                any1/wayvnc#1  0x0000007fb5f43ab4 n/a (libaml.so.0 + 0x3ab4)
                any1/wayvnc#2  0x000000557a9c9d38 n/a (wayvnc + 0x9d38)
                any1/wayvnc#3  0x0000007fb5c07780 __libc_start_call_main (libc.so.6 + 0x27780)
                any1/wayvnc#4  0x0000007fb5c07858 __libc_start_main_impl (libc.so.6 + 0x27858)
                any1/wayvnc#5  0x000000557a9ca2b0 n/a (wayvnc + 0xa2b0)

                Stack trace of thread 1973:
                #0  0x0000007fb5c5b6d4 __futex_abstimed_wait_common64 (libc.so.6 + 0x7b6d4)
                any1/wayvnc#1  0x0000007fb5c5e210 __pthread_cond_wait_common (libc.so.6 + 0x7e210)
                any1/wayvnc#2  0x0000007fb5f430cc n/a (libaml.so.0 + 0x30cc)
                any1/wayvnc#3  0x0000007fb5c5ee58 start_thread (libc.so.6 + 0x7ee58)
                any1/wayvnc#4  0x0000007fb5cc7f9c thread_start (libc.so.6 + 0xe7f9c)

                Stack trace of thread 1971:
                #0  0x0000007fb5c5b6d4 __futex_abstimed_wait_common64 (libc.so.6 + 0x7b6d4)
                any1/wayvnc#1  0x0000007fb5c5e210 __pthread_cond_wait_common (libc.so.6 + 0x7e210)
                any1/wayvnc#2  0x0000007fb5f430cc n/a (libaml.so.0 + 0x30cc)
                any1/wayvnc#3  0x0000007fb5c5ee58 start_thread (libc.so.6 + 0x7ee58)
                any1/wayvnc#4  0x0000007fb5cc7f9c thread_start (libc.so.6 + 0xe7f9c)

                Stack trace of thread 1972:
                #0  0x0000007fb5c5b6d4 __futex_abstimed_wait_common64 (libc.so.6 + 0x7b6d4)
                any1/wayvnc#1  0x0000007fb5c5e210 __pthread_cond_wait_common (libc.so.6 + 0x7e210)
                any1/wayvnc#2  0x0000007fb5f430cc n/a (libaml.so.0 + 0x30cc)
                any1/wayvnc#3  0x0000007fb5c5ee58 start_thread (libc.so.6 + 0x7ee58)
                any1/wayvnc#4  0x0000007fb5cc7f9c thread_start (libc.so.6 + 0xe7f9c)
                ELF object binary architecture: AARCH64

           PID: 2012 (wayvnc)
           UID: 992 (vnc)
           GID: 992 (vnc)
        Signal: 11 (SEGV)
     Timestamp: Thu 2024-08-08 12:46:20 PDT (3min 45s ago)
  Command Line: wayvnc --render-cursor --detached --config /etc/wayvnc/config --socket /tmp/wayvnc/wayvncctl.sock
    Executable: /usr/bin/wayvnc
 Control Group: /system.slice/wayvnc.service
          Unit: wayvnc.service
         Slice: system.slice
       Boot ID: 4772452bd33849479d15e598032bf8d2
    Machine ID: 21140c6805c04a14b7ad5ac5b8c094c9
      Hostname: camp-power
       Storage: /var/lib/systemd/coredump/core.wayvnc.992.4772452bd33849479d15e598032bf8d2.2012.1723146380000000.zst (inaccessible)
       Message: Process 2012 (wayvnc) of user 992 dumped core.

                Module libudev.so.1 from deb systemd-252.26-1~deb12u2.arm64
                Stack trace of thread 2017:
                #0  0x0000007f9ab6c840 n/a (libneatvnc.so.0 + 0xc840)
                any1/wayvnc#1  0x0000007f9ab6c1d4 n/a (libneatvnc.so.0 + 0xc1d4)
                any1/wayvnc#2  0x0000007f9ac53110 n/a (libaml.so.0 + 0x3110)
                any1/wayvnc#3  0x0000007f9a96ee58 start_thread (libc.so.6 + 0x7ee58)
                any1/wayvnc#4  0x0000007f9a9d7f9c thread_start (libc.so.6 + 0xe7f9c)

                Stack trace of thread 2019:
                #0  0x0000007f9a96b6d4 __futex_abstimed_wait_common64 (libc.so.6 + 0x7b6d4)
                any1/wayvnc#1  0x0000007f9a96e210 __pthread_cond_wait_common (libc.so.6 + 0x7e210)
                any1/wayvnc#2  0x0000007f9ac530cc n/a (libaml.so.0 + 0x30cc)
                any1/wayvnc#3  0x0000007f9a96ee58 start_thread (libc.so.6 + 0x7ee58)
                any1/wayvnc#4  0x0000007f9a9d7f9c thread_start (libc.so.6 + 0xe7f9c)

                Stack trace of thread 2020:
                #0  0x0000007f9a96b6d4 __futex_abstimed_wait_common64 (libc.so.6 + 0x7b6d4)
                any1/wayvnc#1  0x0000007f9a96e210 __pthread_cond_wait_common (libc.so.6 + 0x7e210)
                any1/wayvnc#2  0x0000007f9ac530cc n/a (libaml.so.0 + 0x30cc)
                any1/wayvnc#3  0x0000007f9a96ee58 start_thread (libc.so.6 + 0x7ee58)
                any1/wayvnc#4  0x0000007f9a9d7f9c thread_start (libc.so.6 + 0xe7f9c)

                Stack trace of thread 2012:
                #0  0x0000007f9a9d8134 __GI_epoll_pwait (libc.so.6 + 0xe8134)
                any1/wayvnc#1  0x0000007f9ac53ab4 n/a (libaml.so.0 + 0x3ab4)
                any1/wayvnc#2  0x000000557cc59d38 n/a (wayvnc + 0x9d38)
                any1/wayvnc#3  0x0000007f9a917780 __libc_start_call_main (libc.so.6 + 0x27780)
                any1/wayvnc#4  0x0000007f9a917858 __libc_start_main_impl (libc.so.6 + 0x27858)
                any1/wayvnc#5  0x000000557cc5a2b0 n/a (wayvnc + 0xa2b0)

                Stack trace of thread 2018:
                #0  0x0000007f9a96b6d4 __futex_abstimed_wait_common64 (libc.so.6 + 0x7b6d4)
                any1/wayvnc#1  0x0000007f9a96e210 __pthread_cond_wait_common (libc.so.6 + 0x7e210)
                any1/wayvnc#2  0x0000007f9ac530cc n/a (libaml.so.0 + 0x30cc)
                any1/wayvnc#3  0x0000007f9a96ee58 start_thread (libc.so.6 + 0x7ee58)
                any1/wayvnc#4  0x0000007f9a9d7f9c thread_start (libc.so.6 + 0xe7f9c)
                ELF object binary architecture: AARCH64

           PID: 2060 (wayvnc)
           UID: 992 (vnc)
           GID: 992 (vnc)
        Signal: 11 (SEGV)
     Timestamp: Thu 2024-08-08 12:46:26 PDT (3min 39s ago)
  Command Line: wayvnc --render-cursor --detached --config /etc/wayvnc/config --socket /tmp/wayvnc/wayvncctl.sock
    Executable: /usr/bin/wayvnc
 Control Group: /system.slice/wayvnc.service
          Unit: wayvnc.service
         Slice: system.slice
       Boot ID: 4772452bd33849479d15e598032bf8d2
    Machine ID: 21140c6805c04a14b7ad5ac5b8c094c9
      Hostname: camp-power
       Storage: /var/lib/systemd/coredump/core.wayvnc.992.4772452bd33849479d15e598032bf8d2.2060.1723146386000000.zst (inaccessible)
       Message: Process 2060 (wayvnc) of user 992 dumped core.

                Module libudev.so.1 from deb systemd-252.26-1~deb12u2.arm64
                Stack trace of thread 2060:
                #0  0x000000558a99ab9c n/a (wayvnc + 0xab9c)
                any1/wayvnc#1  0x000000558a99d0fc n/a (wayvnc + 0xd0fc)
                any1/wayvnc#2  0x000000558a9a46e8 n/a (wayvnc + 0x146e8)
                any1/wayvnc#3  0x0000007fae6f2d4c aml_dispatch (libaml.so.0 + 0x2d4c)
                any1/wayvnc#4  0x000000558a999d40 n/a (wayvnc + 0x9d40)
                any1/wayvnc#5  0x0000007fae3b7780 __libc_start_call_main (libc.so.6 + 0x27780)
                any1/wayvnc#6  0x0000007fae3b7858 __libc_start_main_impl (libc.so.6 + 0x27858)
                any1/wayvnc#7  0x000000558a99a2b0 n/a (wayvnc + 0xa2b0)

                Stack trace of thread 2066:
                #0  0x0000007fae40b6d4 __futex_abstimed_wait_common64 (libc.so.6 + 0x7b6d4)
                any1/wayvnc#1  0x0000007fae40e210 __pthread_cond_wait_common (libc.so.6 + 0x7e210)
                any1/wayvnc#2  0x0000007fae6f30cc n/a (libaml.so.0 + 0x30cc)
                any1/wayvnc#3  0x0000007fae40ee58 start_thread (libc.so.6 + 0x7ee58)
                any1/wayvnc#4  0x0000007fae477f9c thread_start (libc.so.6 + 0xe7f9c)

                Stack trace of thread 2067:
                #0  0x0000007fae40b6d4 __futex_abstimed_wait_common64 (libc.so.6 + 0x7b6d4)
                any1/wayvnc#1  0x0000007fae40e210 __pthread_cond_wait_common (libc.so.6 + 0x7e210)
                any1/wayvnc#2  0x0000007fae6f30cc n/a (libaml.so.0 + 0x30cc)
                any1/wayvnc#3  0x0000007fae40ee58 start_thread (libc.so.6 + 0x7ee58)
                any1/wayvnc#4  0x0000007fae477f9c thread_start (libc.so.6 + 0xe7f9c)

                Stack trace of thread 2065:
                #0  0x0000007fae40b6d4 __futex_abstimed_wait_common64 (libc.so.6 + 0x7b6d4)
                any1/wayvnc#1  0x0000007fae40e210 __pthread_cond_wait_common (libc.so.6 + 0x7e210)
                any1/wayvnc#2  0x0000007fae6f30cc n/a (libaml.so.0 + 0x30cc)
                any1/wayvnc#3  0x0000007fae40ee58 start_thread (libc.so.6 + 0x7ee58)
                any1/wayvnc#4  0x0000007fae477f9c thread_start (libc.so.6 + 0xe7f9c)

                Stack trace of thread 2068:
                #0  0x0000007fae40b6d4 __futex_abstimed_wait_common64 (libc.so.6 + 0x7b6d4)
                any1/wayvnc#1  0x0000007fae40e210 __pthread_cond_wait_common (libc.so.6 + 0x7e210)
                any1/wayvnc#2  0x0000007fae6f30cc n/a (libaml.so.0 + 0x30cc)
                any1/wayvnc#3  0x0000007fae40ee58 start_thread (libc.so.6 + 0x7ee58)
                any1/wayvnc#4  0x0000007fae477f9c thread_start (libc.so.6 + 0xe7f9c)
                ELF object binary architecture: AARCH64
any1 commented 1 month ago

That backtrace is still missing debug symbols

noafterglow commented 1 month ago

I installed everything and rebooted, this was the last core dump.

           PID: 839 (wayvnc)
           UID: 992 (vnc)
           GID: 992 (vnc)
        Signal: 11 (SEGV)
     Timestamp: Thu 2024-08-08 12:56:10 PDT (1min 17s ago)
  Command Line: wayvnc --render-cursor --detached --config /etc/wayvnc/config --socket /tmp/wayvnc/wayvncctl.sock
    Executable: /usr/bin/wayvnc
 Control Group: /system.slice/wayvnc.service
          Unit: wayvnc.service
         Slice: system.slice
       Boot ID: f4baad9adf5449eb8189ddd1769cc95d
    Machine ID: 21140c6805c04a14b7ad5ac5b8c094c9
      Hostname: camp-power
       Storage: /var/lib/systemd/coredump/core.wayvnc.992.f4baad9adf5449eb8189ddd1769cc95d.839.1723146970000000.zst (inaccessible)
       Message: Process 839 (wayvnc) of user 992 dumped core.

                Module libudev.so.1 from deb systemd-252.26-1~deb12u2.arm64
                Stack trace of thread 999:
                #0  0x0000007fb8e7cb50 pixel32_to_cpixel (libneatvnc.so.0 + 0xcb50)
                any1/wayvnc#1  0x0000007fb8e7c4cc raw_encode_box (libneatvnc.so.0 + 0xc4cc)
                any1/wayvnc#2  0x0000007fb8f63110 worker_fn (libaml.so.0 + 0x3110)
                any1/wayvnc#3  0x0000007fb8c7ee58 start_thread (libc.so.6 + 0x7ee58)
                any1/wayvnc#4  0x0000007fb8ce7f9c thread_start (libc.so.6 + 0xe7f9c)

                Stack trace of thread 1000:
                #0  0x0000007fb8c7b6d4 __futex_abstimed_wait_common64 (libc.so.6 + 0x7b6d4)
                any1/wayvnc#1  0x0000007fb8c7e210 __pthread_cond_wait_common (libc.so.6 + 0x7e210)
                any1/wayvnc#2  0x0000007fb8f630cc dequeue_work (libaml.so.0 + 0x30cc)
                any1/wayvnc#3  0x0000007fb8c7ee58 start_thread (libc.so.6 + 0x7ee58)
                any1/wayvnc#4  0x0000007fb8ce7f9c thread_start (libc.so.6 + 0xe7f9c)

                Stack trace of thread 1002:
                #0  0x0000007fb8c7b6d4 __futex_abstimed_wait_common64 (libc.so.6 + 0x7b6d4)
                any1/wayvnc#1  0x0000007fb8c7e210 __pthread_cond_wait_common (libc.so.6 + 0x7e210)
                any1/wayvnc#2  0x0000007fb8f630cc dequeue_work (libaml.so.0 + 0x30cc)
                any1/wayvnc#3  0x0000007fb8c7ee58 start_thread (libc.so.6 + 0x7ee58)
                any1/wayvnc#4  0x0000007fb8ce7f9c thread_start (libc.so.6 + 0xe7f9c)

                Stack trace of thread 1001:
                #0  0x0000007fb8c7b6d4 __futex_abstimed_wait_common64 (libc.so.6 + 0x7b6d4)
                any1/wayvnc#1  0x0000007fb8c7e210 __pthread_cond_wait_common (libc.so.6 + 0x7e210)
                any1/wayvnc#2  0x0000007fb8f630cc dequeue_work (libaml.so.0 + 0x30cc)
                any1/wayvnc#3  0x0000007fb8c7ee58 start_thread (libc.so.6 + 0x7ee58)
                any1/wayvnc#4  0x0000007fb8ce7f9c thread_start (libc.so.6 + 0xe7f9c)

                Stack trace of thread 839:
                #0  0x0000007fb8ce8134 __GI_epoll_pwait (libc.so.6 + 0xe8134)
                any1/wayvnc#1  0x0000007fb8f63ab4 epoll_poll (libaml.so.0 + 0x3ab4)
                any1/wayvnc#2  0x000000558b1d9d38 main (wayvnc + 0x9d38)
                any1/wayvnc#3  0x0000007fb8c27780 __libc_start_call_main (libc.so.6 + 0x27780)
                any1/wayvnc#4  0x0000007fb8c27858 __libc_start_main_impl (libc.so.6 + 0x27858)
                any1/wayvnc#5  0x000000558b1da2b0 _start (wayvnc + 0xa2b0)
                ELF object binary architecture: AARCH64
any1 commented 1 month ago

Thanks for the backtraces. I have not been able to reproduce this myself.

Did you run apt update && apt upgrade after flashing the sdcard?

noafterglow commented 1 month ago

It ran as part of the install process. its only been about 2 weeks. I just did it again, and these packages were upgradable:

gir1.2-gtk-3.0 gtk-update-icon-cache gtk2-engines-pixbuf libgtk-3-0 libgtk-3-common libgtk2.0-0 libgtk2.0-bin libgtk2.0-common pipanel raspberrypi-sys-mods wpasupplicant

after upgrade no change.

           PID: 807 (wayvnc)
           UID: 992 (vnc)
           GID: 992 (vnc)
        Signal: 11 (SEGV)
     Timestamp: Thu 2024-08-08 14:26:07 PDT (48s ago)
  Command Line: wayvnc --render-cursor --detached --config /etc/wayvnc/config --socket /tmp/wayvnc/wayvncctl.sock
    Executable: /usr/bin/wayvnc
 Control Group: /system.slice/wayvnc.service
          Unit: wayvnc.service
         Slice: system.slice
       Boot ID: 33f26f598e224f479f1bcba08ecde010
    Machine ID: 21140c6805c04a14b7ad5ac5b8c094c9
      Hostname: camp-power
       Storage: /var/lib/systemd/coredump/core.wayvnc.992.33f26f598e224f479f1bcba08ecde010.807.1723152367000000.zst (inaccessible)
       Message: Process 807 (wayvnc) of user 992 dumped core.

                Module libudev.so.1 from deb systemd-252.26-1~deb12u2.arm64
                Stack trace of thread 1007:
                #0  0x0000007f9aa2cb50 pixel32_to_cpixel (libneatvnc.so.0 + 0xcb50)
                any1/wayvnc#1  0x0000007f9aa2c4cc raw_encode_box (libneatvnc.so.0 + 0xc4cc)
                any1/wayvnc#2  0x0000007f9ab13110 worker_fn (libaml.so.0 + 0x3110)
                any1/wayvnc#3  0x0000007f9a82ee58 start_thread (libc.so.6 + 0x7ee58)
                any1/wayvnc#4  0x0000007f9a897f9c thread_start (libc.so.6 + 0xe7f9c)

                Stack trace of thread 807:
                #0  0x0000007f9a898134 __GI_epoll_pwait (libc.so.6 + 0xe8134)
                any1/wayvnc#1  0x0000007f9ab13ab4 epoll_poll (libaml.so.0 + 0x3ab4)
                any1/wayvnc#2  0x0000005560bb9d38 main (wayvnc + 0x9d38)
                any1/wayvnc#3  0x0000007f9a7d7780 __libc_start_call_main (libc.so.6 + 0x27780)
                any1/wayvnc#4  0x0000007f9a7d7858 __libc_start_main_impl (libc.so.6 + 0x27858)
                any1/wayvnc#5  0x0000005560bba2b0 _start (wayvnc + 0xa2b0)

                Stack trace of thread 1008:
                #0  0x0000007f9a82b6d4 __futex_abstimed_wait_common64 (libc.so.6 + 0x7b6d4)
                any1/wayvnc#1  0x0000007f9a82e210 __pthread_cond_wait_common (libc.so.6 + 0x7e210)
                any1/wayvnc#2  0x0000007f9ab130cc dequeue_work (libaml.so.0 + 0x30cc)
                any1/wayvnc#3  0x0000007f9a82ee58 start_thread (libc.so.6 + 0x7ee58)
                any1/wayvnc#4  0x0000007f9a897f9c thread_start (libc.so.6 + 0xe7f9c)

                Stack trace of thread 1010:
                #0  0x0000007f9a82b6d4 __futex_abstimed_wait_common64 (libc.so.6 + 0x7b6d4)
                any1/wayvnc#1  0x0000007f9a82e210 __pthread_cond_wait_common (libc.so.6 + 0x7e210)
                any1/wayvnc#2  0x0000007f9ab130cc dequeue_work (libaml.so.0 + 0x30cc)
                any1/wayvnc#3  0x0000007f9a82ee58 start_thread (libc.so.6 + 0x7ee58)
                any1/wayvnc#4  0x0000007f9a897f9c thread_start (libc.so.6 + 0xe7f9c)

                Stack trace of thread 1011:
                #0  0x0000007f9a82b6d4 __futex_abstimed_wait_common64 (libc.so.6 + 0x7b6d4)
                any1/wayvnc#1  0x0000007f9a82e210 __pthread_cond_wait_common (libc.so.6 + 0x7e210)
                any1/wayvnc#2  0x0000007f9ab130cc dequeue_work (libaml.so.0 + 0x30cc)
                any1/wayvnc#3  0x0000007f9a82ee58 start_thread (libc.so.6 + 0x7ee58)
                any1/wayvnc#4  0x0000007f9a897f9c thread_start (libc.so.6 + 0xe7f9c)
                ELF object binary architecture: AARCH64

I did notice that right now what happens is that it dies initially more slowly...
First, the window comes up, then it turns black, then it shows an error something about the connection. Then the window disappears, and comes back, black again... then it shows something about a bad rectangle seeming to indicate that its bigger than the screen size.

Journal does not show anything particularly useful.

journalctl --since " 10 minutes ago"
Aug 08 14:23:55 camp-power PackageKit[1565]: daemon quit
Aug 08 14:23:55 camp-power systemd[1]: packagekit.service: Deactivated successfully.
Aug 08 14:23:55 camp-power systemd[1]: packagekit.service: Consumed 7.108s CPU time.
Aug 08 14:26:07 camp-power systemd[1]: Created slice system-systemd\x2dcoredump.slice - Slice /system/systemd-coredump.
Aug 08 14:26:07 camp-power systemd[1]: Started systemd-coredump@0-2082-0.service - Process Core Dump (PID 2082/UID 0).
Aug 08 14:26:09 camp-power systemd-coredump[2083]: [🡕] Process 807 (wayvnc) of user 992 dumped core.

                                                   Module libudev.so.1 from deb systemd-252.26-1~deb12u2.arm64
                                                   Stack trace of thread 1007:
                                                   #0  0x0000007f9aa2cb50 pixel32_to_cpixel (libneatvnc.so.0 + 0xcb50)
                                                   any1/wayvnc#1  0x0000007f9aa2c4cc raw_encode_box (libneatvnc.so.0 + 0xc4cc)
                                                   any1/wayvnc#2  0x0000007f9ab13110 worker_fn (libaml.so.0 + 0x3110)
                                                   any1/wayvnc#3  0x0000007f9a82ee58 start_thread (libc.so.6 + 0x7ee58)
                                                   any1/wayvnc#4  0x0000007f9a897f9c thread_start (libc.so.6 + 0xe7f9c)

                                                   Stack trace of thread 807:
                                                   #0  0x0000007f9a898134 __GI_epoll_pwait (libc.so.6 + 0xe8134)
                                                   any1/wayvnc#1  0x0000007f9ab13ab4 epoll_poll (libaml.so.0 + 0x3ab4)
                                                   any1/wayvnc#2  0x0000005560bb9d38 main (wayvnc + 0x9d38)
                                                   any1/wayvnc#3  0x0000007f9a7d7780 __libc_start_call_main (libc.so.6 + 0x27780)
                                                   any1/wayvnc#4  0x0000007f9a7d7858 __libc_start_main_impl (libc.so.6 + 0x27858)
                                                   any1/wayvnc#5  0x0000005560bba2b0 _start (wayvnc + 0xa2b0)

                                                   Stack trace of thread 1008:
                                                   #0  0x0000007f9a82b6d4 __futex_abstimed_wait_common64 (libc.so.6 + 0x7b6d4)
                                                   any1/wayvnc#1  0x0000007f9a82e210 __pthread_cond_wait_common (libc.so.6 + 0x7e210)
                                                   any1/wayvnc#2  0x0000007f9ab130cc dequeue_work (libaml.so.0 + 0x30cc)
                                                   any1/wayvnc#3  0x0000007f9a82ee58 start_thread (libc.so.6 + 0x7ee58)
                                                   any1/wayvnc#4  0x0000007f9a897f9c thread_start (libc.so.6 + 0xe7f9c)

                                                   Stack trace of thread 1010:
                                                   #0  0x0000007f9a82b6d4 __futex_abstimed_wait_common64 (libc.so.6 + 0x7b6d4)
                                                   any1/wayvnc#1  0x0000007f9a82e210 __pthread_cond_wait_common (libc.so.6 + 0x7e210)
                                                   any1/wayvnc#2  0x0000007f9ab130cc dequeue_work (libaml.so.0 + 0x30cc)
                                                   any1/wayvnc#3  0x0000007f9a82ee58 start_thread (libc.so.6 + 0x7ee58)
                                                   any1/wayvnc#4  0x0000007f9a897f9c thread_start (libc.so.6 + 0xe7f9c)

                                                   Stack trace of thread 1011:
                                                   #0  0x0000007f9a82b6d4 __futex_abstimed_wait_common64 (libc.so.6 + 0x7b6d4)
                                                   any1/wayvnc#1  0x0000007f9a82e210 __pthread_cond_wait_common (libc.so.6 + 0x7e210)
                                                   any1/wayvnc#2  0x0000007f9ab130cc dequeue_work (libaml.so.0 + 0x30cc)
                                                   any1/wayvnc#3  0x0000007f9a82ee58 start_thread (libc.so.6 + 0x7ee58)
                                                   any1/wayvnc#4  0x0000007f9a897f9c thread_start (libc.so.6 + 0xe7f9c)
                                                   ELF object binary architecture: AARCH64
Aug 08 14:26:09 camp-power systemd[1]: systemd-coredump@0-2082-0.service: Deactivated successfully.
Aug 08 14:26:09 camp-power systemd[1]: wayvnc.service: Main process exited, code=exited, status=139/n/a
Aug 08 14:26:09 camp-power sh[767]: Segmentation fault (core dumped)
Aug 08 14:26:09 camp-power systemd[1]: wayvnc.service: Failed with result 'exit-code'.
Aug 08 14:26:09 camp-power systemd[1]: Stopping wayvnc-control.service - VNC Control Service...
Aug 08 14:26:09 camp-power systemd[1]: wayvnc-control.service: Deactivated successfully.
Aug 08 14:26:09 camp-power systemd[1]: Stopped wayvnc-control.service - VNC Control Service.
Aug 08 14:26:09 camp-power systemd[1]: wayvnc.service: Scheduled restart job, restart counter is at 1.
Aug 08 14:26:09 camp-power systemd[1]: Stopped wayvnc.service - VNC Server.
Aug 08 14:26:09 camp-power systemd[1]: wayvnc-generate-keys.service - WayVNC Key Generation was skipped because no trigger condition checks were met.
Aug 08 14:26:09 camp-power systemd[1]: Starting wayvnc.service - VNC Server...
Aug 08 14:26:09 camp-power sh[2115]: Warning: ../src/ctl-server.c: 788: Deleting stale control socket path "/tmp/wayvnc/wayvncctl.sock"
Aug 08 14:26:09 camp-power systemd[1]: Started wayvnc.service - VNC Server.
Aug 08 14:26:09 camp-power systemd[1]: Started wayvnc-control.service - VNC Control Service.
Aug 08 14:26:48 camp-power sshd[2139]: Accepted password for ihor from 192.168.1.171 port 50842 ssh2
Aug 08 14:26:48 camp-power sshd[2139]: pam_unix(sshd:session): session opened for user ihor(uid=1000) by (uid=0)
Aug 08 14:26:48 camp-power systemd-logind[571]: New session 4 of user ihor.
Aug 08 14:26:48 camp-power systemd[1]: Started session-4.scope - Session 4 of User ihor.
Aug 08 14:26:48 camp-power sshd[2139]: pam_env(sshd:session): deprecated reading of user environment enabled
any1 commented 1 month ago

I see that it most often crashes when encoding a raw frame. This means that your client chose raw encoding. What happens if you tell RealVNC viewer to use ZRLE?

Does the same thing happen with TigerVNC client?

noafterglow commented 1 month ago

here's some additional info. I recorded the video of startup . This only happens AFTER coredump was loaded. before, it just died before the original black screen showed anything.

https://github.com/user-attachments/assets/9811854d-0e5f-4f1c-84d0-a4af721673f5

noafterglow commented 1 month ago

how do I tell realvnc to use ZRLE? I don't see that option. TigerVNC does not crash wayvnc.

any1 commented 1 month ago

how do I tell realvnc to use ZRLE

properties -> expert -> preferred encoding.

It's actually the default. I'm not sure why RealVNC goes to raw.

If you edit, /usr/sbin/wayvnc-run.sh as root and add an argument to the wayvnc command to enable trace logging, we might see more useful information in the journal. The argument is -Ltrace.

noafterglow commented 1 month ago

The default preferred encoding was ZRLE2.


Aug 08 16:58:16 camp-power systemd[1]: systemd-hostnamed.service: Deactivated successfully.
Aug 08 16:58:22 camp-power sh[829]: Info: New client connection from ::ffff:192.168.1.171: 0x55ad8e3c40 (ref 1)
Aug 08 16:58:22 camp-power sh[829]: DEBUG: ../src/server.c: 825: Client chose security type: 5
Aug 08 16:58:26 camp-power sh[829]: Info: User "ihor" authenticated
Aug 08 16:58:26 camp-power sh[829]: Info: Starting screen capture
Aug 08 16:58:26 camp-power sh[829]: DEBUG: ../src/main.c: 1342: Client connected, new client count: 1
Aug 08 16:58:26 camp-power sh[829]: DEBUG: ../src/ctl-server.c: 941: Enqueueing client-connected event: {"id":"1","address":"::","username":"ihor","seat":"default","connection_count":1}
Aug 08 16:58:26 camp-power sh[829]: DEBUG: ../src/ctl-server.c: 968: Enqueued client-connected event for 1 clients
Aug 08 16:58:26 camp-power sh[829]: DEBUG: ../src/server.c: 1079: Client 0x55ad8e3c40 set encodings: zrle,trle,hextile,rre,raw,copyrect,cursor,desktop-size
Aug 08 16:58:26 camp-power sh[829]: DEBUG: ../src/server.c: 993: Using color palette for client 0x55ad8e3c40
Aug 08 16:58:26 camp-power sh[829]: DEBUG: ../src/server.c: 1008: Client 0x55ad8e3c40 chose pixel format: RGB222
Aug 08 16:58:26 camp-power sh[829]: DEBUG: ../src/ctl-server.c: 604: >> {"method":"client-connected","params":{"id":"1","address":"::","username":"ihor","seat":"default","connection_count":1}}
Aug 08 16:58:26 camp-power sh[829]: DEBUG: ../src/server.c: 1079: Client 0x55ad8e3c40 set encodings: raw,zrle,trle,hextile,rre,copyrect,cursor,desktop-size
Aug 08 16:58:26 camp-power sh[829]: Info: Choosing raw encoding for client 0x55ad8e3c40
Aug 08 16:58:26 camp-power systemd[1]: Created slice system-systemd\x2dcoredump.slice - Slice /system/systemd-coredump.
Aug 08 16:58:26 camp-power systemd[1]: Started systemd-coredump@0-2013-0.service - Process Core Dump (PID 2013/UID 0).
Aug 08 16:58:29 camp-power systemd-coredump[2014]: [🡕] Process 829 (wayvnc) of user 992 dumped core.

                                                   Module libudev.so.1 from deb systemd-252.26-1~deb12u2.arm64
                                                   Stack trace of thread 1174:
                                                   #0  0x0000007fb9d4cb50 pixel32_to_cpixel (libneatvnc.so.0 + 0xcb50)
                                                   any1/wayvnc#1  0x0000007fb9d4c4cc raw_encode_box (libneatvnc.so.0 + 0xc4cc)
                                                   any1/wayvnc#2  0x0000007fb9e33110 worker_fn (libaml.so.0 + 0x3110)
                                                   any1/wayvnc#3  0x0000007fb9b4ee58 start_thread (libc.so.6 + 0x7ee58)
                                                   any1/wayvnc#4  0x0000007fb9bb7f9c thread_start (libc.so.6 + 0xe7f9c)

                                                   Stack trace of thread 829:
                                                   #0  0x0000007fab5f0954 n/a (v3d_dri.so + 0xf70954)
                                                   any1/wayvnc#1  0x0000007fab5ab81c n/a (v3d_dri.so + 0xf2b81c)
                                                   any1/wayvnc#2  0x0000007faa77e898 n/a (v3d_dri.so + 0xfe898)
                                                   any1/wayvnc#3  0x0000007fb9e04330 n/a (libgbm.so.1 + 0x4330)
                                                   any1/wayvnc#4  0x0000007fb9d4e2f4 nvnc_fb_map (libneatvnc.so.0 + 0xe2f4)
                                                   any1/wayvnc#5  0x0000007fb9d56c74 damage_refine (libneatvnc.so.0 + 0x16c74)
                                                   any1/wayvnc#6  0x0000007fb9d4f4ec nvnc_display_feed_buffer (libneatvnc.so.0 + 0xf4ec)
                                                   any1/wayvnc#7  0x000000557927cb78 wayvnc_process_frame (wayvnc + 0xcb78)
                                                   any1/wayvnc#8  0x0000007fb99e63e0 n/a (libffi.so.8 + 0x63e0)
                                                   any1/wayvnc#9  0x0000007fb99e5b24 n/a (libffi.so.8 + 0x5b24)
                                                   any1/wayvnc#10 0x0000007fb9d99b8c n/a (libwayland-client.so.0 + 0x9b8c)
                                                   any1/wayvnc#11 0x0000007fb9d95f20 n/a (libwayland-client.so.0 + 0x5f20)
                                                   any1/wayvnc#12 0x0000007fb9d97770 wl_display_dispatch_queue_pending (libwayland-client.so.0 + 0x7770)
                                                   any1/wayvnc#13 0x000000557927bd18 on_wayland_event (wayvnc + 0xbd18)
                                                   any1/wayvnc#14 0x0000007fb9e32d4c aml__handle_event (libaml.so.0 + 0x2d4c)
                                                   any1/wayvnc#15 0x0000005579279d40 main (wayvnc + 0x9d40)
                                                   any1/wayvnc#16 0x0000007fb9af7780 __libc_start_call_main (libc.so.6 + 0x27780)
                                                   any1/wayvnc#17 0x0000007fb9af7858 __libc_start_main_impl (libc.so.6 + 0x27858)
                                                   any1/wayvnc#18 0x000000557927a2b0 _start (wayvnc + 0xa2b0)

                                                   Stack trace of thread 1175:
                                                   #0  0x0000007fb9b4b6d4 __futex_abstimed_wait_common64 (libc.so.6 + 0x7b6d4)
                                                   any1/wayvnc#1  0x0000007fb9b4e210 __pthread_cond_wait_common (libc.so.6 + 0x7e210)
                                                   any1/wayvnc#2  0x0000007fb9e330cc dequeue_work (libaml.so.0 + 0x30cc)
                                                   any1/wayvnc#3  0x0000007fb9b4ee58 start_thread (libc.so.6 + 0x7ee58)
                                                   any1/wayvnc#4  0x0000007fb9bb7f9c thread_start (libc.so.6 + 0xe7f9c)

                                                   Stack trace of thread 1177:
                                                   #0  0x0000007fb9b4b6d4 __futex_abstimed_wait_common64 (libc.so.6 + 0x7b6d4)
                                                   any1/wayvnc#1  0x0000007fb9b4e210 __pthread_cond_wait_common (libc.so.6 + 0x7e210)
                                                   any1/wayvnc#2  0x0000007fb9e330cc dequeue_work (libaml.so.0 + 0x30cc)
                                                   any1/wayvnc#3  0x0000007fb9b4ee58 start_thread (libc.so.6 + 0x7ee58)
                                                   any1/wayvnc#4  0x0000007fb9bb7f9c thread_start (libc.so.6 + 0xe7f9c)

                                                   Stack trace of thread 1176:
                                                   #0  0x0000007fb9b4b6d4 __futex_abstimed_wait_common64 (libc.so.6 + 0x7b6d4)
                                                   any1/wayvnc#1  0x0000007fb9b4e210 __pthread_cond_wait_common (libc.so.6 + 0x7e210)
                                                   any1/wayvnc#2  0x0000007fb9e330cc dequeue_work (libaml.so.0 + 0x30cc)
                                                   any1/wayvnc#3  0x0000007fb9b4ee58 start_thread (libc.so.6 + 0x7ee58)
                                                   any1/wayvnc#4  0x0000007fb9bb7f9c thread_start (libc.so.6 + 0xe7f9c)
                                                   ELF object binary architecture: AARCH64
Aug 08 16:58:29 camp-power systemd[1]: systemd-coredump@0-2013-0.service: Deactivated successfully.
Aug 08 16:58:29 camp-power systemd[1]: systemd-coredump@0-2013-0.service: Consumed 1.158s CPU time.
Aug 08 16:58:29 camp-power sh[774]: Segmentation fault (core dumped)
Aug 08 16:58:29 camp-power systemd[1]: wayvnc.service: Main process exited, code=exited, status=139/n/a
Aug 08 16:58:29 camp-power systemd[1]: wayvnc.service: Failed with result 'exit-code'.
Aug 08 16:58:29 camp-power systemd[1]: wayvnc.service: Consumed 1.341s CPU time.
Aug 08 16:58:29 camp-power systemd[1]: Stopping wayvnc-control.service - VNC Control Service...
Aug 08 16:58:29 camp-power systemd[1]: wayvnc-control.service: Deactivated successfully.
Aug 08 16:58:29 camp-power systemd[1]: Stopped wayvnc-control.service - VNC Control Service.
Aug 08 16:58:29 camp-power systemd[1]: wayvnc.service: Scheduled restart job, restart counter is at 1.
Aug 08 16:58:29 camp-power systemd[1]: Stopped wayvnc.service - VNC Server.
Aug 08 16:58:29 camp-power systemd[1]: wayvnc.service: Consumed 1.341s CPU time.
Aug 08 16:58:29 camp-power systemd[1]: wayvnc-generate-keys.service - WayVNC Key Generation was skipped because no trigger condition checks were met.
Aug 08 16:58:29 camp-power systemd[1]: Starting wayvnc.service - VNC Server...
Aug 08 16:58:30 camp-power sh[2046]: DEBUG: ../src/server.c: 1939: Trying address: ::
Aug 08 16:58:30 camp-power sh[2046]: DEBUG: ../src/server.c: 1959: Successfully bound to address
Aug 08 16:58:30 camp-power sh[2046]: Info: Listening for connections on :::5900
Aug 08 16:58:30 camp-power sh[2046]: DEBUG: ../src/ctl-server.c: 809: Initializing wayvncctl socket: /tmp/wayvnc/wayvncctl.sock
Aug 08 16:58:30 camp-power sh[2046]: DEBUG: ../src/ctl-server.c: 778: Connecting to existing socket in case it's stale
Aug 08 16:58:30 camp-power sh[2046]: DEBUG: ../src/ctl-server.c: 785: Connect failed: Connection refused
Aug 08 16:58:30 camp-power sh[2046]: Warning: ../src/ctl-server.c: 788: Deleting stale control socket path "/tmp/wayvnc/wayvncctl.sock"
Aug 08 16:58:30 camp-power sh[2046]: DEBUG: ../src/ctl-server.c: 717: New connection
Aug 08 16:58:30 camp-power sh[2046]: Info: New control socket client connected: 0x55a0bc6a50
Aug 08 16:58:30 camp-power sh[2046]: DEBUG: ../src/ctl-server.c: 307: << {"method":"version","params":{},"id":1}
Aug 08 16:58:30 camp-power sh[2046]: Info: Dispatching control client command 'version'
Aug 08 16:58:30 camp-power sh[2046]: Info: Enqueueing response: OK (0)
Aug 08 16:58:30 camp-power sh[2046]: DEBUG: ../src/ctl-server.c: 567: Response data: {"wayvnc": "0.9-dev", "neatvnc": "0.9-dev", "aml": "0.3.0"}
Aug 08 16:58:30 camp-power sh[2046]: DEBUG: ../src/ctl-server.c: 604: >> {"code":0,"id":1,"data":{"wayvnc":"0.9-dev","neatvnc":"0.9-dev","aml":"0.3.0"}}
Aug 08 16:58:30 camp-power sh[2046]: Info: Control socket client disconnected: 0x55a0bc6a50
Aug 08 16:58:30 camp-power systemd[1]: Started wayvnc.service - VNC Server.
Aug 08 16:58:30 camp-power systemd[1]: Started wayvnc-control.service - VNC Control Service.
Aug 08 16:58:30 camp-power sh[2046]: DEBUG: ../src/ctl-server.c: 717: New connection
Aug 08 16:58:30 camp-power sh[2046]: Info: New control socket client connected: 0x55a0bc8070
Aug 08 16:58:30 camp-power sh[2046]: DEBUG: ../src/ctl-server.c: 307: << {"method": "attach", "id": 0, "params": {"display": "/run/user/1000/wayland-1"}}
Aug 08 16:58:30 camp-power sh[2046]: Info: Dispatching control client command 'attach'
Aug 08 16:58:30 camp-power sh[2046]: DEBUG: ../src/main.c: 1612: Attaching to /run/user/1000/wayland-1
Aug 08 16:58:30 camp-power sh[2046]: DEBUG: ../src/ctl-server.c: 941: Enqueueing capture-changed event: {"output":"HDMI-A-2"}
Aug 08 16:58:30 camp-power sh[2046]: DEBUG: ../src/ctl-server.c: 968: Enqueued capture-changed event for 0 clients
Aug 08 16:58:30 camp-power sh[2046]: Info: Capturing output HDMI-A-2
Aug 08 16:58:30 camp-power sh[2046]: Info: >> NewTek 0x0000 (HDMI-A-2) 1024x600+0x0 Power:ON
Aug 08 16:58:30 camp-power sh[2046]: Info: Attached to /run/user/1000/wayland-1
Aug 08 16:58:30 camp-power sh[2046]: Info: Enqueueing response: OK (0)
Aug 08 16:58:30 camp-power sh[2046]: DEBUG: ../src/ctl-server.c: 567: Response data: (null)
Aug 08 16:58:30 camp-power sh[2046]: DEBUG: ../src/ctl-server.c: 604: >> {"code":0,"id":0}
Aug 08 16:58:30 camp-power sh[2046]: DEBUG: ../src/ctl-server.c: 307: << {"method": "event-receive", "id": 1}
Aug 08 16:58:30 camp-power sh[2046]: Info: Dispatching control client command 'event-receive'
Aug 08 16:58:30 camp-power sh[2046]: Info: Enqueueing response: OK (0)
Aug 08 16:58:30 camp-power sh[2046]: DEBUG: ../src/ctl-server.c: 567: Response data: (null)
Aug 08 16:58:30 camp-power sh[2046]: DEBUG: ../src/ctl-server.c: 604: >> {"code":0,"id":1}
Aug 08 16:58:40 camp-power sh[2046]: Info: New client connection from ::ffff:192.168.1.171: 0x55a0bcf780 (ref 1)
Aug 08 16:58:40 camp-power sh[2046]: DEBUG: ../src/server.c: 825: Client chose security type: 5
Aug 08 16:58:43 camp-power sh[2046]: Info: User "ihor" authenticated
Aug 08 16:58:43 camp-power sh[2046]: Info: Starting screen capture
Aug 08 16:58:43 camp-power sh[2046]: DEBUG: ../src/main.c: 1342: Client connected, new client count: 1
Aug 08 16:58:43 camp-power sh[2046]: DEBUG: ../src/ctl-server.c: 941: Enqueueing client-connected event: {"id":"1","address":"::","username":"ihor","seat":"default","connection_count":1}
Aug 08 16:58:43 camp-power sh[2046]: DEBUG: ../src/ctl-server.c: 968: Enqueued client-connected event for 1 clients
Aug 08 16:58:43 camp-power sh[2046]: DEBUG: ../src/server.c: 1079: Client 0x55a0bcf780 set encodings: zrle,trle,hextile,rre,raw,copyrect,cursor,desktop-size
Aug 08 16:58:43 camp-power sh[2046]: DEBUG: ../src/server.c: 993: Using color palette for client 0x55a0bcf780
Aug 08 16:58:43 camp-power sh[2046]: DEBUG: ../src/server.c: 1008: Client 0x55a0bcf780 chose pixel format: RGB222
Aug 08 16:58:43 camp-power sh[2046]: DEBUG: ../src/ctl-server.c: 604: >> {"method":"client-connected","params":{"id":"1","address":"::","username":"ihor","seat":"default","connection_count":1}}
Aug 08 16:58:45 camp-power sh[2046]: DEBUG: ../src/server.c: 1079: Client 0x55a0bcf780 set encodings: raw,zrle,trle,hextile,rre,copyrect,cursor,desktop-size
Aug 08 16:58:45 camp-power sh[2046]: Info: Choosing raw encoding for client 0x55a0bcf780
Aug 08 16:58:45 camp-power systemd[1]: Started systemd-coredump@1-2065-0.service - Process Core Dump (PID 2065/UID 0).
Aug 08 16:58:47 camp-power systemd-coredump[2066]: [🡕] Process 2046 (wayvnc) of user 992 dumped core.

                                                   Module libudev.so.1 from deb systemd-252.26-1~deb12u2.arm64
                                                   Stack trace of thread 2053:
                                                   #0  0x0000007f9e3acb50 pixel32_to_cpixel (libneatvnc.so.0 + 0xcb50)
                                                   any1/wayvnc#1  0x0000007f9e3ac4cc raw_encode_box (libneatvnc.so.0 + 0xc4cc)
                                                   any1/wayvnc#2  0x0000007f9e493110 worker_fn (libaml.so.0 + 0x3110)
                                                   any1/wayvnc#3  0x0000007f9e1aee58 start_thread (libc.so.6 + 0x7ee58)
                                                   any1/wayvnc#4  0x0000007f9e217f9c thread_start (libc.so.6 + 0xe7f9c)

                                                   Stack trace of thread 2046:
                                                   #0  0x0000007f9e20fe0c __ioctl (libc.so.6 + 0xdfe0c)
                                                   any1/wayvnc#1  0x0000007f9e426b18 drmIoctl (libdrm.so.2 + 0x6b18)
                                                   any1/wayvnc#2  0x0000007f8fc03e38 n/a (v3d_dri.so + 0xf23e38)
                                                   any1/wayvnc#3  0x0000007f8fc0514c n/a (v3d_dri.so + 0xf2514c)
                                                   any1/wayvnc#4  0x0000007f8fc0b874 n/a (v3d_dri.so + 0xf2b874)
                                                   any1/wayvnc#5  0x0000007f8edde898 n/a (v3d_dri.so + 0xfe898)
                                                   any1/wayvnc#6  0x0000007f9e464330 n/a (libgbm.so.1 + 0x4330)
                                                   any1/wayvnc#7  0x0000007f9e3ae2f4 nvnc_fb_map (libneatvnc.so.0 + 0xe2f4)
                                                   any1/wayvnc#8  0x0000007f9e3b6c74 damage_refine (libneatvnc.so.0 + 0x16c74)
                                                   any1/wayvnc#9  0x0000007f9e3af4ec nvnc_display_feed_buffer (libneatvnc.so.0 + 0xf4ec)
                                                   any1/wayvnc#10 0x000000557cdacb78 wayvnc_process_frame (wayvnc + 0xcb78)
                                                   any1/wayvnc#11 0x0000007f9e0463e0 n/a (libffi.so.8 + 0x63e0)
                                                   any1/wayvnc#12 0x0000007f9e045b24 n/a (libffi.so.8 + 0x5b24)
                                                   any1/wayvnc#13 0x0000007f9e3f9b8c n/a (libwayland-client.so.0 + 0x9b8c)
                                                   any1/wayvnc#14 0x0000007f9e3f5f20 n/a (libwayland-client.so.0 + 0x5f20)
                                                   any1/wayvnc#15 0x0000007f9e3f7770 wl_display_dispatch_queue_pending (libwayland-client.so.0 + 0x7770)
                                                   any1/wayvnc#16 0x000000557cdabd18 on_wayland_event (wayvnc + 0xbd18)
                                                   any1/wayvnc#17 0x0000007f9e492d4c aml__handle_event (libaml.so.0 + 0x2d4c)
                                                   any1/wayvnc#18 0x000000557cda9d40 main (wayvnc + 0x9d40)
                                                   any1/wayvnc#19 0x0000007f9e157780 __libc_start_call_main (libc.so.6 + 0x27780)
                                                   any1/wayvnc#20 0x0000007f9e157858 __libc_start_main_impl (libc.so.6 + 0x27858)
                                                   any1/wayvnc#21 0x000000557cdaa2b0 _start (wayvnc + 0xa2b0)

                                                   Stack trace of thread 2056:
                                                   #0  0x0000007f9e1ab6d4 __futex_abstimed_wait_common64 (libc.so.6 + 0x7b6d4)
                                                   any1/wayvnc#1  0x0000007f9e1ae210 __pthread_cond_wait_common (libc.so.6 + 0x7e210)
                                                   any1/wayvnc#2  0x0000007f9e4930cc dequeue_work (libaml.so.0 + 0x30cc)
                                                   any1/wayvnc#3  0x0000007f9e1aee58 start_thread (libc.so.6 + 0x7ee58)
                                                   any1/wayvnc#4  0x0000007f9e217f9c thread_start (libc.so.6 + 0xe7f9c)

                                                   Stack trace of thread 2054:
                                                   #0  0x0000007f9e1ab6d4 __futex_abstimed_wait_common64 (libc.so.6 + 0x7b6d4)
                                                   any1/wayvnc#1  0x0000007f9e1ae210 __pthread_cond_wait_common (libc.so.6 + 0x7e210)
                                                   any1/wayvnc#2  0x0000007f9e4930cc dequeue_work (libaml.so.0 + 0x30cc)
                                                   any1/wayvnc#3  0x0000007f9e1aee58 start_thread (libc.so.6 + 0x7ee58)
                                                   any1/wayvnc#4  0x0000007f9e217f9c thread_start (libc.so.6 + 0xe7f9c)

                                                   Stack trace of thread 2055:
                                                   #0  0x0000007f9e1ab6d4 __futex_abstimed_wait_common64 (libc.so.6 + 0x7b6d4)
                                                   any1/wayvnc#1  0x0000007f9e1ae210 __pthread_cond_wait_common (libc.so.6 + 0x7e210)
                                                   any1/wayvnc#2  0x0000007f9e4930cc dequeue_work (libaml.so.0 + 0x30cc)
                                                   any1/wayvnc#3  0x0000007f9e1aee58 start_thread (libc.so.6 + 0x7ee58)
                                                   any1/wayvnc#4  0x0000007f9e217f9c thread_start (libc.so.6 + 0xe7f9c)
                                                   ELF object binary architecture: AARCH64
Aug 08 16:58:47 camp-power systemd[1]: systemd-coredump@1-2065-0.service: Deactivated successfully.
Aug 08 16:58:48 camp-power sh[2027]: Segmentation fault (core dumped)
Aug 08 16:58:47 camp-power systemd[1]: systemd-coredump@1-2065-0.service: Consumed 1.206s CPU time.
Aug 08 16:58:47 camp-power systemd[1]: wayvnc.service: Main process exited, code=exited, status=139/n/a
Aug 08 16:58:47 camp-power systemd[1]: wayvnc.service: Failed with result 'exit-code'.
Aug 08 16:58:47 camp-power systemd[1]: Stopping wayvnc-control.service - VNC Control Service...
Aug 08 16:58:47 camp-power systemd[1]: wayvnc-control.service: Deactivated successfully.
Aug 08 16:58:47 camp-power systemd[1]: Stopped wayvnc-control.service - VNC Control Service.
Aug 08 16:58:47 camp-power systemd[1]: wayvnc.service: Scheduled restart job, restart counter is at 2.
Aug 08 16:58:47 camp-power systemd[1]: Stopped wayvnc.service - VNC Server.
Aug 08 16:58:47 camp-power systemd[1]: wayvnc-generate-keys.service - WayVNC Key Generation was skipped because no trigger condition checks were met.
Aug 08 16:58:47 camp-power systemd[1]: Starting wayvnc.service - VNC Server...
Aug 08 16:58:48 camp-power sh[2092]: DEBUG: ../src/server.c: 1939: Trying address: ::
Aug 08 16:58:48 camp-power sh[2092]: DEBUG: ../src/server.c: 1959: Successfully bound to address
Aug 08 16:58:48 camp-power sh[2092]: Info: Listening for connections on :::5900
Aug 08 16:58:48 camp-power sh[2092]: DEBUG: ../src/ctl-server.c: 809: Initializing wayvncctl socket: /tmp/wayvnc/wayvncctl.sock
Aug 08 16:58:48 camp-power sh[2092]: DEBUG: ../src/ctl-server.c: 778: Connecting to existing socket in case it's stale
Aug 08 16:58:48 camp-power sh[2092]: DEBUG: ../src/ctl-server.c: 785: Connect failed: Connection refused
Aug 08 16:58:48 camp-power sh[2092]: Warning: ../src/ctl-server.c: 788: Deleting stale control socket path "/tmp/wayvnc/wayvncctl.sock"
Aug 08 16:58:48 camp-power sh[2092]: DEBUG: ../src/ctl-server.c: 717: New connection
Aug 08 16:58:48 camp-power sh[2092]: Info: New control socket client connected: 0x556d444a50
Aug 08 16:58:48 camp-power sh[2092]: DEBUG: ../src/ctl-server.c: 307: << {"method":"version","params":{},"id":1}
Aug 08 16:58:48 camp-power sh[2092]: Info: Dispatching control client command 'version'
Aug 08 16:58:48 camp-power sh[2092]: Info: Enqueueing response: OK (0)
Aug 08 16:58:48 camp-power sh[2092]: DEBUG: ../src/ctl-server.c: 567: Response data: {"wayvnc": "0.9-dev", "neatvnc": "0.9-dev", "aml": "0.3.0"}
Aug 08 16:58:48 camp-power sh[2092]: DEBUG: ../src/ctl-server.c: 604: >> {"code":0,"id":1,"data":{"wayvnc":"0.9-dev","neatvnc":"0.9-dev","aml":"0.3.0"}}
Aug 08 16:58:48 camp-power sh[2092]: Info: Control socket client disconnected: 0x556d444a50
Aug 08 16:58:48 camp-power systemd[1]: Started wayvnc.service - VNC Server.
Aug 08 16:58:48 camp-power systemd[1]: Started wayvnc-control.service - VNC Control Service.
Aug 08 16:58:48 camp-power sh[2092]: DEBUG: ../src/ctl-server.c: 717: New connection
Aug 08 16:58:48 camp-power sh[2092]: Info: New control socket client connected: 0x556d446070
Aug 08 16:58:48 camp-power sh[2092]: DEBUG: ../src/ctl-server.c: 307: << {"method": "attach", "id": 0, "params": {"display": "/run/user/1000/wayland-1"}}
Aug 08 16:58:48 camp-power sh[2092]: Info: Dispatching control client command 'attach'
Aug 08 16:58:48 camp-power sh[2092]: DEBUG: ../src/main.c: 1612: Attaching to /run/user/1000/wayland-1
Aug 08 16:58:48 camp-power sh[2092]: DEBUG: ../src/ctl-server.c: 941: Enqueueing capture-changed event: {"output":"HDMI-A-2"}
Aug 08 16:58:48 camp-power sh[2092]: DEBUG: ../src/ctl-server.c: 968: Enqueued capture-changed event for 0 clients
Aug 08 16:58:48 camp-power sh[2092]: Info: Capturing output HDMI-A-2
Aug 08 16:58:48 camp-power sh[2092]: Info: >> NewTek 0x0000 (HDMI-A-2) 1024x600+0x0 Power:ON
Aug 08 16:58:48 camp-power sh[2092]: Info: Attached to /run/user/1000/wayland-1
Aug 08 16:58:48 camp-power sh[2092]: Info: Enqueueing response: OK (0)
Aug 08 16:58:48 camp-power sh[2092]: DEBUG: ../src/ctl-server.c: 567: Response data: (null)
Aug 08 16:58:48 camp-power sh[2092]: DEBUG: ../src/ctl-server.c: 604: >> {"code":0,"id":0}
Aug 08 16:58:48 camp-power sh[2092]: DEBUG: ../src/ctl-server.c: 307: << {"method": "event-receive", "id": 1}
Aug 08 16:58:48 camp-power sh[2092]: Info: Dispatching control client command 'event-receive'
Aug 08 16:58:48 camp-power sh[2092]: Info: Enqueueing response: OK (0)
Aug 08 16:58:48 camp-power sh[2092]: DEBUG: ../src/ctl-server.c: 567: Response data: (null)
Aug 08 16:58:48 camp-power sh[2092]: DEBUG: ../src/ctl-server.c: 604: >> {"code":0,"id":1}
Aug 08 16:58:49 camp-power sh[2092]: Info: New client connection from ::ffff:192.168.1.171: 0x556d44d780 (ref 1)
Aug 08 16:58:49 camp-power sh[2092]: DEBUG: ../src/server.c: 825: Client chose security type: 5
Aug 08 16:58:49 camp-power sh[2092]: Info: User "ihor" authenticated
Aug 08 16:58:49 camp-power sh[2092]: Info: Starting screen capture
Aug 08 16:58:49 camp-power sh[2092]: DEBUG: ../src/main.c: 1342: Client connected, new client count: 1
Aug 08 16:58:49 camp-power sh[2092]: DEBUG: ../src/ctl-server.c: 941: Enqueueing client-connected event: {"id":"1","address":"::","username":"ihor","seat":"default","connection_count":1}
Aug 08 16:58:49 camp-power sh[2092]: DEBUG: ../src/ctl-server.c: 968: Enqueued client-connected event for 1 clients
Aug 08 16:58:49 camp-power sh[2092]: DEBUG: ../src/server.c: 1079: Client 0x556d44d780 set encodings: zrle,trle,hextile,rre,raw,copyrect,cursor,desktop-size
Aug 08 16:58:49 camp-power sh[2092]: DEBUG: ../src/server.c: 993: Using color palette for client 0x556d44d780
Aug 08 16:58:49 camp-power sh[2092]: DEBUG: ../src/server.c: 1008: Client 0x556d44d780 chose pixel format: RGB222
Aug 08 16:58:49 camp-power sh[2092]: DEBUG: ../src/ctl-server.c: 604: >> {"method":"client-connected","params":{"id":"1","address":"::","username":"ihor","seat":"default","connection_count":1}}
Aug 08 16:58:49 camp-power sh[2092]: Info: Choosing zrle encoding for client 0x556d44d780
Aug 08 16:58:49 camp-power sh[2092]: DEBUG: ../src/server.c: 1079: Client 0x556d44d780 set encodings: raw,zrle,trle,hextile,rre,copyrect,cursor,desktop-size
Aug 08 16:58:49 camp-power sh[2092]: DEBUG: ../src/server.c: 1079: Client 0x556d44d780 set encodings: zrle,trle,hextile,rre,raw,copyrect,cursor,desktop-size
Aug 08 16:58:49 camp-power sh[2092]: Info: Client 0x556d44d780 (1) hung up
Aug 08 16:58:49 camp-power sh[2092]: Info: Closing client connection 0x556d44d780: ref 0
Aug 08 16:58:49 camp-power sh[2092]: DEBUG: ../src/main.c: 1290: Client disconnected, new client count: 0
Aug 08 16:58:49 camp-power sh[2092]: DEBUG: ../src/ctl-server.c: 380: Don't know how to convert sa_family 0 to string
Aug 08 16:58:49 camp-power sh[2092]: DEBUG: ../src/ctl-server.c: 941: Enqueueing client-disconnected event: {"id":"1","address":null,"username":"ihor","seat":"default","connection_count":0}
Aug 08 16:58:49 camp-power sh[2092]: DEBUG: ../src/ctl-server.c: 968: Enqueued client-disconnected event for 1 clients
Aug 08 16:58:49 camp-power sh[2092]: Info: Stopping screen capture
Aug 08 16:58:49 camp-power sh[2092]: DEBUG: ../src/ctl-server.c: 604: >> {"method":"client-disconnected","params":{"id":"1","address":null,"username":"ihor","seat":"default","connection_count":0}}
Aug 08 16:58:52 camp-power sh[2092]: Info: New client connection from ::ffff:192.168.1.171: 0x556d46fde0 (ref 1)
Aug 08 16:58:52 camp-power sh[2092]: DEBUG: ../src/server.c: 825: Client chose security type: 5
Aug 08 16:58:52 camp-power sh[2092]: Info: User "ihor" authenticated
Aug 08 16:58:52 camp-power sh[2092]: Info: Starting screen capture
Aug 08 16:58:52 camp-power sh[2092]: DEBUG: ../src/main.c: 1342: Client connected, new client count: 1
Aug 08 16:58:52 camp-power sh[2092]: DEBUG: ../src/ctl-server.c: 941: Enqueueing client-connected event: {"id":"2","address":"::","username":"ihor","seat":"default","connection_count":1}
Aug 08 16:58:52 camp-power sh[2092]: DEBUG: ../src/ctl-server.c: 968: Enqueued client-connected event for 1 clients
Aug 08 16:58:52 camp-power sh[2092]: DEBUG: ../src/server.c: 1079: Client 0x556d46fde0 set encodings: zrle,trle,hextile,rre,raw,copyrect,cursor,desktop-size
Aug 08 16:58:52 camp-power sh[2092]: DEBUG: ../src/server.c: 993: Using color palette for client 0x556d46fde0
Aug 08 16:58:52 camp-power sh[2092]: DEBUG: ../src/server.c: 1008: Client 0x556d46fde0 chose pixel format: RGB222
Aug 08 16:58:52 camp-power sh[2092]: Info: Choosing zrle encoding for client 0x556d46fde0
Aug 08 16:58:52 camp-power sh[2092]: DEBUG: ../src/ctl-server.c: 604: >> {"method":"client-connected","params":{"id":"2","address":"::","username":"ihor","seat":"default","connection_count":1}}
Aug 08 16:58:52 camp-power sh[2092]: DEBUG: ../src/server.c: 993: Using color palette for client 0x556d46fde0
Aug 08 16:58:52 camp-power sh[2092]: DEBUG: ../src/server.c: 1008: Client 0x556d46fde0 chose pixel format: XRGB8888
Aug 08 16:59:02 camp-power sshd[2111]: Accepted password for ihor from 192.168.1.171 port 55610 ssh2
Aug 08 16:59:02 camp-power sshd[2111]: pam_unix(sshd:session): session opened for user ihor(uid=1000) by (uid=0)
Aug 08 16:59:02 camp-power systemd-logind[581]: New session 4 of user ihor.
Aug 08 16:59:02 camp-power systemd[1]: Started session-4.scope - Session 4 of User ihor.
Aug 08 16:59:02 camp-power sshd[2111]: pam_env(sshd:session): deprecated reading of user environment enabled
Aug 08 16:59:50 camp-power sh[2092]: Info: Client 0x556d46fde0 (1) hung up
Aug 08 16:59:50 camp-power sh[2092]: Info: Closing client connection 0x556d46fde0: ref 0
Aug 08 16:59:50 camp-power sh[2092]: DEBUG: ../src/main.c: 1290: Client disconnected, new client count: 0
Aug 08 16:59:50 camp-power sh[2092]: DEBUG: ../src/ctl-server.c: 380: Don't know how to convert sa_family 0 to string
Aug 08 16:59:50 camp-power sh[2092]: DEBUG: ../src/ctl-server.c: 941: Enqueueing client-disconnected event: {"id":"2","address":null,"username":"ihor","seat":"default","connection_count":0}
Aug 08 16:59:50 camp-power sh[2092]: DEBUG: ../src/ctl-server.c: 968: Enqueued client-disconnected event for 1 clients
Aug 08 16:59:50 camp-power sh[2092]: Info: Stopping screen capture
Aug 08 16:59:50 camp-power sh[2092]: DEBUG: ../src/ctl-server.c: 604: >> {"method":"client-disconnected","params":{"id":"2","address":null,"username":"ihor","seat":"default","connection_count":0}}
Aug 08 16:59:54 camp-power sh[2092]: Info: New client connection from ::ffff:192.168.1.171: 0x556d46fde0 (ref 1)
Aug 08 16:59:54 camp-power sh[2092]: DEBUG: ../src/server.c: 825: Client chose security type: 5
Aug 08 16:59:57 camp-power sh[2092]: Info: User "ihor" authenticated
Aug 08 16:59:57 camp-power sh[2092]: Info: Starting screen capture
Aug 08 16:59:57 camp-power sh[2092]: DEBUG: ../src/main.c: 1342: Client connected, new client count: 1
Aug 08 16:59:57 camp-power sh[2092]: DEBUG: ../src/ctl-server.c: 941: Enqueueing client-connected event: {"id":"3","address":"::","username":"ihor","seat":"default","connection_count":1}
Aug 08 16:59:57 camp-power sh[2092]: DEBUG: ../src/ctl-server.c: 968: Enqueued client-connected event for 1 clients
Aug 08 16:59:57 camp-power sh[2092]: DEBUG: ../src/server.c: 1079: Client 0x556d46fde0 set encodings: zrle,trle,hextile,rre,raw,copyrect,cursor,desktop-size
Aug 08 16:59:57 camp-power sh[2092]: DEBUG: ../src/server.c: 993: Using color palette for client 0x556d46fde0
Aug 08 16:59:57 camp-power sh[2092]: DEBUG: ../src/server.c: 1008: Client 0x556d46fde0 chose pixel format: RGB222
Aug 08 16:59:57 camp-power sh[2092]: DEBUG: ../src/ctl-server.c: 604: >> {"method":"client-connected","params":{"id":"3","address":"::","username":"ihor","seat":"default","connection_count":1}}
Aug 08 16:59:57 camp-power sh[2092]: Info: Choosing zrle encoding for client 0x556d46fde0
Aug 08 16:59:57 camp-power sh[2092]: DEBUG: ../src/server.c: 993: Using color palette for client 0x556d46fde0
Aug 08 16:59:57 camp-power sh[2092]: DEBUG: ../src/server.c: 1008: Client 0x556d46fde0 chose pixel format: XRGB8888
Aug 08 16:59:57 camp-power sh[2092]: DEBUG: ../src/server.c: 1079: Client 0x556d46fde0 set encodings: trle,hextile,zrle,rre,raw,copyrect,cursor,desktop-size
noafterglow commented 1 month ago

Switching to ZRLE from ZRLE2 as preferred encoding solved the crash issue. Not sure if it solves it from raw install, but it does seem to prevent the crash now. So there appears to be an issue with realvnc using encoding ZRLE2 as preferred which crashes wayvnc probably during some form of negotiation.

any1 commented 1 month ago

RealVNC switches between encodings rather rapidly right after connecting. This is probably just a use-after-free in the raw encoder.

e14fc5ac801e43c5f44cadf5936a688d63f5be9a should fix it.