https://bugs.winehq.org/show_bug.cgi?id=50289
Bug ID: 50289 Summary: winecfg is unable to create a window Product: Wine Version: 6.0-rc1 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: bvandermerwe@kbcat.com Distribution: ---
Here are two scenerios, one works the other does not.
Setup: Windows 10, docker for Windows.
Scenario 1: Works ================= Ubuntu 18.04, wine stable, using XFCE. (based on https://hub.docker.com/r/accetto/xubuntu-vnc)
Start, cmd docker pull accetto/xubuntu-vnc docker run -p 25901:5901 accetto/xubuntu-vnc
Now run tigerVNC from https://bintray.com/tigervnc/stable/download_file?file_path=vncviewer64-1.11... And connect to: (youripaddress):5901 The password is: headless
Now in the VNC viewer, in Linux, open a terminal (top left) and execute these commands: sudo dpkg --add-architecture i386 (password is headless) sudo apt update wget -qO- https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add - sudo apt install software-properties-common
Since this is Ubunutu 18.04, install wine as follows:
sudo apt-add-repository 'deb http://dl.winehq.org/wine-builds/ubuntu/ bionic main' wget -qO- https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_1... | sudo apt-key add - sudo sh -c 'echo "deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_1... ./" > /etc/apt/sources.list.d/obs.list' sudo apt update sudo apt-get install --install-recommends winehq-stable
wine --version sudo winecfg
And the winecfg views come up and all as expected. Everything works fine. Marvellous!
Now close VNC and stop this container.
Scenario 2: Does not work. WHY? =============================== Head over to https://hub.docker.com/r/accetto/xubuntu-vnc (the same docker image), and from the github location (https://github.com/accetto/xubuntu-vnc), download the DockerFile (save it as say e:\CL) and the src and hooks directories into e:\CL.
Note use notepad to edit the DockerFile and change line 17 to:
ARG BASETAG=20.04
Now in Windows click Start, cmd and enter these commands: e: cd \CL docker build -t "test2:Dockerfile" . docker run -p 25901:5901 test2:Dockerfile
Again connect with VNC. You see pretty much the same thing as before. So again use a terminal and type:
sudo dpkg --add-architecture i386 sudo apt update wget -qO- https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add - sudo apt install software-properties-common add: sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main' sudo apt update sudo apt-get install --install-recommends winehq-devel
Super, now again try this:
wine --version sudo winecfg
This time however, winecfg does not run, you get the output shown below.
It seems it cant create a window because it cant find a display driver.
WHY? Why do newer containers using the same setup not work? "export -p" show the same information on both containers. Both have DISPLAY=":1.0". Why why why? Anything else run udner wine also has the same problem.
I have both containers if there are extra diagnostics or settings anyone can suggest.
Maybe the newer ubunutu containers are missing something wine needs to detect the display? I don't know. This happens in newer versions of Ubuntu and various wine versions. Only the original version works.
headless@9916ba4a38f2:~$ sudo winecfg wine: created the configuration directory '/root/.wine' 0024:err:environ:run_wineboot boot event wait timed out 0024:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0) 0058:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0) No protocol specified 0050:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded. 0050:err:winediag:nodrv_CreateWindow The explorer process failed to start. 0050:err:ole:apartment_createwindowifneeded CreateWindow failed with error 183 0050:err:ole:apartment_createwindowifneeded CreateWindow failed with error 0 0050:err:ole:apartment_createwindowifneeded CreateWindow failed with error 14007 0050:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hr 0x800736b7 0050:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, hr 0x800736b7 0050:err:ole:apartment_get_local_server_stream Failed: 0x800736b7 0050:err:ole:start_rpcss Failed to open RpcSs service 0048:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded. 0048:err:winediag:nodrv_CreateWindow The explorer process failed to start. 0058:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded. 0058:err:winediag:nodrv_CreateWindow The explorer process failed to start. headless@9916ba4a38f2:~$ 002c:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded. 002c:err:winediag:nodrv_CreateWindow The explorer process failed to start. 0068:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded. 0068:err:winediag:nodrv_CreateWindow The explorer process failed to start. 0070:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded. 0070:err:winediag:nodrv_CreateWindow The explorer process failed to start. Could not find Wine Gecko. HTML rendering will be disabled. 00a4:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded. 00a4:err:winediag:nodrv_CreateWindow The explorer process failed to start. 00ac:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded. 00ac:err:winediag:nodrv_CreateWindow The explorer process failed to start. Could not find Wine Gecko. HTML rendering will be disabled. wine: configuration in L"/root/.wine" has been updated.
https://bugs.winehq.org/show_bug.cgi?id=50289
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com Summary|winecfg is unable to create |winecfg is unable to create |a window |a window inside Ubuntu | |20.04 Docker container
https://bugs.winehq.org/show_bug.cgi?id=50289
--- Comment #1 from Ben bvandermerwe@kbcat.com --- Does anyone know what wine needs to avoid "err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded." Please?
https://bugs.winehq.org/show_bug.cgi?id=50289
--- Comment #2 from Ben bvandermerwe@kbcat.com --- I googled this and tried a few more things. On the container where it does not work:
sudo rm ~/.wine (no such directory)
headless@9916ba4a38f2:~$ wine notepad wine: '/home/headless' is not owned by you, refusing to create a configuration directory there headless@9916ba4a38f2:~$ sudo wine notepad No protocol specified 0064:err:explorer:initialize_display_settings Failed to query current display settings for L"\\.\DISPLAY1". 0024:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded. 0024:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
headless@9916ba4a38f2:~$ echo $DISPLAY :1.0
https://bugs.winehq.org/show_bug.cgi?id=50289
--- Comment #3 from Ben bvandermerwe@kbcat.com --- headless@9916ba4a38f2:~$ xrandr Screen 0: minimum 32 x 32, current 1360 x 768, maximum 32768 x 32768 VNC-0 connected 1360x768+0+0 0mm x 0mm 1360x768 60.00*+ 1920x1200 60.00 1920x1080 60.00 1600x1200 60.00 1680x1050 60.00 1400x1050 60.00 1280x1024 60.00 1280x960 60.00 1280x800 60.00 1280x720 60.00 1024x768 60.00 800x600 60.00 640x480 60.00
headless@9916ba4a38f2:~$ glxinfo -B bash: glxinfo: command not found
headless@9916ba4a38f2:~$ inxi -SGxxx bash: inxi: command not found
https://bugs.winehq.org/show_bug.cgi?id=50289
alex.korchemniy@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alex.korchemniy@gmail.com
--- Comment #4 from alex.korchemniy@gmail.com --- This bug isn't just an issue with Docker. I have a ThinkPad with Intel/Nvidia card. When I use Intel graphics I cannot use Wine. Every command results in "nodrv_CreateWindow Application tried to create a window, but no driver could be loaded"
Is there a workaround to force Wine to use some other driver?
https://bugs.winehq.org/show_bug.cgi?id=50289
--- Comment #5 from alex.korchemniy@gmail.com --- The fix for me was to install mesa vulkan layers. Now I can run my terminal application.
https://bugs.winehq.org/show_bug.cgi?id=50289
--- Comment #6 from Ben bvandermerwe@kbcat.com --- (In reply to alex.korchemniy from comment #5)
The fix for me was to install mesa vulkan layers. Now I can run my terminal application.
What command did you use to isntall it please?
https://bugs.winehq.org/show_bug.cgi?id=50289
--- Comment #7 from alex.korchemniy@gmail.com --- After updating some packages it broke against, so I went for a more permanent solution: rebuild Wine using --without-vulkan --without-vkd3d. On Arch it's just a matter of modifying the PKGBUILD file.
https://bugs.winehq.org/show_bug.cgi?id=50289
Michael ZeroBeat@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ZeroBeat@gmx.de
--- Comment #8 from Michael ZeroBeat@gmx.de --- Just to be in the loop, I can confirm this issue (wine 6.5): Even doing such a simple thing like running $ winecfg after a fresh install (and removed $HOME/.wine) results in 00c8:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded. 00d0:err:winediag:nodrv_CreateWindow Unknown error (998).
Going back to wine 6.0.1 solved that issue. I haven't tried the versions between 6.0.1 and 6.5