Skip to content

Race condition crash in ResetActor3D #35

@UaineMazoku

Description

@UaineMazoku

Crash encountered in v6.3.0.

Tracked to destruction of the ActorResetter here: (specifically destroying the RE::NiPointer<RE::NiAVObject> root{} member)

SKSE::GetTaskInterface()->AddTask([a_actor, root, a_folderName]() {
ActorResetter resetter(a_actor, root, a_folderName);
resetter.ResetActor3D();
});

Seems resetter should be constructed outside the task so the NiPointers can keep actor and root alive, but I'm unsure if the rest of the constructor code requires the task.

Crash log provided by user: po3_ActorResetter_crash.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions