pauleve/docker-mtgo

Application Tried to create a window but no driver could be loaded

AAfghahi opened this issue · 8 comments

Hello, I've been trying to get mtgo to work on this and running into no luck! I tried installing an X server and enabled X11forwarding, but I do not think that those are what is causing this error. I've noticed that others have had this issue, but they were on macs.

OS: Linux
Operating System: Linux Mint 20.2
Kernel: Linux 5.4.0-74-generic
Architecture: x86-64

Desktop environment (for Linux): <Gnome, KDE, ...>
Graphics card: MSI Radeon RX 580 8GB
Output of docker info:

winetricks gdiplus=builtin sound=alsa winegstreamer=disabled wmp=disabled
Executing mkdir -p /home/wine
Using winetricks 20220411-next - sha256sum: d4e94f53f124c5612b26e2eaf7747c31ba081b278d37f2c74d694d9eba1b72ea with wine-7.19 and WINEARCH=win32
Using builtin override for following DLLs: gdiplus
Executing wine regedit C:\windows\Temp\_builtin\override-dll.reg
Executing w_do_call sound=alsa
Executing mkdir -p /home/wine
Executing load_sound alsa
Setting sound driver to alsa
Executing wine regedit C:\windows\Temp\set-sound.reg
Using  override for following DLLs: winegstreamer
Executing wine regedit C:\windows\Temp\_disabled\override-dll.reg
Using  override for following DLLs: wmp
Executing wine regedit C:\windows\Temp\_disabled\override-dll.reg
winecfg
01b0:err:explorer:initialize_display_settings Failed to query current display settings for L"\\\\.\\DISPLAY1".
01b0:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
01b0:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."
01b0:err:systray:initialize_systray Could not create tray window
01a8:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
01a8:err:winediag:nodrv_CreateWindow L"Make sure that your X server is running and that $DISPLAY is set correctly."
wineserver -kw
wineboot
00c8:err:wineboot:ProcessStartupItems Couldn't get desktop folder.
wine /opt/mtgo/mtgo.exe
00d8:err:explorer:initialize_display_settings Failed to query current display settings for L"\\\\.\\DISPLAY1".
00d8:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
00d8:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."
00d8:err:systray:initialize_systray Could not create tray window
00d0:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
00d0:err:winediag:nodrv_CreateWindow L"Make sure that your X server is running and that $DISPLAY is set correctly."
00d0:err:ole:create_server class {20fd4e26-8e0f-4f73-a0e0-f27b8c57be6f} not registered
00d0:err:ole:com_get_class_object no class object {20fd4e26-8e0f-4f73-a0e0-f27b8c57be6f} could be created for context 0x4
00d0:err:ole:create_server class {20fd4e26-8e0f-4f73-a0e0-f27b8c57be6f} not registered
00d0:err:ole:com_get_class_object no class object {20fd4e26-8e0f-4f73-a0e0-f27b8c57be6f} could be created for context 0x4
00d0:err:ole:create_server class {20fd4e26-8e0f-4f73-a0e0-f27b8c57be6f} not registered
00d0:err:ole:com_get_class_object no class object {20fd4e26-8e0f-4f73-a0e0-f27b8c57be6f} could be created for context 0x4
00d0:err:ole:create_server class {20fd4e26-8e0f-4f73-a0e0-f27b8c57be6f} not registered
00d0:err:ole:com_get_class_object no class object {20fd4e26-8e0f-4f73-a0e0-f27b8c57be6f} could be created for context 0x4
00d0:err:ole:create_server class {20fd4e26-8e0f-4f73-a0e0-f27b8c57be6f} not registered
00d0:err:ole:com_get_class_object no class object {20fd4e26-8e0f-4f73-a0e0-f27b8c57be6f} could be created for context 0x4
00d0:err:ole:create_server class {20fd4e26-8e0f-4f73-a0e0-f27b8c57be6f} not registered
00d0:err:ole:com_get_class_object no class object {20fd4e26-8e0f-4f73-a0e0-f27b8c57be6f} could be created for context 0x4
00d0:err:ole:create_server class {20fd4e26-8e0f-4f73-a0e0-f27b8c57be6f} not registered
00d0:err:ole:com_get_class_object no class object {20fd4e26-8e0f-4f73-a0e0-f27b8c57be6f} could be created for context 0x4
00d0:err:ole:create_server class {20fd4e26-8e0f-4f73-a0e0-f27b8c57be6f} not registered
00d0:err:ole:com_get_class_object no class object {20fd4e26-8e0f-4f73-a0e0-f27b8c57be6f} could be created for context 0x4
00d0:err:ole:create_server class {20fd4e26-8e0f-4f73-a0e0-f27b8c57be6f} not registered
00d0:err:ole:com_get_class_object no class object {20fd4e26-8e0f-4f73-a0e0-f27b8c57be6f} could be created for context 0x4
00d0:err:ole:create_server class {20fd4e26-8e0f-4f73-a0e0-f27b8c57be6f} not registered
00d0:err:ole:com_get_class_object no class object {20fd4e26-8e0f-4f73-a0e0-f27b8c57be6f} could be created for context 0x4
00d0:err:ole:create_server class {20fd4e26-8e0f-4f73-a0e0-f27b8c57be6f} not registered
00d0:err:ole:com_get_class_object no class object {20fd4e26-8e0f-4f73-a0e0-f27b8c57be6f} could be created for context 0x4
00d0:err:ole:create_server class {20fd4e26-8e0f-4f73-a0e0-f27b8c57be6f} not registered
00d0:err:ole:com_get_class_object no class object {20fd4e26-8e0f-4f73-a0e0-f27b8c57be6f} could be created for context 0x4
00d0:err:ole:create_server class {20fd4e26-8e0f-4f73-a0e0-f27b8c57be6f} not registered
00d0:err:ole:com_get_class_object no class object {20fd4e26-8e0f-4f73-a0e0-f27b8c57be6f} could be created for context 0x4
00d0:err:ole:create_server class {20fd4e26-8e0f-4f73-a0e0-f27b8c57be6f} not registered
00d0:err:ole:com_get_class_object no class object {20fd4e26-8e0f-4f73-a0e0-f27b8c57be6f} could be created for context 0x4
00d0:err:ole:create_server class {20fd4e26-8e0f-4f73-a0e0-f27b8c57be6f} not registered
00d0:err:ole:com_get_class_object no class object {20fd4e26-8e0f-4f73-a0e0-f27b8c57be6f} could be created for context 0x4
00d0:err:ole:create_server class {20fd4e26-8e0f-4f73-a0e0-f27b8c57be6f} not registered
00d0:err:ole:com_get_class_object no class object {20fd4e26-8e0f-4f73-a0e0-f27b8c57be6f} could be created for context 0x4
00d0:err:ole:create_server class {20fd4e26-8e0f-4f73-a0e0-f27b8c57be6f} not registered
00d0:err:ole:com_get_class_object no class object {20fd4e26-8e0f-4f73-a0e0-f27b8c57be6f} could be created for context 0x4
0158:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0158:err:winediag:nodrv_CreateWindow L"Make sure that your X server is running and that $DISPLAY is set correctly."
0158:err:eventlog:ReportEventW L"Application: dfsvc.exe\nFramework Version: v4.0.30319\nDescription: The process was terminated due to an unhandled exception.\nException Info: System.ComponentModel.Win32Exception\n   at System.Windows.Forms.NativeWindow.CreateHandle(System.Windows.Forms.CreateParams)\n   at System.Window"...

