Corrupt blueprint crashes upon Play/Simulation

I was working on a blueprint and used the ForEachLoop macro inside a function that has a local variable. This caused a crash that has already been reported in another AnswerHub post (Adding For Each Loop to Blueprint function containing local variables causes crash - Blueprint - Unreal Engine Forums). I had not saved the blueprint yet, but there was an autosave, so UE4 restored the autosave when I restarted the editor.

However, the blueprint seemed to be corrupt from that point forward, because even after removing all the functionality in the blueprint and leaving a test print, the blueprint would compile, but it would immediately crash the editor when I ran Simulate or Play.

I’m not sure if this is the right way to repro the bug but the editor doesn’t seem to verify the blueprint for integrity.


Thank you for your report. We were not able to investigate this on the engine version you reported, but there have been many version changes to UE4 since this question was first posted. With a new version of the Engine comes new fixes and it is possible that this issue has changed or may no longer occur. Due to timetable of when this issue was first posted, we are marking this post as resolved for tracking purposes.

If you are still experiencing the issue you reported in the current engine version, then please respond to this message with additional information and we will investigate as soon as possible. If you are experiencing a similar, but different issue at this time, please submit a new report for it.

Thank you.