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 when sleeping in development branch #8307

Closed
pouar opened this issue Jul 22, 2014 · 3 comments · Fixed by #8545
Closed

crash when sleeping in development branch #8307

pouar opened this issue Jul 22, 2014 · 3 comments · Fixed by #8545

Comments

@pouar
Copy link
Contributor

pouar commented Jul 22, 2014

in the current master branch, when sleeping the game crashes, heres what it says in GDB
/usr/include/c++/4.9.0/debug/vector:357:error: attempt to subscript
container with out-of-bounds index 0, but container only holds 0
elements.

Objects involved in the operation:
sequence "this" @ 0x0x7fffffffae70 {
type = NSt7__debug6vectorI5dreamSaIS1_EEE;
}

Program received signal SIGABRT, Aborted.
0x00007ffff6b07d67 in raise () from /lib/libc.so.6
(gdb) bt
#0 0x00007ffff6b07d67 in raise () from /lib/libc.so.6
#1 0x00007ffff6b09118 in abort () from /lib/libc.so.6
#2 0x00007ffff7454955 in __gnu_debug::_Error_formatter::_M_error() const () from /lib/libstdc++.so.6
#3 0x00000000009f9474 in operator[](__n=0, this=0x7fffffffae70) at /usr/include/c++/4.9.0/debug/vector:357
#4 player::get_category_dream (this=this@entry=0x35da378, cat="", strength=strength@entry=4) at src/player.cpp:3619
#5 0x0000000000aa98c6 in manage_sleep (p=..., dis=...) at src/disease.cpp:2673
#6 0x0000000000ab2530 in dis_effect (p=..., dis=...) at src/disease.cpp:929
#7 0x0000000000a41a99 in player::suffer (this=this@entry=0x35da378) at src/player.cpp:5474
#8 0x0000000000a47308 in player::process_turn (this=this@entry=0x35da378) at src/player.cpp:537
#9 0x00000000005cb64f in game::do_turn (this=0x3588b90) at src/game.cpp:1416
#10 0x00000000008b8aad in main (argc=0, argv=) at src/main.cpp:314

@pouar pouar changed the title crash when sleeping in master branch crash when sleeping in development branch Jul 22, 2014
@pouar
Copy link
Contributor Author

pouar commented Jul 22, 2014

Could enabling certain mutations from the cheat menu cause this? If this is the case then this might be entirely my fault.

@pouar
Copy link
Contributor Author

pouar commented Jul 23, 2014

Or could manually turning all these mutations to traits by manually editing the save file cause this. If so then this is definitely my fault.

@KA101
Copy link
Contributor

KA101 commented Jul 23, 2014

It's possible conflicting mutations (more AND less sleep, heal AND take damage over time) might cause bugs, since they aren't designed for that.

But it's also possible that something borked. I don't have a lot of time right now to drill into it, but someone remind me and I'll check.

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

Successfully merging a pull request may close this issue.

2 participants