Antoine Le Gonidec schreef op vr 07-01-2022 om 17:04 [+0100]:
> I think this is related to this upstream issue: 
> https://bugs.winehq.org/show_bug.cgi?id=49649 — Multiple games cause
> X11 to crash on resolution change (Age of Empires 1 & 2, Star Wars:
> Galactic Battlegrounds)
> 
> It is fixed on current 7.0 release candidate, and you can work around
> it with older WINE builds by changing the Direct3D renderer as
> described in this post:
> https://bugs.winehq.org/show_bug.cgi?id=49649#c6 (a .reg file
> applying the suggested change is provided for convenience)

Thank you so much for this information: it certainly looks exactly like
my problem!

I tried changing the Direct3D renderer with "wine regedit". Initially,
that registry value was not set on my system - I tested with absent
value, with "gdi" and with "gl". These are the results:

===results TLDR===
The workaround works for Age of Empires II but not for Flight Simulator
2004, where it results in a different error. I think Flight Simulator
uses Direct3D and Age of Empires doesn't, and the workaround disables
Direct3D.

===results details===
With "gdi", the terminal window shows a line
"0009:err:winediag:wined3d_dll_init Disabling 3D support.". Unlike
before, Flight Simulator now shows its menu(*). However, when I press
the button to start flying, it shows an error window with the text
"Error creating required Direct3D buffers - Flight Simulator will now
exit.", and the game exits.

With "gdi", Age of Empires II shows the same line on the terminal, but
it works fine. I guess it helps that AoE isn't really a 3D game.

With "gl", the terminal window shows a line
"0009:err:winediag:wined3d_dll_init Using the OpenGL renderer.". While
this line was not present with absent registry key, the behavior is the
same: AoE and Flight Simulator crash, as in my original bug report.
===results end===

I suppose the good news is that we know how Wine 7 is patched to fix
the issue - maybe Wine 5 can be patched in a similar way. I'd have to
look into how to compile Debian's Wine package from source though, and
I hope it won't take too long compiling.

(*) For people trying to reproduce this: in my case, it starts with a
menu page that does not show any 3D elements (the "select flight"
menu). I can imagine it still crashes if on your system it starts with
the "create flight" menu, which does contain 3D elements.

Reply via email to