Page 1 of 1

[2.0.72] Crash "Error ShootingTarget.cpp:12: Unset shooting target"

Posted: Mon Dec 01, 2025 5:40 pm
by heyqule
What did you do?
Testing my mod on an island map.

What happened?
Factorio crashed. Generating symbolized stacktrace, please wait ...
C:\Users\build\AppData\Local\Temp\factorio-build-HhoaBW\src\Trigger\ShootingLogic.cpp(88): ProjectileShootingLogic::setShootingOrientation
C:\Users\build\AppData\Local\Temp\factorio-build-HhoaBW\src\Trigger\ShootingLogic.cpp(67): ProjectileShootingLogic::shootInternal
C:\Users\build\AppData\Local\Temp\factorio-build-HhoaBW\src\Trigger\ShootingLogic.cpp(267): ShootingLogic::shoot
C:\Users\build\AppData\Local\Temp\factorio-build-HhoaBW\src\Trigger\ShootingLogic.cpp(262): ShootingLogic::execute

What did you expect to happen instead? It might be obvious to you, but do it anyway!
Not to crash.

Does it happen always, once, or sometimes?
Sometimes. When it happens, it often happens within 5 minutes of running the save.

Re: [2.0.72] Crash "Error ShootingTarget.cpp:12: Unset shooting target"

Posted: Wed Dec 03, 2025 1:47 pm
by Rseding91
Can you please provide a copy of the missing mods so I can try to reproduce this crash?

Re: [2.0.72] Crash "Error ShootingTarget.cpp:12: Unset shooting target"

Posted: Thu Dec 04, 2025 1:51 am
by heyqule
https://drive.google.com/drive/u/0/fold ... lYybJJBIY3

Here is the zip for the mods and the updated IslandTest save. I removed the air raid siren and bump game.speed to 10. All used mods from the zip are production release from portal at this point.

I downloaded a new 2.0.72 instance to try them. The new build crashed too.

I loaded the save and let it run under map view. But I don't think this matter since the error is on unit's code.

Here is the time it took to crash under the new IslandTest.

1. 2m:39s
2. 40s
3. 1m:44s
4. 2m:22s
5. 2m:24s

I noticed erm_unit_control in show_time would spike from 0.2ms average time to 5ms before the crash lol.

It's not a memory leak tho. Performance monitor for memory was at 15.4GB/32GB during the crash.