self-destructing while fast-forwarding transitions causes segfault

Create issue
Issue #363 resolved
Riot created an issue
Pressed a key to fast forward transition
Pressed a key to fast forward transition
Transition was already being fast-forwarded, skipping entirely
SteamStorm: DEBUG: Setting achievement "self_destruct" - Range Safety: Range Safety (hidden)
SteamStorm: DEBUG: Achievement "self_destruct" unlocked at 1496147798.
Ship destroyed

Thread 1 "sphereFACE_debu" received signal SIGSEGV, Segmentation fault.
0x0000000000692b6f in weapon::base::render_sphere (this=0x67a9380) at /home/slowriot/code/sphereface/weapon/base.cpp:191
191   glTranslatef(0.0, -parent->parent->radius, 0.0);
(gdb) bt
#0  0x0000000000692b6f in weapon::base::render_sphere (this=0x67a9380) at /home/slowriot/code/sphereface/weapon/base.cpp:191
#1  0x00000000004f14bc in entity::ship::playership::render_sphere (this=0x5c06480)
    at /home/slowriot/code/sphereface/entity/ship/playership.cpp:276
#2  0x0000000000592f9c in sphere::render (this=0x8928cb0) at /home/slowriot/code/sphereface/sphere.cpp:441
#3  0x00000000005c7ad2 in universe::render_per_eye(std::function<void ()>) (this=this@entry=0x7ffffff5da40, 
    additional_render_func=...) at /home/slowriot/code/sphereface/universe/graphics.cpp:473
#4  0x00000000005c7ff2 in universe::render(std::function<void ()>) (this=this@entry=0x7ffffff5da40, additional_render_func=...)
    at /home/slowriot/code/sphereface/universe/graphics.cpp:574
#5  0x00000000005cf6d2 in universe::loop_fade_in (this=this@entry=0x7ffffff5da40)
    at /home/slowriot/code/sphereface/universe/loop_fade_in.cpp:105
#6  0x00000000005ce4aa in universe::loop_dispatcher (this=this@entry=0x7ffffff5da40)
    at /home/slowriot/code/sphereface/universe/loop_dispatcher.cpp:49
#7  0x0000000000546bc5 in main (argc=<optimized out>, argv=0x7fffffffe678) at /home/slowriot/code/sphereface/main.cpp:101

Comments (1)

  1. Riot reporter

    introduce separate skip-transition mode for fast-forward, rather than using RUNNING mode - resolves #363 and any other issues with being in the wrong mode during transition

    → <<cset 27e9b9ccb88c>>

  2. Log in to comment