Skip to content

Unknown crash in TerrainTracksRenderObjClassSystem::flush possibly due to failed vertex buffer lock #2827

Description

@Caball009

Crash link: https://www.youtube.com/live/D7hA7cFWQfs?t=3620

Playing the replay file hasn't reproduced the crash so far; not for Legi, either.


The dump files indicates this crashed here because verts is a nullptr:

The only way I can see that happening is if DX8VertexBufferClass::WriteLockClass fails to lock the vertex buffer:

DX8VertexBufferClass::WriteLockClass lockVtxBuffer(m_vertexBuffer);
VertexFormatXYZDUV1 *verts = (VertexFormatXYZDUV1*)lockVtxBuffer.Get_Vertex_Array();

Callstack:

generalszh!TerrainTracksRenderObjClassSystem::flush+0x184
generalszh!HeightMapRenderObjClass::Render+0x7b7
generalszh!RTS3DScene::Customized_Render+0xf1
generalszh!RTS3DScene::Render+0x12f

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is not working right, typically is user facingCrashThis is a crash, very badInvestigateMajorSeverity: Minor < Major < Critical < BlockerRenderingIs Rendering related

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions