Skip to content

[HELP (Not Launching/ Crashing)] #252

@t-lohse

Description

@t-lohse

Checklist

  • I have given details of my install including Distribution, Wayland/ XOrg, Parameters Used, echo $XAUTHORITY, etc.
  • I have provided logs showing any errors, if available (use DEBUG=1 zwift)
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of previous issue.

Describe the issue

I have a script to setup what I've found needed to be able to run Zwift on my system. However, when it launches, it stutters a ton. It only stops when I'm in-game, on a bike, so I have to press the 'Just watch'-button, and then get back to the screen to connect my equipment.

Is my way of setting up my system bad? My script:

echo "nvidia-ctk 1 step"
sudo nvidia-ctk runtime configure --runtime=docker
echo "restart docker step"
sudo systemctl restart docker
echo "nvidia-ctk 2 step"
sudo nvidia-ctk runtime configure --runtime=containerd
echo "restart containerd step"
sudo systemctl restart containerd
export ZWIFT_USERNAME={MY USERNAME}
export ZWIFT_PASSWORD={MY PASSWORD}
export ZWIFT_FG="true"
echo "starting"
VGA_DEVICE_FLAG="--runtime=nvidia --gpus=all" zwift

I have also tried with WINE_EXPERIMENTAL_WAYLAND=1, which makes it a little better, though not much, and I can't copy-paste so typing my password is a pain (other problem, I'm not automatically logged in).

This is of course not game-breaking issue, more like a hit on the UX.

logs from DEBUG=1:

