Chaos creates for handling collisions constraints (FPBDCollisionConstraint) for each collision. If a constraint ID is the same as a existing one, the collison is missing.
This feels like if you get colliding with a wall like jelly and you can bug trough.
Open todo in /Engine/Source/Runtime/Experimental/Chaos/Private/Chaos/Collision/ParticlePairMidPhase.cpp
So I think this issue is known.
// @todo(chaos): fix key uniqueness guarantee. We need a truly unique key gen function
// If we get here, we have a key collision. The key uses a hash of pointers which is very likely to be unique for different implicit pairs,
// especially since it only needs to be unique for this particle pair, but it is not guaranteed.
// Creating a new constraint with the same key could cause fatal problems (the original constraint will be deleted when we add the new one
// to the map, but if it is asleep it will be referenced in the contact graph) so we just abort and accept we will miss collisions.
// It is extremely unlikely to happen but we should fix it at some point.
No Epic, this issue is not unlikely. It depens on how complex you’re level is and on the amount of constraints and/or movable obejcts.
In my case I get this error without the need to play with my pawn. Its enough if I click on simulate and I get to this instand!
Error:
LogOutputDevice: Error: === Handled ensure: ===
LogOutputDevice: Error: Ensure condition failed: false [File:D:\build\++UE5\Sync\Engine\Source\Runtime\Experimental\Chaos\Private\Chaos\Collision\ParticlePairMidPhase.cpp] [Line: 1726]
LogOutputDevice: Error: Stack:
LogOutputDevice: Error: [Callstack] 0x00007ffa957d7880 UnrealEditor-Chaos.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffa957dc619 UnrealEditor-Chaos.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffa957c6f78 UnrealEditor-Chaos.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffa957c72fe UnrealEditor-Chaos.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffa957c7f69 UnrealEditor-Chaos.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffa957db246 UnrealEditor-Chaos.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffa957db6ea UnrealEditor-Chaos.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffa957db093 UnrealEditor-Chaos.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffa95ba603e UnrealEditor-Chaos.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffa95b83804 UnrealEditor-Chaos.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffa9591a8fc UnrealEditor-Chaos.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffa95921914 UnrealEditor-Chaos.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffa95928a11 UnrealEditor-Chaos.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffaa05024c5 UnrealEditor-Core.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffaa05021ff UnrealEditor-Core.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffaa052a155 UnrealEditor-Core.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffaa04f23d0 UnrealEditor-Core.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffaa06f7c93 UnrealEditor-Core.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffaa0b5c93d UnrealEditor-Core.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffaa0b502b7 UnrealEditor-Core.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffb2c93257d KERNEL32.DLL!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffb2d40af28 ntdll.dll!UnknownFunction []
Please please please fix that. I also reported this bug at the bugtracker without any reaction. If it helps here is the case id # 11526819
Does anybody know how we can workaround of this issue?! For example special naming to prevent the hashing algorithm not generates the same IDs?