# UE 5.8.2 Win64 Development: CSV profiler worker faults during normal shutdown after a completed capture 

**URL:** <https://forums.unrealengine.com/t/ue-5-8-2-win64-development-csv-profiler-worker-faults-during-normal-shutdown-after-a-completed-capture/2875355>\
**Category:** Issues and Bug Reporting (Unreal Engine)\
**Tags:** unreal-engine\
**Created:** [November 30, 2026, 11:30pm UTC](https://forums.unrealengine.com/t/ue-5-8-2-win64-development-csv-profiler-worker-faults-during-normal-shutdown-after-a-completed-capture/2875355 "2026-11-30T23:30:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Folly\_Turtle](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Folly\_Turtle](https://forums.unrealengine.com/u/Folly_Turtle)\
**Post date:** [November 30, 2026, 11:30pm UTC](https://forums.unrealengine.com/t/ue-5-8-2-win64-development-csv-profiler-worker-faults-during-normal-shutdown-after-a-completed-capture/2875355/1 "2026-11-30T23:30:53Z")

</div>

### Summary

A packaged Blueprint Third Person game finished writing a performance capture and accepted Alt+F4. The actual game process then exited with a Windows access violation while the CSV profiler worker was leaving its thread.

### What Type of Bug are you experiencing?

Foundation (C++ Tools, Profiling, & Pipeline)

### Steps to Reproduce

Launcher build UE 5.8.2, CL 56702186, Win64 Development, Windows 10 build 19045, D3D11/SM5. The launch used the packaged game binary directly, windowed at 1920 × 1080 with a 60 fps cap. Its command line selected D3D11 (-dx11) and an uncompressed startup CSV capture with GPU statistics. Per-run user and log destinations were private local paths. No custom engine patch was running.

### Expected Result

Expected behavior was a finalized CSV and a normal process exit.

### Observed Result

The game logged “Capture Ended”. The finalized file contained both headers, the matching capture ID in its footer and 9,000 readable frame-time records. The game acknowledged its normal window close after completion, requested exit status zero and closed its log. A separately tracked game process handle returned 0xC0000005.

### Affects Versions

5.8

### Platform(s)

Windows

### For crash reports, include your callstack

Relevant worker frames, from worker to fault:  
FCsvProfilerProcessingThread::Run → FPerThreadFreeBlockLists::ClearTLS → RtlEnterCriticalSection → RtlpWaitOnCriticalSection.

### Additional Notes

Shutdown evidence  
During C runtime shutdown, the game thread first entered the exit callback for FMallocBinned3’s free-list registration mutex. It then entered the CSV profiler destructor from the same runtime dispatch frame. While the game thread was waiting for the profiler worker, that worker was still unregistering its thread-local allocator cache and tried to enter the same static mutex. The matched build symbols and two local dumps of this run agreed on the fault.

A separate debugger run that closed before capture completion showed the same worker fault. The Windows debugger was x64 CDB with -hd and child-process debugging. Symbol names came from the matching game PDB and Windows symbols. Two earlier runs outside the debugger also failed clean exit but returned 777003. Their initiating stacks are unknown. We have verified the teardown order in the completed-capture diagnostic on this build. We have not established a minimal case in a fresh project or tested newer releases. An earlier-worker-join patch has been proposed locally. It is uncompiled and unvalidated.

Could the Core/Profiling team check the lifetime of the CSV worker relative to the allocator’s registration mutex during orderly engine exit?
