Unreal Engine 5.2 Packaging failed! Assertion failed: NiagaraGraph.cpp [Line: 4140]

Greetings guys, hope to find you well. I was trying to package my game developed on UE 5.2.1, never had such a weird packaging fatal error (see logs attached).

I usually manage to fix up any error that gets thrown at me, but this one truly leaves me baffled, so much so that I need to ask for help here on the forum, hope to find a solution for my situation and for anyone who could end up in the same situation in the future!

Thanks in advance for any help I’ll get!

-Amarthir

UATHelper: Packaging (Windows): Script Stack (0 frames) :
UATHelper: Packaging (Windows): LogWindows: Error: appError called: Assertion failed: !bIsForCompilationOnly [File:D:\build\++UE5\Sync\Engine\Plugins\FX\Niagara\Source\NiagaraEditor\Private\NiagaraGraph.cpp] [Line: 4140]
UATHelper: Packaging (Windows): LogWindows: Error: begin: stack for UAT
UATHelper: Packaging (Windows): LogWindows: Error: === Critical error: ===
UATHelper: Packaging (Windows): LogWindows: Error:
UATHelper: Packaging (Windows): LogWindows: Error: Assertion failed: !bIsForCompilationOnly [File:D:\build\++UE5\Sync\Engine\Plugins\FX\Niagara\Source\NiagaraEditor\Private\NiagaraGraph.cpp] [Line: 4140]
UATHelper: Packaging (Windows): LogWindows: Error:
UATHelper: Packaging (Windows): LogWindows: Error:
UATHelper: Packaging (Windows): LogWindows: Error:
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffe6d545e90 UnrealEditor-NiagaraEditor.dll!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffe6d6b28f7 UnrealEditor-NiagaraEditor.dll!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffe9c11bda0 UnrealEditor-CoreUObject.dll!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffe9c28a0b4 UnrealEditor-CoreUObject.dll!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffe9c288cd6 UnrealEditor-CoreUObject.dll!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffe6d4f33d7 UnrealEditor-NiagaraEditor.dll!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffe6d67bb13 UnrealEditor-NiagaraEditor.dll!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffe6d3e969d UnrealEditor-NiagaraEditor.dll!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffe6d3e913b UnrealEditor-NiagaraEditor.dll!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffe6d3e53b6 UnrealEditor-NiagaraEditor.dll!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffe6d4a46cd UnrealEditor-NiagaraEditor.dll!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffe6d3ee246 UnrealEditor-NiagaraEditor.dll!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffe6ee23464 UnrealEditor-Niagara.dll!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffe6e9b3e84 UnrealEditor-Niagara.dll!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffe6e9e4e0b UnrealEditor-Niagara.dll!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffe6e9e655d UnrealEditor-Niagara.dll!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffe6e9e7bde UnrealEditor-Niagara.dll!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffe6ef990f9 UnrealEditor-Niagara.dll!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffe6efbeca9 UnrealEditor-Niagara.dll!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffe9347ca6c UnrealEditor-UnrealEd.dll!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffe93427467 UnrealEditor-UnrealEd.dll!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffe9346a319 UnrealEditor-UnrealEd.dll!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffe93469e3a UnrealEditor-UnrealEd.dll!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffe9346f01a UnrealEditor-UnrealEd.dll!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffe93486118 UnrealEditor-UnrealEd.dll!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffe93485a3a UnrealEditor-UnrealEd.dll!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffe931c5312 UnrealEditor-UnrealEd.dll!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffe931e43b1 UnrealEditor-UnrealEd.dll!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ff62a7cd0de UnrealEditor-Cmd.exe!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ff62a7c454b UnrealEditor-Cmd.exe!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ff62a7c482a UnrealEditor-Cmd.exe!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ff62a7c74f0 UnrealEditor-Cmd.exe!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ff62a7da4c4 UnrealEditor-Cmd.exe!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ff62a7dcb76 UnrealEditor-Cmd.exe!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffefd8e26ad KERNEL32.DLL!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffeff04aa68 ntdll.dll!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error:
UATHelper: Packaging (Windows): LogWindows: Error: end: stack for UAT
PackagingResults: Error: appError called: Assertion failed: !bIsForCompilationOnly [File:D:\build\++UE5\Sync\Engine\Plugins\FX\Niagara\Source\NiagaraEditor\Private\NiagaraGraph.cpp] [Line: 4140]
PackagingResults: Error: begin: stack for UAT
PackagingResults: Error: === Critical error: ===
PackagingResults: Error: Assertion failed: !bIsForCompilationOnly [File:D:\build\++UE5\Sync\Engine\Plugins\FX\Niagara\Source\NiagaraEditor\Private\NiagaraGraph.cpp] [Line: 4140]
PackagingResults: Error: [Callstack] 0x00007ffe6d545e90 UnrealEditor-NiagaraEditor.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffe6d6b28f7 UnrealEditor-NiagaraEditor.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffe9c11bda0 UnrealEditor-CoreUObject.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffe9c28a0b4 UnrealEditor-CoreUObject.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffe9c288cd6 UnrealEditor-CoreUObject.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffe6d4f33d7 UnrealEditor-NiagaraEditor.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffe6d67bb13 UnrealEditor-NiagaraEditor.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffe6d3e969d UnrealEditor-NiagaraEditor.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffe6d3e913b UnrealEditor-NiagaraEditor.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffe6d3e53b6 UnrealEditor-NiagaraEditor.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffe6d4a46cd UnrealEditor-NiagaraEditor.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffe6d3ee246 UnrealEditor-NiagaraEditor.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffe6ee23464 UnrealEditor-Niagara.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffe6e9b3e84 UnrealEditor-Niagara.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffe6e9e4e0b UnrealEditor-Niagara.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffe6e9e655d UnrealEditor-Niagara.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffe6e9e7bde UnrealEditor-Niagara.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffe6ef990f9 UnrealEditor-Niagara.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffe6efbeca9 UnrealEditor-Niagara.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffe9347ca6c UnrealEditor-UnrealEd.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffe93427467 UnrealEditor-UnrealEd.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffe9346a319 UnrealEditor-UnrealEd.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffe93469e3a UnrealEditor-UnrealEd.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffe9346f01a UnrealEditor-UnrealEd.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffe93486118 UnrealEditor-UnrealEd.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffe93485a3a UnrealEditor-UnrealEd.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffe931c5312 UnrealEditor-UnrealEd.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffe931e43b1 UnrealEditor-UnrealEd.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ff62a7cd0de UnrealEditor-Cmd.exe!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ff62a7c454b UnrealEditor-Cmd.exe!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ff62a7c482a UnrealEditor-Cmd.exe!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ff62a7c74f0 UnrealEditor-Cmd.exe!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ff62a7da4c4 UnrealEditor-Cmd.exe!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ff62a7dcb76 UnrealEditor-Cmd.exe!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffefd8e26ad KERNEL32.DLL!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffeff04aa68 ntdll.dll!UnknownFunction []
PackagingResults: Error: end: stack for UAT
UATHelper: Packaging (Windows): Took 1085.5360312999999s to run UnrealEditor-Cmd.exe, ExitCode=3
UATHelper: Packaging (Windows): ERROR: Cook failed.
UATHelper: Packaging (Windows):        (see C:\Users\Amarthir\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.2\Log.txt for full exception trace)
PackagingResults: Error: Cook failed.
UATHelper: Packaging (Windows): AutomationTool executed for 0h 18m 17s
UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=25 (Error_UnknownCookFailure)
UATHelper: Packaging (Windows): BUILD FAILED
PackagingResults: Error: Unknown Cook Failure
LogViewport: Scene viewport resized to 1242x2124, mode Windowed.

Problem solved!

In order to avoid this issue, especially when upgrading your project to newer versions of Unreal Engine, even more so if you have migrated content from other projects / marketplace assets / demo samples, check all your Niagara Systems (in Editor, get yourself to the root folder, filter by Niagara System and check your assets one by one).

You will surely find a Niagara System with Modules missing or with compiling errors: based upon the errors it flags, you might need to delete / recreate that Niagara System.

In my specific case, a migrated Niagara System, upon opening it, crashed the editor right away. In that case, you might just need to delete it and recreate it in case you have a working backup of your project from which you can check what you made prior to the engine upgrade.

Hope this helps anyone having similar issues!

Regards,
Amarthir.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.