Skip to content

Occasional start-up crash when using DirectDraw on Windows 11 #545

@MJohnson20

Description

@MJohnson20

I'm running VizDoom on Windows 11, Nvidia 3070Ti and I'm seeing an occasional crash when attempting to blt the backbuffer using the directdraw renderer, which obviously can be a bit annoying when training. This generally happens just after initialization.

The crash is specifically here in fb_ddraw.cpp

if (FAILED (hr = PrimarySurf->Blt (&rect, BackSurf, NULL, DDBLT_WAIT|DDBLT_ASYNC, NULL))) // Crash is here. {

In the DDrawFB::PaintToWindow function. It looks like some kind of internal crash in directdraw so It might be down to how it's being emulated on Windows 11.

Crash is:
Exception thrown at 0x00007FFB19AE1F30 (ddraw.dll) in vizdoomrd.exe: 0xC0000005: Access violation reading location 0x0000000000000014.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions