pioneerspacesim/pioneer — Issue #1014: Exiting or loading a game that was loaded from the main menu causes a crash
Author: Brianetta
Created: 2012-02-24 19:15:54+00:00
State: open
Labels: Crash or hang

To replicate:

1. Load a saved game.
2. Press escape or click pause twice.
2. Click either `[L] Load a game` or `Exit this game`
2. Observe crash.

Backtrace:

```

pioneer: Space.cpp:211: void Space::RemoveBody(Body*): Assertion `!m_processingFinalizationQueue' failed.

Program received signal SIGABRT, Aborted.
0x00007ffff5d7d3a5 in __GI_raise (sig=6)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
64	../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
in ../nptl/sysdeps/unix/sysv/linux/raise.c

(gdb) bt
#0 0x00007ffff5d7d3a5 in __GI_raise (sig=6)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1 0x00007ffff5d80b0b in __GI_abort () at abort.c:92
#2 0x00007ffff5d75d4d in __GI___assert_fail (
assertion=0x5de700 "!m_processingFinalizationQueue", file=,
line=211, function=) at assert.c:81
#3 0x00000000005108d4 in Space::RemoveBody (this=, b=0x2f007c0)
at Space.cpp:211
#4 0x0000000000440971 in Game::~Game (this=0x6a7b5d0,
__in_chrg=) at Game.cpp:93
#5 0x00000000004b47f8 in Pi::EndGame () at Pi.cpp:1199
#6 0x000000000055c132 in emit (impl=)
at /usr/include/sigc++-2.0/sigc++/signal.h:776
#7 emit (this=) at /usr/include/sigc++-2.0/sigc++/signal.h:2673
#8 OnMouseUp (this=, e=) at GuiButton.cpp:37
#9 Gui::Button::OnMouseUp (this=, e=)
at GuiButton.cpp:31
#10 0x000000000055d46f in Gui::Container::HandleMouseEvent (this=0x4222630,
e=0x7fffffffd920) at GuiContainer.cpp:93
#11 0x000000000055d46f in Gui::Container::HandleMouseEvent (this=0x4222260,
e=0x7fffffffd920) at GuiContainer.cpp:93

#12 0x000000000055d46f in Gui::Container::HandleMouseEvent (this=0x42220b0,
e=0x7fffffffd920) at GuiContainer.cpp:93
#13 0x000000000055d46f in Gui::Container::HandleMouseEvent (this=0x42219e0,
e=0x7fffffffd920) at GuiContainer.cpp:93
#14 0x000000000055d46f in Gui::Container::HandleMouseEvent (this=0x1056b00,
e=0x7fffffffd920) at GuiContainer.cpp:93
#15 0x0000000000564859 in Gui::Screen::OnClick (e=)
at GuiScreen.cpp:198
#16 0x0000000000558ee5 in Gui::HandleSDLEvent (event=0x7fffffffdb70)
at Gui.cpp:27
#17 0x00000000004b48c2 in Pi::HandleEvents () at Pi.cpp:674
#18 0x00000000004b5ef7 in Pi::MainLoop () at Pi.cpp:1275
#19 0x00000000004b774c in Pi::Start () at Pi.cpp:1180
#20 0x0000000000414a35 in main (argc=) at main.cpp:18
```