Hard crashes after using "Send to importer"

Discussion in 'Moving Pictures' started by seco, May 28, 2017.

  1. seco
    • Team MediaPortal

    seco Development Group

    Joined:
    August 7, 2007
    Messages:
    1,579
    Likes Received:
    897
    Gender:
    Male
    Ratings:
    +1,234 / 4
    Home Country:
    Finland Finland
    Show System Specs
    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 (Text):
    1. [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.
    2. Parameter name: index
    3.    at System.ThrowHelper.ThrowArgumentOutOfRangeException()
    4.    at Cornerstone.Database.CustomTypes.RelationList`2.get_Item(Int32 index)
    5.    at MediaPortal.Plugins.MovingPictures.MainUI.MovingPicturesGUI.PublishMovieDetails(DBMovieInfo movie)
    6.    at MediaPortal.Plugins.MovingPictures.MainUI.MovingPicturesGUI.OnBrowserViewChanged(BrowserViewMode previousView, BrowserViewMode currentView)
    7.    at MediaPortal.Plugins.MovingPictures.MainUI.MovieBrowser.ReloadView()
    8.    at MediaPortal.Plugins.MovingPictures.MainUI.MovieBrowser.set_CurrentView(BrowserViewMode value)
    9.    at MediaPortal.Plugins.MovingPictures.MainUI.MovingPicturesGUI.OnPageLoad()
    10.    at MediaPortal.GUI.Library.GUIWindow.OnMessage(GUIMessage message)
    11. [2017-05-28 11:19:05,470] [Error  ] [3        ] [ERROR] - MediaPortal: Unhandled exception occured
    12. [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.
    13. Parameter name: index
    14.  
    15. Server stack trace:
    16.    at System.ThrowHelper.ThrowArgumentOutOfRangeException()
    17.    at Cornerstone.Database.CustomTypes.RelationList`2.get_Item(Int32 index)
    18.    at MediaPortal.Plugins.MovingPictures.MainUI.MovingPicturesGUI.PublishMovieDetails(DBMovieInfo movie)
    19.    at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
    20.    at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
    21.  
    22. Exception rethrown at [0]:
    23.    at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
    24.    at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
    25.    at MediaPortal.Plugins.MovingPictures.MainUI.MovingPicturesGUI.MoviePublishWorker.EndInvoke(IAsyncResult result)
    26.    at System.Runtime.Remoting.Messaging.AsyncResult.SyncProcessMessage(IMessage msg)
    27.    at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
    28.    at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.DoAsyncCall()
    29.    at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.ThreadPoolCallBack(Object o)
    30.    at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
    31.    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
    32.    at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
    33.    at System.Threading.ThreadPoolWorkQueue.Dispatch()
    34.    at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()  Message: Index was out of range. Must be non-negative and less than the size of the collection.
    35. Parameter name: index  Site   : System.Runtime.Remoting.Messaging.IMessage EndInvokeHelper(System.Runtime.Remoting.Messaging.Message, Boolean)  Source : mscorlib  Stack Trace:
    36. Server stack trace:
    37.    at System.ThrowHelper.ThrowArgumentOutOfRangeException()
    38.    at Cornerstone.Database.CustomTypes.RelationList`2.get_Item(Int32 index)
    39.    at MediaPortal.Plugins.MovingPictures.MainUI.MovingPicturesGUI.PublishMovieDetails(DBMovieInfo movie)
    40.    at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
    41.    at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
    42.  
    43. Exception rethrown at [0]:
    44.    at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
    45.    at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
    46.    at MediaPortal.Plugins.MovingPictures.MainUI.MovingPicturesGUI.MoviePublishWorker.EndInvoke(IAsyncResult result)
    47.    at System.Runtime.Remoting.Messaging.AsyncResult.SyncProcessMessage(IMessage msg)
    48.    at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
    49.    at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.DoAsyncCall()
    50.    at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.ThreadPoolCallBack(Object o)
    51.    at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
    52.    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
    53.    at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
    54.    at System.Threading.ThreadPoolWorkQueue.Dispatch()
    55.    at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
    56. [2017-05-28 11:19:10,770] [Error  ] [movie avail. checker] [ERROR] - MediaPortal: Unhandled exception occured
    57. [2017-05-28 11:32:31,413] [Error  ] [45       ] [ERROR] - MediaPortal: Unhandled exception occured
    58. [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.
    59. Parameter name: index
    60.    at System.ThrowHelper.ThrowArgumentOutOfRangeException()
    61.    at Cornerstone.Database.CustomTypes.RelationList`2.get_Item(Int32 index)
    62.    at MediaPortal.Plugins.MovingPictures.MainUI.MovieBrowser.UpdateListColors(DBMovieInfo movie)
    63.    at MediaPortal.Plugins.MovingPictures.MainUI.MovieBrowser.ReloadMovieFacade()
    64.    at MediaPortal.Plugins.MovingPictures.MainUI.MovieBrowser.ReloadFacade()
    65.    at MediaPortal.Plugins.MovingPictures.MainUI.MovieBrowser.RefreshFacade(Object state)
    66.    at System.Threading._TimerCallback.TimerCallback_Context(Object state)
    67.    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
    68.    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.
    69. Parameter name: index  Site   : Void ThrowArgumentOutOfRangeException()  Source : mscorlib  Stack Trace:     at System.ThrowHelper.ThrowArgumentOutOfRangeException()
    70.    at Cornerstone.Database.CustomTypes.RelationList`2.get_Item(Int32 index)
    71.    at MediaPortal.Plugins.MovingPictures.MainUI.MovieBrowser.UpdateListColors(DBMovieInfo movie)
    72.    at MediaPortal.Plugins.MovingPictures.MainUI.MovieBrowser.ReloadMovieFacade()
    73.    at MediaPortal.Plugins.MovingPictures.MainUI.MovieBrowser.ReloadFacade()
    74.    at MediaPortal.Plugins.MovingPictures.MainUI.MovieBrowser.RefreshFacade(Object state)
    75.    at System.Threading._TimerCallback.TimerCallback_Context(Object state)
    76.    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
    77.    at System.Threading._TimerCallback.PerformTimerCallback(Object state)
    78.  
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. RoChess
    • Premium Supporter

    RoChess Extension Developer

    Joined:
    March 10, 2006
    Messages:
    4,141
    Likes Received:
    1,292
    Ratings:
    +1,654 / 2
    @seco, have you tried with a fresh db3 file?

    Does the db3 survive an SQLite pragma integrity check?
     
  4. seco
    • Team MediaPortal

    seco Development Group

    Joined:
    August 7, 2007
    Messages:
    1,579
    Likes Received:
    897
    Gender:
    Male
    Ratings:
    +1,234 / 4
    Home Country:
    Finland Finland
    Show System Specs
    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
     
  5. RoChess
    • Premium Supporter

    RoChess Extension Developer

    Joined:
    March 10, 2006
    Messages:
    4,141
    Likes Received:
    1,292
    Ratings:
    +1,654 / 2
    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.
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!