Packaging fails: Container has changed during ranged-for iteration

LogOutputDevice: Error: === Handled ensure: ===
LogOutputDevice: Error: Ensure condition failed: Lhs.Array.Num() == Lhs.InitialNum [File:D:\Build++UE4\Sync\Engine\Source\Runtime\Core\Public\Containers/SparseArray.h] [Line: 943]
LogOutputDevice: Error: Container has changed during ranged-for iteration!
LogOutputDevice: Error: Stack:
LogOutputDevice: Error: [Callstack] 0x00007ffffe9b3a09 UE4Editor-MovieScene.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffffe8572a8 UE4Editor-MovieScene.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffffe85ba58 UE4Editor-MovieScene.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffffe84bd2f UE4Editor-MovieScene.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffffe859c6d UE4Editor-MovieScene.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff8128d87e4 UE4Editor-UMG.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff81297f81e UE4Editor-UMG.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff8128ceda9 UE4Editor-UMG.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff8138a9290 UE4Editor-Slate.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff813907f1b UE4Editor-Slate.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff813907a73 UE4Editor-Slate.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff766dd9a1f UE4Editor.exe!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff766df0fcc UE4Editor.exe!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff766df10ba UE4Editor.exe!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff766df40dd UE4Editor.exe!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff766e05984 UE4Editor.exe!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff766e0853a UE4Editor.exe!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff897387604 KERNEL32.DLL!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ff8985e26a1 ntdll.dll!UnknownFunction []
PackagingResults: Error: Targets cannot be built in the Test configuration with this engine distribution.
PackagingResults: Error: Unknown Error

I tried to package the project, but the package failed, there were a lot of levels not packaged in, only one ui level

There seem to be an issue with the MovieScene.dll. Try to remove anything related to that dll file and see if the error goes away. There could be missing references or other issues.

Is it to delete MovieScene.dll in the engine directory? After I delete it, the project prompts that MovieScene.dll is missing and cannot be opened

You shouldn’t delete anything, just disable references or make sure that the level isn’t referencing the MovieScene.dll file.

Thank you very much. After I did this, I rebuilt all the levels. The error disappeared, but I found that only the first level was packaged and the other levels were not packaged in. I found the option List of maps to include in a packaged build in project Settings in 4.24, but I did not find it in 4.27. I modified the default levels and found that each level could be packaged individually, and my jumps for each level were the open level nodes used in the level blueprint

1 Like