Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on quit when ctrl+c'ing in the debug menu #76130

Open
NetSysFire opened this issue Sep 2, 2024 · 1 comment
Open

Crash on quit when ctrl+c'ing in the debug menu #76130

NetSysFire opened this issue Sep 2, 2024 · 1 comment
Labels
<Crash / Freeze> Fatal bug that results in hangs or crashes. curses Things specific to the curses variant of the game ImGui Anything related to the new ImGui UI for SDL/tiles or ImTui for curses builds (S1 - Need confirmation) Report waiting on confirmation of reproducibility

Comments

@NetSysFire
Copy link
Member

Describe the bug

See title. Randomly got this one while chasing down other stuff.

Attach save file

n/a

Steps to reproduce

  1. Go into the wish monster menu, search some string.
  2. Ctrl+c.
    libbacktrace error 0: unrecognized DWARF version in .debug_info at 6
    libbacktrace error 0: unrecognized DWARF version in .debug_info at 6
    0x558,088,1d7,3ef    src/debug.cpp:967    bt_full
    0x558,088,1d7,3ef    src/debug.cpp:1,232    debug_write_backtrace(std::ostream&)
    0x558,088,1af,89b    src/crash.cpp:89    log_crash
    0x558,088,1af,bf1    src/crash.cpp:146    signal_handler
    0x7f0,86d,b5d,1cf    [unknown src]:0    [unknown func]
    0x558,088,317,0ee    src/game.cpp:13,776    get_player_character()
    0x558,088,852,7a2    src/monster.cpp:996    monster::print_info_imgui() const
    0x558,088,e07,80e    src/wish.cpp:696    wish_monster_callback::refresh(uilist*)
    0x558,088,d14,6c7    src/ui.cpp:158    uilist_impl::draw_controls()
    0x558,088,04e,11a    src/cata_imgui.cpp:645    cataimgui::window::draw()
    0x558,088,04e,11a    src/cata_imgui.cpp:614    cataimgui::window::draw()
    0x558,088,d18,677    src/ui_manager.cpp:448    ui_adaptor::redraw_invalidated()
    0x558,088,638,132    src/main.cpp:181    exit_handler
    0x7f0,86d,b5d,1cf    [unknown src]:0    [unknown func]
    0x7f0,86d,c2b,604    [unknown src]:0    [unknown func]
    0x7f0,86e,151,936    [unknown src]:0    [unknown func]
    0x7f0,86e,123,a5e    [unknown src]:0    [unknown func]
    0x7f0,86e,124,79b    [unknown src]:0    [unknown func]
    0x558,088,8d2,999    src/ncurses_def.cpp:411    input_manager::get_input_event(keyboard_mode)
    0x558,088,41f,7d5    src/input_context.cpp:442    input_context::handle_input[abi:cxx11](int)
    0x558,088,d15,28a    src/ui.cpp:899    uilist::query(bool, int, bool)
    0x558,088,e02,043    src/wish.cpp:737    debug_menu::wishmonster(std::optional<tripoint> const&)
    0x558,088,1ff,7f9    src/debug_menu.cpp:3,751    debug_menu::debug()
    0x558,088,3b1,bfe    src/handle_action.cpp:2,835    game::do_regular_action(action_id&, avatar&, std::optional<tripoint> const&)
    0x558,088,3b3,349    src/handle_action.cpp:3,175    game::handle_action()
    0x558,088,23b,69a    src/do_turn.cpp:579    do_turn()
    0x558,087,d78,ab7    src/main.cpp:875    main
    0x7f0,86d,b45,e07    [unknown src]:0    [unknown func]
    0x7f0,86d,b45,ecb    [unknown src]:0    [unknown func]
    0x558,087,eb8,19d    [unknown src]:0    [unknown func]
    0xf,fff,fff,fff,fff,fff    [unknown src]:0    [unknown func]

Expected behavior

No crash.

CC @db48x

Screenshots

No response

Versions and configuration

I'd paste the debug info here but I can't because the debug.log is not being generated.

This is cdda-linux-curses-x64-2024-09-01-1411.

Additional context

No response

@NetSysFire NetSysFire added <Crash / Freeze> Fatal bug that results in hangs or crashes. (S1 - Need confirmation) Report waiting on confirmation of reproducibility ImGui Anything related to the new ImGui UI for SDL/tiles or ImTui for curses builds curses Things specific to the curses variant of the game labels Sep 2, 2024
db48x pushed a commit to db48x/Cataclysm-DDA that referenced this issue Sep 3, 2024
Not really much point in redrawing the UI when we’re about to be
killed anyway.

Fixes CleverRaven#76130
@l29ah
Copy link
Contributor

l29ah commented Sep 7, 2024

Duplicate of #75012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Crash / Freeze> Fatal bug that results in hangs or crashes. curses Things specific to the curses variant of the game ImGui Anything related to the new ImGui UI for SDL/tiles or ImTui for curses builds (S1 - Need confirmation) Report waiting on confirmation of reproducibility
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants
@l29ah @NetSysFire and others