Open aleduc-cyb opened 1 day ago
01e4:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
This usually means that it's having trouble accessing your gpu. I take it you have a intel or amd gpu?
@sHedC do you have any suggestions?
Thanks for the feedback! GPU is Intel Iris Xe.
Try running glxgears like mentioned here
https://github.com/netbrain/zwift/issues/88#issuecomment-2094692406
If glxgears isn't working then you probably have a driver issue
I got Error: couldn't open display :0
with glxgears.
Tried to reinstall the drivers but did not manage to have significant change.
I will continue debugging but if you have some further idea let me know :)
Does glxgears work on the host? And not inside the container?
On Sun, Sep 22, 2024, 15:53 Alexis DUCREUX @.***> wrote:
I got Error: couldn't open display :0 with glxgears. Tried to reinstall the drivers but did not manage to have significant change. I will continue debugging but if you have some further idea let me know :)
— Reply to this email directly, view it on GitHub https://github.com/netbrain/zwift/issues/161#issuecomment-2366800082, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACTNC6IYJRPB4LRW7UZYETZX3DW5AVCNFSM6AAAAABOUJX7AWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRWHAYDAMBYGI . You are receiving this because you commented.Message ID: @.***>
Its a bit weird can you check that you see /dev/dri/renderD*, if so try running xhost + first then run glxgears. Also can you see what DISPLAY holds in a terminal.
I wonder if glxgears is not running that there is a problem with missing mesa drivers?
I can see /dev/dri/renderD128 on the host. Running xhost before does not seem to have an effect. No problem with glxgears on the host. DISPLAY is :0 on the host and within the container.
Might be the container that's missing your particular driver. Do you know what package that provides it?
On Sun, Sep 22, 2024, 16:22 Alexis DUCREUX @.***> wrote:
I can see /dev/dri/renderD128 on the host. Running xhost before does not seem to have an effect. No problem with glxgears on the host. DISPLAY is :0 on the host and within the container.
— Reply to this email directly, view it on GitHub https://github.com/netbrain/zwift/issues/161#issuecomment-2366811383, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACTNC4UWGVZ7SUOFY5DL73ZX3HDVAVCNFSM6AAAAABOUJX7AWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRWHAYTCMZYGM . You are receiving this because you commented.Message ID: @.***>
Ok reading through seems like all is ok, I think the errors at the end are quite often there but need to check as been a while since I looked.
I don't have an INTEL chip so can't run any tests only have AMD/ NVIDIA.
Just one thing to try that I can think of can you run xhost + first then run zwift in the same terminal. as you are running docker i don't see any other permission error but also don't see any xhost permission failures so it a bit strange.
I will also check the XAuthority volume, it is passing it through to the user alexis not user but that could be right as I can't remember now so will have a look at that.
Might be the container that's missing your particular driver. Do you know what package that provides it? … On Sun, Sep 22, 2024, 16:22 Alexis DUCREUX @.> wrote: I can see /dev/dri/renderD128 on the host. Running xhost before does not seem to have an effect. No problem with glxgears on the host. DISPLAY is :0 on the host and within the container. — Reply to this email directly, view it on GitHub <#161 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACTNC4UWGVZ7SUOFY5DL73ZX3HDVAVCNFSM6AAAAABOUJX7AWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRWHAYTCMZYGM . You are receiving this because you commented.Message ID: @.>
That is a valid point it would rely on the dri and mesa drivers I think. But I don;t think there is any difference between the AMD or Intel mesa/ dri drivers its "mesa-dri-drivers" I will check that out.
From what I understand, the package is intel-i915-dkms (my host version is 1.23.10.72.231129.74+i110-1)
Might be the container that's missing your particular driver. Do you know what package that provides it? … On Sun, Sep 22, 2024, 16:22 Alexis DUCREUX @.> wrote: I can see /dev/dri/renderD128 on the host. Running xhost before does not seem to have an effect. No problem with glxgears on the host. DISPLAY is :0 on the host and within the container. — Reply to this email directly, view it on GitHub <#161 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACTNC4UWGVZ7SUOFY5DL73ZX3HDVAVCNFSM6AAAAABOUJX7AWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRWHAYTCMZYGM . You are receiving this because you commented.Message ID: @.>
Checklist
DEBUG=1 zwift
)Describe the issue
After running
zwift
container starts but fails within 10 seconds.Debug logs:
zwift
[[ -f /home/alexis/.config/zwift/config ]]
[[ -f /home/alexis/.config/zwift/alexis-config ]]
[[ ! -z '' ]]
WINDOW_MANAGER=Other
IMAGE=docker.io/netbrain/zwift
VERSION=latest
NETWORKING=bridge ++ id -u
ZWIFT_UID=1000 ++ id -g
ZWIFT_GID=1000
'[' '!' ']' ++ command -v podman
'[' -x '' ']'
CONTAINER_TOOL=docker
'[' docker == podman ']'
LOCAL_UID=1000
CONTAINER_UID=1000
CONTAINER_GID=1000
case "$XDG_SESSION_TYPE" in
WINDOW_MANAGER=XOrg
'[' XOrg = Wayland ']'
[[ ! -n '' ]] ++ curl -s https://raw.githubusercontent.com/netbrain/zwift/master/zwift.sh ++ sha256sum ++ awk '{print $1}'
REMOTE_SUM=732988328e5b86a1174a828a9915f225b024b235d625867a8d2fc092dc09b76f ++ sha256sum /usr/local/bin/zwift ++ awk '{print $1}'
THIS_SUM=732988328e5b86a1174a828a9915f225b024b235d625867a8d2fc092dc09b76f
'[' 732988328e5b86a1174a828a9915f225b024b235d625867a8d2fc092dc09b76f = 732988328e5b86a1174a828a9915f225b024b235d625867a8d2fc092dc09b76f ']'
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:77f20d4be47a17f76841dfd498e9f9b7699e9a7a87de87c5e64af1a91511d4dc Status: Image is up to date for netbrain/zwift:latest docker.io/netbrain/zwift:latest
GENERAL_FLAGS=(-d --rm --privileged --network $NETWORKING --name zwift-$USER --security-opt label=disable --hostname $HOSTNAME -e DISPLAY=$DISPLAY -e ZWIFT_UID=$CONTAINER_UID -e ZWIFT_GID=$CONTAINER_GID -e PULSE_SERVER=/run/user/$CONTAINER_UID/pulse/native -v zwift-$USER:/home/user/.wine/drive_c/users/user/Documents/Zwift -v /run/user/$LOCAL_UID/pulse:/run/user/$CONTAINER_UID/pulse)
[[ -f /proc/driver/nvidia/version ]]
VGA_DEVICE_FLAG=--device=/dev/dri:/dev/dri
[[ -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=$(echo $DBUS_SESSION_BUS_ADDRESS | sed 's/'$LOCAL_UID'/'$CONTAINER_UID'/') -v $DBUS_UNIX_SOCKET:$(echo $DBUS_UNIX_SOCKET | sed 's/'$LOCAL_UID'/'$CONTAINER_UID'/')) ++ echo unix:path=/run/user/1000/bus ++ sed s/1000/1000/ ++ echo /run/user/1000/bus ++ sed s/1000/1000/
'[' XOrg == Wayland ']'
'[' XOrg == XWayland ']'
'[' XOrg == XOrg ']'
'[' -z /home/alexis/.Xauthority ']'
WM_FLAGS=(-e XAUTHORITY=$(echo $XAUTHORITY | sed 's/'$LOCAL_UID'/'$CONTAINER_UID'/') -v /tmp/.X11-unix:/tmp/.X11-unix -v $XAUTHORITY:$(echo $XAUTHORITY | sed 's/'$LOCAL_UID'/'$CONTAINER_UID'/')) ++ echo /home/alexis/.Xauthority ++ sed s/1000/1000/ ++ echo /home/alexis/.Xauthority ++ sed s/1000/1000/
'[' XOrg == XOrg ']'
unset WINE_EXPERIMENTAL_WAYLAND
'[' docker == podman ']' ++ docker run -d --rm --privileged --network bridge --name zwift-alexis --security-opt label=disable --hostname -e DISPLAY=:0 -e ZWIFT_UID=1000 -e ZWIFT_GID=1000 -e PULSE_SERVER=/run/user/1000/pulse/native -v zwift-alexis:/home/user/.wine/drive_c/users/user/Documents/Zwift -v /run/user/1000/pulse:/run/user/1000/pulse --device=/dev/dri:/dev/dri -e DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus -v /run/user/1000/bus:/run/user/1000/bus -e XAUTHORITY=/home/alexis/.Xauthority -v /tmp/.X11-unix:/tmp/.X11-unix -v /home/alexis/.Xauthority:/home/alexis/.Xauthority docker.io/netbrain/zwift:latest
CONTAINER=58207193a7a1d369b2c37ef79987a5b4efce06e252b6b76ba7182709e399e319
'[' 0 -ne 0 ']' ++ command -v xhost
'[' -x /usr/bin/xhost ']' ++ id -u
'[' 1000 -ne 1000 ']'
Container logs
[[ -f /.dockerenv ]]
CONTAINER=docker
'[' '!' -z ']'
[[ docker == \d\o\c\k\e\r ]] ++ getent passwd user ++ cut -d: -f6
ZWIFT_USER_HOME=/home/user
ZWIFT_HOME='/home/user/.wine/drive_c/Program Files (x86)/Zwift'
mkdir -p '/home/user/.wine/drive_c/Program Files (x86)/Zwift'
cd '/home/user/.wine/drive_c/Program Files (x86)/Zwift' ++ id -u user
USER_UID=1000 ++ id -g user
USER_GID=1000
'[' 1000 -eq 1000 ']'
'[' 1000 -ne 1000 ']' ZWIFT_UID is not set or not a number: '1000' ZWIFT_GID is not set or not a number: ''1000'
echo 'ZWIFT_UID is not set or not a number: '\''1000'\'''
'[' 1000 -eq 1000 ']'
'[' 1000 -ne 1000 ']'
echo 'ZWIFT_GID is not set or not a number: '\'''\''1000'\'''
'[' '!' -z ']'
'[' '' = update ']' ++ ls -A .
'[' '!' 'ANT_DLL.dll APR2007_xinput_x64.cab APR2007_xinput_x86.cab BleWin10Lib.dll BleWin10Lib_fallback.dll CloseLauncher.exe DSETUP.dll DXSETUP.exe Feb2010_X3DAudio_x64.cab Feb2010_X3DAudio_x86.cab Jun2010_XAudio_x64.cab Jun2010_XAudio_x86.cab Launcher_ver_cur.xml Patcher.dll VC_redist.x64.exe WebView2Loader.dll Webview2Setup.exe Windows ANT Dongle Driver ZwiftApp.exe ZwiftHelper.exe ZwiftLauncher.exe ZwiftLauncher.exe.config ZwiftWindowsCrashHandler.exe Zwift_1.0.135195_7180b684_manifest.xml Zwift_ver_cur.135195.xml Zwift_ver_cur_filename.txt assets bink2w64.dll data dotnet-v4.7.2-installer.exe dsetup32.dll dxupdate.cab unins000.dat unins000.exe' ']'
chown -R 1000:1000 /home/user/.wine/drive_c/users/user/Documents/Zwift
gosu user:user /bin/run_zwift.sh '' starting zwift...
ZWIFT_HOME='/home/user/.wine/drive_c/Program Files (x86)/Zwift'
'[' '!' -d '/home/user/.wine/drive_c/Program Files (x86)/Zwift' ']'
cd '/home/user/.wine/drive_c/Program Files (x86)/Zwift'
echo 'starting zwift...'
wine start ZwiftLauncher.exe SilentLaunch error: XDG_RUNTIME_DIR is invalid or not set in the environment. ++ winedbg --command 'info proc' ++ grep -P ZwiftLauncher.exe ++ grep -oP '^\s\K.+?(?=\s)'
LAUNCHER_PID_HEX=00000180
LAUNCHER_PID=384
[[ ! -z '' ]]
wine start /exec /bin/runfromprocess-rs.exe 384 ZwiftApp.exe 019c:err:ole:CoGetContextToken apartment not initialised
sleep 3 0184:err:combase:RoGetActivationFactory Failed to find library for L"Windows.Foundation.Diagnostics.AsyncCausalityTracer" 01e4:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded. 01e4:err:winediag:nodrv_CreateWindow L"The explorer process failed to start." 0184:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded. 0184:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."
I saw the XDG_RUNTIME_DIR error and tried setting it up to my current environment variable but the errors at the end are still there. Tried with and without external display.
Thanks a lot for your help :)
Distribution Details
loginctl show-session 1
Id=1 User=1000 Name=alexis Timestamp=Sat 2024-09-21 16:37:39 CEST TimestampMonotonic=5001466 VTNr=1 Seat=seat0 Display=:0 Remote=no Service=sddm-autologin Desktop=KDE Scope=session-1.scope Leader=1513 Audit=1 Type=x11 Class=user Active=yes State=active IdleHint=no IdleSinceHint=0 IdleSinceHintMonotonic=0 LockedHint=noReproduction steps
zwift
command