Bottles icon indicating copy to clipboard operation
Bottles copied to clipboard

[Bug]: Can't launch graphical wine applications

Open needlesslygrim opened this issue 1 year ago • 14 comments

Describe the bug

Two errors, trying to launch explorer.exe results in a 0104:err:esync:esync_init Failed to open esync shared memory file; make sure no stale wineserver instances are running without WINEESYNC.

~~Trying to launch a graphical installer through the wine command line results in a nothing happening because now I can only get the first error.~~

I now get this error

011c:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded

To Reproduce

  1. Try to open explorer.exe
  2. Nothing happens

Package

Flatpak from Flathub

Distribution

ARch Linux

Troubleshooting Logs

Version: 2022.8.28-brescia-2
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/lib/x86_64-linux-gnu/GL/vulkan/icd.d/nvidia_icd.json:/usr/lib/i386-linux-gnu/GL/vulkan/icd.d/nvidia_icd.json
        amd: &id001
            vendor: amd
            envs:
                DRI_PRIME: '1'
            icd: /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
Kernel:
    Type: Linux
    Version: 5.19.7-zen2-1-zen
Distro:
    Name: GNOME
    Version: '"42 (Flatpak runtime)"'
Disk:
    Total: 8041373696
    Free: 8041218048
RAM:
    MemTotal: 15.0GiB
    MemAvailable: 7.4GiB
Bottles_envs: null

Display Protocol

Wayland

Display Backend used by Bottles

Wayland

Additional context

No response

needlesslygrim avatar Sep 14 '22 07:09 needlesslygrim

Try issuing a flatpak update to update your flatpak drivers

mirkobrombin avatar Sep 14 '22 13:09 mirkobrombin

Tried that, getting the same error

21:45:37 (INFO) Using Wine Explorer -- launch 
esync: up and running.
wine: Using setpriority to control niceness in the [-10,10] range
002c:err:wineboot:process_run_key Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -r" (2).
[2022-09-14 21:45:40.689] [MANGOHUD] [info] [config.cpp:112] skipping config: '/home/erickth/.var/app/com.usebottles.bottles/config/MangoHud/wine-explorer.conf' [ not found ]
[2022-09-14 21:45:40.689] [MANGOHUD] [info] [config.cpp:112] skipping config: '/home/erickth/.var/app/com.usebottles.bottles/data/bottles/runners/soda-7.0-2/bin/MangoHud.conf' [ not found ]
[2022-09-14 21:45:40.689] [MANGOHUD] [info] [config.cpp:112] skipping config: '/home/erickth/.var/app/com.usebottles.bottles/config/MangoHud/wine64-preloader.conf' [ not found ]
[2022-09-14 21:45:40.689] [MANGOHUD] [info] [config.cpp:117] parsing config: '/home/erickth/.var/app/com.usebottles.bottles/config/MangoHud/MangoHud.conf'
sh: line 1: glxinfo: command not found
00cc:err:ole:create_server class {9ba05972-f6a8-11cf-a442-00a0c90a8f39} not registered
00cc:err:ole:com_get_class_object no class object {9ba05972-f6a8-11cf-a442-00a0c90a8f39} could be created for context 0x4
00cc:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
00cc:err:winediag:nodrv_CreateWindow The explorer process failed to start.

needlesslygrim avatar Sep 14 '22 13:09 needlesslygrim

What's the output of nvidia-smi?

mirkobrombin avatar Sep 14 '22 16:09 mirkobrombin

Thu Sep 15 08:40:56 2022       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.65.01    Driver Version: 515.65.01    CUDA Version: 11.7     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   42C    P5    N/A /  N/A |      0MiB /  8192MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

The GPU is working for Steam games, and other applications such as glxgears, so I don't think that's the issue.

needlesslygrim avatar Sep 15 '22 00:09 needlesslygrim

I can't run vkcube actually, get the following error

vkcube: ../main.c:709: VkFormat choose_surface_format(struct vkcube *): Assertion `format != VK_FORMAT_UNDEFINED' failed.
/usr/bin/prime-run: line 2: 24541 Aborted                 (core dumped) __NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia "$@"

Realised that I had set the wine renderer to vulkan, set it back and it still doesn't work so that's not it.

needlesslygrim avatar Sep 15 '22 00:09 needlesslygrim

Back on X, vkcube now works but still nothing in Bottles.

needlesslygrim avatar Sep 15 '22 01:09 needlesslygrim

Just tested on Arch Linux with same drivers and it works. There might be another problem

mirkobrombin avatar Sep 15 '22 21:09 mirkobrombin

Just tested on Arch Linux with same drivers and it works. There might be another problem

What are the specs of that machine, is it a.laptop?

needlesslygrim avatar Sep 15 '22 23:09 needlesslygrim

An optimus laptop amd+nvidia

mirkobrombin avatar Sep 16 '22 11:09 mirkobrombin

An optimus laptop amd+nvidia

Interesting, same setup here. Are you using optimus-manager and the proprietary nvidia drivers: nvidia, nvidia-lts or nvidia-dkms?

needlesslygrim avatar Sep 17 '22 10:09 needlesslygrim

I'm currently on ubuntu with Nvidia 515.65.01 on hybrid

mirkobrombin avatar Sep 17 '22 13:09 mirkobrombin

I'm currently on ubuntu with Nvidia 515.65.01 on hybrid

Well, that might be the difference then, since Ubuntu has (maybe) better optimus support. You might have to try on Arch with the same setup as me to reproduce it: nvidia-dkms, optimus-manager-git, linux-zen and X.

needlesslygrim avatar Sep 18 '22 04:09 needlesslygrim

I tested on Arch at the time of writing.

mirkobrombin avatar Sep 19 '22 15:09 mirkobrombin

Damn, don't know what the issue is then. I'll try Steam games quickly

needlesslygrim avatar Sep 20 '22 02:09 needlesslygrim

Steam games are working on Wayland, I don't think they were on X though. I can run them with and without prime-run and everything works.

needlesslygrim avatar Sep 23 '22 01:09 needlesslygrim

Must be something to do with bottles or flatpak

needlesslygrim avatar Sep 23 '22 01:09 needlesslygrim

Same issue here! I use Steam on flatpak, things work just fine but not with Bottle. The Synchronization toggle doesn't work once I click on Esync.

fb87 avatar Oct 12 '22 10:10 fb87