Repository navigation
Closed
Labels
Description
Describe the bug
Flatpak 67.5
Creating a new bottle consistently fails at the wineboot step with ERROR: Wine prefix initialization failed, about 5 seconds after creation starts, with no further detail in the UI. This happens with every available runner (Soda 11.0-10 and built-in sys-wine-11.0), for both the Application and Gaming environments, and persists after a complete purge and reinstall of the Flatpak.
Running the same wineboot command manually inside the Bottles sandbox, on a fresh WINEPREFIX, succeeds in ~5.8 s with exit code 0
To Reproduce
- Install Bottles 67.5 from Flathub, complete first-run setup (Soda 11.0-10 downloaded).
- Library → + → New Bottle → name it → Environment: Gaming (fails identically with Application).
- Click Create.
- After ~5 s: "Wine prefix initialization failed", no bottle appears.
- Same result with runner sys-wine-11.0.
Package
Flatpak from Flathub
Distribution
Nobara 44 (Fedora-based), kernel 7.2.11-200.nobara.fc44.x86_64, KDE Plasma (Wayland session), NVIDIA driver 595.104.02, RTX GPU.
Debugging Information
Official Package: true
Version: '67.5'
DE/WM: /usr/share/wayland-sessions/plasma.desktop
Display:
X.org: true
X.org (port): :0
Wayland: true
Graphics:
vendors:
nvidia: &id002
vendor: nvidia
envs:
__NV_PRIME_RENDER_OFFLOAD: '1'
__GLX_VENDOR_LIBRARY_NAME: nvidia
__VK_LAYER_NV_optimus: NVIDIA_only
icd: /usr/share/vulkan/icd.d/nvidia_icd.json
nvngx_path: /usr/lib/x86_64-linux-gnu/GL/nvidia-595-104-02/lib/nvidia/wine
amd: &id001
vendor: amd
envs:
DRI_PRIME: '1'
icd: /usr/share/vulkan/icd.d/radeon_icd.x86_64.json:/usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/radeon_icd.x86_64.json:/usr/lib/i386-linux-gnu/GL/vulkan/icd.d/radeon_icd.i686.json
prime:
integrated: *id001
discrete: *id002
Vulkan: true
Kernel:
Type: Linux
Version: 7.2.11-200.nobara.fc44.x86_64
Disk:
Total: 16345575424
Free: 16345374720
RAM:
MemTotal: 30.4GiB
MemAvailable: 21.9GiB
Bottles_envs: nullTroubleshooting Logs
22:00:39 (INFO) Generating bottle configuration…
22:00:39 (INFO) Using Wine Runtime tool -- send_status(-i)
22:00:39 (INFO) Executing command: ~/.var/app/com.usebottles.bottles/data/bottles/runners/soda-11.0-10/bin/wine wineboot -i /nogui
22:00:44 (ERROR) Wine prefix initialization failed.Additional context
- The ntsync: up and running. line is printed by wineserver on startup (Nobara's kernel ships the ntsync driver; Soda is Wine 11-based). Disabling ntsync did not change the outcome, so ntsync appears not to be the cause.
- Prefix directory is at the default location, on btrfs; disk space and RAM are fine.
- The failure is identical across two different runners, which points to the creation pipeline rather than a specific runner build.
- Superficially similar to [Bug]: Wine prefix initialization failed #4699 ("Wine prefix initialization failed" at creation), but that issue was caused by the McSoda (macOS) runner appearing on Linux installs and was fixed in 66.8. Here the Linux Soda runner is used and runs fine manually, and the built-in sys-wine also fails, so this is a different failure mode.
- Happy to run further tests or provide additional logs if useful.
Activity
fix: handle startup and imported bottle regressions
mirkobrombin commentedon Nov 4, 2026
Wineboot now keeps the session display, and bottle creation reports its failure status instead of hiding it behind the file wait: 4a3611d
Please retry with the latest cpak. If creation still fails, share the new error and the runner version.
aumombelli commentedon Nov 6, 2026
Retested on 67.6 (Flathub): bottle creation now works with default settings and the Gaming environment (Soda 11.0-10 and system Wine 11.0).
However, creation still fails when "Dedicated sandbox" is enabled:
Failed to initialize the Wine prefix. Command exited with status 1.: instant failure, no wineserver output.I traced this one to a host Flatpak bug. Reproducing the backend's
flatpak-spawninvocation manually (same options assandbox.py:--sandbox --watch-bus --directory=… --sandbox-expose-path=… --sandbox-expose-path-ro=/ … --sandbox-flag=…) gives:error: --env-fd: Not an open file descriptor: 13(exit 1, instantly)Each option alone works, the failure appears with the full set (several
--sandbox-expose-path-ro+--directory). This matches flatpak#6785: an fd-remapping collision in the Flatpak portal when sandbox exposes are involved, seems fixed in Flatpak 1.18.2 (1.18.3 additionally fixes subsandbox startup). My host is Flatpak 1.18.0 (Nobara 44) and cannot update for now apparently.mirkobrombin commentedon Nov 17, 2026
Thanks for testing. The original creation failure is fixed in 67.6. The remaining
--env-fderror with Dedicated Sandbox comes from the host Flatpak portal; the upstream fix is flatpak/flatpak#6785. Please update the host Flatpak when your distribution provides the fix. Closing the original Bottles failure.