Add variable to structure make crash

Hi !

I actually have a strange problem …

I work with BluePrint and i have a structure, which is …

Today, i’d like to add a variable, which is an other structure :slight_smile:

This one. So, i just added the variable like this :

And when i saved and launch my game to check, i got all my BluePrint ‘failed to compile’…
Some of BP has


some variable which disappear…

Thanks to me, i saved my work on GitHub and i can backup my project but i’ve tried multiple times and i don’t understand why it’s happening :frowning:

Thanks to everyone which answer me !

I find UE is very finickey around structures.

When you first change the structure, you’ll get an update warning, bottom right

image

for all the other BP items that use this structure. I’d click it and save, then exit.

It should be ok when you restart the editor. But I have found that changing structures and just carrying on will lead to a crash.

Good that you backed up :wink:

1 Like

Hi !

Thanks for your answer, and rapid answer !

So, just tried but all my BP broke again :frowning:

Same problem :frowning:

Does i have to save one file by one file ?

image

I’ve seen when i add a variable which is not a custom structure, following your trick, it’s work without any problems … But when change it to my custom structure that broke :rofl:

1 Like

Yes, it can’t handle nested structures, apparently… :frowning:

Oh ! I’ve found a solution, strange solution :rofl:

So … Modify structure, add the new structure :

Now, save ONLY the structure

Close UnrealEngine, discard any other BP changes

Re-Open UE5 and that’s work :neutral_face:

Don’t understand, but it’s ok :rofl:

So thanks for your answer ! and your answer time, i appreciate a lot ! :slight_smile:

Have a nice day

4 Likes

Or that! :smiley:

3 Likes

Thanks you : i thought i had lost 10 days of work because of this bug . I hope they will resolve this .

Edit : for me its inconsistant the first time it worked , then tried on another struct and this problems happened despite not saving others actors .

So it force me to roll back on ue4 and loosing 10 days of works :frowning:

Hello there, I know this is marked as “Resolved” and it’s been two years, but I had the same issue today. I tried your solution, but unfortunately, it didn’t help at all.

I mean, I could revert commits even further back, but that would cost me about a full day of work — so I decided to investigate what actually happened.
I’m not 100% sure yet, but it looks like I managed to fix the problem… so… yeah.


I finished my stat system about a week ago and had no issues. I created a similar structure for my card system — also without problems. But when I started working with Monsters and added a hard reference to a Monster class inside a structure, that’s when the problems began. I didn’t notice anything immediately, but the next day, when I tried adding another variable to that structure, the engine crashed.

Even after reverting commits, the crash still occurred — until I opened the Reference Viewer and removed the hard references. After that, everything started working normally again.

I hope this helps someone get rid of the crashes.

EDIT:
So I tried to reproduce this crash — and I got it. I simply created a hard reference again (by setting the reference in the default settings of S_SingleMonster), and then added it in S_MonsterList — and boom, crash. Now I can’t even start the project.

Soo it helped me, but i read more about it, and the best solution to prevent it, its just → File / Refresh all node, when u change something with structure, and just restart engine (just in case)