Testbuilds for Native MP2 TV - Updated for 10th AE Update 1 (2014-09-13)! (4 Viewers)

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Don't mind problems but never done much with Windows Forms (went straight from ATL/WTL to WPF) and tracking a threading problem is probably not the best place to start!
    As above: that's exactly what I'd expect. Only the TVE part of my branch has actually been tested. My expectation is that the MP1 part is currently totally broken.

    I've cloned MP2 (SlimTvNative branch), built and installed and feel much more comfortable there.
    Yep, that's a better place to start.

    Which branch do I need to start with and you said I need to merge some extra stuff? Would love to get this working if I can.
    FreakyJ or morpheus_xx will need to answer this, but my guess is that it involves:
    https://github.com/MediaPortal/MediaPortal-1/tree/EXP-TVE3.5-MP1-MP2_mm_working
    https://github.com/morpheusxx/MediaPortal-1/tree/EXP-TVE3.5-MP1-MP2-SQLite

    ...but since you're now using MP2, is there any reason to not use the build from here?
    https://forum.team-mediaportal.com/...0th-ae-2014-04-26.114068/page-46#post-1094636
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany

    orac

    Portal Member
    November 20, 2011
    15
    1
    Home Country
    United Kingdom United Kingdom
    That's great. Thanks very much. I'm away on holiday for a couple of weeks now but will look forward to trying this out when I get back.
     

    ecs0set

    New Member
    August 19, 2014
    4
    1
    54
    Home Country
    Great Britain (UK) Great Britain (UK)
    Was running MP2 10AE + SlimTV Native. All working fine except the ability to delete recordings once watched. Updated to Update 1 and I get the following error on starting MP. Happens on two separate PCs!


    MediaPortal.Utilities.Exceptions.EnvironmentException: Error loading style resource 'C:\Program Files (x86)\Team MediaPortal\MP2-Client\Plugins\SlimTv.Client\Skin\default\themes\default\styles\SlimTvStyles.xaml' ---> MediaPortal.UI.SkinEngine.Xaml.Exceptions.XamlLoadException: XAML loader: Error parsing file 'C:\Program Files (x86)\Team MediaPortal\MP2-Client\Plugins\SlimTv.Client\Skin\default\themes\default\styles\SlimTvStyles.xaml' ---> MediaPortal.UI.SkinEngine.Xaml.Exceptions.XamlBindingException: Could not convert object 'Channel' to type 'FanArtMediaType'
    at MediaPortal.UI.SkinEngine.Xaml.Parser.Convert(Object val, Type targetType)
    at MediaPortal.UI.SkinEngine.Xaml.Parser.AssignValue(IDataDescriptor dd, Object value)
    at MediaPortal.UI.SkinEngine.Xaml.Parser.HandleMemberAssignment(IDataDescriptor dd, Object value)
    at MediaPortal.UI.SkinEngine.Xaml.Parser.HandleMemberOrEventAssignment(XmlNode memberDeclarationNode)
    at MediaPortal.UI.SkinEngine.Xaml.Parser.Instantiate(XmlElement currentElement, Object& key)
    at MediaPortal.UI.SkinEngine.Xaml.Parser.ParseValue(XmlNode node)
    at MediaPortal.UI.SkinEngine.Xaml.Parser.HandleMemberOrEventAssignment(XmlNode memberDeclarationNode)
    at MediaPortal.UI.SkinEngine.Xaml.Parser.Instantiate(XmlElement currentElement, Object& key)
    at MediaPortal.UI.SkinEngine.Xaml.Parser.ParseValue(XmlNode node)
    at MediaPortal.UI.SkinEngine.Xaml.Parser.Instantiate(XmlElement currentElement, Object& key)
    at MediaPortal.UI.SkinEngine.Xaml.Parser.ParseValue(XmlNode node)
    at MediaPortal.UI.SkinEngine.Xaml.Parser.Instantiate(XmlElement currentElement, Object& key)
    at MediaPortal.UI.SkinEngine.Xaml.Parser.ParseValue(XmlNode node)
    at MediaPortal.UI.SkinEngine.Xaml.Parser.Instantiate(XmlElement currentElement, Object& key)
    at MediaPortal.UI.SkinEngine.Xaml.Parser.ParseValue(XmlNode node)
    at MediaPortal.UI.SkinEngine.Xaml.Parser.Instantiate(XmlElement currentElement, Object& key)
    at MediaPortal.UI.SkinEngine.Xaml.Parser.ParseValue(XmlNode node)
    at MediaPortal.UI.SkinEngine.Xaml.Parser.Instantiate(XmlElement currentElement, Object& key)
    at MediaPortal.UI.SkinEngine.Xaml.Parser.ParseValue(XmlNode node)
    at MediaPortal.UI.SkinEngine.Xaml.Parser.HandleMemberOrEventAssignment(XmlNode memberDeclarationNode)
    at MediaPortal.UI.SkinEngine.Xaml.Parser.Instantiate(XmlElement currentElement, Object& key)
    at MediaPortal.UI.SkinEngine.Xaml.Parser.ParseValue(XmlNode node)
    at MediaPortal.UI.SkinEngine.Xaml.Parser.Instantiate(XmlElement currentElement, Object& key)
    at MediaPortal.UI.SkinEngine.Xaml.Parser.ParseValue(XmlNode node)
    at MediaPortal.UI.SkinEngine.Xaml.Parser.Instantiate(XmlElement currentElement, Object& key)
    at MediaPortal.UI.SkinEngine.Xaml.Parser.Parse()
    at MediaPortal.UI.SkinEngine.SkinManagement.XamlLoader.Load(TextReader reader, ISkinResourceBundle actualResourceBundle, IModelLoader loader)
    --- End of inner exception stack trace ---


    Ideas?
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    And done: first part is the Sqlite support (ssdl and modification for DB init) which is now rebased onto mm's branch: https://github.com/MediaPortal/MediaPortal-1/commits/EXP-TVE3.5-MP1-MP2-SQLite. It's ready to be merged into mm's branch directly, so @mm1352000 if you like, feel free to merge :)
    Merged, thanks. :)

    It does not contain references to Sqlite in app.config or packages.config, so the current preferred connection will be kept.
    I think the "preferred connection" you mention is just @gibman's connection string, because I certainly have to modify app.config to connect to my database. IMHO there is nothing really special to protect there. Either way, surely it would be good to have an example SQLite connection string like we already have for MySQL, SQL Server and SQL Server CE?
    [collapse]
    <connectionStrings>
    <!--
    for MYSQL use:
    <add name="Model" connectionString="metadata=res://Mediaportal.TV.Server.TVDatabase.EntityModel/Model.csdl|res://Mediaportal.TV.Server.TVDatabase.EntityModel/Mediaportal.TV.Server.TVDatabase.EntityModel.Model.MySQL.ssdl|res://Mediaportal.TV.Server.TVDatabase.EntityModel/Model.msl;provider=MySql.Data.MySqlClient;provider connection string=&quot;server=localhost;User Id=root;database=TVE35;password=MediaPortal;Persist Security Info=True&quot;" providerName="System.Data.EntityClient" />

    for MS SQL use:
    <add name="Model" connectionString="metadata=res://Mediaportal.TV.Server.TVDatabase.EntityModel/Model.csdl|res://Mediaportal.TV.Server.TVDatabase.EntityModel/Mediaportal.TV.Server.TVDatabase.EntityModel.Model.MSSQL.ssdl|res://Mediaportal.TV.Server.TVDatabase.EntityModel/Model.msl;provider=MySql.Data.MySqlClient;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=localhost\SQLEXPRESS;Initial Catalog=TVE35;User ID=sa;Password=MediaPortal;MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClient" />

    for MS SQL CE (MP2) use:
    <add name="Model" connectionString="metadata=res://Mediaportal.TV.Server.TVDatabase.EntityModel/Model.csdl|res://Mediaportal.TV.Server.TVDatabase.EntityModel/Mediaportal.TV.Server.TVDatabase.EntityModel.Model.MSSQLCE.ssdl|res://Mediaportal.TV.Server.TVDatabase.EntityModel/Model.msl;provider=System.Data.SqlServerCe;provider connection string=&quot;Data Source='C:\ProgramData\Team MediaPortal\MP2-Server\TVE35.sdf'; Default Lock Timeout=30000; Max Buffer Size = 2048; Max Database Size = 1024;&quot;" providerName="System.Data.EntityClient" />
    -->[/collapse]

    I had assumed (maybe wrongly?) that when TVE 3.5 gets a standalone installer it would be desirable to make it possible to select SQLite as one of the DB options like we have with MySQL and SQL Server for TVE 3. In other words, it might not only be MP2 that uses SQLite. Therefore we would need SQLite in the packages.config.

    On that note, I don't know if you saw already: I've now removed the ExternalBinaries directory and replaced it with the official NuGet packages for EF and MySQL. They're included in the EntityModel project packages.config... and I'd do the same with SQLite... and SQL Server CE if binaries are/were also required for that.

    ...or have I misunderstood something?
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    I had assumed (maybe wrongly?) that when TVE 3.5 gets a standalone installer it would be desirable to make it possible to select SQLite as one of the DB options like we have with MySQL and SQL Server for TVE 3. In other words, it might not only be MP2 that uses SQLite. Therefore we would need SQLite in the packages.config.
    I like the idea (y)
     

    ecs0set

    New Member
    August 19, 2014
    4
    1
    54
    Home Country
    Great Britain (UK) Great Britain (UK)
    Was running MP2 10AE + SlimTV Native. All working fine except the ability to delete recordings once watched. Updated to Update 1 and I get the following error on starting MP. Happens on two separate PCs!


    MediaPortal.Utilities.Exceptions.EnvironmentException: Error loading style resource 'C:\Program Files (x86)\Team MediaPortal\MP2-Client\Plugins\SlimTv.Client\Skin\default\themes\default\styles\SlimTvStyles.xaml' ---> MediaPortal.UI.SkinEngine.Xaml.Exceptions.XamlLoadException: XAML loader: Error parsing file 'C:\Program Files (x86)\Team MediaPortal\MP2-Client\Plugins\SlimTv.Client\Skin\default\themes\default\styles\SlimTvStyles.xaml' ---> MediaPortal.UI.SkinEngine.Xaml.Exceptions.XamlBindingException: Could not convert object 'Channel' to type 'FanArtMediaType'

    For anyone else facing this issue, read the instructions on the MP2 10AE Update 1 forum post under "Show Spoiler". Pay special attention to the following lines:
    • copy only the MP2-Server\Plugins\SlimTv.Service into ProgramFiles(x86)\Team MediaPortal\MP2-Server\Plugins
    • copy only the MP2-Client\Plugins\SlimTv.NativeProvider into ProgramFiles(x86)\Team MediaPortal\MP2-Client\Plugin
    This means, DO NOT copy the MP2-Client\Plugins\SlimTv.Client or MP2-Server\Plugins\SlimTv.Resources folders! Otherwise you get the error above in the log file and a crash with "cannot connect to iThreadxxxx service" or similar error on startup.
     

    ge2301

    Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    8,736
    3,501
    Stuttgart
    Home Country
    Germany Germany
    unfortunately TV doesn't work for me with update 1. I tried several settings, but tuning does not find any channels.
    The same failure i had with MP1 in the past, really hope nothing was changed with TVE3.5 in this direction.

    Attached my error logs. I'm using DVB-S with Diseqc, settings were same as with last Mp2 version.

    Edit: I have also tried uninstalling MP2 completely with all settings, it doesn't help.
     
    Last edited:

    ulischultz

    Portal Pro
    September 16, 2009
    156
    8
    Munich
    Home Country
    Germany Germany
    My Digital Devices Cards are shown correctly, but at channel-scan, nothing is found. Also the scan goes very fast.
    In 1.8.0 it works without problems. tvservice of 1.8.0 installation is stopped.
    Any idea?
     

    Users who are viewing this thread

    Top Bottom