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

game crash from fatigue? #76

Open
GoogleCodeExporter opened this issue Jul 19, 2015 · 0 comments
Open

game crash from fatigue? #76

GoogleCodeExporter opened this issue Jul 19, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. run around
2. a lot

What is the expected output? What do you see instead?
the game crashes

What version of the product are you using? On what operating system?
silvertree 0.2.1 compiled from source on debian/unstable on amd64


after running around a lot, the character gets slower, and after some time,
the game crashes in character.cpp line 221:

Program received signal SIGFPE, Arithmetic exception.
0x0000000000489722 in game_logic::character::move_cost (this=0x4082740,
terrain=<value optimized out>, feature=..., height_change=0) at
character.cpp:221
221             return (climb_cost*base_cost)/(speed()*100);
(gdb) p speed()
$1 = 0
(gdb) bt
#0  0x0000000000489722 in game_logic::character::move_cost (this=0x4082740,
terrain=<value optimized out>, feature=..., height_change=0) at
character.cpp:221
#1  0x00000000004c5344 in game_logic::party::movement_cost (this=0x40851b0,
src=..., dst=<value optimized out>) at party.cpp:324
#2  0x00000000004c4bac in game_logic::party::move (this=0x40851b0,
dir=hex::NORTH_WEST) at party.cpp:262
#3  0x00000000004d997d in game_logic::pc_party::do_turn (this=0x40851b0) at
pc_party.cpp:116
#4  0x00000000004c4ece in game_logic::party::play_turn (this=0x64) at
party.cpp:216
#5  0x000000000047760c in game_logic::world::play (this=0x404e610) at
world.cpp:782
#6  0x00000000004786f7 in game_logic::world::play (this=0x9d1130) at
world.cpp:671
#7  0x000000000040bef6 in main (argc=<value optimized out>, argv=<value
optimized out>) at main.cpp:197
(gdb)

Original issue reported on code.google.com by [email protected] on 2 Sep 2009 at 4:35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant