EXCEPTION_ACCESS_VIOLATION during cook in Unreal Engine: a plugin crashes the cook
The cook process crashed with an access violation, and the first non-engine module in the callstack is a plugin module. That module, usually a plugin, is the prime suspect.
Paste your log: find the cause in seconds Runs in your browser, nothing is uploaded.
What it looks like in your log
Excerpts from a reproduction in our lab (a test plugin, not a real product). Paths anonymized; line numbers are those of the original files.
Unreal Engine 5.4.4
Cook-<date>.txt
LogWindows: Error: begin: stack for UATLogWindows: Error: === Critical error: ===LogWindows: Error:LogWindows: Error: Fatal error!LogWindows: Error:LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION writing address 0x0000000000000000LogWindows: Error:LogWindows: Error: [Callstack] 0x00007ffa774f1604 UnrealEditor-MyPlugin.dll!FMyPluginModule::StartupModule() [C:\Projects\MyProject\Plugins\MyPlugin\Source\MyPlugin\Private\MyPlugin.cpp:21]LogWindows: Error: [Callstack] 0x00007ffa04e1e42b UnrealEditor-Core.dll!UnknownFunction []LogWindows: Error: [Callstack] 0x00007ffa0479a944 UnrealEditor-Projects.dll!UnknownFunction []
Log.txt
Took 9.96s to run UnrealEditor-Cmd.exe, ExitCode=3AutomationTool exiting with ExitCode=25 (Error_UnknownCookFailure)ExitCode=3 is the return code of the cook process (UnrealEditor-Cmd.exe). ExitCode=25 is the final code of AutomationTool: the cook failed.
Unreal Engine 5.8.3
Cook-<date>.txt
LogWindows: Error: begin: stack for UATLogWindows: Error: === Critical error: ===LogWindows: Error:LogWindows: Error: Fatal error!LogWindows: Error:LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION writing address 0x0000000000000000LogWindows: Error:LogWindows: Error: [Callstack] 0x00007ffa6fab22cf UnrealEditor-MyPlugin.dll!FMyPluginModule::StartupModule() [C:\Projects\MyProject\Plugins\MyPlugin\Source\MyPlugin\Private\MyPlugin.cpp:21]LogWindows: Error: [Callstack] 0x00007ff9fc5a8b27 UnrealEditor-Core.dll!UnknownFunction []LogWindows: Error: [Callstack] 0x00007ffa04f9fd58 UnrealEditor-Projects.dll!UnknownFunction []
Log.txt
Took 10.99s to run UnrealEditor-Cmd.exe, ExitCode=3AutomationTool exiting with ExitCode=25 (Error_UnknownCookFailure)ExitCode=3 is the return code of the cook process (UnrealEditor-Cmd.exe). ExitCode=25 is the final code of AutomationTool: the cook failed.
Where the crash shows up
The crash happens inside the cook process (UnrealEditor-Cmd.exe started with -run=Cook), so the full report is in the cook log: Cook-<date>.txt, in the AutomationTool logs folder (%APPDATA%\Unreal Engine\AutomationTool\Logs\<engine path>\ on Windows).
AutomationTool copies the crash block into its own Log.txt, then ends with ExitCode=25 (Error_UnknownCookFailure). In the editor you often only see "Unknown Cook Failure": the access violation is the real cause behind it.
Read the callstack from the top. The first frame that is not an engine module (UnrealEditor-Core, UnrealEditor-Engine, UnrealEditor-Projects...) names the suspect, for example UnrealEditor-MyPlugin.dll!FMyPluginModule::StartupModule(). The engine also writes a crash report with a minidump under Saved/Crashes in your project.
Why the cook runs plugin code at all
Cooking starts a full editor process without a window. It loads every enabled module, editor modules included, and calls their StartupModule() before the first package is cooked. Code that only works with an editor UI, a loaded world or an initialized subsystem can crash there even if the editor itself opens fine.
That is also why the crash can appear after an engine upgrade: a plugin binary built for another engine version calls into engine code whose layout changed.
Common causes
- A third-party plugin that is not compatible with this engine version.
- A plugin binary compiled for another engine build.
- A bug in your own game module, if the DLL is your project's module.
How to fix it
- Identify who owns UnrealEditor-<Plugin>.dll: search for a .uplugin or .Build.cs with that module name in your project and engine Plugins folders.
- Check that the plugin officially supports your exact engine version; update it or roll back the engine.
- As a test, disable the plugin and cook again: if the cook passes, report the crash to the plugin author with the callstack.
- If the module is your own code, run the cook from your IDE with the debugger attached.
Questions
Does EXCEPTION_ACCESS_VIOLATION stop the packaging?
Yes. The cook process crashes, nothing is cooked, and AutomationTool stops with ExitCode=25 (Error_UnknownCookFailure).
Which log file contains the crash?
The cook log, Cook-<date>.txt, in the AutomationTool logs folder. AutomationTool also relays the crash block into Log.txt, so pasting Log.txt in the decoder is usually enough.
Is the plugin always the culprit?
It is the prime suspect when it is the first non-engine module in the callstack. When every frame belongs to engine modules, the crash cannot be pinned on a plugin from the log alone, and the decoder does not name one.
Can it be caught before cooking?
Yes, it can be checked before you start a cook: Compare each enabled plugin's supported engine versions with the current engine.