Hard crashes after using "Send to importer" (1 Viewer)

seco

Retired Team Member
  • Premium Supporter
  • August 7, 2007
    1,575
    1,239
    Home Country
    Finland Finland
    I got couple of hard crashes in a row when using "Send to importer", fiddling there and coming back to movies listing -> crash.

    MediaPortal 1.8.0 & Moving Pictures 1.8.0

    MediaPortal-Error.log

    Code:
    [2017-05-28 11:19:05,460] [Error  ] [MPMain   ] [ERROR] - OnMessage exception:System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index
       at System.ThrowHelper.ThrowArgumentOutOfRangeException()
       at Cornerstone.Database.CustomTypes.RelationList`2.get_Item(Int32 index)
       at MediaPortal.Plugins.MovingPictures.MainUI.MovingPicturesGUI.PublishMovieDetails(DBMovieInfo movie)
       at MediaPortal.Plugins.MovingPictures.MainUI.MovingPicturesGUI.OnBrowserViewChanged(BrowserViewMode previousView, BrowserViewMode currentView)
       at MediaPortal.Plugins.MovingPictures.MainUI.MovieBrowser.ReloadView()
       at MediaPortal.Plugins.MovingPictures.MainUI.MovieBrowser.set_CurrentView(BrowserViewMode value)
       at MediaPortal.Plugins.MovingPictures.MainUI.MovingPicturesGUI.OnPageLoad()
       at MediaPortal.GUI.Library.GUIWindow.OnMessage(GUIMessage message)
    [2017-05-28 11:19:05,470] [Error  ] [3        ] [ERROR] - MediaPortal: Unhandled exception occured
    [2017-05-28 11:19:05,470] [Log    ] [3        ] [ERROR] - Exception: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index
    
    Server stack trace:
       at System.ThrowHelper.ThrowArgumentOutOfRangeException()
       at Cornerstone.Database.CustomTypes.RelationList`2.get_Item(Int32 index)
       at MediaPortal.Plugins.MovingPictures.MainUI.MovingPicturesGUI.PublishMovieDetails(DBMovieInfo movie)
       at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
       at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
    
    Exception rethrown at [0]:
       at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
       at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
       at MediaPortal.Plugins.MovingPictures.MainUI.MovingPicturesGUI.MoviePublishWorker.EndInvoke(IAsyncResult result)
       at System.Runtime.Remoting.Messaging.AsyncResult.SyncProcessMessage(IMessage msg)
       at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
       at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.DoAsyncCall()
       at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.ThreadPoolCallBack(Object o)
       at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
       at System.Threading.ThreadPoolWorkQueue.Dispatch()
       at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()  Message: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index  Site   : System.Runtime.Remoting.Messaging.IMessage EndInvokeHelper(System.Runtime.Remoting.Messaging.Message, Boolean)  Source : mscorlib  Stack Trace: 
    Server stack trace:
       at System.ThrowHelper.ThrowArgumentOutOfRangeException()
       at Cornerstone.Database.CustomTypes.RelationList`2.get_Item(Int32 index)
       at MediaPortal.Plugins.MovingPictures.MainUI.MovingPicturesGUI.PublishMovieDetails(DBMovieInfo movie)
       at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
       at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
    
    Exception rethrown at [0]:
       at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
       at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
       at MediaPortal.Plugins.MovingPictures.MainUI.MovingPicturesGUI.MoviePublishWorker.EndInvoke(IAsyncResult result)
       at System.Runtime.Remoting.Messaging.AsyncResult.SyncProcessMessage(IMessage msg)
       at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
       at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.DoAsyncCall()
       at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.ThreadPoolCallBack(Object o)
       at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
       at System.Threading.ThreadPoolWorkQueue.Dispatch()
       at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
    [2017-05-28 11:19:10,770] [Error  ] [movie avail. checker] [ERROR] - MediaPortal: Unhandled exception occured
    [2017-05-28 11:32:31,413] [Error  ] [45       ] [ERROR] - MediaPortal: Unhandled exception occured
    [2017-05-28 11:32:31,429] [Log    ] [45       ] [ERROR] - Exception: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index
       at System.ThrowHelper.ThrowArgumentOutOfRangeException()
       at Cornerstone.Database.CustomTypes.RelationList`2.get_Item(Int32 index)
       at MediaPortal.Plugins.MovingPictures.MainUI.MovieBrowser.UpdateListColors(DBMovieInfo movie)
       at MediaPortal.Plugins.MovingPictures.MainUI.MovieBrowser.ReloadMovieFacade()
       at MediaPortal.Plugins.MovingPictures.MainUI.MovieBrowser.ReloadFacade()
       at MediaPortal.Plugins.MovingPictures.MainUI.MovieBrowser.RefreshFacade(Object state)
       at System.Threading._TimerCallback.TimerCallback_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading._TimerCallback.PerformTimerCallback(Object state)  Message: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index  Site   : Void ThrowArgumentOutOfRangeException()  Source : mscorlib  Stack Trace:     at System.ThrowHelper.ThrowArgumentOutOfRangeException()
       at Cornerstone.Database.CustomTypes.RelationList`2.get_Item(Int32 index)
       at MediaPortal.Plugins.MovingPictures.MainUI.MovieBrowser.UpdateListColors(DBMovieInfo movie)
       at MediaPortal.Plugins.MovingPictures.MainUI.MovieBrowser.ReloadMovieFacade()
       at MediaPortal.Plugins.MovingPictures.MainUI.MovieBrowser.ReloadFacade()
       at MediaPortal.Plugins.MovingPictures.MainUI.MovieBrowser.RefreshFacade(Object state)
       at System.Threading._TimerCallback.TimerCallback_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading._TimerCallback.PerformTimerCallback(Object state)
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    @seco, have you tried with a fresh db3 file?

    Does the db3 survive an SQLite pragma integrity check?
     

    seco

    Retired Team Member
  • Premium Supporter
  • August 7, 2007
    1,575
    1,239
    Home Country
    Finland Finland
    • Thread starter
    • Moderator
    • #3
    @seco, have you tried with a fresh db3 file?

    Does the db3 survive an SQLite pragma integrity check?

    I don't think it is database related, more likely concurrency issue where importer and GUI are modifying and reading same data without proper synchronization
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    I know I had concurrency issues in the past with MediaPortal trying to read the media file to obtain the MediaInfo data, and the thumbnail generation if one is missing. It was especially the thumbnail part that caused me major headaches, so I finally just disabled it as I never had a need for it anyway (allows me to identify the movie/TV-episodes that can use a community contribution at TheTVdB/TMDB).

    Easy to test for.
     

    Users who are viewing this thread

    Top Bottom