[Plugin] MPSync - MediaPortal multi-seat Synchronization (8 Viewers)

m3rcury

Development Group
  • Team MediaPortal
  • August 12, 2010
    977
    733
    Home Country
    Malta Malta
    Can I change the information in the log output from level Info to level Debug?

    Was:
    Code:
    2013-04-18 14:08:49.255278 [Info.][(6)]: MPSync: synchronization of table path in database VideoDatabaseV5.db3 complete.
    2013-04-18 14:08:49.255278 [Info.][(6)]: MPSync: synchronization of table usergroup in database VideoDatabaseV5.db3 complete.

    It became:
    Code:
    2013-04-18 14:08:49.255278 [Debug][(6)]: MPSync: synchronization of table path in database VideoDatabaseV5.db3 complete.
    2013-04-18 14:08:49.255278 [Debug][(6)]: MPSync: synchronization of table usergroup in database VideoDatabaseV5.db3 complete.
    2013-04-18 14:08:49.256278 [Debug][(6)]: MPSync: synchronization of table resume in database VideoDatabaseV5.db3 complete.
    2013-04-18 14:08:49.256278 [Debug][(6)]: MPSync: synchronization of table usergrouplinkmovie in database VideoDatabaseV5.db3 complete.

    It is difficult to analyze the log file, a lot of information output plugins synchronization and cleaning.

    ajs, for MPSync, you should look into mpsync.log as it contains extended debug logging.
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,063
    11,145
    Kyiv
    Home Country
    Ukraine Ukraine
    You did not understand me. I do not need a debug log. I need to reduce the information to a log file. That is, Your plug-ins that were not taken all that is not getting the level of information in the log, and that they based it all with the level of debugging. It was only really the right information with the level of information and above.
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,063
    11,145
    Kyiv
    Home Country
    Ukraine Ukraine
    Plugin crashed on client HTPC:

    Code:
    19.04.2013 22:55:03 - [INFO] MPSync: process plugin version 1.0.0.3 initialisation with DEBUG.
    19.04.2013 22:55:03 - [DEBUG] MPSync: Creating work table mpsync in database movingpictures.db3
    19.04.2013 22:55:03 - [DEBUG] MPSync: Creating work table mpsync in database movingpictures.db3
    19.04.2013 22:55:03 - [DEBUG] MPSync: Creating triggers in database movingpictures.db3

    Code:
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.
     
    ************** Exception Text **************
    System.ArgumentException: Argument 'Length' must be greater or equal to zero.
      at Microsoft.VisualBasic.Strings.Left(String str, Int32 Length)
      at MPSync.MPSync_process.FieldList(String path, String database, String table, Array fields, String prefix)
      at MPSync.MPSync_process.Create_Triggers(String path, String database)
      at MPSync.MPSync_process.MPSyncProcess()
      at MPSync.MPSync_settings.b_sync_now_Click(Object sender, EventArgs e)
      at System.Windows.Forms.Control.OnClick(EventArgs e)
      at System.Windows.Forms.Button.OnClick(EventArgs e)
      at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
      at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
      at System.Windows.Forms.Control.WndProc(Message& m)
      at System.Windows.Forms.ButtonBase.WndProc(Message& m)
      at System.Windows.Forms.Button.WndProc(Message& m)
      at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
      at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
     
     
    ************** Loaded Assemblies **************
    mscorlib
    	Assembly Version: 2.0.0.0
    	Win32 Version: 2.0.50727.5466 (Win7SP1GDR.050727-5400)
    	CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    ----------------------------------------
    PluginConfigLoader
    	Assembly Version: 1.0.1.1169
    	Win32 Version: 1.0.1.1169
    	CodeBase: file:///C:/Team%20MediaPortal/MediaPortal/PluginConfigLoader.exe
    ----------------------------------------
    System.Windows.Forms
    	Assembly Version: 2.0.0.0
    	Win32 Version: 2.0.50727.5468 (Win7SP1GDR.050727-5400)
    	CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System
    	Assembly Version: 2.0.0.0
    	Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
    	CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Drawing
    	Assembly Version: 2.0.0.0
    	Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
    	CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    Core
    	Assembly Version: 1.3.0.0
    	Win32 Version: 1.3.0.0
    	CodeBase: file:///C:/Team%20MediaPortal/MediaPortal/Core.DLL
    ----------------------------------------
    MPSync
    	Assembly Version: 1.0.0.3
    	Win32 Version: 1.0.0.3
    	CodeBase: file:///c:/team%20mediaportal/mediaportal/plugins/process/mpsync.dll
    ----------------------------------------
    Common.Utils
    	Assembly Version: 1.3.0.0
    	Win32 Version: 1.3.0.0
    	CodeBase: file:///C:/Team%20MediaPortal/MediaPortal/Common.Utils.DLL
    ----------------------------------------
    Utils
    	Assembly Version: 1.3.0.0
    	Win32 Version: 1.3.0.0
    	CodeBase: file:///C:/Team%20MediaPortal/MediaPortal/Utils.DLL
    ----------------------------------------
    Microsoft.VisualBasic
    	Assembly Version: 8.0.0.0
    	Win32 Version: 8.0.50727.5420 (Win7SP1.050727-5400)
    	CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
    ----------------------------------------
    System.Xml
    	Assembly Version: 2.0.0.0
    	Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    	CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    System.Core
    	Assembly Version: 3.5.0.0
    	Win32 Version: 3.5.30729.5420 built by: Win7SP1
    	CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
    ----------------------------------------
    System.Web
    	Assembly Version: 2.0.0.0
    	Win32 Version: 2.0.50727.5456 (Win7SP1GDR.050727-5400)
    	CodeBase: file:///C:/Windows/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
    ----------------------------------------
    System.Data.SQLite
    	Assembly Version: 1.0.81.0
    	Win32 Version: 1.0.81.0
    	CodeBase: file:///C:/Team%20MediaPortal/MediaPortal/System.Data.SQLite.DLL
    ----------------------------------------
    System.Data
    	Assembly Version: 2.0.0.0
    	Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    	CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
    ----------------------------------------
    System.Transactions
    	Assembly Version: 2.0.0.0
    	Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    	CodeBase: file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
    ----------------------------------------
    System.Configuration
    	Assembly Version: 2.0.0.0
    	Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    	CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    System.EnterpriseServices
    	Assembly Version: 2.0.0.0
    	Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    	CodeBase: file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
    ----------------------------------------
     
    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.
     
    For example:
     
    <configuration>
    	<system.windows.forms jitDebugging="true" />
    </configuration>
     
    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.

    Settings:
    M1.pngM2.png M3.png M4.png M5.png M6.png M7.png M8.png

    Copied the database manually from the storage to the client. Launched a plug-in. The same error. On the master then works fine. I had to turn off.

    Prior to that, he worked fine, but the synchronization is not happening.
     
    Last edited:

    m3rcury

    Development Group
  • Team MediaPortal
  • August 12, 2010
    977
    733
    Home Country
    Malta Malta
    Plugin crashed on client HTPC:

    Copied the database manually from the storage to the client. Launched a plug-in. The same error. On the master then works fine. I had to turn off.

    Prior to that, he worked fine, but the synchronization is not happening.

    ajs, is the version of your MovingPicture is the same as the pre-requisite in post #1?
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,063
    11,145
    Kyiv
    Home Country
    Ukraine Ukraine
    I do not MovingPicture. Is it so necessary for the normal operation of the plug?
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,063
    11,145
    Kyiv
    Home Country
    Ukraine Ukraine
    On Master:
    Code:
    2013-04-20 00:25:07.390625 [Info.][(34)]: MPSync: synchronization of table local_episodes in database M:\Mediaportal\DB\TVSeriesDatabase4.db3 in progress...
    2013-04-20 00:25:08.125000 [Info.][(34)]: MPSync: synchronization of table local_episodes in database TVSeriesDatabase4.db3 complete.
    2013-04-20 00:25:10.578125 [Info.][(44)]: MPSync: Error reading data from table movieinfo in database VideoDatabaseV5.db3
    2013-04-20 00:25:10.968750 [Info.][(44)]: MPSync: synchronization of table movieinfo in database M:\Mediaportal\DB\VideoDatabaseV5.db3 in progress...
    2013-04-20 00:25:14.468750 [Info.][(36)]: MPSync: synchronization of table tracks in database M:\Mediaportal\DB\MusicDatabaseV12.db3 in progress...
    2013-04-20 00:25:16.515625 [Info.][(30)]: MPSync: synchronization of table tracks in database MusicDatabaseV12.db3 complete.
    2013-04-20 00:25:17.609375 [Info.][(43)]: MPSync: synchronization of table online_episodes in database M:\Mediaportal\DB\TVSeriesDatabase4.db3 in progress...

    Code:
    20.04.2013 00:26:49 - [INFO] MPSync: synchronization of table actors in database M:\Mediaportal\DB\VideoDatabaseV5.db3 in progress...
    20.04.2013 00:26:53 - [ERROR] MPSync: Error reading data from table movieinfo in database VideoDatabaseV5.db3
    20.04.2013 00:26:53 - [INFO] MPSync: synchronization of table movieinfo in database M:\Mediaportal\DB\VideoDatabaseV5.db3 in progress...

    And what is the output the same thing in two log files?
     
    Last edited:

    m3rcury

    Development Group
  • Team MediaPortal
  • August 12, 2010
    977
    733
    Home Country
    Malta Malta
    I do not MovingPicture. Is it so necessary for the normal operation of the plug?

    ajs, you have movingpictures selected and the error seems to be coming from that. Reason why I asked you for the info!!!
     

    m3rcury

    Development Group
  • Team MediaPortal
  • August 12, 2010
    977
    733
    Home Country
    Malta Malta
    On Master:
    Code:
    2013-04-20 00:25:07.390625 [Info.][(34)]: MPSync: synchronization of table local_episodes in database M:\Mediaportal\DB\TVSeriesDatabase4.db3 in progress...
    2013-04-20 00:25:08.125000 [Info.][(34)]: MPSync: synchronization of table local_episodes in database TVSeriesDatabase4.db3 complete.
    2013-04-20 00:25:10.578125 [Info.][(44)]: MPSync: Error reading data from table movieinfo in database VideoDatabaseV5.db3
    2013-04-20 00:25:10.968750 [Info.][(44)]: MPSync: synchronization of table movieinfo in database M:\Mediaportal\DB\VideoDatabaseV5.db3 in progress...
    2013-04-20 00:25:14.468750 [Info.][(36)]: MPSync: synchronization of table tracks in database M:\Mediaportal\DB\MusicDatabaseV12.db3 in progress...
    2013-04-20 00:25:16.515625 [Info.][(30)]: MPSync: synchronization of table tracks in database MusicDatabaseV12.db3 complete.
    2013-04-20 00:25:17.609375 [Info.][(43)]: MPSync: synchronization of table online_episodes in database M:\Mediaportal\DB\TVSeriesDatabase4.db3 in progress...

    Code:
    20.04.2013 00:26:49 - [INFO] MPSync: synchronization of table actors in database M:\Mediaportal\DB\VideoDatabaseV5.db3 in progress...
    20.04.2013 00:26:53 - [ERROR] MPSync: Error reading data from table movieinfo in database VideoDatabaseV5.db3
    20.04.2013 00:26:53 - [INFO] MPSync: synchronization of table movieinfo in database M:\Mediaportal\DB\VideoDatabaseV5.db3 in progress...

    And what is the output the same thing in two log files?

    ajs, the info in the logs is not the same, far from it....
     

    CGT

    Portal Pro
    January 8, 2012
    240
    6
    Hi,

    first of all thank you for programming this PlugIn!

    I am afraid I might have an issue though:

    I used MPsync to copy the Master's database to a drive in the network. It worked fine but maybe I should mention that the network drive happens to be a drive of the Master HTPC.

    Next I actually forgot to switch the client HTPC sync direction and started the sync (with syncing direction towards network drive). I don't know if I overwrote the files on the network drive but later I realized my mistake and started the sync from the master again. Then I tried to sync from the network drive to the client with direction from network drive to client but received an error message. I used the files in the network to override the client's database manually and now I have the data I want but starting the sync still gives me this (attachment).

    Do you know how to solve this? Thank you!
     

    Attachments

    • Error Message.txt
      16.1 KB

    m3rcury

    Development Group
  • Team MediaPortal
  • August 12, 2010
    977
    733
    Home Country
    Malta Malta
    Hi,

    first of all thank you for programming this PlugIn!

    I am afraid I might have an issue though:

    I used MPsync to copy the Master's database to a drive in the network. It worked fine but maybe I should mention that the network drive happens to be a drive of the Master HTPC.

    Next I actually forgot to switch the client HTPC sync direction and started the sync (with syncing direction towards network drive). I don't know if I overwrote the files on the network drive but later I realized my mistake and started the sync from the master again. Then I tried to sync from the network drive to the client with direction from network drive to client but received an error message. I used the files in the network to override the client's database manually and now I have the data I want but starting the sync still gives me this (attachment).

    Do you know how to solve this? Thank you!

    CGT, just for me to understand, the failure is happening on the client (not master) where you are synching from server to client. Server referring to a folder on the main HTPC does not make a difference. To understand better, let me try and explain what I understood.

    Master (HTPC A) -> Server (Folder on HTPC A)
    Client (HTPC B) <- Server (Folder on HTPC A)

    You encounter issues when running plugin on HTPC B. Correct?
     

    Users who are viewing this thread

    Top Bottom