Rare crash in Chaos::FPerShapeData::DownCast

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000008

!ChaosInterface::GetQueryFilterData()

!ConvertOverlapResultsImp<ChaosInterface::FOverlapHit>()

!`GeomOverlapMultiImp<ChaosInterface::FOverlapHit,0,FCollisionShape,FDefaultAccelContainer>‘::`8’::<lambda_1>::operator()()

!FPhysInterface_Chaos::ExecuteRead()

!GeomOverlapMultiImp<ChaosInterface::FOverlapHit,0,FCollisionShape,FDefaultAccelContainer>()

!FGenericPhysicsInterface::GeomOverlapMulti<FCollisionShape>()

!`anonymous namespace’::RunTraceTask()

!TGraphTask<`anonymous namespace’::FAsyncTraceTask>::ExecuteTask()

!UE::Tasks::Private::FTaskBase::TryExecuteTask()

Really rare, happened only once, no clue about the repro, it seems it was during exiting game.

We just fixed it locally by testing shape ptr before calling IsBlocking, but it’s more like a blind fix than identifying the real root cause.

Please let me know if you have any insight.

Cheers

Hi Romain,

I’ve just pinged the dev side, but I’m not aware of anything like this. Could just be a one off glitch, but if you get any other cases of it, could you try to get a crash dump and attach symbols?

The fix makes sense for the outcome, but as you say without root cause (apart from random things) all really we can say it that there is a nullptr.

Geoff

Hi Romain, nothing on our radar in this area. As above, if this happens again and isn’t a one off we can try and figure out more repro steps.

Geoff