Crash when deleting component from BP

I’ve got a Blueprint and I Added two component of the same type (Custom C++ class extending StaticMeshComponent). When I edit one of the two the other one is modified as well (don’t know if it’s correct behaviour) . Its assigned mesh also get removed after compile sometime When I try to delete or rename one of them, UE Crashes. Tried to delete the map, delete the UE generated files (Binaries, Saved, Intermediate ect.), but always crash, I recreated the classes from scratch and the error has presented again.

Fatal error: [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/CoreUObject/Private/UObject/Obj.cpp] [Line: 204] Renaming an object (TankTrack /Engine/Transient.World_0:PersistentLevel.tank_BP_C_1.Right Track) on top of an existing object (TankTrack /Engine/Transient.World_0:PersistentLevel.tank_BP_C_1.Left Track_REMOVED_E4E948874768FD56A30739B9C6EC1FAE) is not allowed
1 Like

I have the same problem, I suspect you took the course BattleTank.
To remove a component. A temporary solution would be to change the parent class settings.

yes, same here, facing same problem :frowning:

I have the same problem

I had the same issue, but I figured out a solution. The error I was getting was from the parent destructor automatically trying to delete data from pointers (which obviously cannot be done, since it exists separately). I made a destructor which sets all pointers in my header to nullptr, and it fixed the issue. Let me know if that worked, or maybe I did something else which fixed it.