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.