Page 1 of 1

Audio stop then video stops and playback ends

Posted: Mon Jun 19, 2017 2:39 pm
by robertnealdavis
I have started to have a new issue with UMS. Previously, my Ubuntu machine would become virtually unusable and have to be hard rebooted, this was due to UMS using all available child processes, I have still not solved that issue, but after the latest Ubuntu updates, now many of my AVI files stop about halfway through. First the audio stops, then the video and then UMS has to be restarted. Has anyone else experienced similar issues?

Re: Audio stop then video stops and playback ends

Posted: Tue Jun 20, 2017 9:11 am
by Nadahar
I don't know if anyone else has had the same experience, but I can tell you that it's not the way it's supposed to be. There is two much information missing here to give any reasonable reply though. Please follow the text in red above so that we have some information about what is happening.

I don't know how UMS can "use all available child processes", I didn't even know there was such a limit. During normal playback UMS doesn't spawn any "child process" at all, but when transcoding it does. UMS use one of several "transcoding engines" depending on configuration and content format. The most common is FFmpeg, so this could be a FFmpeg problem. The FFmpeg version is normally controlled by the package manager on Linux, which could explain the difference after installing updates. UMS itself should be unaffected by installed package versions as long as there's a working Java version 7 or 8.

Re: Audio stop then video stops and playback ends

Posted: Sat Oct 07, 2017 11:57 pm
by robertnealdavis
It has proven very difficult to follow the guidelines, when the issue happens the machine is in such a state I cannot even zip the logs from the UI,I have to restart then zip the logs. The last error in the logs was generated when I tried to zip the logs from the UI. Before quiting UMS, I get the following in a bash shell on the machine
bash: fork: retry: No child processes

The logs and config are attached, if there is anything in there than cn shed some light, I would greatly appreciate it.

Re: Audio stop then video stops and playback ends

Posted: Sun Oct 08, 2017 12:19 am
by robertnealdavis
Looking at the logs, I am wondering if the issue is related to the constant connection requests from my Sony Blu-Ray player and the fact the cling threads reach over 500 (are the two related, I don't know the internals of UMS). If that is the case, I don't know how to stop the blu-ray player from making those connection requests, it seems to happen when the machine is even in standby.

Re: Audio stop then video stops and playback ends

Posted: Thu Oct 12, 2017 7:43 am
by Sami32
@robertnealdavis

1) Do you have this issue with UMS 6.x.x as well ?
2) Do you have this issue only with PS3 (using it or just present on your network) ?
3) If you've only this issue when using the PS3, do this happen if you don't play or browse AVI/DIVX files ?

Re: Audio stop then video stops and playback ends

Posted: Sun Oct 22, 2017 4:20 am
by robertnealdavis
The media renderer we use the most often is the PS3, I have to try turning off the Sony BD player to see if the issue goes away. We play avis and mkvs (transcoded) mostly and haven't really noticed any correlation to the file type. I am going to try shutting down the BD player to see if the issue goes away and will post again in a couple days

Thank you for the support

Re: Audio stop then video stops and playback ends

Posted: Mon Oct 23, 2017 1:21 am
by Sami32
Don't forget to do the same test with the Sony BD player ONLY on your network, meaning shutdown the PS3.

Re: Audio stop then video stops and playback ends

Posted: Mon Oct 23, 2017 7:37 am
by robertnealdavis
It is definitely something to do wit the cling threads
DEBUG 2017-10-21 22:35:01.328 [cling-379] net.pms.network.UPNPControl CurrentTrack: 0
DEBUG 2017-10-21 22:35:01.328 [cling-379] net.pms.network.UPNPControl CurrentTrackDuration: 00:00:00
DEBUG 2017-10-21 22:35:01.328 [cling-379] net.pms.network.UPNPControl CurrentTrackMetaData:
DEBUG 2017-10-21 22:35:01.328 [cling-379] net.pms.network.UPNPControl CurrentTrackURI:
I cannot figure out what is causing this, but the threads are using up all the available resources on the machine. It takes a long time for this to happen.

Re: Audio stop then video stops and playback ends

Posted: Thu Oct 26, 2017 1:04 pm
by Sami32
@robertnealdavis I suspect that you have that issue only when PS3 is used, and still only when AVI/DIVX are played.
Anyway, only your tests and answers will clarify it.