Page 2 of 2

Re: Unexpected stopping playing LG 42LM640T

PostPosted: Thu Nov 07, 2013 8:10 am
by nickmz
Googled this post. I have the same error with Serviio 1.3.1, Ubuntu 12.04, BubbleUPnP client on Android

  Code:
2013-11-04 20:31:25,126 WARN  [ResourceDeliveryProcessor] Invalid request, sending back 400 error
org.serviio.upnp.protocol.http.transport.InvalidResourceRequestException: Invalid incoming request: /resource/30226/MEDIA_ITEM/AVC_MP4_MP_SD_AAC_MULT5-0
        at org.serviio.upnp.protocol.http.transport.RequestedResourceDescriptor.<init>(RequestedResourceDescriptor.java:69)
        at org.serviio.upnp.protocol.http.transport.AbstractProtocolHandler.getRequestedResourceDescription(AbstractProtocolHandler.java:36)
        at org.serviio.delivery.ResourceDeliveryProcessor.deliverContent(ResourceDeliveryProcessor.java:65)
        at org.serviio.upnp.webserver.ResourceTransportRequestHandler.handleRequest(ResourceTransportRequestHandler.java:86)
        at org.serviio.upnp.webserver.AbstractRequestHandler.handle(AbstractRequestHandler.java:61)
        at org.apache.http.protocol.HttpService.doService(HttpService.java:293)
        at org.serviio.upnp.webserver.ServiioHttpService.doService(ServiioHttpService.java:77)
        at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:212)
        at org.serviio.upnp.webserver.WebServer$WorkerThread.run(WebServer.java:192)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 3
        at org.serviio.upnp.protocol.http.transport.RequestedResourceDescriptor.<init>(RequestedResourceDescriptor.java:66)
        ... 8 more

Re: Unexpected stopping playing LG 42LM640T

PostPosted: Thu Nov 07, 2013 8:40 am
by nickmz
I think you should protect

  Code:
this.quality = DeliveryQuality.QualityType.valueOf(requestFields[3]);


with

  Code:
 if (requestFields.length > 3) {}


and use default value for QualityType.

Sorry, was too upset and used JD-GUI :)

Re: Unexpected stopping playing LG 42LM640T

PostPosted: Thu Nov 07, 2013 5:29 pm
by jayhawk81
Can you please elaborate on the above code? Where does it need to go? Is this replacing the first line of code with the second you provided or adding the second one?

Thanks

Re: Unexpected stopping playing LG 42LM640T

PostPosted: Fri Nov 08, 2013 4:53 am
by nickmz
It's all about the internal Java code - developers should know what to do with that. The problem is that Java code accesses the element by index #3 without ensuring that the array has at least 4 header elements.

Re: Unexpected stopping playing LG 42LM640T

PostPosted: Sun Nov 10, 2013 6:52 pm
by zip
do you have a longer log to see the incoming request?

From my experience, BubbleUPnP caches some responses, so if you switch profiles it'll still send request for files that don't exist for the current profile (particular transcoded versions). That is a bad request, and sending a default quality (or a file transcoded to an unsupported file for a different profile) would be wrong.

Re: Unexpected stopping playing LG 42LM640T

PostPosted: Mon Nov 11, 2013 6:33 am
by nickmz
Here it is - https://dl.dropboxusercontent.com/u/314 ... iio.log.gz

I've switched to using "MediaHouse UPnP / DLNA Browser" - I'll see how it works.

Re: Unexpected stopping playing LG 42LM640T

PostPosted: Mon Nov 11, 2013 5:19 pm
by zip
Could you try AV media Controller (see Intel tools in my signature), browse to the same file, get its properties and post here the resource URLs?

The URLs in the log are missing the /ORIGINAL bit, I need to confirm if it's the player ignoring it or Serviio not serving it.

Re: Unexpected stopping playing LG 42LM640T

