Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tjohnman opened this issue Oct 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@tjohnman
Copy link

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++
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant