bottlesdevs / Bottles

Run Windows software and games on Linux
https://usebottles.com
GNU General Public License v3.0
6.25k stars 261 forks source link

[Bug]: bottles UI fails to start but CLI works #3435

Open ram-nat opened 2 months ago

ram-nat commented 2 months ago

Describe the bug

After recent system updates., I can no longer launch the bottles UX or any bottles shortcut through xdg-open. It fails with the log messages below. Using flatpak and bottles CLI to launch the bottle works fine. So it looks like some strange interaction between the desktop environment and bottles UX here.

I found https://github.com/bottlesdevs/Bottles/issues/3133 which reports somewhat similar errors - my setup is similar as well - I have an Intel iGPU that's the GPU used by Wayland and an nVidia dGPU that is not used by the Linux machine (uses vfio drivers).

To Reproduce

Package

Flatpak from Flathub

Distribution

Kubuntu 24.04

Debugging Information

Official Package: true
Version: '51.13'
DE/WM: plasmawayland
Display:
    X.org: true
    X.org (port): :1
    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/lib/x86_64-linux-gnu/GL/vulkan/icd.d/nvidia_icd.json
            nvngx_path: /usr/lib/x86_64-linux-gnu/GL/nvidia-535-183-01/extra/nvidia/wine
        intel: &id001
            vendor: intel
            envs:
                DRI_PRIME: '1'
            icd: /usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/intel_icd.x86_64.json:/usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/intel_hasvk_icd.x86_64.json:/usr/lib/i386-linux-gnu/GL/vulkan/icd.d/intel_hasvk_icd.i686.json:/usr/lib/i386-linux-gnu/GL/vulkan/icd.d/intel_icd.i686.json
    prime:
        integrated: *id001
        discrete: *id002
Kernel:
    Type: Linux
    Version: 6.8.0-38-generic
Disk:
    Total: 33594740736
    Free: 33594568704
RAM:
    MemTotal: 62.6GiB
    MemAvailable: 52.3GiB
Bottles_envs: null

Troubleshooting Logs

Jul 14 18:04:26 MachineName plasmashell[2383]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
Jul 14 18:04:44 MachineName plasmashell[2383]: QString::arg: 2 argument(s) missing in com.usebottles.bottles
Jul 14 18:04:44 MachineName systemd[2113]: Started app-com.usebottles.bottles-50ed97f4ab03401d8700372a8cf8217c.scope - Bottles.
Jul 14 18:04:44 MachineName systemd[2113]: Started app-flatpak-com.usebottles.bottles-36891.scope.
Jul 14 18:04:45 MachineName xdg-desktop-portal-kde[3330]: xdp-kde-settings: Group  "org.freedesktop.appearance"  doesn't exist
Jul 14 18:04:45 MachineName xdg-desktop-portal-kde[3330]: xdp-kde-settings: Namespace  "org.gnome.desktop.a11y.interface"  is not supported
Jul 14 18:04:45 MachineName plasmashell[36904]: 18:04:45 (INFO) Launching with URI: None 
Jul 14 18:04:45 MachineName plasmashell[36904]: 18:04:45 (INFO) [Activate] request received. 
Jul 14 18:04:45 MachineName xdg-desktop-por[6661]: A backend call failed: No such method 'CreateMonitor' in interface 'org.freedesktop.impl.portal.Inhibit' at object path '/org/freedesktop/portal/desktop' (signature 'ooss')
Jul 14 18:04:45 MachineName xdg-desktop-por[6661]: Failed to close session implementation: GDBus.Error:org.freedesktop.DBus.Error.UnknownObject: No such object path '/org/freedesktop/portal/desktop/session/1_324/gtk804168690'
Jul 14 18:04:45 MachineName plasmashell[36904]: 18:04:45 (INFO) Bottles Started! 
Jul 14 18:04:45 MachineName bottles[36904]: Failed to realize renderer of type 'GskNglRenderer' for surface 'GdkWaylandToplevel': Failed to create EGL display
Jul 14 18:04:45 MachineName bottles[36904]: Failed to realize renderer of type 'GskGLRenderer' for surface 'GdkWaylandToplevel': Failed to create EGL display
Jul 14 18:04:46 MachineName kernel: bottles[36904]: segfault at 40 ip 00007d6916065b6f sp 00007ffd9aa27790 error 4 in libvulkan.so.1.3.261[7d691602d000+45000] likely on CPU 9 (core 16, socket 0)
Jul 14 18:04:46 MachineName kernel: Code: 48 8b 47 08 4c 8b 40 08 48 89 e5 41 80 b8 13 14 00 00 00 74 46 48 85 d2 0f 84 8b 00 00 00 48 8b 80 10 01 00 00 48 85 c0 74 51 <48> 8b 4e 40 4c 8b 47 18 48 85 c9 74 1c 0f b6 7f 10 48 8b 0c f9 48

Additional context

No response

ankit-thealchemist commented 1 month ago

@ram-nat Same happeing to me also. I am able to launch the bottles, it automatically closes after sometime with both cli and ui. Same configuration with same kernel version.

Please let me know how you invoking the cli, I am using flatpak run com.usebottles.bottles

ram-nat commented 1 month ago

I am using the same command - here's what I'm using to run an existing bottle and it seems to work fine for me:

flatpak run --command=bottles-cli com.usebottles.bottles run -b AmazonMusic -p "Amazon Music"