PostPosted: Wed Nov 13, 2013 7:07 am
by nickmz
Sorry - I have no .NET/Mono installed. I tried UPnP-Inspector instead.

Here is the DB selection for failed items:

https://dl.dropboxusercontent.com/u/3146456/serviio/serviio.txt

Here are the screenshots of UPnP-Inspector for two failed items:

https://dl.dropboxusercontent.com/u/3146456/serviio/Browse%20MediaServer%20Serviio%20(nas)_024.png
https://dl.dropboxusercontent.com/u/3146456/serviio/Browse%20MediaServer%20Serviio%20(nas)_025.png

It seems that Serviio provides correct URL - at least right now and for UPnP-Inspector

Re: Unexpected stopping playing LG 42LM640T

PostPosted: Fri Nov 15, 2013 3:43 pm
by zip
Looks like it..

Re: Unexpected stopping playing LG 42LM640T

PostPosted: Sun Nov 17, 2013 6:53 am
by nickmz
I've checked once again. The exception occured on Android both in Bubble UPnP and MediaHouse but ONLY when a video is passed to MX Player. Passing to any other video player didn't lead to the exception. The exception in Serviio didn't stop MX Player from playing the video - I didn't noticed any visual problem.

Re: Unexpected stopping playing LG 42LM640T

PostPosted: Sun Nov 17, 2013 12:41 pm
by bubbleguuum
nickmz wrote:I've checked once again. The exception occured on Android both in Bubble UPnP and MediaHouse but ONLY when a video is passed to MX Player. Passing to any other video player didn't lead to the exception. The exception in Serviio didn't stop MX Player from playing the video - I didn't noticed any visual problem.



MX Player does additional http requests based on the http URL is was given to play, to infer eventual subtitles URLs.
In these additional requests it may remove the last path segment of the URL.

Re: Unexpected stopping playing LG 42LM640T

PostPosted: Sun Mar 23, 2014 6:51 pm
by subora
Hello! Once again that error - jusi watching and unexpected stopping playing.
DS413, serviio 1.4.1.1, last 1.7 java
This is log:
2014-03-23 21:59:14,384 INFO [RendererManager] Stored a new renderer: uuid='9382df87-7c09-4b84-a90f-898e3b752e4b', name = 'LG TV / player', ipAddress='192.168.0.119', profile = '8'
2014-03-23 22:06:07,672 INFO [RendererManager] Stored a new renderer: uuid='2996bba4-1dd2-11b2-86e1-fe92e7b41bda', name = 'LG TV', ipAddress='192.168.0.119', profile = '1'
2014-03-23 22:08:45,667 INFO [RendererManager] Stored a new renderer: uuid='497ec32e-3b20-43d5-8d0d-9f82910295ca', name = 'LG TV / player', ipAddress='192.168.0.119', profile = '8'
2014-03-23 22:13:08,498 INFO [RendererManager] Stored a new renderer: uuid='2996bba4-1dd2-11b2-86e1-fe92e7b41bda', name = 'LG TV', ipAddress='192.168.0.119', profile = '1'
...
2014-03-23 22:46:20,780 INFO [RendererManager] Stored a new renderer: uuid='c724ea79-d9d8-4016-aa31-608dd10d808b', name = 'LG TV / player', ipAddress='192.168.0.119', profile = '8'
2014-03-23 22:46:21,121 WARN [EventDispatcher] Couldn't send event message for subscription 98267348-d048-45df-9c93-8516062e05ce, will keep trying until subscription expires
2014-03-23 22:46:21,126 WARN [EventDispatcher] Couldn't send event message for subscription e9241561-9d2f-477c-8155-36c84a46dd8d, will keep trying until subscription expires

Re: Unexpected stopping playing LG 42LM640T

PostPosted: Wed Apr 02, 2014 7:08 am
by subora
Hello! Once again and smth new erorrs:
see more: http://pastebin.com/39U2SER3