+ [[ -f /home/lohse/.config/zwift/config ]]
+ [[ -f /home/lohse/.config/zwift/lohse-config ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ '' -eq 1 ]]
+ WINDOW_MANAGER=Other
+ IMAGE=docker.io/netbrain/zwift
+ VERSION=latest
+ NETWORKING=bridge
++ id -u
+ ZWIFT_UID=1000
++ id -g
+ ZWIFT_GID=1000
+ '[' -z '' ']'
++ command -v podman
+ '[' -x '' ']'
+ CONTAINER_TOOL=docker
+ '[' -n {MY USERNAME} ']'
+ '[' -z '{MY PASSWORD}' ']'
+ '[' docker == podman ']'
+ LOCAL_UID=1000
+ CONTAINER_UID=1000
+ CONTAINER_GID=1000
+ case "$XDG_SESSION_TYPE" in
+ WINDOW_MANAGER=Wayland
+ '[' Wayland = Wayland ']'
+ '[' -z '' ']'
+ WINDOW_MANAGER=XWayland
++ id -u
+ '[' 1000 -ne 1000 ']'
+ [[ ! -n '' ]]
++ curl -s https://raw.githubusercontent.com/netbrain/zwift/master/zwift.sh
++ sha256sum
++ awk '{print $1}'
+ REMOTE_SUM=5e1de63b038e59e1354011f3d66375e1cacebdeb58c576410ac8b1d4777419d9
++ sha256sum /usr/local/bin/zwift
++ awk '{print $1}'
+ THIS_SUM=5e1de63b038e59e1354011f3d66375e1cacebdeb58c576410ac8b1d4777419d9
+ '[' 5e1de63b038e59e1354011f3d66375e1cacebdeb58c576410ac8b1d4777419d9 = 5e1de63b038e59e1354011f3d66375e1cacebdeb58c576410ac8b1d4777419d9 ']'
+ echo 'You are running latest zwift.sh 👏'
You are running latest zwift.sh 👏
+ [[ ! -n '' ]]
+ docker pull docker.io/netbrain/zwift:latest
latest: Pulling from netbrain/zwift
Digest: sha256:65d50a4dd0f27d83658d9b14a729ff8b6e9df1731dbec5b4c1543e2b020a04ae
Status: Image is up to date for netbrain/zwift:latest
docker.io/netbrain/zwift:latest
+ GENERAL_FLAGS=(--rm --network "$NETWORKING" --name "zwift-$USER" --hostname "$HOSTNAME" -e DISPLAY="$DISPLAY" -e ZWIFT_UID="$CONTAINER_UID" -e ZWIFT_GID="$CONTAINER_GID" -e PULSE_SERVER="/run/user/$CONTAINER_UID/pulse/native" -e CONTAINER="$CONTAINER_TOOL" -v "zwift-$USER":/home/user/.wine/drive_c/users/user/Documents/Zwift -v "/run/user/$LOCAL_UID/pulse":"/run/user/$CONTAINER_UID/pulse")
+ [[ '' -eq 1 ]]
+ CONT_SEC_FLAG=(--security-opt label=type:container_runtime_t)
+ [[ -z --runtime=nvidia --gpus=all ]]
+ [[ -n unix:path=/run/user/1000/bus ]]
+ [[ unix:path=/run/user/1000/bus =~ ^unix:path=([^,]+) ]]
+ DBUS_UNIX_SOCKET=/run/user/1000/bus
+ [[ -n /run/user/1000/bus ]]
+ DBUS_CONFIG_FLAGS=(-e DBUS_SESSION_BUS_ADDRESS="${DBUS_SESSION_BUS_ADDRESS//$LOCAL_UID/$CONTAINER_UID}" -v "$DBUS_UNIX_SOCKET":"${DBUS_UNIX_SOCKET//$LOCAL_UID/$CONTAINER_UID}")
+ [[ true -eq 1 ]]
+ ZWIFT_FG_FLAG=(-d)
+ [[ -n '' ]]
+ '[' XWayland == Wayland ']'
+ '[' XWayland == XWayland ']'
+ '[' -z '' ']'
+ WM_FLAGS=(-v /tmp/.X11-unix:/tmp/.X11-unix)
+ '[' XWayland == XOrg ']'
+ '[' docker == podman ']'
+ [[ -n '' ]]
+ read -r -a CONTAINER_EXTRA_FLAGS
+ read -r -a ZWIFT_CONFIG_FLAG_ARR
+ read -r -a ZWIFT_USERNAME_FLAG_ARR
+ read -r -a ZWIFT_PASSWORD_SECRET_ARR
+ read -r -a ZWIFT_USER_CONFIG_FLAG_ARR
+ read -r -a ZWIFT_WORKOUT_VOL_ARR
+ read -r -a ZWIFT_ACTIVITY_VOL_ARR
+ read -r -a ZWIFT_LOG_VOL_ARR
+ read -r -a ZWIFT_SCREENSHOTS_VOL_ARR
+ read -r -a VGA_DEVICE_FLAG_ARR
+ POSITIONAL_ARGS=("$@")
+ CMD=("$CONTAINER_TOOL" run "${GENERAL_FLAGS[@]}" "${CONT_SEC_FLAG[@]}" "${ZWIFT_FG_FLAG[@]}" "${ZWIFT_CONFIG_FLAG_ARR[@]}" "${ZWIFT_USERNAME_FLAG_ARR[@]}" "${ZWIFT_PASSWORD_SECRET_ARR[@]}" "${ZWIFT_USER_CONFIG_FLAG_ARR[@]}" "${ZWIFT_WORKOUT_VOL_ARR[@]}" "${ZWIFT_ACTIVITY_VOL_ARR[@]}" "${ZWIFT_LOG_VOL_ARR[@]}" "${ZWIFT_SCREENSHOTS_VOL_ARR[@]}" "${ZWIFT_PROFILE_VOL_ARR[@]}" "${VGA_DEVICE_FLAG_ARR[@]}" "${DBUS_CONFIG_FLAGS[@]}" "${WM_FLAGS[@]}" "${CONTAINER_EXTRA_FLAGS[@]}" "${INTERACTIVE_FLAGS[@]}" "${POSITIONAL_ARGS[@]}" "$IMAGE:$VERSION")
+ [[ -n '' ]]
+ [[  -d  == * \-it * ]]
++ docker run --rm --network bridge --name zwift-lohse --hostname lohse-desk -e DISPLAY=:0 -e ZWIFT_UID=1000 -e ZWIFT_GID=1000 -e PULSE_SERVER=/run/user/1000/pulse/native -e CONTAINER=docker -v zwift-lohse:/home/user/.wine/drive_c/users/user/Documents/Zwift -v /run/user/1000/pulse:/run/user/1000/pulse --security-opt label=type:container_runtime_t -d --runtime=nvidia --gpus=all -e DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus -v /run/user/1000/bus:/run/user/1000/bus -v /tmp/.X11-unix:/tmp/.X11-unix docker.io/netbrain/zwift:latest
+ CONTAINER=7ab2dd4af0adae7ba36fb594de9280d74c76c08564228d643a3a8ba96e92f68c
+ RC=0
+ '[' 0 -ne 0 ']'
+ '[' -n 7ab2dd4af0adae7ba36fb594de9280d74c76c08564228d643a3a8ba96e92f68c ']'
++ command -v xhost
+ '[' -x '' ']'

Distribution Details

OS: Arch Linux x86_64
Kernel: Linux 6.18.5-arch1-1
Shell: zsh 5.9
Display (PHL 241B4): 1080x1920 in 24", 60 Hz [External]
Display (HPN3421): 2560x1440 in 27", 165 Hz [External]
Display (Acer K272HL): 1080x1920 in 27", 60 Hz [External]
WM: Sway 1.11 (Wayland)
CPU: AMD Ryzen 7 3800X (16) @ 4.67 GHz
GPU: NVIDIA GeForce RTX 2070 SUPER [Discrete]
Memory: 31.25 GiB

$XAUTHORITY not set

Reproduction steps

  1. Have Archlinux + Sway
  2. Have the same GPU and CPU
  3. idk what else to tell, run the script?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions