Closed sgalke closed 1 year ago
Perhaps similar to #108 ?
i dont think so. no crashes here, even no use of the remote rpi for a while... then trying to conect: refused (tiger- and real-vnc, no difference) :(( i have to login via ssh and re-enable vnc w/ raspi-config and besides the Warning message can connect with real-vnc or tiger-vnc.
This is happening here aswell. Every morning we have to re-enable the vnc interface using raspi-config.
@Jhutjens92 It looks like your problem might be different, because you're using X11 whereas @sgalke is using Wayland?
We have a new version of wayvnc waiting to be released - it is possible that this will fix the problem; otherwise it will need to be reported to the author of wayvnc.
We have a new version of wayvnc waiting to be released
Just to be sure, you're not waiting on me, are you? I released almost 4 weeks ago. Did you miss my email?
Warning: ../src/ctl-server.c: 703: Deleting stale control socket path "/run/user/1000/wayvncctl"
This happens if wayvnc did not exit cleanly from a previous run. It can happen as a result of a crash or because it was killed.
Same issue here on PI 4 and 5. Very frustrating. Sometimes takes multiple config change plus reboot, to get to work for a while, then repeat.
I am having the same or a very similar issue. I do not currently have a microHDMI adapter, so I was just going to use SSH to enable VNC in the meantime, but I have yet to get VNC to accept an incoming connection, and I've seen the Warning mentioned in the post and the screenshot shown in Jhutjens92's comment. I'm unsure what to do from here.
The new version of wayvnc should be in apt early next week - hopefully this will solve some of these issues.
I think that screen shot Jhutjens92 is mixing apples and oranges (WylandVNC vs. X11vnc) but perhaps points to part of the problem in the apparent state confusion.
Using ps -ef | grep VNC I see:
sudo -u glenn XDG_RUNTIME_DIR=/run/user/1000 WAYLAND_DISPLAY=wayland-1 wayvnc --render-cursor --keyboard=us is what you see only when you have just enabled the VNC interface in the Raspbery Pi Config GUI, but haven't yet rebooted.
wayvnc --render-cursor --keyboard=us is what you see (before or after reboot) when the service is actually running.
I also suspect there are two different failure mechanisms, one which is periodic in nature, and one which happens anytime the server crashes due to an error.
Various confusions, in the OS, over waylandVNC vs Xll VNC being active may also be playing a part?
Re a new version of wayvnc, I hope someone is stress testing, and including at 4K screen resolution. I suspect it is less stable at that resolution vs. 1920x1080, etc.
Now on wayvnc 0.7.1-1~bpo12+rpt2 (version updated yesterday). The same issue still exists.
Now on wayvnc 0.7.1-1~bpo12+rpt2 (version updated yesterday). The same issue still exists.
Good to know. I'm just doing everything I can via SSH for right now and just not using VNC at all.
all of this is what I was looking for to explain what happened to my Rasp Pi4B, I was frustrated because I thought I put something wrong or erased something important
The "Screen Blanking" setting seems to have an influence: when turned off, the VNC setting is retained, but when turned on, the error occurs after a while.
By the way, the "screen blanking" setting has no effect on the monitor: it is always on!
(bookworm 64-bit, wayland, RPi 4B with bluetooth keyboard & hdmi monitor)
Screen blanking is off by default here. Two systems pi 4b and pi 5. VNC error and disabling in raspberry pi config continues. This is after this week's updates to wayvnc and raspberry pi config.
It also happens to me when I unplug my HDMI cable.
rpi 4b, 4g ram, hdmi monitor 1920x1080. default bookworm, up 2 date Way to reproduce: connect via vnc with RealVnc 6.21.406 watch 2-3 seconds. disconnect. Repeat. sigsegv will appear, maybe at 6th try or 4th..ymmv
rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [INT], 8) = 0 rt_sigprocmask(SIG_SETMASK, [INT], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [INT], 8) = 0 recvmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\22\0\0\0\1\0\f\0\0\0\0\0\22\0\0\0\4\0\30\0\0\0\0\0\0\0\0\0\200\7\0\0"..., iov_len=1308}, {iov_base="", iov_len=2788}], msg_iovlen=2, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 64 sendmsg(11, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\0\4*\32\204+&\312\341nU\322\35\313\316\331j4\tT;[", iov_len=22}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 22 epoll_ctl(4, EPOLL_CTL_MOD, 11, {events=EPOLLIN, data={u32=2111292368, u64=367183512528}}) = 0 sendmsg(11, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base=" \0\260F\330cV\310FxU\200|\333eB\211\326\rk\202\232\201Y\250G\20?t\305@U"..., iov_len=1838421}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = -1 ECONNRESET (Connection reset by peer) rt_sigprocmask(SIG_SETMASK, [INT], NULL, 8) = 0 sendmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\22\0\0\0\1\0\10\0\10\0\0\0\0\0\24\0\23\0\0\0\1\0\0\0\f\0\0\0", iov_len=28}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, MSG_DONTWAIT|MSG_NOSIGNAL) = 28 epoll_pwait(4, [{events=EPOLLIN, data={u32=2111140704, u64=367183360864}}, {events=EPOLLIN|EPOLLHUP, data={u32=2111292368, u64=367183512528}}], 16, -1, NULL, 8) = 2 rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [INT], 8) = 0 rt_sigprocmask(SIG_SETMASK, [INT], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [INT], 8) = 0 rt_sigprocmask(SIG_SETMASK, [INT], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [INT], 8) = 0 read(6, "\1", 256) = 1 read(6, 0x7ff74c29b8, 256) = -1 EAGAIN (Resource temporarily unavailable) read(11, "", 8192) = 0 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x18} --- +++ killed by SIGSEGV +++ pi@raspberrypi:~ $
Thread 1 "wayvnc" received signal SIGSEGV, Segmentation fault. 0x0000007fb522d450 in ?? () from /lib/aarch64-linux-gnu/libneatvnc.so.0 (gdb) bt
at ../sysdeps/nptl/libc_start_call_main.h:58
fini=<optimized out>, rtld_fini=<optimized out>, stack_end=<optimized out>) at ../csu/libc-start.c:360
pi@raspberrypi:~ $ wayvnc -V wayvnc: 0.7.2 neatvnc: 0.7.1 aml: 0.3.0
pi@raspberrypi:~ $ apt list wayvnc -a Listing... Done wayvnc/stable,now 0.7.1-1~bpo12+rpt2 arm64 [installed,automatic]
sudo apt install wayvnc wayvnc is already the newest version (0.7.1-1~bpo12+rpt2).
That backtrace would be more useful with debug symbols.
somebody knows news about the problem ???
somebody knows news about the problem ???
Well, there's this: https://github.com/any1/wayvnc/pull/278
seems to be stable now 2023-Nov-27 after some system updates.
perhaps someone will close this issue
@sgalke you as the author of the issue can close it.
ok
previously enabled vnc server (wayvnc) disables itself after some time ...
re- enabling it via raspi-config shows:
Warning: ../src/ctl-server.c: 703: Deleting stale control socket path "/run/user/1000/wayvncctl"
bug?