Deleting any function from UMG crashes editor.

For some reason, every function that I’m trying to delete from a UMG is crashing my editor.

Only happens in a specific UMG.
I’ve added 2 functions OnDrop & OnDragOver and now every function I’m trying to delete in that UMG just crashing the editor (those function are empty of logic).
Creating a new a new function, and then deleting causing this editor crash.

Assertion failed: Linker [File:D:\build\++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\UObjectGlobals.cpp] [Line: 2152] 



0x00007ff9544627e2 UnrealEditor-CoreUObject.dll!UnknownFunction []
0x00007ff95448d4ec UnrealEditor-CoreUObject.dll!UnknownFunction []
0x00007ff95448b918 UnrealEditor-CoreUObject.dll!UnknownFunction []
0x00007ff95448beb6 UnrealEditor-CoreUObject.dll!UnknownFunction []
0x00007ff93d222a0f UnrealEditor-UnrealEd.dll!UnknownFunction []
0x00007ff93d22d9d1 UnrealEditor-UnrealEd.dll!UnknownFunction []
0x00007ff93dd704d0 UnrealEditor-UnrealEd.dll!UnknownFunction []
0x00007ff93c940573 UnrealEditor-Kismet.dll!UnknownFunction []
0x00007ff93c8e4d3b UnrealEditor-Kismet.dll!UnknownFunction []
0x00007ff947e1aeb0 UnrealEditor-Slate.dll!UnknownFunction []
0x00007ff947f0411f UnrealEditor-Slate.dll!UnknownFunction []
0x00007ff948037d52 UnrealEditor-Slate.dll!UnknownFunction []
0x00007ff94803d690 UnrealEditor-Slate.dll!UnknownFunction []
0x00007ff94800979a UnrealEditor-Slate.dll!UnknownFunction []
0x00007ff9480aa5fa UnrealEditor-Slate.dll!UnknownFunction []
0x00007ff9480adf65 UnrealEditor-Slate.dll!UnknownFunction []
0x00007ff9480cf3e8 UnrealEditor-Slate.dll!UnknownFunction []
0x00007ff9480400dc UnrealEditor-Slate.dll!UnknownFunction []
0x00007ff947e23b5a UnrealEditor-Slate.dll!UnknownFunction []
0x00007ff947e8e365 UnrealEditor-Slate.dll!UnknownFunction []
0x00007ff947e7b562 UnrealEditor-Slate.dll!UnknownFunction []
0x00007ff947e6e2fa UnrealEditor-Slate.dll!UnknownFunction []
0x00007ff954a47dc6 UnrealEditor-ApplicationCore.dll!UnknownFunction []
0x00007ff954a2b83f UnrealEditor-ApplicationCore.dll!UnknownFunction []
0x00007ff954a4ab29 UnrealEditor-ApplicationCore.dll!UnknownFunction []
0x00007ff954a232e3 UnrealEditor-ApplicationCore.dll!UnknownFunction []
0x00007ffa56838241 USER32.dll!UnknownFunction []
0x00007ffa56837d01 USER32.dll!UnknownFunction []
0x00007ff954a4c226 UnrealEditor-ApplicationCore.dll!UnknownFunction []
0x00007ff7d0ad76f2 UnrealEditor.exe!UnknownFunction []
0x00007ff7d0afd28c UnrealEditor.exe!UnknownFunction []
0x00007ff7d0afd37a UnrealEditor.exe!UnknownFunction []
0x00007ff7d0b00854 UnrealEditor.exe!UnknownFunction []
0x00007ff7d0b16984 UnrealEditor.exe!UnknownFunction []
0x00007ff7d0b19d7a UnrealEditor.exe!UnknownFunction []
0x00007ffa561e257d KERNEL32.DLL!UnknownFunction []

Edit: This is not just functions now, also variables, in Components and Actors also.
UE Crash but it doesn’t delete the selected var / func ! SO ANNOYING

BP correct? If so, try right clicking the UMG and validating asset and dependencies, fixup redirectors for the folder its in, resave all assets (right click folder and resave all). See if that helps. I had this issue before, but don’t exactly remember how I fixed it. It was something along these lines.

Edit: If this fails, check if you have any drivers to update. I’d first check for GPU drivers.

That didn’t worked either. it’s only happens on 1 widget file so I don’t believe it’s about driver updates.

Are you able to rename the functions at all?

I created a function called TestFunction and I’m able to rename that function yes, OnDrop though I can’t rename so can’t check that.
But I tried to delete that TestFunction and crashed again.
Now I’m stuck with her too :sweat_smile:

Edit: Converted TestFunction to event function with RMB and I was able to delete her. But the OnDrop still remains. Basicly every function that I have can’t be deleted or it will result with a crash.

I think the only reliable solution is to re-create this widget from ground :sleepy:

Probably quicker than diagnosing the problem. I remember what I did now, I had refreshed the bugged function nodes and then did the other things I said before and it corrected my problem and I was able to remove the functions (I also rebuilt the project solution manually). I feel it won’t be the same in your case though since these are native functions you added and in my case, I created them. If you add these functions to a new UMG and it reoccurs, then there is a bigger issue. Hopefully not.

it’s only happens on 1 widget file

Looks like some internal bp problems - broken\missing links, improper copy-paste that editor let you do while it should not, etc - like SteveRambo said. The lamest “just make it works” would be to revert widget to last working state. If there is none (just created or not using any VCS(strongly suggest to)) - delete it completely and recreate from scratch.

Another option would be to download editor debug symbols and run editor with debugger attached (ie. from vs project) - this way you’ll know what exactly causing crash… though in such cases you rarely can affect the chash reason .

1 Like

I Ended up just duplicating the Widget, and the duplicated one works great so I deleted those function and replaced the references of that widget .

1 Like

Update:

This problem starting to happen more often. Not just UMG, but Components, and Actors.
It’s not just deleting functions, but also deleting variables now.

Epic, this bug must be fixed this is making UE unusable!

Assertion failed: Linker [File:D:\build\++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\UObjectGlobals.cpp] [Line: 2152]

UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_Kismet
UnrealEditor_Kismet
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Kismet
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_ApplicationCore
UnrealEditor_ApplicationCore
UnrealEditor_ApplicationCore
UnrealEditor_ApplicationCore
user32
user32
UnrealEditor_ApplicationCore
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
kernel32
ntdll