CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.63k stars 4.18k forks source link

Crash when attacked (0.H Stable Candidate) #72763

Open CatoBarane opened 7 months ago

CatoBarane commented 7 months ago

Describe the bug

Randomly when attacked there is an error which crashes the game. Invalid body part id: "achievement_arcade_mode"

I am pretty sure i have turned on meta progression, as this seems to be related to that.

Attach save file

I was able to generate a save file where the the error occurred quickly after generating. Tualatin-trimmed.tar.gz

Steps to reproduce

Load attached save and attack group of surrounding zombies at random, there is a chance for it to crash.

Expected behavior

No crash.

Screenshots

No response

Versions and configuration

Additional context

The program has crashed. See the log file for a stack trace. CRASH LOG FILE: /Users/catobarane/Library/Application Support/Cataclysm/config/crash.log VERSION: 0.G-6202-g5d069f2eac TYPE: Signal MESSAGE: SIGSEGV: Segmentation fault STACK TRACE:

0   cataclysm-tiles                     0x00000001007274b0 debug_write_backtrace(std::__1::basic_ostream<char, std::__1::char_traits<char>>&) + 72
1   cataclysm-tiles                     0x00000001006e6cc4 log_crash(char const*, char const*) + 460
2   cataclysm-tiles                     0x000000010183473c signal_handler(int) (.cold.1) + 32
3   cataclysm-tiles                     0x00000001006e6a08 crash_terminate_handler() + 0
4   libsystem_platform.dylib            0x000000018d0fda24 _sigtramp + 56
5   ???                                 0xffff80018cf326e4 0x0 + 18446603342880909028
6   libdispatch.dylib                   0x000000018cf326e4 _dispatch_source_invoke + 624
7   libdispatch.dylib                   0x000000018cf2e1f4 _dispatch_root_queue_drain + 392
8   libdispatch.dylib                   0x000000018cf2ea04 _dispatch_worker_thread2 + 156
9   libsystem_pthread.dylib             0x000000018d0ca0d8 _pthread_wqthread + 228
10  libsystem_pthread.dylib             0x000000018d0c8e30 start_wqthread + 8

Attempting to repeat stack trace using debug symbols…
backtrace: Could not extract binary name from line
backtrace: Could not extract binary name from line
backtrace: Could not extract binary name from line
backtrace: Could not extract binary name from line
backtrace: Could not extract binary name from line
backtrace: Could not extract binary name from line
backtrace: Could not extract binary name from line
backtrace: Could not extract binary name from line
backtrace: Could not extract binary name from line
backtrace: Could not extract binary name from line
backtrace: Could not extract binary name from line

zsh: abort ./cataclysm-launcher

RenechCDDA commented 6 months ago

I was unable to reproduce this issue on Windows 10 / f255964f9c1f223489d9c4b680ee57dacb88631a (the 0.H release candidate)

Note that the debug.log has a real stack trace, but it makes no sense to me.

11:12:06.700 ERROR : (error message will follow backtrace)
    0   cataclysm-tiles                     0x00000001007274b0 debug_write_backtrace(std::__1::basic_ostream<char, std::__1::char_traits<char>>&) + 72
    1   cataclysm-tiles                     0x0000000100726530 DebugLog(DebugLevel, DebugClass) + 416
    2   cataclysm-tiles                     0x0000000100725d9c realDebugmsg(char const*, char const*, char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&) + 196
    3   cataclysm-tiles                     0x000000010042f0a8 generic_factory<body_part_type>::convert(string_id<body_part_type> const&, int_id<body_part_type> const&, bool) const + 164
    4   cataclysm-tiles                     0x000000010042eff8 string_id<body_part_type>::id() const + 40
    5   cataclysm-tiles                     0x0000000100f3cfd4 Character::perform_technique(ma_technique const&, Creature&, damage_instance&, int&, item_location&) + 3028
    6   cataclysm-tiles                     0x0000000100f39788 Character::melee_attack_abstract(Creature&, bool, string_id<ma_technique> const&, bool, int) + 3976
    7   cataclysm-tiles                     0x00000001003a3004 avatar_action::move(avatar&, map&, tripoint const&) + 4276
    8   cataclysm-tiles                     0x00000001003a63a0 avatar_action::autoattack(avatar&, map&) + 808
    9   cataclysm-tiles                     0x00000001009ad7e4 game::do_regular_action(action_id&, avatar&, std::__1::optional<tripoint> const&) + 7008
    10  cataclysm-tiles                     0x00000001009bc4dc game::handle_action() + 716
    11  cataclysm-tiles                     0x00000001007cc770 do_turn() + 2248
    12  cataclysm-tiles                     0x0000000100d37110 main + 4216
    13  dyld                                0x000000018cd4d0e0 start + 2360
CatoBarane commented 4 months ago

I was now able to reproduce with version be7a566, previously i had compiled it myself.

debug.log