Closed MausKaffee34767 closed 2 weeks ago
Hi @MausKaffee34767,
I think it's arguable whether that's a crash when the is no backtrace, the verbose output is there by default. To me it looks like you do not have Wine installed but are running sandwine without --no-wine
. Before I start patching things in to change the situation, I would like to ask what output and behavior you would expect from sandwine as a user with no Wine installed starting sandwine.
Best, Sebastian
Hello,
I have exactly the same problem even though I do have wine installed:
$ wineserver -version
Wine 9.0
I am running Debian testing with Wine stable from winehq.
What am I missing?
Thanks
@cadrian interesting! I'm starting to think that Wine could be installed in your system at a location that is not covered by the "usual system locations" that are mounted with bwrap. Could you share the output of which -a wineserver
and lsb_release -a
?
Here it is:
$ which -a wineserver
/usr/bin/wineserver
/bin/wineserver
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux trixie/sid
Release: n/a
Codename: trixie
Note that /bin is a symlink to /usr/bin, hence the first output.
Apart from that, I did nothing fancy except installing the package from winehq instead of the native package from debian.
@cadrian I guess the question is where the rest of the Wine files live. I would check the file listing of their Debian packages but https://dl.winehq.org/wine-builds/debian/dists/trixie/main/binary-amd64/ shows many different versions. Which of those debs do you have installed? E.g. if it turns out that most of the package lives in say /opt
that would be the reason it's not already working.
Here is the list of installed wine packages:
$ sudo apt list --installed | grep wine
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
carla-bridge-wine32/focal,focal,now 5:2.6.0~git20240921-1kxstudio1 all [installed]
carla-bridge-wine64/focal,focal,now 5:2.6.0~git20240921-1kxstudio1 all [installed]
carla-vst-wine/focal,now 5:2.6.0~git20240921-1kxstudio1 amd64 [installed]
wine-stable-amd64/testing,now 9.0.0.0~trixie-1 amd64 [installed]
wine-stable-i386/testing,now 9.0.0.0~trixie-1 i386 [installed]
wine-stable/testing,now 9.0.0.0~trixie-1 amd64 [installed]
wineasio-amd64/focal,now 5:1.2.0b-4kxstudio1 amd64 [installed]
wineasio-data/focal,focal,now 5:1.2.0b-4kxstudio1 all [installed]
wineasio-i386/focal,now 5:1.2.0b-4kxstudio1 amd64 [installed]
wineasio/focal,now 5:1.2.0b-4kxstudio1 amd64 [installed]
winehq-stable/testing,now 9.0.0.0~trixie-1 amd64 [installed]
And yes, I see wine directories in /opt
Yep. Maybe the explanation:
$ ls -l /usr/bin/wineserver
lrwxrwxrwx 1 root root 31 18 janv. 2024 /usr/bin/wineserver -> /opt/wine-stable/bin/wineserver
@cadrian could you try add --pass /opt/wine-stable:ro
during invocation of sandwine and report back how it went?
It worked! Thank you.
@cadrian perfect, thanks for trying and the update! There may be ways to make it work out of the box with Wine upstream Debian packages. I will need to sleep over it.
It worked! Thank you.
@cadrian could you check if pull request #68 makes things work out of the box for you (i.e. without passing --pass /opt/wine-stable:ro
explicitly)?
@hartwork It would be my pleasure, for sure.
I checked out the PR. But how do I build or run locally? There is not any build file or launcher I can recognize :'(
Thanks
@cadrian here's two ways that levarage Python virtualenvs:
# cd "$(mktemp -d)"
# python3 -m venv venv
# source venv/bin/activate
# git clone --depth 1 --branch issue-55-support-wine-upstream-debian-packages https://github.com/hartwork/sandwine
# pip3 install -e sandwine/
# sandwine --help
# cd "$(mktemp -d)"
# python3 -m venv venv
# source venv/bin/activate
# pip3 install git+https://github.com/hartwork/sandwine@issue-55-support-wine-upstream-debian-packages
# sandwine --help
@cadrian did it work out?
@cadrian I was now able to test on Debian myself and all of winehq-devel
, winehq-staging
and winehq-stable
now worked out of the box on Debian bookworm. And that made me merge.
@cadrian …and release 4.3.0 is out now with that new feature.
Sorry I could not answer earlier. Real life got in the way… I'll try as soon as I can. Thanks for your work.
If i try to run sandwine it immediately crashes!
Log: