nodrv_CreateWindow Application tried to create a window, but no driver could be loaded

Questions about Wine on Linux
Locked
anwine
Newbie
Newbie
Posts: 2
Joined: Mon Jul 04, 2022 12:42 pm

nodrv_CreateWindow Application tried to create a window, but no driver could be loaded

Post by anwine »

I have installed Wine on a remote system using Ubuntu 18.04. My use case is to run a simple Windows application. I'm using Wine 7.0.
I get the following error when I run any wine command including `wineconsole`:
0050:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0050:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
0050:err:systray:initialize_systray Could not create tray window
00fc:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
00fc:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.

What I've tried so far:

1.

Code: Select all

$echo $DISPLAY 
was initially empty
I tried

Code: Select all

export DISPLAY=:1
export DISPLAY=:0
. The same error pops up.

2.
I tried installing x11vnc and Xvfb to see if the issue was with forwarding outputs over SSH, but that didn't work either
$ wineconsole
0050:fixme:imm:ImeSetActiveContext (0x37eb0, 0): stub
0050:fixme:imm:ImmReleaseContext (0000000000010020, 0000000000037EB0): stub
Failed to read: session.screen0.titlebar.left
Setting default value
Failed to read: session.screen0.titlebar.right
Setting default value
0108:fixme:imm:ImeSetActiveContext (0x31ab0, 1): stub
0108:fixme:imm:ImmReleaseContext (0000000000020046, 0000000000031AB0): stub
$ lspci | grep VGA
00:0f.0 VGA compatible controller: VMware SVGA II Adapter
I've browsed various online forums and tried smaller suggested fixes like rolling back to an older version, nothing worked.
To clarify, I need to use this windows app via command line. I'm not on a GUI version of Ubuntu.
I'd appreciate some help!
mivanchev
Level 2
Level 2
Posts: 14
Joined: Sat Jun 25, 2022 5:13 am

Re: nodrv_CreateWindow Application tried to create a window, but no driver could be loaded

Post by mivanchev »

Have you run winecfg to create a wine prefix? Wine needs that to run and winecfg is a GUI application. I suspect that might be the issue here. One hack might be to install Xvfb and let wine use that. You'll also need something to simulate clicks and make screenshots.
anwine
Newbie
Newbie
Posts: 2
Joined: Mon Jul 04, 2022 12:42 pm

Re: nodrv_CreateWindow Application tried to create a window, but no driver could be loaded

Post by anwine »

Yes, I've tried winecfg. Same error unfortunately. Using Xvfb gives me weird errors like:
0108:fixme:imm:ImmReleaseContext (000000000001005E, 000000000003C900): stub
0050:fixme:imm:ImeSetActiveContext (0x37ec0, 0): stub
0050:fixme:imm:ImmReleaseContext (0000000000010020, 0000000000037EC0): stub
mivanchev
Level 2
Level 2
Posts: 14
Joined: Sat Jun 25, 2022 5:13 am

Re: nodrv_CreateWindow Application tried to create a window, but no driver could be loaded

Post by mivanchev »

These are not errors. Xvfb is probably working OK but you need to find a way to generate screenshots from the output buffer (search online). Winecfg's purpose is to generate a directory ~/.wine which is called "prefix" and contains all kinds of configurational data.
Locked