Kodi Community Forum

Full Version: ServerWMC PVR plugin broken on Android Kodi 15.0 beta 2
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
The ServerWMC PVR plugin is broke on Android. When I enable Live TV, Kodi keeps telling me that a PVR add-on is not enabled even though I just enabled it. But then I go back to the PVR plugin and it is disabled. I am able to connect to the ServerWMC instance just fine with a Windows Kodi 15.0 Beta 2 client. I can get it to work in 14.2 on Android, but the guide takes 12 seconds to load up each time, along with the rest of the app being very sluggish.

I originally found this bug on my Nvidia Shield, but I also experienced the same issue on my Nexus 7 tablet.

I believe this is the relevant part of the log:

Code:
23:12:33 T:2112472832  NOTICE: PVRManager - starting up
23:12:33 T:2112476032  NOTICE: Thread LanguageInvoker start, auto delete: false
23:12:33 T:2112476672  NOTICE: Thread AlarmClock start, auto delete: false
23:12:33 T:2112476032    INFO: initializing python engine.
23:12:33 T:1116914560  NOTICE: Thread PVRManager start, auto delete: false
23:12:33 T:2116599936  NOTICE: Thread PVRClient start, auto delete: false
23:12:33 T:1116904960   DEBUG: ADDON: Starting service addons.
23:12:33 T:1116904960  NOTICE: initialize done
23:12:33 T:2116599936   DEBUG: int PVR::CPVRClients::RegisterClient(ADDON::AddonPtr) - registering add-on 'PVR WMC Client'
23:12:33 T:2112477312  NOTICE: Thread LanguageInvoker start, auto delete: false
23:12:33 T:2112477312    INFO: initializing python engine.
23:12:33 T:1116904960  NOTICE: Running the application...
23:12:33 T:1116904960   DEBUG: no profile autoexec.py (/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/autoexec.py) found, skipping
23:12:33 T:1116904960   DEBUG: void CNetwork::NetworkMessage(CNetwork::EMESSAGE, int) - Starting network services
23:12:33 T:1116904960  NOTICE: starting zeroconf publishing
23:12:33 T:2112477952  NOTICE: Thread ZerocconfEmbedded start, auto delete: false
23:12:33 T:2112477952   DEBUG: ZeroconfEmbedded - processing...
23:12:33 T:2116599936   DEBUG: int PVR::CPVRClients::RegisterClient(ADDON::AddonPtr) - registering add-on 'PVR WMC Client'
23:12:33 T:1116904960  NOTICE: starting upnp client
23:12:33 T:2116599936   DEBUG: PVR - ADDON_STATUS PVR::CPVRClient::Create(int) - creating PVR add-on instance 'PVR WMC Client'
23:12:33 T:2116599936   DEBUG: ADDON: Dll Initializing - PVR WMC Client
23:12:33 T:2116599936   ERROR: ADDON: Could not locate pvr.wmc.so
23:12:33 T:2116599936 WARNING: bool PVR::CPVRClients::UpdateAndInitialiseClients(bool) - failed to create add-on PVR WMC Client, status = 6
23:12:33 T:2116599936 WARNING: bool PVR::CPVRClients::UpdateAndInitialiseClients(bool) - failed to load the dll for add-on PVR WMC Client, disabling it

Full log: http://pastebin.com/LWYH1VVK

All help is much appreciated.
I am also having the same problem, with the same error messages in the log. I have replicated this on Shield TV, Nexus Player, and Nexus 9. The Shield is on Android 5.1 and the Nexuses are on 5.1.1.
It sounds liked the android build doesn't include pvr.wmc library like it should. Are the other pvr addons available or same problem?

These are the relevant lines

Code:
23:14:03 T:1116914560  NOTICE: Thread PVRClient start, auto delete: false
23:14:03 T:1116914560   DEBUG: int PVR::CPVRClients::RegisterClient(ADDON::AddonPtr) - registering add-on 'PVR WMC Client'
23:14:03 T:1116914560   DEBUG: Previous line repeats 1 times.
23:14:03 T:1116914560   DEBUG: PVR - ADDON_STATUS PVR::CPVRClient::Create(int) - creating PVR add-on instance 'PVR WMC Client'
23:14:03 T:1116914560   DEBUG: ADDON: Dll Initializing - PVR WMC Client
23:14:03 T:1116914560   ERROR: ADDON: Could not locate pvr.wmc.so
23:14:03 T:1116914560 WARNING: bool PVR::CPVRClients::UpdateAndInitialiseClients(bool) - failed to create add-on PVR WMC Client, status = 6
23:14:03 T:1116914560 WARNING: bool PVR::CPVRClients::UpdateAndInitialiseClients(bool) - failed to load the dll for add-on PVR WMC Client, disabling it
Unfortunately that's the only backend I have. I can try setting up a tvheadend backend this weekend for testing if needed. Totally green on that pvr though
Just thinking out loud here. Would I be able to copy the pvr.wmc.so file from a Windows install and put it in the correct location on my android device? If so, do you know the location in either.
no it has to be an android ARM build, not windows x86 etc. Perhaps you could lift the pvr.wmc .s file from an appropriate android build but it's always difficult trying mess with android file systems and figuring ou where stuff is meant to go etc.

Also you dont have to setup a backend you just have to enable the PVR addon in kodi and then check the log to see whether the addon loaded ok (but didnt connect to a ackend) vs the addon didnt load because the library was imssing (as is what is happening with pvr.wmc)
Ahhh. Great! I'll check tonight.
Here's my pastebin after starting next pvr, tvheadend, and myth TV pvr plugins
http://pastebin.com/KjFK2K7J
For those interested, the bug is logged:

http://trac.kodi.tv/ticket/16044
I think issue is that it is looking for pvr.wmc.so, but the file inside the android apk is libpvr.wmc.so. Maybe just a simple naming issue fix?
Thanks for adding that info to the ticket! I'm hoping it's an easy fix someone just knocks out.

ETA: Are you able to rename the libpvr.wmc.so to pvr.wmc.so and test?
It would be fairly easy to test on a rooted device, you can just change the file name and test. My devices aren't rooted, so I can't test easily. Someone with experience with APK packaging could probably rebuild the APK with the new file name maybe? You can't just change the file name in the apk, it messes with the manifest and signing and Android won't install it a modified apk for security reasons.
The log posted for tvheadend etc doesn't show anything as I don't think it's set to debug level

We need build system help as unfortunately what sounds like a simple renaming issue is well beyond us as the build system is black magic to a humble windows developer lol
I am also a new shield TV owner using the WMC backend. Anything I can do to help with this?
Thanks to @h.udo a fix has been made, it should be in the next nightly builds if you guys want to report back once it's available?

https://github.com/kodi-pvr/pvr.wmc/pull/11
https://github.com/xbmc/xbmc/pull/7324
Pages: 1 2