Menu

#314 Cannot browse MiniDLNA 1.2.1 with VLC 2.2.6 (UPnPError 709: Unsupported or invalid sort criteria)

v1.0 (example)
closed-fixed
None
5
2020-04-27
2017-11-22
No

When trying to browse my MiniDLNA 1.2.1 server from the same host with VLC 2.2.6, I get the following on the console:

[00007feac441f178] upnp services discovery error: Unknown error code when trying the send() action with URL: http://192.168.1.1:8200/ctl/ContentDir
[00007feac441f178] upnp services discovery error: No response from browse() action

And into MiniDLNA daeomn's log I found this:

[2017/11/22 08:54:34] upnpsoap.c:825: error: UPnP SOAP response cut short, to not exceed the max response size [2097152]!
[2017/11/22 08:54:34] upnpsoap.c:1420: warn: SQL error: callback requested query abort
BAD SQL: SELECT o.OBJECT_ID, o.PARENT_ID, o.REF_ID, o.DETAIL_ID, o.CLASS, d.SIZE, d.TITLE, d.DURATION, d.BITRATE, d.SAMPLERATE, d.ARTIST, d.ALBUM, d.GENRE, d.COMMENT, d.CHANNELS, d.TRACK, d.DATE, d.RESOLUTION, d.THUMBNAIL, d.CREATOR, d.DLNA_PN, d.MIME, d.ALBUM_ART, d.ROTATION, d.DISC from OBJECTS o left join DETAILS d on (d.ID = o.DETAIL_ID) where PARENT_ID = '3$B'  limit 0, -1;
[2017/11/22 08:54:34] upnpsoap.c:123: warn: Returning UPnPError 709: Unsupported or invalid sort criteria
[2017/11/22 08:54:54] upnpsoap.c:825: error: UPnP SOAP response cut short, to not exceed the max response size [2097152]!
[2017/11/22 08:54:54] upnpsoap.c:1420: warn: SQL error: callback requested query abort
BAD SQL: SELECT o.OBJECT_ID, o.PARENT_ID, o.REF_ID, o.DETAIL_ID, o.CLASS, d.SIZE, d.TITLE, d.DURATION, d.BITRATE, d.SAMPLERATE, d.ARTIST, d.ALBUM, d.GENRE, d.COMMENT, d.CHANNELS, d.TRACK, d.DATE, d.RESOLUTION, d.THUMBNAIL, d.CREATOR, d.DLNA_PN, d.MIME, d.ALBUM_ART, d.ROTATION, d.DISC from OBJECTS o left join DETAILS d on (d.ID = o.DETAIL_ID) where PARENT_ID = '3$D2$0$0'  limit 0, -1;
[2017/11/22 08:54:54] upnpsoap.c:123: warn: Returning UPnPError 709: Unsupported or invalid sort criteria

Strange enough browsing the same server with VLC for Android from the network is just fine, so I'm not sure it is actually MiniDLNA problem. In the attachement there is a debug log.

1 Attachments

Discussion

  • Shrimpkin

    Shrimpkin - 2017-11-28

    The error is shown in the log file. VLC is requesting more than the max response size. You can increase this but you will have to edit and compile from source.

    Max response size is in upnpsoap.h:25. Change to a higher value.

    #define MAX_RESPONSE_SIZE 2097152
    
     
  • Tim Jackson

    Tim Jackson - 2019-12-08

    I get this frequently too when using VLC. Have increased the max response size to 4MB but it's still not enough. Is VLC requesting anything unreasonable or is this expected behaviour on a large collection?

    Is there any major downside to increasing the max response size?

     
  • Georgi D. Sotirov

    And should not this be a configurable option, instead of a compile time define?

     
  • Justin Maggard

    Justin Maggard - 2019-12-10
    • status: open --> closed-fixed
    • assigned_to: Justin Maggard
     
  • Justin Maggard

    Justin Maggard - 2019-12-10

    The proper behavior is to return a short list instead of returning an error. The latest code in master should do that now.

     
  • Tim Jackson

    Tim Jackson - 2019-12-14

    Thanks! Have rebuilt and now seeing "upnpsoap.c:869: error: UPnP SOAP response would exceed the max response size [2097152], truncating" instead when using VLC, which seems to be the intent. Browsing does work though.

     

    Last edit: Tim Jackson 2019-12-14
  • Sérgio M. Basto

    Hello,
    With git master, I also see some subtitle problems [1] (with vlc) fixed, for when a new version?
    we already have 50 commits [2]
    Thank you

    [1]
    https://bugzilla.rpmfusion.org/show_bug.cgi?id=5619

    [2]
    git log v1_2_1..0763719f2776f91114bc5564919896f28e078c77 --oneline | wc -l
    50

     

    Last edit: Sérgio M. Basto 2020-06-04

Log in to post a comment.