Bug 894 - crash on startup in SoundPlayer::sync_settings
Status:
RESOLVED FIXED
Component:
Core
Version:
1.9.0
Hardware:
PC Linux
Importance:
P5 critical
Target Milestone:
---
Assignee:
Rob Caelers
URL:
Depends on:
Blocks:
Reported:
Feb 22 2010 13:01:22 UTC
by:
Christian Weiske
Modified:
Mar 17 2010 23:18:06 UTC
| Who | When | What | Removed | Added |
|---|---|---|---|---|
| Rob Caelers | Mar 17 2010 23:18:06 UTC | status | NEW | RESOLVED |
| resolution | FIXED |
Description
Christian Weiske Feb 22 2010 13:01:22 UTC
Starting up workrave makes it crash for me on my 64 bit Gentoo machine.
Here is the log, backtrace and full backtrace:
>>> System::init
>>> System::init_kde
<<< System::init_kde0
System::init Locking enabled
<<< System::init
Program received signal SIGSEGV, Segmentation fault.
0x00000000004ee2d3 in SoundPlayer::sync_settings (this=0x7fffe8007c50) at SoundPlayer.cc:398
398 SoundPlayer.cc: Datei oder Verzeichnis nicht gefunden.
in SoundPlayer.cc
(gdb) bt
#0 0x00000000004ee2d3 in SoundPlayer::sync_settings (this=0x7fffe8007c50) at SoundPlayer.cc:398
#1 0x00000000004efce4 in SoundPlayer::register_sound_events (this=0x7fffe8007c50, theme=...)
at SoundPlayer.cc:334
#2 0x00000000004eff21 in SoundPlayer (this=0x7fffe8007c50) at SoundPlayer.cc:317
#3 0x0000000000434f2a in GUI::init_sound_player (this=0x775810) at GUI.cc:888
#4 0x0000000000437469 in GUI::main (this=0x775810) at GUI.cc:205
#5 0x000000000047ba03 in run (argc=1, argv=0x7fffffffdc28) at main.cc:54
#6 0x000000000047ba6d in main (argc=1, argv=0x7fffffffdc28) at main.cc:71
(gdb) bt full
#0 0x00000000004ee2d3 in SoundPlayer::sync_settings (this=0x7fffe8007c50) at SoundPlayer.cc:398
snd = 0x76f8a0
enabled = false
valid = false
wav_file = {static npos = 18446744073709551615, _M_dataplus = {<std::allocator<char>> =
{<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p =
0x1 <Address 0x1 out of bounds>}}
i = 0
#1 0x00000000004efce4 in SoundPlayer::register_sound_events (this=0x7fffe8007c50, theme=...)
at SoundPlayer.cc:334
path =
0x7fffef870231 "H\211\003H\203\304\020[\303SH\203\354\020H\211\373I\211\360H\307\306\377\377\377\377M\205\300t\026\061\300H\307\301\377\377\377\377L\211\307\362\256H\367\321I\215t\b\377\306\004$"
#2 0x00000000004eff21 in SoundPlayer (this=0x7fffe8007c50) at SoundPlayer.cc:317
No locals.
#3 0x0000000000434f2a in GUI::init_sound_player (this=0x775810) at GUI.cc:888
No locals.
#4 0x0000000000437469 in GUI::main (this=0x775810) at GUI.cc:205
debugMethod = 0x502347 "GUI::main"
kit = {<sigc::trackable> = {callback_list_ = 0x0}, _vptr.Main = 0x7ffff6a35610,
static signal_run_ = {<No data fields>}, static signal_quit_ = {<No data fields>},
static signal_key_snooper_ = {<No data fields>}, static instance_ = 0x7fffffffdaa0}
#5 0x000000000047ba03 in run (argc=1, argv=0x7fffffffdc28) at main.cc:54
gui = 0x775810
#6 0x000000000047ba6d in main (argc=1, argv=0x7fffffffdc28) at main.cc:71
ret = 0
(gdb)Comment 1
Rob Caelers Mar 17 2010 23:18:06 UTC
As far as I can tell, Workrave crashes because no sound driver is available. The sound driver of the next version of Workrave will be much more robust. (stack trace matches http://github.com/rcaelers/workrave/blob/e7baedb22866516b7b749e8bfd81b81bb6cb5486/frontend/common/src/SoundPlayer.cc)