Unhandled Exception: System.ComponentModel.Win32Exception: Error creating window handle.
at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Form.CreateHandle()
at System.Windows.Forms.Control.get_Handle()
at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
at System.Deployment.Application.UserInterfaceForm.SetVisibleCore(Boolean value)
at System.Windows.Forms.Control.set_Visible(Boolean value)
at System.Deployment.Application.SplashPiece.ShowSplash(Form parentForm)
at System.Deployment.Application.SplashPiece..ctor(UserInterfaceForm parentForm, SplashInfo info)
at System.Deployment.Application.UserInterfaceForm.InitializeContent()
at System.Deployment.Application.UserInterfaceForm..ctor(ManualResetEvent readyEvent, SplashInfo splashInfo)
at System.Deployment.Application.UserInterface.UIThread()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
wine: Unhandled exception 0xe0434352 in thread 158 at address 7B012446 (thread 0158), starting debugger...
0174:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0174:err:winediag:nodrv_CreateWindow L"Make sure that your X server is running and that $DISPLAY is set correctly."
016c:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
016c:err:winediag:nodrv_CreateWindow L"Make sure that your X server is running and that $DISPLAY is set correctly."

<attach output.log file from ./run-mtgo &>output.log>

I am having this same issue on my Mac.

I'm also having the same issue on my Linux system. I am using X11.

OS: Pop!_OS 22.04 LTS x86_64
Kernel: 6.4.6-76060406-generic

same

There is probably an issue with security settings on the distribution.
Can you try:

./run-mtgo --  --security-opt seccomp=unconfined panard/mtgo:latest

or

./run-mtgo --  --security-opt label:disable panard/mtgo:latest

?

I'm running into what seems like the same issue on Ubuntu 22.04.4 LTS, Linux 6.5.0-27-generic, x86-64. Output when I try running the commands suggested in your last message seems unchanged. I'm attaching the output from just ./run-mtgo.
output.txt

Same problem, Debian 12, LXQt 1.2.0 Linux 6.1.0-20-amd64.

./run-mtgo -- --security-opt label:disable panard/mtgo:latest

I'm having the same trouble. @pauleve I ran both commands that you suggested and I see no change. I get the same output as @HighlyTrainedNeuralNetwork.

Maybe doing xhost + before the run-mtgo command might help.
Otherwise, is your UID different from 1000? (echo $UID)