https://bugs.winehq.org/show_bug.cgi?id=50299
Bug ID: 50299 Summary: Application tried to create a window, but no driver could be loaded. Product: Wine Version: 5.22 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: bernhardu@mailbox.org Distribution: ---
0050:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
Running e.g. "wine notepad" in a quite slow environment for example within rr-debugger inside a VM leads to the above message.
As far as I could follow in above line 0050 is "explorer.exe". Unfotunately winemenubuilder.exe was a little bit earlier with requesting the first window in WIN_CreateWindowEx before explorer.exe reached manage_desktop. Therefore explorer.exe never SetPropW("__wine_display_device_guid") in DesktopWndProc.
This race might not show up under normal conditions, but I thought to document it here to be findable.
Making winemenubuilder.exe sleep some time in wWinMain before CoInitialize works around it.