iXit / wine-nine-standalone

Build Gallium Nine support on top of an existing WINE installation
GNU Lesser General Public License v2.1
272 stars 23 forks source link

Falcon 4 BMS 4.34u2 crashes when loading 3D world (Acces violation @creation of OffScreen texture or RTT object) #66

Open XenoPL opened 4 years ago

XenoPL commented 4 years ago

Falcon 4 BMS 4.34 mod ran under wine-nine crashes during mission load screen.

There are two variants of crash message:

Falcon BMS.exe caused an EXCEPTION_ACCESS_VIOLATION in: 000000000455F3A9 Falcon BMS.exe, ImageBuffer::SetupAsOffScreenPlain()+377 byte(s) Exception handler called in UnhandledExceptionHandler. Write to location 0000000000000003 caused an access violation. Bytes at CS:RIP: C7 04 25 03 00 00 00 03 00 00 00 4C 8D 9C 24 90

or:

Falcon BMS.exe caused an EXCEPTION_ACCESS_VIOLATION in: 0000000004560D6D Falcon BMS.exe, RTTImageBuffer::SetupAsRTT()+333 byte(s) Exception handler called in UnhandledExceptionHandler. Write to location 0000000000000003 caused an access violation. Bytes at CS:RIP: C7 04 25 03 00 00 00 03 00 00 00 C7 47 08 06 00

Console output of the session: BMS.log

Crash screenshot: BMS_Crash

System specs: Hardware: CPU: Intel Core2Duo E8500 @3.16GHz (stock) , m.b: GA-P35-DSR3, RAM: 8GB 1333MHz DDR3, GFX: RadeonHD 6870 1GB VRAM. OS: Fedora 31 64bit, kernel 5.5.6, libdrm 2.4.100-1, mesa 19.2.8-1, DE/Windowanager Plasma/kwin_x11 5.17.5,Wine: wine 5.2-1, wine-nine 0.5.

Wine config: clean Windows 7 64-bit prefix, wine-nine enabled via nine GUI app, gfx tab:

Steps to reproduce:

With wine-nine disabled mission loads just fine. Funny thing training mission 13 works with wine-nine enabled. I've askefd a guy from a BMS project for some hints but he couldn't tel much:

Sorry but I don't have much clue here. This is a simple texture handling function that is being called when the code requires to create a "Off screen" rendering. E.g a 3D cockpit RTT target. I don't know why it's failing but seem to me like some obvious API issues that somehow prevent such a off-screen render target to be created. Hard to tell without any more info or reproducing such issue locally (Which obviously cannot be done).

dhewg commented 4 years ago

Could be another case of process runs out of address space. And it's been a while, any progress on your end?

axeldavy commented 3 years ago

Possibly fixed by https://github.com/iXit/Mesa-3D/commit/84c3b6e64c243a1908734bd611c868c99d7a12f3

dhewg commented 3 years ago

Is this fixed now when using mesa v21.1.0-rc1 or later?