TVServerKodi Plugin not starting in newest Mediaportal2 release
#1
Hello

Plugin was running without problems in the MediaPortal2 release from January. But in the newest Spring 16 Release plugin doesn't even start.
Perhaps it is related to the update of TVE3 engine to MP1.14 core.

Serverlog before Spring16 release

[2016-03-26 19:02:06,584] [109 ] [Main ] [INFO ] - ApplicationCore: Launching in AppDomain MP2-Server.exe...
[2016-03-26 19:02:06,678] [203 ] [Main ] [INFO ] - ApplicationCore: Comments: MediaPortal 2 Backend Server
[2016-03-26 19:02:06,678] [203 ] [Main ] [INFO ] - ApplicationCore: Copyright: Copyright © Team MediaPortal 2007 - 2016
[2016-03-26 19:02:06,678] [203 ] [Main ] [INFO ] - ApplicationCore: Version: 2.0.0.1602
[2016-03-26 19:02:06,678] [203 ] [Main ] [INFO ] - ApplicationCore: Source: (no branch)-e47516
[2016-03-26 19:02:13,180] [6705 ] [TVService] [INFO ] - Controller: initalized
[2016-03-26 19:02:13,180] [6705 ] [TVService] [INFO ] - Controller: TVServer initialized okay
[2016-03-26 19:02:13,182] [6707 ] [TVService] [INFO ] - TV Service: Load plugins
[2016-03-26 19:02:13,410] [6935 ] [TVService] [INFO ] - TV Service: Plugins loaded
[2016-03-26 19:02:13,410] [6935 ] [TVService] [INFO ] - TV Service: Plugin: ComSkipLauncher started
[2016-03-26 19:02:13,411] [6936 ] [TVService] [INFO ] - plugin: ComSkipLauncher start
[2016-03-26 19:02:13,412] [6937 ] [TVService] [INFO ] - TV Service: Plugin: ConflictsManager disabled
[2016-03-26 19:02:13,432] [6957 ] [TVService] [INFO ] - TV Service: Plugin: PowerScheduler started
[2016-03-26 19:02:13,434] [6959 ] [TVService] [INFO ] - PS: Starting PowerScheduler server plugin...
[2016-03-26 19:02:13,443] [6968 ] [TVService] [INFO ] - PS: PowerSchedulerFactory
[2016-03-26 19:02:13,471] [6996 ] [TVService] [INFO ] - PS: PowerScheduler server plugin started
[2016-03-26 19:02:13,472] [6997 ] [TVService] [INFO ] - TV Service: Plugin: ServerBlaster disabled
[2016-03-26 19:02:13,472] [6997 ] [TVService] [INFO ] - TV Service: Plugin: TV Movie EPG import disabled
[2016-03-26 19:02:13,472] [6997 ] [TVService] [INFO ] - TV Service: Plugin: TVServerKodi started
[2016-03-26 19:02:13,477] [7002 ] [TVService] [INFO ] - TVServerKodi: Start listening on port 9596
[2016-03-26 19:02:13,479] [7004 ] [TVService] [INFO ] - TV Service: Plugin: WebEPG disabled
[2016-03-26 19:02:13,480] [7005 ] [TVService] [INFO ] - TV Service: Plugin: XmlTv disabled
[2016-03-26 19:02:13,480] [7005 ] [TVService] [INFO ] - TV Service: Plugins started
[2016-03-26 19:02:13,480] [7005 ] [TVService] [INFO ] - TV Service: Started

Serverlog after upgrade to Spring16 release
[2016-04-20 17:48:15,009] [54 ] [Main ] [INFO ] - ApplicationCore: Launching in AppDomain MP2-Server.exe...
[2016-04-20 17:48:15,036] [81 ] [Main ] [INFO ] - ApplicationCore: Comments: MediaPortal 2 Backend Server
[2016-04-20 17:48:15,036] [81 ] [Main ] [INFO ] - ApplicationCore: Copyright: Copyright © Team MediaPortal 2007 - 2016
[2016-04-20 17:48:15,036] [81 ] [Main ] [INFO ] - ApplicationCore: Version: 2.16.04.7785
[2016-04-20 17:48:15,036] [81 ] [Main ] [INFO ] - ApplicationCore: Source: origin/SpringRelease16_RC2-a0f900
[2016-04-20 17:48:15,037] [82 ] [Main ] [INFO ] - ApplicationCore: ----------------------------------------------------------
[2016-04-20 17:48:16,760] [1804 ] [TVService] [INFO ] - TV Service: Load plugins
[2016-04-20 17:48:16,797] [1842 ] [TVService] [INFO ] - TV Service: Plugins loaded
[2016-04-20 17:48:16,798] [1843 ] [TVService] [INFO ] - TV Service: Plugin: ComSkipLauncher started
[2016-04-20 17:48:16,798] [1843 ] [TVService] [INFO ] - plugin: ComSkipLauncher start
[2016-04-20 17:48:16,800] [1845 ] [TVService] [INFO ] - TV Service: Plugin: ConflictsManager disabled
[2016-04-20 17:48:16,820] [1864 ] [TVService] [INFO ] - TV Service: Plugin: PowerScheduler started
[2016-04-20 17:48:16,823] [1867 ] [TVService] [INFO ] - PS: Starting PowerScheduler server plugin...
[2016-04-20 17:48:16,832] [1876 ] [TVService] [INFO ] - PS: PowerSchedulerFactory
[2016-04-20 17:48:16,862] [1906 ] [TVService] [INFO ] - PS: PowerScheduler server plugin started
[2016-04-20 17:48:16,863] [1907 ] [TVService] [INFO ] - TV Service: Plugin: ServerBlaster disabled
[2016-04-20 17:48:16,863] [1907 ] [TVService] [INFO ] - TV Service: Plugin: TV Movie EPG import disabled
[2016-04-20 17:48:16,864] [1908 ] [TVService] [INFO ] - TV Service: Plugin: WebEPG disabled
[2016-04-20 17:48:16,864] [1908 ] [TVService] [INFO ] - TV Service: Plugin: XmlTv disabled
[2016-04-20 17:48:16,864] [1908 ] [TVService] [INFO ] - TV Service: Plugins started
[2016-04-20 17:48:16,865] [1909 ] [TVService] [INFO ] - TV Service: Started

Plugin DLL is still in C:\Program Files (x86)\Team MediaPortal\MP2-Server\Plugins\SlimTv.Service3\Plugins

TV Server is running on Win10 x64

BR
Juergen
Reply
#2
Hi jhy1507,

It seems to be the same problem as me in my previous post "invalid cast exception".
269678 (thread)

Can you start a debug session of Mediaportal to confirm ?
http://wiki.team-mediaportal.com/2_MEDIA..._log_files

Unfortunately, i don't have any solution yet...

Regards
Jean-christophe
Reply
#3
Hi Jean-christophe

you are right !. After setting debug level to ALL i got the same error

[2016-04-22 13:56:05,966] [2139 ] [TVService] [DEBUG] - Exception while loading ITvServerPlugin instances: TVServerKodi.TVServerKodiPlugin
[2016-04-22 13:56:05,966] [2139 ] [TVService] [DEBUG] - System.InvalidCastException: Das Objekt des Typs "TVServerKodi.TVServerKodiPlugin" kann nicht in Typ "TvEngine.ITvServerPlugin" umgewandelt werden.
bei TvService.PluginLoader.LoadPlugin(String strFile)
[2016-04-22 13:56:05,966] [2139 ] [TVService] [DEBUG] - Das Objekt des Typs "TVServerKodi.TVServerKodiPlugin" kann nicht in Typ "TvEngine.ITvServerPlugin" umgewandelt werden.
[2016-04-22 13:56:05,966] [2139 ] [TVService] [DEBUG] - bei TvService.PluginLoader.LoadPlugin(String strFile)

But debug version (*.exe) seems to work after proper change to SQLite in gentle.config

BR
Juergen
Reply
#4
I've recompiled the plugin against MediaPortal 2 Spring '16.
Could you try if the following plugin works?
MediaPortal_2_Spring16_TVServerKodi_plugin_rev133.zip

Regards,
Marcel
Developer of the MediaPortal PVR addon and retired developer of the Argus-TV PVR-addon.
http://www.scintilla.utwente.nl/~marcelg/xbmc
Reply
#5
Hi margro,

I had the same issue - it works for me.

Thanks
Guido
Reply
#6
Hi margo,

The release version (DLL) is running fine !. Thanks !!

The Debug version runs into an error:

Unbehandelte Ausnahme: System.ArgumentException: Service Mediaportal.TV.Server.TVLibrary.IntegrationProvider.Interfaces.IIntegrationProvider is not registered
bei TvLibrary.Interfaces.ServiceProvider.Get[T]()
bei TvLibrary.Log.Log.Debug(String message, Object[] args)
bei TvControl.RemoteControl.CheckTcpPort()
bei TvControl.RemoteControl.get_IsConnected()
bei TVServerKodi.Commands.Program.Main(String[] args) in e:\src\github\margro\TVServerXBMC\TVServerKodi\Program.cs:Zeile 27.

But this is a minor problem as release version works.

Best regards
Jürgen
Reply
#7
Hi margo,

The release version (DLL) is running fine.

Thanks !

Best regards
Jean-Christophe
Reply

Logout Mark Read Team Forum Stats Members Help
TVServerKodi Plugin not starting in newest Mediaportal2 release0