https://bugs.winehq.org/show_bug.cgi?id=49876
Bug ID: 49876 Summary: wine hangs on startup due to crash within EnumDisplaySettingsEx Product: Wine Version: 5.17 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winex11.drv Assignee: wine-bugs@winehq.org Reporter: panard@inzenet.org Distribution: ---
Using wine 5.17 in Docker, any wine execution hangs on startup.
The bug seems to be related to the detection of display settings, as there is a crash triggered during "winex11.drv.EnumDisplaySettingsEx".
A workaround is to set "Emulate a virtual desktop" in winecfg. Things work properly with wine 5.12.
I join the output of WINEDEBUG=+all winecfg. An interesting excerpt might be the following lines:
257190.641:0044:0048:Call user32.EnumDisplaySettingsExW(0031f3bc L"\\.\DISPLAY1",ffffffff,0031f2ac,00000000) ret=7ee6368a 257190.641:0044:0048:trace:system:EnumDisplaySettingsExW L"\\.\DISPLAY1" 0xffffffff 0x31f2ac 0 257190.641:0044:0048:Call winex11.drv.EnumDisplaySettingsEx(0031f3bc,ffffffff,0031f2ac,00000000) ret=7ea7cc06 257190.641:0044:0048:trace:process:NtQueryInformationProcess (0xffffffff,0x00000022,0x7ffcf694,0x00000004,(nil)) 257190.641:0044:0048:trace:seh:dispatch_exception code=c0000005 flags=0 addr=00000000 ip=00000000 tid=0048 257190.641:0044:0048:trace:seh:dispatch_exception info[0]=00000008 257190.641:0044:0048:trace:seh:dispatch_exception info[1]=00000000 257190.641:0044:0048:trace:seh:dispatch_exception eax=0031ef3c ebx=0031f2ac ecx=0031ef70 edx=00000010 esi=0031f3bc edi=ffffffff 257190.641:0044:0048:trace:seh:dispatch_exception ebp=0031ef58 esp=0031ef0c cs=0023 ds=002b es=002b fs=0063 gs=006b flags=00010216 257190.641:0044:0048:trace:seh:call_vectored_handlers calling handler at 7B030720 code=c0000005 flags=0 257190.641:0044:0048:trace:seh:call_vectored_handlers handler at 7B030720 returned 0 257190.641:0044:0048:trace:seh:call_stack_handlers calling handler at 7BC86760 code=c0000005 flags=0 0048: create_event( access=001f0003, manual_reset=1, initial_state=0, objattr={rootdir=0000,attributes=00000002,sd={},name=L""} ) 0048: create_event() = 0 { handle=0074 } wine: Unhandled page fault on execute access to 00000000 at address 00000000 (thread 0048), starting debugger...
(no debug trace is displayed..)
Let me know how I can debug further..
https://bugs.winehq.org/show_bug.cgi?id=49876
Zhiyi Zhang zzhang@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zzhang@codeweavers.com
--- Comment #1 from Zhiyi Zhang zzhang@codeweavers.com --- It would be helpful to have the same docker image. Could you upload it somewhere and show the command you used to run wine in docker?
https://bugs.winehq.org/show_bug.cgi?id=49876
--- Comment #2 from Panard panard@inzenet.org --- You can use the shell script at https://raw.githubusercontent.com/pauleve/docker-mtgo/master/run-mtgo and use it like that: (it will display the used docker command)
$ bash run-mtgo --shell panard/mtgo:issue102 wine@host:~$ wine --version wine-5.12 wine@host:~$ winecfg
=> works properly
$ bash run-mtgo --shell panard/mtgo:2020-09-18 wine@host:~$ wine --version wine-5.17 wine@host:~$ winecfg
=> crashes/hangs
I'm currently bisecting, takes a while; but currently works well with wine 5.13, and starts crashing with 5.14
https://bugs.winehq.org/show_bug.cgi?id=49876
--- Comment #3 from Panard panard@inzenet.org --- Installing libxrandr2 within the docker fixes the issue.
Bisecting leads to commit which introduces the crash.
I'm not sure if it is worth fixing, as it seems related to missing installed dependency. Feel free to close à invalid.
https://bugs.winehq.org/show_bug.cgi?id=49876
--- Comment #4 from Panard panard@inzenet.org --- Bisecting leads to commit 9c99d9bceba34559a32f1e5906a6fcbcf91b0004 (winex11.drv: Migrate NoRes display settings handler to a new interface) https://github.com/wine-mirror/wine/commit/9c99d9bceba34559a32f1e5906a6fcbcf... which introduces the crash.
(sorry for the missed copy-n-paste in previous comment)
https://bugs.winehq.org/show_bug.cgi?id=49876
Zhiyi Zhang zzhang@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE
--- Comment #5 from Zhiyi Zhang zzhang@codeweavers.com --- Confirmed. Duplicate of 50135.
*** This bug has been marked as a duplicate of bug 50135 ***
https://bugs.winehq.org/show_bug.cgi?id=49876
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Closing Duplicate