From: Bladepopper <bla...@gm...> - 2009-07-14 06:15:03
|
Btw i thought i include the source code for the speech program. int main(int argc, char** argv) { try { PlayerCc::PlayerClient client("127.0.0.1", 6665); PlayerCc::SpeechRecognitionProxy srp(&client, 0); srp.ConnectReadSignal(boost::bind(&Print<SpeechRecognitionProxy*>, &srp)); for(;;){ client.Read(); timespec sleep = {0, 200000000}; // 200 ms nanosleep(&sleep, NULL); } } catch (PlayerCc::PlayerError e) { std::cerr << e << std::endl; return -1; } return 1; } I'm pretty sure the crash happens at client.Read(). Thanks for any suggestions. Bladepopper wrote: > > Hey Toby, > thanks for your help. I tried the gdb program and i got an error message > "Program exited with code 0377". I've research a bit on google about this > error code and found out it is a bug on the developer's side?? I'm not > sure about this and i'm still doing research. Also, "backtrace" did not > help cause nothing appears at all. > > Here's the full message: > root@eis:~# gdb /usr/src/player-2.1.2/examples/libplayerc++/rec > GNU gdb 6.8-debian > Copyright (C) 2008 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > <http://gnu.org/licenses/gpl.html> > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show copying" > and "show warranty" for details. > This GDB was configured as "i486-linux-gnu"... > (gdb) run > Starting program: > /usr/src/player-2.1.2/examples/libplayerc++/speech_cpp_client > [Thread debugging using libthread_db enabled] > playerc error : socket disconnected > warning : failed to reconnect > playerc error : close failed with error [Bad file descriptor] > PlayerClient::Read()(-1) : > > Program exited with code 0377. > (gdb) backtrace > No stack. > > > by the way, i just wanna check something. I opened two terminal when > running this program and player. The program terminal appears the above > message, and the player terminal appears the message with the segmentation > fault in my first post. This operation method is correct? > > -- View this message in context: http://www.nabble.com/Player-and-Sphinx-problem-tp24437571p24474233.html Sent from the playerstage-users mailing list archive at Nabble.com. |