You are not logged in.

#1 2023-10-30 12:56:33

D3vil0p3r
Member
Registered: 2022-11-05
Posts: 205

TigerVNC - xinit: connection to X server lost

I'm trying to run TigerVNC on my Arch Linux environment with XFCE but when I run it, it starts for some seconds with black screen and then closes.

The logs say:

Using desktop session xfce

New 'DESKTOP-LV4580H:1 (athena)' desktop is DESKTOP-LV4580H:1

Starting desktop session xfce

_XSERVTransmkdir: Mode of /tmp/.X11-unix should be set to 1777

Xvnc TigerVNC 1.13.1 - built Aug 10 2023 01:23:35
Copyright (C) 1999-2022 TigerVNC Team and many others (see README.rst)
See https://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12101006


Mon Oct 30 13:44:24 2023
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on all interface(s), port 5901
 vncext:      created VNC server for screen 0
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Could not resolve keysym XF86CameraAccessEnable
> Warning:          Could not resolve keysym XF86CameraAccessDisable
> Warning:          Could not resolve keysym XF86CameraAccessToggle
> Warning:          Could not resolve keysym XF86NextElement
> Warning:          Could not resolve keysym XF86PreviousElement
> Warning:          Could not resolve keysym XF86AutopilotEngageToggle
> Warning:          Could not resolve keysym XF86MarkWaypoint
> Warning:          Could not resolve keysym XF86Sos
> Warning:          Could not resolve keysym XF86NavChart
> Warning:          Could not resolve keysym XF86FishingChart
> Warning:          Could not resolve keysym XF86SingleRangeRadar
> Warning:          Could not resolve keysym XF86DualRangeRadar
> Warning:          Could not resolve keysym XF86RadarOverlay
> Warning:          Could not resolve keysym XF86TraditionalSonar
> Warning:          Could not resolve keysym XF86ClearvuSonar
> Warning:          Could not resolve keysym XF86SidevuSonar
> Warning:          Could not resolve keysym XF86NavInfo
Errors from xkbcomp are not fatal to the X server
[mi] mieq: warning: overriding existing handler (nil) with 0x55a93184e010 for event 2
[mi] mieq: warning: overriding existing handler (nil) with 0x55a93184e010 for event 3
xinit: XFree86_VT property unexpectedly has 0 items instead of 1
Running X session wrapper
Loading profile from /etc/profile
Loading xinit script /etc/X11/xinit/xinitrc.d/40-libcanberra-gtk-module.sh
Loading xinit script /etc/X11/xinit/xinitrc.d/50-systemd-user.sh
Loading xinit script /etc/X11/xinit/xinitrc.d/90xbrlapi
X session wrapper complete, running session xfce4-session

Mon Oct 30 13:44:25 2023
 Connections: accepted: 127.0.0.1::32798
 SConnection: Client needs protocol version 3.8
 SConnection: Client requests security type VeNCrypt(19)
 SVeNCrypt:   Client requests security type TLSVnc (258)
 VNCSConnST:  Server default pixel format depth 24 (32bpp) little-endian rgb888

(xfce4-session:736): Gdk-CRITICAL **: 13:44:25.501: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed
 ComparingUpdateTracker: 0 pixels in / 0 pixels out
 ComparingUpdateTracker: (1:-nan ratio)
:X connection to :0 broken (explicit kill or server shutdown).
_IceTransmkdir: ERROR: euid != 0,directory /tmp/.ICE-unix will not be created.
/usr/bin/iceauth:  creating new authority file /run/user/1000/ICEauthority
gpg-agent: a gpg-agent is already running - not starting a new one
xinit: connection to X server lost

waiting for X server to shut down  VNCSConnST:  closing 127.0.0.1::32798: Server shutdown
 EncodeManager: Framebuffer updates: 1
 EncodeManager:   Tight:
 EncodeManager:     Solid: 1 rects, 1.3271 Mpixels
 EncodeManager:            16 B (1:331777 ratio)
 EncodeManager:   Total: 1 rects, 1.3271 Mpixels
 EncodeManager:          16 B (1:331777 ratio)
 ComparingUpdateTracker: 0 pixels in / 0 pixels out
 ComparingUpdateTracker: (1:-nan ratio)

In /etc/X11/tigervnc I have the following Xsession file:

#!/bin/sh
#
# Wrapper to run around X sessions.
# Based on lightdm
#

echo "Running X session wrapper"

# Load profile
for file in "/etc/profile" "$HOME/.profile" "/etc/xprofile" "$HOME/.xprofile"; do
    if [ -f "$file" ]; then
        echo "Loading profile from $file";
        . "$file"
    fi
done

# Load resources
for file in "/etc/X11/Xresources" "$HOME/.Xresources"; do
    if [ -f "$file" ]; then
        echo "Loading resource: $file"
        xrdb -merge "$file"
    fi
done

# Load keymaps
for file in "/etc/X11/Xkbmap" "$HOME/.Xkbmap"; do
    if [ -f "$file" ]; then
        echo "Loading keymap: $file"
        setxkbmap `cat "$file"`
        XKB_IN_USE=yes
    fi
done

# Load xmodmap if not using XKB
if [ -z "$XKB_IN_USE" ]; then
    for file in "/etc/X11/Xmodmap" "$HOME/.Xmodmap"; do
        if [ -f "$file" ]; then
           echo "Loading modmap: $file"
           xmodmap "$file"
        fi
    done
fi

unset XKB_IN_USE

# Run all system xinitrc shell scripts
xinitdir="/etc/X11/xinit/xinitrc.d"
if [ -d "$xinitdir" ]; then
    for script in $xinitdir/*; do
        echo "Loading xinit script $script"
        if [ -x "$script" -a ! -d "$script" ]; then
            . "$script"
        fi
    done
fi

# Run user xsession shell script
script="$HOME/.xsession"
if [ -x "$script" -a ! -d "$script" ]; then
    echo "Loading xsession script $script"
    . "$script"
fi

echo "X session wrapper complete, running session $@"

exec $@

This exec $@ executes the Exec=startxfce4 that is in /usr/share/xsessions/xfce.desktop.

How can I fix it?

Offline

#2 2023-10-30 13:24:31

D3vil0p3r
Member
Registered: 2022-11-05
Posts: 205

Re: TigerVNC - xinit: connection to X server lost

A further information. When I run "sudo systemctl status vncserver@:1.service", It seems that the service starts and stops:

○ vncserver@:1.service - Remote desktop service (VNC)
     Loaded: loaded (/usr/lib/systemd/system/vncserver@.service; disabled; preset: disabled)
     Active: inactive (dead)

Oct 30 13:44:24 DESKTOP-LV4580H systemd[1]: Starting Remote desktop service (VNC)...
Oct 30 13:44:24 DESKTOP-LV4580H systemd[1]: Started Remote desktop service (VNC).
Oct 30 13:44:25 DESKTOP-LV4580H systemd[1]: vncserver@:1.service: Deactivated successfully.

Last edited by D3vil0p3r (2023-10-30 13:24:54)

Offline

Board footer

Powered by FluxBB