CleverRaven / Cataclysm-DDA

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

Debug message (vehicle::get_display_of_tile) when climbing a roof #72440

Closed pierredavidbelanger closed 6 months ago

pierredavidbelanger commented 8 months ago

Describe the bug

When there is a vehicle visible and I climb to a roof, the game stop and display the debug message here , with point being at 0,0.

Attach save file

Northfield-trimmed.tar.gz

Steps to reproduce

  1. load the save file, the char is right on a downspout
  2. climb it (<) to the south (2)

Expected behavior

I do not expect a crash.

Screenshots

No response

Versions and configuration

21:30:51.062 :  GAME REPORT:
- OS: Linux
    - OS Version: Distributor ID: Ubuntu; Description: Ubuntu 22.04.4 LTS; Release: 22.04; Codename: jammy;
- Game Version: 0.G-8021-g0bb40773a9-dirty [64-bit]
- Graphics Version: Curses
- Game Language: System language []
- Mods loaded: [
    Dark Days Ahead [dda],
    Disable NPC Needs [no_npc_food],
    Portal Storms Ignore NPCs [personal_portal_storms],
    Slowdown Fungal Growth [no_fungal_growth]
]

Additional context

21:17:19.519 : Starting log.
21:17:19.519 INFO : Cataclysm DDA version 0.G-8021-g0bb40773a9-dirty
21:17:19.519 INFO : [main] C locale set to C.UTF-8
21:17:19.519 INFO : [main] C++ locale set to C.UTF-8
21:17:19.521 INFO : [options] C locale set to C.UTF-8
21:17:19.521 INFO : [options] C++ locale set to C.UTF-8
21:17:41.795 ERROR : (error message will follow backtrace)
    ./cataclysm(debug_write_backtrace(std::ostream&)+0x3d) [0x55a27ffb1d42]
    ./cataclysm(DebugLog(DebugLevel, DebugClass)+0x228) [0x55a27ffb3d03]
    ./cataclysm(realDebugmsg(char const*, char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x17b) [0x55a27ffb3fce]
    ./cataclysm(+0x496f29) [0x55a27fdeef29]
    ./cataclysm(vehicle::get_display_of_tile(point const&, bool, bool, bool, bool) const+0x84) [0x55a2807bc1ee]
    ./cataclysm(map::draw_from_above(catacurses::window const&, tripoint const&, maptile_impl<submap const> const&, drawsq_params const&) const+0xf6) [0x55a2802b46c0]
    ./cataclysm(+0x9779e7) [0x55a2802cf9e7]
    ./cataclysm(game::draw_ter(tripoint const&, bool, bool)+0x64) [0x55a2800924be]
    ./cataclysm(game::draw_ter(bool)+0x6a) [0x55a2800928a4]
    ./cataclysm(game::draw(ui_adaptor&)+0xbe) [0x55a280092982]
    ./cataclysm(ui_adaptor::redraw_invalidated()+0x23f) [0x55a280761ddb]
    ./cataclysm(do_turn()+0x20c5) [0x55a27fffc5fa]
    ./cataclysm(main+0x1df6) [0x55a27fba269d]
    /lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x7fb9ba4ffd90]
    /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80) [0x7fb9ba4ffe40]
    ./cataclysm(_start+0x25) [0x55a27fd93f35]

    Attempting to repeat stack trace using debug symbols…

It usually display a message in game, but since I enabled DEBUG_SYMBOLS=1 in my build . it hangs forever there , i guess i miss something on my linux , addr2line or something.

github-actions[bot] commented 7 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not bump or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.

irwiss commented 6 months ago

For posterity this is most likely fixed by https://github.com/CleverRaven/Cataclysm-DDA/pull/73747