Bottles icon indicating copy to clipboard operation
Bottles copied to clipboard

Flatpak not self contained

Open robertosw opened this issue 3 months ago • 4 comments

I've marked this issue as feedback, since I am not sure this is a bug in bottles.

No Matter how I tried to install bottles, I had the same issue during setup: It fails to execute wine (/app/bin/wine)

  • Open SUSE Leap 16
  • SE Linux:
    • temporarily disabled (sudo setenforce 0)
    • just to be sure: sudo setsebool -P selinuxuser_execmod 1 (https://github.com/bottlesdevs/Bottles/issues/3326)

Outputs are originally in german, so the translated outputs might not be exactly as they would be on a system set to english.


Fresh Download of bottles' flatpak:

$ file /var/lib/flatpak/app/com.usebottles.bottles/current/active/files/bin/wine
/var/lib/flatpak/app/com.usebottles.bottles/current/active/files/bin/wine: ELF 32-bit LSB pie executable, Intel i386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, BuildID[sha1]=4124e815770b2886ddd137f42f7a827a37863110, for GNU/Linux 3.2.0, stripped

$ ldd /var/lib/flatpak/app/com.usebottles.bottles/current/active/files/bin/wine
    program is not dynamically linked

I suspect that ldd and file conflict, because ldd cannot correctly "read" a 32bit / i386 file on a 64bit system.. So I checked inside the flatpak sandbox:

$ flatpak run --command=sh com.usebottles.bottles
[com.usebottles.bottles] $ ldd /app/bin/wine
/usr/bin/ldd: Zeile 159: /lib/ld-linux.so.2: Binary file cannot be executed: error in program file format
ldd: terminated with unknown return code (126)

lets check the interpreter from the file output:

$ flatpak run --command=sh com.usebottles.bottles

[com.usebottles.bottles] $ file /lib/ld-linux.so.2 
/lib/ld-linux.so.2: symbolic link to i386-linux-gnu/ld-linux.so.2

[com.usebottles.bottles] $ ldd /lib/i386-linux-gnu/ld-linux.so.2 
/usr/bin/ldd: Zeile 159: /lib/ld-linux.so.2: Binary file cannot be executed: error in program file format
ldd: terminated with unknown return code (126)

The necessary runtimes are installed though:

$ flatpak list --runtime | grep -i i386
i386    org.freedesktop.Platform.Compat.i386            25.08   system
i386    org.freedesktop.Platform.codecs_extra.i386              25.08-extra     system

The error I get when trying to setup bottles after a fresh install:

$ flatpak run com.usebottles.bottles
11:47:51 (INFO) Launching with URI: None 
11:47:51 (INFO) [Activate] request received. 
11:47:51 (ERROR) Data file not found. Creating new one. 
11:47:51 (INFO) Bottles Started! 
11:47:51 (INFO) Performing Bottles checks… 
11:47:51 (INFO) Runners path doesn't exist, creating now. 
11:47:51 (INFO) Runtimes path doesn't exist, creating now. 
11:47:51 (INFO) WineBridge path doesn't exist, creating now. 
11:47:51 (INFO) Bottles path doesn't exist, creating now. 
11:47:51 (INFO) Dxvk path doesn't exist, creating now. 
11:47:51 (INFO) Vkd3d path doesn't exist, creating now. 
11:47:51 (INFO) Nvapi path doesn't exist, creating now. 
11:47:51 (INFO) Templates path doesn't exist, creating now. 
11:47:51 (INFO) Temp path doesn't exist, creating now. 
11:47:51 (INFO) LatencyFleX path doesn't exist, creating now. 
/bin/sh: Zeile 1: /app/bin/wine: Binärdatei kann nicht ausgeführt werden: Fehler im Format der Programmdatei
11:47:51 (INFO) Runners found:
         - sys-
 
11:47:51 (INFO) Catalog installers loaded 
11:47:51 (WARNING) Library file not found, creating new one 
11:47:51 (INFO) Library saved 
11:47:51 (INFO) Catalog dependencies loaded 
11:47:51 (INFO) Catalog components loaded

robertosw avatar Nov 18 '25 10:11 robertosw

I want to add: bottles normally launched just fine and even created bottles without errors in the gui, but applications would never launch. This time, even the setup failed:

$ flatpak run com.usebottles.bottles
11:47:51 (INFO) Launching with URI: None 
11:47:51 (INFO) [Activate] request received. 
11:47:51 (ERROR) Data file not found. Creating new one. 
11:47:51 (INFO) Bottles Started! 
11:47:51 (INFO) Performing Bottles checks… 
11:47:51 (INFO) Runners path doesn't exist, creating now. 
11:47:51 (INFO) Runtimes path doesn't exist, creating now. 
11:47:51 (INFO) WineBridge path doesn't exist, creating now. 
11:47:51 (INFO) Bottles path doesn't exist, creating now. 
11:47:51 (INFO) Dxvk path doesn't exist, creating now. 
11:47:51 (INFO) Vkd3d path doesn't exist, creating now. 
11:47:51 (INFO) Nvapi path doesn't exist, creating now. 
11:47:51 (INFO) Templates path doesn't exist, creating now. 
11:47:51 (INFO) Temp path doesn't exist, creating now. 
11:47:51 (INFO) LatencyFleX path doesn't exist, creating now. 
/bin/sh: Zeile 1: /app/bin/wine: Binärdatei kann nicht ausgeführt werden: Fehler im Format der Programmdatei
11:47:51 (INFO) Runners found:
         - sys-
 
11:47:51 (INFO) Catalog installers loaded 
11:47:51 (WARNING) Library file not found, creating new one 
11:47:51 (INFO) Library saved 
11:47:51 (INFO) Catalog dependencies loaded 
11:47:51 (INFO) Catalog components loaded 
11:48:33 (INFO) Performing Bottles checks… 
11:48:33 (WARNING) No dxvk found. 
11:48:33 (INFO) Installing component: [dxvk-2.7.1]. 
dxvk-2.7.1.tar.gz (100%) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ (9.8MiB/9.8MiB - 3.7MiB)

11:48:36 (INFO) Renaming [dxvk-2.7.1.tar.gz] to [dxvk-2.7.1.tar.gz]. 
11:48:36 (INFO) Dxvks found:
         - dxvk-2.7.1
 
11:48:36 (INFO) Component installed: dxvk dxvk-2.7.1 
11:48:36 (WARNING) No vkd3d found. 
11:48:36 (INFO) Installing component: [vkd3d-proton-2.14.1]. 
vkd3d-proton-2.14.1.tar.gz (100%) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ (2.8MiB/2.8MiB - 3.6MiB)

11:48:37 (INFO) Renaming [vkd3d-proton-2.14.1.tar.gz] to [vkd3d-proton-2.14.1.tar.gz]. 
11:48:37 (INFO) Vkd3ds found:
         - vkd3d-proton-2.14.1
 
11:48:37 (INFO) Component installed: vkd3d vkd3d-proton-2.14.1 
11:48:37 (WARNING) No nvapi found. 
11:48:38 (INFO) Installing component: [dxvk-nvapi-v0.9.0]. 
11:48:38 (WARNING) Failed to download [https://github.com/bottlesdevs/components/releases/download/dxvk-nvapi-v0.9.0/dxvk-nvapi-v0.9.0.tar.gz] with code: 404 != 200 
11:48:38 (WARNING) No latencyflex found. 
11:48:38 (INFO) Installing component: [latencyflex-v0.1.1]. 
latencyflex-v0.1.1.tar.xz (100%) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ (372.0KiB/372.0KiB - 2.2MiB)

11:48:38 (INFO) Renaming [latencyflex-v0.1.1.tar.xz] to [latencyflex-v0.1.1.tar.xz]. 
11:48:38 (INFO) Component installed: latencyflex latencyflex-v0.1.1 
11:48:38 (WARNING) No WineBridge found. 
11:48:38 (INFO) Installing component: [winebridge-1.1.0]. 
WineBridge-eb78a75.tar.xz (100%) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ (3.3MiB/3.3MiB - 3.6MiB)

11:48:40 (INFO) Renaming [WineBridge-eb78a75.tar.xz] to [WineBridge-eb78a75.tar.xz]. 
11:48:40 (INFO) Component installed: winebridge winebridge-1.1.0 
/bin/sh: Zeile 1: /app/bin/wine: Binärdatei kann nicht ausgeführt werden: Fehler im Format der Programmdatei
11:48:40 (INFO) Runners found:
         - sys-
 
11:48:40 (WARNING) No managed runners found. 
11:48:40 (INFO) Installing component: [soda-9.0-1]. 
soda-9.0-1-x86_64.tar.xz (100%) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ (61.6MiB/61.6MiB - 3.8MiB)

11:48:57 (INFO) Renaming [soda-9.0-1-x86_64.tar.xz] to [soda-9.0-1-x86_64.tar.xz]. 
**
Gtk:ERROR:../gtk/gtkwidget.c:4023:gtk_widget_ensure_allocate_on_children: assertion failed: (!priv->resize_queued)
Bail out! Gtk:ERROR:../gtk/gtkwidget.c:4023:gtk_widget_ensure_allocate_on_children: assertion failed: (!priv->resize_queued)

robertosw avatar Nov 18 '25 10:11 robertosw

Forgot to mention: I did not have wine installed per system package

robertosw avatar Nov 20 '25 07:11 robertosw

I tried to install wine itself and found out that open suse leap 16 has dropped 32bit support. After following this guide on how to install wine with wow64 and enabling runtime support for 32bit apps, bottles now works. The only errors I get are 00e0:err:xrandr:xrandr14_get_adapters Failed to get adapters. Most Applications install and launch successfully. The ones that do not install correctly report issues with wine's mono, so thats not the fault of bottles I'd suppose

Maybe adding a check whether the system has 32bit support with a gui message would be useful

robertosw avatar Nov 20 '25 09:11 robertosw

I got the same issue here. Allthough after retrying often enough, it runs eventually.

Software Information:

  • Firmware Version: P1.80
  • OS Name: Garuda Linux
  • GNOME Version: 49
  • Windowing System: Wayland
  • Kernel Version: Linux 6.17.9-zen1-1-zen

HidingInEmptySpace avatar Dec 08 '25 21:12 HidingInEmptySpace