[Genhis][2.0.35] Crash placing stone brick (BuildCheckResult.cpp)

This subforum contains all the issues which we already resolved.
thesixthroc
Long Handed Inserter
Long Handed Inserter
Posts: 72
Joined: Wed Apr 29, 2020 9:53 pm
Contact:

[Genhis][2.0.35] Crash placing stone brick (BuildCheckResult.cpp)

Post by thesixthroc »

A crash occurs in BuildCheckResult.cpp on Cerys versions 2.0.0 later.

Cerys creates a collision_layer called cerys_tile which is used for various purposes, one of which is to prevent stone-brick from being placed on Cerys. This is somehow causing the game to to crash when placing stone brick with an enlarged placement cursor over a region containing two different tiles with different collision masks that both contain cerys_tile.

Repro: Install Cerys >2.0.0, go to map editor, place `cerys-shallow-water` and a Cerys rock tile e.g. `cerys-ash-cracks` next to each other, attempt to place stone brick over both, experience crash.
Last edited by thesixthroc on Mon Feb 24, 2025 12:49 am, edited 5 times in total.
thesixthroc
Long Handed Inserter
Long Handed Inserter
Posts: 72
Joined: Wed Apr 29, 2020 9:53 pm
Contact:

Re: [2.0.35] Crash in BuildCheckResult.cpp when placing stone brick

Post by thesixthroc »

Session log:

Code: Select all

  25.541 Checksum for script __Cerys-Moon-of-Fulgora__/control.lua: 3122310195
  69.414 Error CrashHandler.cpp:641: Received SIGSEGV
Factorio crashed. Generating symbolized stacktrace, please wait ...
src/Util/StacktraceToStream.cpp (52): walkStackAndPrintToStream
src/Util/StacktraceToStream.cpp (60): printStacktraceToStream
src/Util/Logger.cpp (334): writeStacktrace
src/Util/Logger.cpp (379): logStacktrace
src/Util/CrashHandler.cpp (181): writeStackTrace
src/Util/CrashHandler.cpp (644): commonSignalHandler
src/Util/CrashHandler.cpp (652): SignalHandler
0x19af10183
src/Entity/BuildCheckResult.cpp (46): getMessage
src/Entity/BuildCheckResult.cpp (46): getMessage
src/Item/PlaceAsTile.cpp (137): checkAnyOfThePosition
src/ClientBuildContext.cpp (239): checkBuildTile
src/ClientBuildContext.cpp (58): build
src/ClientManualBuilder.cpp (31): build
src/Input/PlayerInputSource.cpp (2792): processBuild
/opt/libcxx16-macos10.10-11.0/lib/../include/c++/v1/__functional/function.h (510): operator()
/opt/libcxx16-macos10.10-11.0/lib/../include/c++/v1/__functional/function.h (1156): operator()
src/Input/ActionsTriggeredByInput.cpp (31): process
src/Input/PlayerInputSource.cpp (386): processEvent
src/MainLoop.cpp (0): processEvent
src/MainLoop.cpp (763): processEvents
src/MainLoop.cpp (604): prePrepare
src/MainLoop.cpp (684): mainLoopStep
src/MainLoop.cpp (413): run
src/Main.cpp (1356): fmain
src/Main.cpp (1378): main
Last edited by thesixthroc on Mon Feb 24, 2025 12:28 am, edited 1 time in total.
Loewchen
Global Moderator
Global Moderator
Posts: 9825
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [2.0.35] Crash in BuildCheckResult.cpp when placing stone brick

Post by Loewchen »

Post the complete log of a session with the issue, see 3638.
thesixthroc
Long Handed Inserter
Long Handed Inserter
Posts: 72
Joined: Wed Apr 29, 2020 9:53 pm
Contact:

Re: [2.0.35] Crash in BuildCheckResult.cpp when placing stone brick

Post by thesixthroc »

Complete session log.
Attachments
factorio-previous.log
(13.92 KiB) Downloaded 13 times
Genhis
Factorio Staff
Factorio Staff
Posts: 766
Joined: Wed Dec 24, 2014 8:19 am
Contact:

Re: [Genhis][2.0.35] Crash placing stone brick (BuildCheckResult.cpp)

Post by Genhis »

Thanks for the report, this is fixed for 2.0.40.
thesixthroc
Long Handed Inserter
Long Handed Inserter
Posts: 72
Joined: Wed Apr 29, 2020 9:53 pm
Contact:

Re: [Genhis][2.0.35] Crash placing stone brick (BuildCheckResult.cpp)

Post by thesixthroc »

Thank-you!
Post Reply

Return to “Resolved Problems and Bugs”