Assertion failed: NumDynamic after hitting render button

Hello everyone,
I’m using UE5.3, I have a map with datasmith assets with simple animation of metahuman character. At first, everything rendered fine, but each time I close the engine and try to render again I got the error shown below. I have to set the scene again in a new whole map in order to render without getting that crush error.

Can you please let me know what I’m doing wrong?
Assertion failed: NumDynamic [File:D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\PhysicsEngine\ConstraintInstance.cpp] [Line: 447]

UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
kernel32
ntdll

1 Like

I am having the same exact issue. Did you find any solution?

I don’t know how much experience you have in programming. So I’ll answer it as if you have little or none.

An Assert is used when there is a situation found in code (in this case the ConstraintInstance.cpp file listed) where a value was expected to be set but was 0 or null. They are only used when it is in a “should never happen” scenario! But, obviously, it happened.

If you can still look at the source of your object I would see if you have anything in it that will set a value for NumDynamic.

This looks like it is in the Physics portion of your definition and may relate to the number of dynamic physics models used. If you find a value and it is set, then it is something that is not being saved directly by your editor.

Thank you for reaching out!

I have no experience in programming so there is no risk of over explaining:)

Where can I look for “the source of the object” to look for NumDynamic? I was following a couple of tutorials trying to get a Metro train to run through my model of Oslo right before this issue so there was a lot of blueprint work that I was following blindly without really knowing what was going on. I have now deleted the Metro train and the blueprints associated (I think), but the level still crashes. So it could be some residual code from the now deleted Metro train, or something completely unrelated.

Is there any way to get into that ConstraintInstance.cpp file? It does not show up when searching in Windows D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\PhysicsEngine\ConstraintInstance.cpp

I don’t even have a D:-drive. Only C:.

I have also made a copy of the project where I have deleted a lot of assets, but it still crashes, so it could be on a system level and not tied to a particular asset necessarily?

How would you approach trouble-shooting this? All insight is highly appreciated.

I have the same error “Assertion failed: NumDynamic [File:D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\PhysicsEngine\ConstraintInstance.cpp] [Line: 447]”. This happened when I upgraded from UE 5.0 to UE 5.3. Are you also using NVIDIA 3070? I had received some warnings about a graphics driver bug so I updated my graphics driver in case that was the cause but it didn’t work.

2 Likes

Yeah, I’m using 3070Ti

1 Like

It is a very simple problem. I encounter this problem and solved it. You may use the Physic Constraint component and one part it attach may somehow deleted. Add it back could solve the problem.

1 Like