Compile error with standard macro > ForEachLoop

Hi
I ran into an issue where ForEachLoop breaks and won’t let me compile.
Screenshot of the action:

I was able to replicate the bug by changing a variable from reference actor to reference Location Indicator (A child of actor)

I also found this previous post of the same issue: Bug in UE4 Standard Macros For Each Loop - Blueprint - Unreal Engine Forums

Edit: I tried verifying the engine and changing back to reference actor (causes a full crash).

Hi Suppe,

I’m having issues replicating this error. Can you provide exact repro steps or a small test project that includes the issue?

I will get back to you with this when I finish installing UE4 on my new SSD.

I have slimmed the project down to 2GB is there any way you prefer it sent?

You can PM me a link to download it directly over the Forums. Make sure to use a service like Googledrive, Dropbox, etc. or I may not have access to the site.

Hi Suppe,

Sorry for the delay. I still wasn’t able to reproduce the crash even with the test project you sent.

I changed the ‘LocationIndicators’ var to a type ‘LocaitonIndicators’ and then recompile the BP. No crash is received and then on restart, no error for the ForEachLoop is found.

The only difference I can find is that I am not using the Modo or Substance plugins.

Do you get a Crash Reporter callstack when you crash? If so, make sure to submit that and include your Epic ID or Machine ID here.

I have just tried the test project and original project with Modo and Substance, it works now but I’m not sure why. Also tried other changes that I knew caused it but no success replicating anymore.

Hmm, that is strange. Did you recompile/verify the engine?

I guess we will consider this resolved for now; but if it pops up again, just post a comment here and it will reopen the post. I’ll also keep an eye out for other reports of this.

Cheers,

TJ

Hello, I have just had the same issue, and solved it, without knowing why.
Verifying the files did not work, but I had a non-connected funktion-line with a ForEechLoop in it, connecting the line solved the issue.