system hangs - any hints of how to get a stacktrace?
Moderator: Forum Moderators
Forum rules
Before reporting issues in this section, you must read the following topic:
Before reporting issues in this section, you must read the following topic:
system hangs - any hints of how to get a stacktrace?
Hello,
I've been trying for a week now with several attempts to run a stable version of Wesnoth 0.8.2 on Redhat 9. The way a game of Wesnoth ends for me is usually because the whole system hangs (well the x server still allows me to move the mouse). I can't even get another console to the machine.
This happens in two different places:
1. the sound goes first, and then after some while the game hangs, usually when the turn changes
2. when a scenario is finished and the save replay or game dialogs happen
I'm compiling the game on my machine and tried several things:
- upgrading gcc to the latest 3.4.1
- editing the Makefile to use the -fno-omit-frame-pointer as suggested in the gcc problem sticky post
- switching to Wesnoth-Lite because the first cause of crash might be somehow related to sound
With the Wesnoth Lite, the system hung when I hit the quit button in the main menu.
Does anyone have an idea how to get more information (core dump or stack trace...) with a problem like this, when the system hangs? Or anyone who has experienced similar problems?
Note: my system runs extremely stable otherwise and I have not had this problem with any other application.
Thanks for any hints
Rhuvaen
I've been trying for a week now with several attempts to run a stable version of Wesnoth 0.8.2 on Redhat 9. The way a game of Wesnoth ends for me is usually because the whole system hangs (well the x server still allows me to move the mouse). I can't even get another console to the machine.
This happens in two different places:
1. the sound goes first, and then after some while the game hangs, usually when the turn changes
2. when a scenario is finished and the save replay or game dialogs happen
I'm compiling the game on my machine and tried several things:
- upgrading gcc to the latest 3.4.1
- editing the Makefile to use the -fno-omit-frame-pointer as suggested in the gcc problem sticky post
- switching to Wesnoth-Lite because the first cause of crash might be somehow related to sound
With the Wesnoth Lite, the system hung when I hit the quit button in the main menu.
Does anyone have an idea how to get more information (core dump or stack trace...) with a problem like this, when the system hangs? Or anyone who has experienced similar problems?
Note: my system runs extremely stable otherwise and I have not had this problem with any other application.
Thanks for any hints
Rhuvaen
Try some Multiplayer Scenarios / Campaigns
Re: system hangs - any hints of how to get a stacktrace?
When Wesnoth hangs, get his PID with ps.Rhuvaen wrote:Does anyone have an idea how to get more information (core dump or stack trace...) with a problem like this, when the system hangs? Or anyone who has experienced similar problems?
Launch gdb, and type 'attach <pid>' (replace <pid> with appropriate value)
From there type 'bt' or 'bt full' to get a backtrace.
Alternatively, could you check if the attached patch helps?
--
Cedric
SDL-1.2.7-1miyo wrote:What version of SDL you have?
Rhuvaen
Try some Multiplayer Scenarios / Campaigns
Re: system hangs - any hints of how to get a stacktrace?
What I mean is, when Wesnoth hangs, I need to restart my computer to get it to work again!cedric wrote: When Wesnoth hangs, get his PID with ps.
Launch gdb, and type 'attach <pid>' (replace <pid> with appropriate value)
From there type 'bt' or 'bt full' to get a backtrace.
Rhuvaen
Try some Multiplayer Scenarios / Campaigns
Re: system hangs - any hints of how to get a stacktrace?
Oh, I currently have the "lite" version installed. Does that patch make sense then, too?cedric wrote:Alternatively, could you check if the attached patch helps?
Rhuvaen
Try some Multiplayer Scenarios / Campaigns
Re: system hangs - any hints of how to get a stacktrace?
If you can still get consoles, as you said, your system does not seem hanged very hard.Rhuvaen wrote:What I mean is, when Wesnoth hangs, I need to restart my computer to get it to work again!cedric wrote: When Wesnoth hangs, get his PID with ps.
Launch gdb, and type 'attach <pid>' (replace <pid> with appropriate value)
From there type 'bt' or 'bt full' to get a backtrace.
Do you mean you run wesnoth in fullscreen and get stuck here when it hangs? Then run it in windowed mode, and only the wesnoth window will be frozen, and then you can try to get a backtrace.
Yes, apply that to src/sound.cpp, and recompile.Rhuvaen wrote:Oh, I currently have the "lite" version installed. Does that patch make sense then, too?
--
Cedric
Re: system hangs - any hints of how to get a stacktrace?
If you can still get consoles, as you said, your system does not seem hanged very hard.Rhuvaen wrote:What I mean is, when Wesnoth hangs, I need to restart my computer to get it to work again!cedric wrote: When Wesnoth hangs, get his PID with ps.
Launch gdb, and type 'attach <pid>' (replace <pid> with appropriate value)
From there type 'bt' or 'bt full' to get a backtrace.
Do you mean you run wesnoth in fullscreen and get stuck here when it hangs? Then run it in windowed mode, and only the wesnoth window will be frozen, and then you can try to get a backtrace.
Yes, apply that to src/sound.cpp, and recompile.Rhuvaen wrote:Oh, I currently have the "lite" version installed. Does that patch make sense then, too?
--
Cedric
No idea, I don't have another computer that's connected up.dms wrote:When it hangs, can you ssh (or telnet) in from another computer? (Or does it not even respond to that?)
Rhuvaen
Try some Multiplayer Scenarios / Campaigns
Re: system hangs - any hints of how to get a stacktrace?
No, as I said, I CAN'T get any consoles...cedric wrote: If you can still get consoles, as you said, your system does not seem hanged very hard.
And is there a commandline option to do that? (I think I know the answer but not the option)Do you mean you run wesnoth in fullscreen and get stuck here when it hangs? Then run it in windowed mode, and only the wesnoth window will be frozen, and then you can try to get a backtrace.
I will try the patch and recompile now.
Rhuvaen
Try some Multiplayer Scenarios / Campaigns
Re: system hangs - any hints of how to get a stacktrace?
wesnoth -wRhuvaen wrote:And is there a commandline option to do that? (I think I know the answer but not the option)
This is also accessible from the preferences menu.
Thanks. This reverses an attempt to improve the audio quality, which in the end caused on some systems problems very similar to the one you're encountering.Rhuvaen wrote:I will try the patch and recompile now.
--
Cedric
Re: system hangs - any hints of how to get a stacktrace?
Well I did this and played for two hours (of course, only to try to reproduce the error ), and the game was running as smoothly as possible.cedric wrote:Thanks. This reverses an attempt to improve the audio quality, which in the end caused on some systems problems very similar to the one you're encountering.Rhuvaen wrote:I will try the patch and recompile now.
Thanks ever so much Cedric, I think I'll try the full version with music with this patch now!
Rhuvaen
Try some Multiplayer Scenarios / Campaigns