Cortex-Command-Community-Project icon indicating copy to clipboard operation
Cortex-Command-Community-Project copied to clipboard

Parallelized call to CastSeeRays in MovableMan::Update tries to read null pointer

Open tjohnman opened this issue 1 year ago • 1 comments

Describe the bug The parallelized loop that calls CastSeeRays on each of the m_Actors encountered a null pointer. On inspection, none of the pointers in the deque are NULL. But due to it being parallelized, perhaps a NULL check should be done before trying to call the CastSeeRays method.

To Reproduce This happened at the start of an attack in conquest mode without having first scanned the site.

Expected behavior Game should not crash.

Additional context

Exception thrown at 0x00007FF759B73846 in Cortex Command.debug.release.exe: 0xC0000005: Access violation reading location 0x0000000000000000.

Call stack:

Cortex Command.debug.release.exe!RTE::MovableMan::Update::__l30::<lambda_2>::operator()(int start, int end) Line 1374	C++

tjohnman avatar Oct 21 '24 20:10 tjohnman

https://github.com/cortex-command-community/Cortex-Command-Community-Project/pull/148 already merged, please close

OpenTools-run avatar May 28 '25 12:05 OpenTools-run