netbrain / zwift

Easily zwift on linux
The Unlicense
238 stars 27 forks source link

trying to fix latest version 1.61 #81

Closed netbrain closed 5 months ago

netbrain commented 5 months ago

refactored to use alpine image and wine 9.0

quietvoid commented 5 months ago

Going back to bookworm packages would downgrade drivers for some users who needed them for newer GPUs. It might be better to just use the Debian unstable Docker image.

netbrain commented 5 months ago

you are probably right.

netbrain commented 5 months ago

Merging, let's see if this creates a shitshow of issues the coming days. :hot_face:

cmuench commented 5 months ago

@netbrain I just updated and it seems to work well on Fedora 39 KDE with Wayland and Nvidia GPU. Before it was only working with X on my machine without any issue. So it's a improvement. Thanks for the update.

cmuench commented 5 months ago

@netbrain It's working with nouveau nvidia driver but not with vulkan. I just saw that the new image is now based on alpine and the vulkan related packages are not installed anymore. IMHO this packages are potential candidates vulkan-tools, vulkan-loader, krb5.

quietvoid commented 5 months ago

Why do you need Vulkan exactly? Zwift is OpenGL.

cmuench commented 5 months ago

Why do you need Vulkan exactly? Zwift is OpenGL.

Good questions. In my container log I got this messages:

0190:err:ole:CoGetContextToken apartment not initialised
0178:err:combase:RoGetActivationFactory Failed to find library for L"Windows.Foundation.Diagnostics.AsyncCausalityTracer"
01b0:err:vulkan:wine_vk_init Failed to load libvulkan.so.1.

So I thought we need vulkan in the container.

cmuench commented 5 months ago

I see tht the Zwift version in the container is 1.62.0. Maybe a change between 1.60.0 and 1.62.0? Version 1.60.0 still runs fine.

netbrain commented 5 months ago

Yeah probably did not get all the required libraries for all uses of this image. Could you try to add the missing libraries?

You can do this by changing the docker container directly.

If these succeeds, please add the missing libraries to the Dockerfile 🤞👍

cmuench commented 5 months ago

@netbrain Just created an own docker image with the libs included but it's not running.

I just investigated the issue a but. Could be that the nvidia driver has issues to run with musl libc which is used by alpine instead of libc.

cmuench commented 5 months ago

@netbrain interesting behaviour ... If I install the libs manually in the container as proposed by you, the error messages are then gone but the game runs still slow not using the nvidia driver.

netbrain commented 5 months ago

@netbrain interesting behaviour ... If I install the libs manually in the container as proposed by you, the error messages are then gone but the game runs still slow not using the nvidia driver.

Crap. 🫣

cmuench commented 5 months ago

@netbrain interesting behaviour ... If I install the libs manually in the container as proposed by you, the error messages are then gone but the game runs still slow not using the nvidia driver.

Crap. 🫣

Crap is all the stuff we have to deal with Nvidia cards :-) I need the nvidia card only for all the CUDA AI stuff. With AMD cards I had nearly no issues.

cmuench commented 5 months ago

For reference: https://github.com/NVIDIA/nvidia-installer/issues/10

netbrain commented 5 months ago

Guess we'll need a separate solution for nvidia in that case. Anyone have any recommendations for container os to use that is lightweight and easy to use when it comes to installing wine , gfx drivers etc?

Might just revert back to debian or use ubuntu or even arch. Or maybe we should provide multiple zwift images, alpine/debian/+++ ? :thinking:

netbrain commented 5 months ago

@cmuench you mind testing out #84 and see if this works on your nvidia card? :crossed_fingers: