Skip to content

[HELP (Not Launching/ Crashing)] #247

@nikifaets

Description

@nikifaets

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

Zwift crashes just when the music starts. This is my first time running Zwift from this docker image. There is blank screen for 10-20 secs, then the music starts and the window closes at the same moment. No error logs. I run DEBUG=1 zwift.

+ [[ -f /home/nikifaets/.config/zwift/config ]]
+ [[ -f /home/nikifaets/.config/zwift/nikifaets-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 '' ']'
+ '[' 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:bed27d1c78cb11fcad06e9f9884232ad4e6a8ff04005b56dd689eac33fc8baf4
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 '' ]]
+ [[ -f /proc/driver/nvidia/version ]]
+ [[ docker == podman ]]
+ VGA_DEVICE_FLAG=--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}")
+ [[ '' -eq 1 ]]
+ ZWIFT_FG_FLAG=(-d)
+ [[ -n '' ]]
+ '[' XWayland == Wayland ']'
+ '[' XWayland == XWayland ']'
+ '[' -z /run/user/1000/.mutter-Xwaylandauth.V2ZMF3 ']'
+ WM_FLAGS=(-e XAUTHORITY="${XAUTHORITY//$LOCAL_UID/$CONTAINER_UID}" -v /tmp/.X11-unix:/tmp/.X11-unix -v "$XAUTHORITY":"${XAUTHORITY//$LOCAL_UID/$CONTAINER_UID}")
+ '[' 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-nikifaets --hostname nikifaets -e DISPLAY=:0 -e ZWIFT_UID=1000 -e ZWIFT_GID=1000 -e PULSE_SERVER=/run/user/1000/pulse/native -e CONTAINER=docker -v zwift-nikifaets:/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 --gpus=all -e DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus -v /run/user/1000/bus:/run/user/1000/bus -e XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.V2ZMF3 -v /tmp/.X11-unix:/tmp/.X11-unix -v /run/user/1000/.mutter-Xwaylandauth.V2ZMF3:/run/user/1000/.mutter-Xwaylandauth.V2ZMF3 docker.io/netbrain/zwift:latest
+ CONTAINER=cf09c7588a8ceacea41b67b7e72d28cf338a9594e8416b539cb218400a343bfc
+ RC=0
+ '[' 0 -ne 0 ']'
+ '[' -n cf09c7588a8ceacea41b67b7e72d28cf338a9594e8416b539cb218400a343bfc ']'
++ command -v xhost
+ '[' -x /usr/bin/xhost ']'
+ '[' -z '' ']'
++ docker inspect '--format={{ .Config.Hostname }}' cf09c7588a8ceacea41b67b7e72d28cf338a9594e8416b539cb218400a343bfc
+ xhost +local:nikifaets
non-network local connections being added to access control list

Distribution Details

  • Manjaro Linux, latest kernel;
  • Wayland;
  • Nividia 3060 Ti
  • $XAUTHORITY: /run/user/1000/.mutter-Xwaylandauth.V2ZMF3

Reproduction steps

  1. Follow installation instructions as in the README.
  2. Run zwift with zwift.

...

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