Page 1 of 1

[StrangePan][1.1.110] Crash in PathFindAlgorithm.cpp calling request_path

Posted: Wed Sep 25, 2024 5:39 am
by kelianmao
I can consistently cause a crash when calling surface.request_path, with stack trace:

Code: Select all

  53.346 Error PathFindAlgorithm.cpp:1010: newChunkComponent->component != ChunkComponent::noComponent || newChunkComponent->chunk == this->mapPositionToChunkPosition(current.position) was not true
Attached is a minimal mod and map and log. If you click anywhere with iron gears on your cursor, it calls request_path, and crashes. The positions in the call are currently hard coded for reproducibility, but many nearby paths also crash.

Re: [StrangePan][1.1.110] Crash in PathFindAlgorithm.cpp calling request_path

Posted: Mon Oct 21, 2024 1:13 pm
by StrangePan
Thanks for the report! Good news is that your mod, save, and reproduction steps all worked in 2.0, and the issue is fixed for the next release.

Edit: at least, the very narrow area of code that I exercised during testing worked.

Re: [StrangePan][1.1.110] Crash in PathFindAlgorithm.cpp calling request_path

Posted: Mon Oct 21, 2024 6:11 pm
by kelianmao
nice