Closed janbogdanov closed 4 years ago
Follow-up of soundplay_node.py crashes after a certain period on ROS Answers.
This sounds like https://github.com/ros-drivers/audio_common/issues/75 and https://github.com/ros-drivers/audio_common/issues/7 are back.
These have traditionally been very difficult issues for me to reproduce locally. Please provide a complete ROS package and step-by-step instructions to reproduce this.
It seems #75 and I indeed have similar issues.
The system is attempting to implement speech synthesis and basically comprises of the following elements:
1) A publisher node, which publishes a simple message (ss << "Hello, world " << count;
) at a rate of (ros::Rate loop_rate(0.1);
)
2) A subscriber node, which subscribes to the messages (ros::Subscriber sub = n.subscribe("chatter", 1000, chatterCallback);
), performs speech synthesis on it in the subscriber callback (it takes approximately 100ms), after which a .wav file is created. That .wav file is then played using sound_play in the way described above.
3) The soundplay_node.py node, which is "hot-fixed" for another problem with a solution shown in #96
The system is using ROS-Kinetic and sound_play 0.3.1.
If I am failing to provide the information you were expecting, please let me know. Thank you in advance!
Hello, is this issue still ongoing? We have also been facing the same issue.
After running soundplay_node.py
for a while, we get the following errors, which is almost the same as #75.
(python:5789): GStreamer-CRITICAL **: gst_poll_free: assertion 'set != NULL' failed
(python:5789): GStreamer-CRITICAL **: gst_poll_write_control: assertion 'set != NULL' failed
(python:5789): GStreamer-CRITICAL **: gstsystemclock: write control failed in wakeup_async: 24:Too many open files
or the last one can be
(python:5789): GStreamer-CRITICAL **: gstsystemclock: write control failed in wakeup_async: 2:No such file or directory
Following the above errors comes a different type of errors.
Lexicon: compile file "/usr/share/festival/dicts/wsj.wp39.poslexR" not found or unreadble
[ERROR] [1554100428.699768]: Sound synthesis failed. Is festival installed? Is a festival voice installed? Try running "rosdep satisfy sound_play|sh". Refer to http://wiki.ros.org/sound_play/Troubleshooting
[ERROR] [1554100428.701407]: Exception in actionlib callback: 'NoneType' object has no attribute 'command'
[INFO] [1554100428.702542]: Traceback (most recent call last):
File "/home/itohdak/audio_debug_ws/src/ros-drivers/audio_common/sound_play/scripts/soundplay_node.py", line 373, in execute_cb
sound.command(data.command)
AttributeError: 'NoneType' object has no attribute 'command'
[WARN] [1554100428.705807]: Your executeCallback did not set the goal to a terminal status. This is a bug in your ActionServer implementation. Fix your code! For now, the ActionServer will set this goal to aborted
I think the second errors occur due to the first errors; GStreamer errors. I tried to fix this problem in #126 .
I would appreciate it if you could leave some comments.
i merge #126 , so this issue should be solved. if you still have the issue, please feel free to reopen this
Hello
I have a ros node which successfully executes the following lines of (pseudo)code:
I get the desired sound for approximately 300 iterations or so (which corresponds to hours of audio). However, after that my soundplay_node.py crashes with the following error message:
The only nodes running are the soundplay_node.py and the node publishing the .wav file. I have contemplated on this issue and my own thoughts have halted to a standstill. Maybe you have some insight into this. Thank you!