Describe the bug
After creating a new role confirmation, the game crashes before it starts.
To Reproduce
Steps to reproduce the behavior:
1.Select one of the following Scenarios, all others use the default values.
2.Confirm the creation of the character and start the game
3.the game crashes
Versions and configuration(please complete the following information):
Additional context
Not crash in these Scenarios:
Evacuee
Challenge-Medieval Peasant
At least still working in this version:
2347-gd2817f3
I''ve not been to test more versions.
The program has crashed.
See the log file for a stack trace.
CRASH LOG FILE: ./config/crash.log
VERSION: 0.D-2460-gc0cef43
TYPE: Signal
MESSAGE: SIGSEGV: Segmentation fault
STACK TRACE:
/tmp/ramdisk/cata/cataclysm-tiles(_Z21debug_write_backtraceRSo+0x25) [0x7e9b66]
/tmp/ramdisk/cata/cataclysm-tiles() [0x7dbaa7]
/tmp/ramdisk/cata/cataclysm-tiles() [0x7dbca8]
/lib/x86_64-linux-gnu/libc.so.6(+0x3ef20) [0x7ff25a8a1f20]
/tmp/ramdisk/cata/cataclysm-tiles(_ZNK5field10findFieldcE8field_id+0x4) [0x84eda4]
/tmp/ramdisk/cata/cataclysm-tiles(_ZNK3map18get_field_strengthERK8tripoint8field_id+0x12) [0x9f5d12]
/tmp/ramdisk/cata/cataclysm-tiles(_Z18get_heat_radiationRK8tripointb+0xc8) [0x862093]
/tmp/ramdisk/cata/cataclysm-tiles(_ZN4item23process_temperature_rotEif8tripointP6player+0x136) [0x92461c]
/tmp/ramdisk/cata/cataclysm-tiles(_ZN4item7processEP6playerRK8tripointbif+0x468) [0x928da4]
/tmp/ramdisk/cata/cataclysm-tiles(_ZN3map8add_itemERK8tripoint4item+0xd6) [0x9f6542]
/tmp/ramdisk/cata/cataclysm-tiles(_ZN3map8add_itemEii4item+0x42) [0x9f6594]
/tmp/ramdisk/cata/cataclysm-tiles(_ZN3map12place_toiletEiii+0x83) [0xa26419]
/tmp/ramdisk/cata/cataclysm-tiles(_ZNK15jmapgen_objects5applyERK10mapgendatafP7mission+0x7c) [0xa23ffc]
/tmp/ramdisk/cata/cataclysm-tiles(_ZNK15jmapgen_objects5applyERK10mapgendataiifP7mission+0x2f) [0xa24043]
/tmp/ramdisk/cata/cataclysm-tiles(_ZN20mapgen_function_json8generateEP3mapRK6int_idI6oter_tERK10mapgendataRK10time_pointf+0xb4) [0xa2a84e]
/tmp/ramdisk/cata/cataclysm-tiles(_ZN3map8draw_mapERK6int_idI6oter_tES4_S4_S4_S4_S4_S4_S4_S4_S4_S4_RK10time_pointfiPK17regional_settings+0x25a) [0xa34126]
/tmp/ramdisk/cata/cataclysm-tiles(_ZN3map8generateEiiiRK10time_point+0x41a) [0xa4ed86]
/tmp/ramdisk/cata/cataclysm-tiles(_ZN3map5loadnEiiib+0x3e7) [0xa009d9]
/tmp/ramdisk/cata/cataclysm-tiles(_ZN3map4loadEiiib+0x5a) [0xa013d6]
/tmp/ramdisk/cata/cataclysm-tiles(_ZNK14start_location11prepare_mapERK8tripoint+0x44) [0xcfc8de]
Attempting to repeat stack trace using debug symbols...
debug_write_backtrace(std::ostream&)
??:?
log_crash
crash.cpp:?
signal_handler
crash.cpp:?
??
??:0
field::findFieldc(field_id) const
??:?
map::get_field_strength(tripoint const&, field_id) const
??:?
get_heat_radiation(tripoint const&, bool)
??:?
item::process_temperature_rot(int, float, tripoint, player*)
??:?
item::process(player*, tripoint const&, bool, int, float)
??:?
map::add_item(tripoint const&, item)
??:?
map::add_item(int, int, item)
??:?
map::place_toilet(int, int, int)
??:?
jmapgen_objects::apply(mapgendata const&, float, mission*) const
??:?
jmapgen_objects::apply(mapgendata const&, int, int, float, mission*) const
??:?
mapgen_function_json::generate(map*, int_id<oter_t> const&, mapgendata const&, time_point const&, float)
??:?
map::draw_map(int_id<oter_t> const&, int_id<oter_t> const&, int_id<oter_t> const&, int_id<oter_t> const&, int_id<oter_t> const&, int_id<oter_t> const&, int_id<oter_t> const&, int_id<oter_t> const&, int_id<oter_t> const&, int_id<oter_t> const&, int_id<oter_t> const&, time_point const&, float, int, regional_settings const*)
??:?
map::generate(int, int, int, time_point const&)
??:?
map::loadn(int, int, int, bool)
??:?
map::load(int, int, int, bool)
??:?
start_location::prepare_map(tripoint const&) const
??:?
The game places water in toilets.
The temperature of the water gets processed.
The game starts at t=8 h. The item has its last temp check at t=0.
The 8 hours of history gets calculated.
Tries to get the heat from heat sources (this is new feature).
I guess the game doesn't like it when you try to get the heat field at this point of map gen.
Vending machines will also have same problem as toilets. Are there any other furniture things that have items in them like this?
For now if you want to start a scenario that has toilets/vending machines nearby you can set the game start time to 0 hours (world options -> initial time)
Again with this? This reminds me of #24288. That issue was fixed in PR #24555 if you want to reference older code. I bring it up because it's another crash that occurred on a new game related to temperature. Maybe it's a similar bug?
Most helpful comment
The game places water in toilets.
The temperature of the water gets processed.
The game starts at t=8 h. The item has its last temp check at t=0.
The 8 hours of history gets calculated.
Tries to get the heat from heat sources (this is new feature).
I guess the game doesn't like it when you try to get the heat field at this point of map gen.
Vending machines will also have same problem as toilets. Are there any other furniture things that have items in them like this?
For now if you want to start a scenario that has toilets/vending machines nearby you can set the game start time to 0 hours (world options -> initial time)