hzeller / gmrender-resurrect

Resource efficient UPnP/DLNA renderer, optimal for Raspberry Pi, CuBox or a general MediaServer. Fork of GMediaRenderer to add some features to make it usable.
GNU General Public License v2.0
839 stars 204 forks source link

i migrate gmrender-resurrect to mips ,and when i use windows 7 median player to find device,the render print error !! #27

Closed kgha closed 11 years ago

kgha commented 11 years ago

INFO [2011-09-08 18:08:15.013088 | webserver] webserver_get_info:(filename='/upnp/renderconnmgrSCPD.xml',info=0x75a3b970) INFO [2011-09-08 18:08:15.013899 | webserver] webserver_get_info:(filename='/upnp/renderconnmgrSCPD.xml/index.html',info=0x75a3b970) ERROR [2011-09-08 18:08:15.014586 | webserver] Not found. INFO [2011-09-08 18:08:15.022656 | webserver] webserver_get_info:(filename='/upnp/renderconnmgrSCPD.xml',info=0x7543b970) INFO [2011-09-08 18:08:15.023208 | webserver] webserver_get_info:(filename='/upnp/renderconnmgrSCPD.xml/index.html',info=0x7543b970) ERROR [2011-09-08 18:08:15.023530 | webserver] Not found. INFO [2011-09-08 18:08:15.039878 | webserver] webserver_get_info:(filename='/upnp/rendercontrolSCPD.xml',info=0x75a3b970) INFO [2011-09-08 18:08:15.041353 | webserver] webserver_get_info:(filename='/upnp/rendercontrolSCPD.xml/index.html',info=0x75a3b970) INFO [2011-09-08 18:08:15.044410 | webserver] webserver_get_info:(filename='/upnp/rendertransportSCPD.xml',info=0x7543b970) INFO [2011-09-08 18:08:15.045812 | webserver] webserver_get_info:(filename='/upnp/rendertransportSCPD.xml/index.html',info=0x7543b970) ERROR [2011-09-08 18:08:15.046132 | webserver] Not found. INFO [2011-09-08 18:08:15.048419 | webserver] webserver_get_info:(filename='/upnp/rendercontrolSCPD.xml',info=0x7543b970) INFO [2011-09-08 18:08:15.049013 | webserver] webserver_get_info:(filename='/upnp/rendercontrolSCPD.xml/index.html',info=0x7543b970) ERROR [2011-09-08 18:08:15.049329 | webserver] Not found. ERROR [2011-09-08 18:08:15.043518 | webserver] Not found. INFO [2011-09-08 18:08:15.053855 | webserver] webserver_get_info:(filename='/upnp/rendertransportSCPD.xml',info=0x7543b970) INFO [2011-09-08 18:08:15.054679 | webserver] webserver_get_info:(filename='/upnp/rendertransportSCPD.xml/index.html',info=0x7543b970) ERROR [2011-09-08 18:08:15.054980 | webserver] Not found. INFO [2011-09-08 18:08:15.065116 | webserver] webserver_get_info:(filename='/upnp/renderconnmgrSCPD.xml',info=0x7543b970) INFO [2011-09-08 18:08:15.066176 | webserver] webserver_get_info:(filename='/upnp/renderconnmgrSCPD.xml/index.html',info=0x7543b970) ERROR [2011-09-08 18:08:15.066505 | webserver] Not found. INFO [2011-09-08 18:08:15.080738 | webserver] webserver_get_info:(filename='/upnp/renderconnmgrSCPD.xml',info=0x75e3b970) INFO [2011-09-08 18:08:15.081198 | webserver] webserver_get_info:(filename='/upnp/renderconnmgrSCPD.xml/index.html',info=0x75e3b970) ERROR [2011-09-08 18:08:15.081542 | webserver] Not found. INFO [2011-09-08 18:08:15.093902 | webserver] webserver_get_info:(filename='/upnp/rendercontrolSCPD.xml',info=0x75a3b970) INFO [2011-09-08 18:08:15.094364 | webserver] webserver_get_info:(filename='/upnp/rendercontrolSCPD.xml/index.html',info=0x75a3b970) ERROR [2011-09-08 18:08:15.094666 | webserver] Not found. INFO [2011-09-08 18:08:15.098931 | webserver] webserver_get_info:(filename='/upnp/rendercontrolSCPD.xml',info=0x7543b970) INFO [2011-09-08 18:08:15.099687 | webserver] webserver_get_info:(filename='/upnp/rendercontrolSCPD.xml/index.html',info=0x7543b970) ERROR [2011-09-08 18:08:15.099985 | webserver] Not found.

kgha commented 11 years ago

my libupnp version is 1.6.14

hzeller commented 11 years ago

Ah, perfect, now I see that you actually did open a separate bug :)

So what seems to be happening here is, that the DNLA client attempts to access all kinds of non-existent files, which it seems to make up from the base-file. One existent file for instance is /upnp/rendercontrolSCPD.xml .. but then it also attempts to access /upnp/rendercontrolSCPD.xml/index.html

This points to some broken behavior in the UPnP/DNLA controller, but it is not necessarily a problem, it should just go on and play music. Does it actually play the music or does it get stuck ?

hzeller commented 11 years ago

I've now made the log-message a bit more clear in commit https://github.com/hzeller/gmrender-resurrect/commit/c53349ad006ed8159f4379af82368419f51e9baa

kgha commented 11 years ago

Hi hzeller,the strange thing is that,when I run it in ubuntu11.04 ,no error occurred,and I can find the render device in my window 7 media player. but I run in my device it will complain this errors. my libupnp version is 1.6.14,I doubt the libupnp's version is too high to support it,because api UpnpSetVirtualDirCallbacks was discard on the version,and I add it by myself. I use the same DLNA controller,like windows 7 media player or other,in ubuntu 11.04 is ok,but in my device is error,even not found render device. need you help ,thank you!!!

hzeller commented 11 years ago

Interesting; I just tried version 1.6.14, and it indeed lacks UpnpSetVirtualDirCallbacks. Somewhere, this has been removed, and re-added later ( see this libupnp bug: http://sourceforge.net/p/pupnp/bugs/29/ )

So if you compile a libupnp version >= 1.6.16 and compile gmrender-resurrect with it, it works again.

kgha commented 11 years ago

I has been replaced UpnpSetVirtualDirCallbacks using individual routines to set each callback,and compile is ok.it can run no error just begin,but I can't understand who want the non-existent files. it look like not dlna client's program,may be the libupnp add itself?

hzeller commented 11 years ago

It looks like, the DNLA client attempts to access these files. Of course, it could as well be internal libupnp calls as you suspect, but I doubt that.

Attempting to access non-existent files is not a problem usually, like it is not a problem when someone attempts to access a non-existent file on your webserver (which then returns a HTTP 404). I now changed the error message to be an info-message, as this is not a server-problem that needs attention.

So what I didn't understand: does it actually play music and work otherwise ?

hzeller commented 11 years ago

FYI, in https://github.com/hzeller/gmrender-resurrect/commit/d0fc9f7071969f6d720ec0b5e532087559140df7 , I now have made it possible that it will compile with 1.6.7 and above, registering the callbacks one-by-one.

kgha commented 11 years ago

It's my compile environment problem,I have resoved,thank you. you can close it