Skip to content

Heap corruption #1654

@SimplisticMind

Description

@SimplisticMind

What's happening: CS corrupts heap memory causing a myriad of hard-to-diagnose issues. This happens even if all CS features are turned off by 'Disable at Boot' functionality.

Tested with: 1.6.1170, fresh installs of CS and requirements off nexus with no other mods whatsoever. Also reproduced on 1.5.97.

Repro:
EngineFixes.toml, change bDisableTBB to true.
Launch game, crash before you make it to main menu.

Additional notes:
I would recommend using AppVerifier to validate that the issue is resolved (just disable the handles verifier - Skyrim relies on null handles). It ensures that the violation gets caught ASAP.
In my testing, heap violation gets caught at BSLightingShaderProperty::LinkObject, when the BSLightingShaderProperty->BSShaderMaterial gets destructed & ScrapHeap::Deallocate called on it.
Using TBB allocator does NOT fix this issue - it makes TBB return in-use addresses randomly.
CrashloggerSSE doesn't catch heap corruption or appverifier breakpoints - you will have to navigate to %localappdata%/Crashdumps

crashlog.txt

appVerifier.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Recently Completed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions