Entering Video stopping tv or crashing Mediaportal (1 Viewer)

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Here's the error causing the crash:
    [collapse]
    [2015-01-29 22:04:25,830] [Log ] [MPMain ] [ERROR] - Exception: System.ArgumentNullException: Value cannot be null.
    at System.Threading.Monitor.ReliableEnter(Object obj, Boolean& lockTaken)
    at MediaPortal.Player.BaseTSReaderPlayer.UpdateCurrentPosition()
    at MediaPortal.Player.BaseTSReaderPlayer.get_Duration()
    at MediaPortal.Player.g_Player.get_Duration()
    at MediaPortalApp.OnProcess()
    at MediaPortal.D3D.OnIdle(Object sender, EventArgs e)
    at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
    at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.Run(Form mainForm)
    at MediaPortalApp.Main(String[] args) Message: Value cannot be null. Site : Void ReliableEnter(System.Object, Boolean ByRef) Source : mscorlib Stack Trace: at System.Threading.Monitor.ReliableEnter(Object obj, Boolean& lockTaken)
    at MediaPortal.Player.BaseTSReaderPlayer.UpdateCurrentPosition()
    at MediaPortal.Player.BaseTSReaderPlayer.get_Duration()
    at MediaPortal.Player.g_Player.get_Duration()
    at MediaPortalApp.OnProcess()
    at MediaPortal.D3D.OnIdle(Object sender, EventArgs e)
    at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
    at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.Run(Form mainForm)
    at MediaPortalApp.Main(String[] args)
    [2015-01-29 22:04:25,832] [Error ] [MPMain ] [ERROR] - MediaPortal stopped due to an exception Value cannot be null. mscorlib at System.Threading.Monitor.ReliableEnter(Object obj, Boolean& lockTaken)
    at MediaPortal.Player.BaseTSReaderPlayer.UpdateCurrentPosition()
    at MediaPortal.Player.BaseTSReaderPlayer.get_Duration()
    at MediaPortal.Player.g_Player.get_Duration()
    at MediaPortalApp.OnProcess()
    at MediaPortal.D3D.OnIdle(Object sender, EventArgs e)
    at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
    at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.Run(Form mainForm)
    at MediaPortalApp.Main(String[] args)
    [/collapse]

    It seems very odd to me that TV is being stopped in the "GetMediaInfo thread:
    [collapse]
    [2015-01-29 22:04:24,336] [Log ] [GetMediaInfoThread 2] [DEBUG] - GetMediaInfoThread: current folder: D:\Videos, itemlist count: 4
    [2015-01-29 22:04:24,337] [Log ] [GetMediaInfoThread 2] [DEBUG] - GetMediaInfoThread: Work on D:\Videos\David Guetta.iso
    [2015-01-29 22:04:24,338] [Log ] [GetMediaInfoThread 2] [DEBUG] - VideodatabaseSqllite AddFile:\David Guetta.iso
    [2015-01-29 22:04:24,339] [Log ] [GetMediaInfoThread 2] [INFO ] - VideoDatabase media info scanning file: D:\Videos\David Guetta.iso
    [2015-01-29 22:04:24,339] [Log ] [GetMediaInfoThread 2] [DEBUG] - g_Player.doStop() keepTimeShifting = False keepExclusiveModeOn = False
    [2015-01-29 22:04:24,340] [Log ] [GetMediaInfoThread 2] [INFO ] - g_Player.OnStopped()
    [2015-01-29 22:04:24,340] [Log ] [GetMediaInfoThread 2] [INFO ] - RadioRecorded:OnPlayRecordingBackStopped TV D:\Timeshift\live3-0.ts.tsbuffer
    [2015-01-29 22:04:24,342] [Log ] [GetMediaInfoThread 2] [INFO ] - TVHome:turn tv off
    [2015-01-29 22:04:24,722] [Log ] [GetMediaInfoThread 2] [INFO ] - TvRecorded:OnPlayRecordingBackStopped TV D:\Timeshift\live3-0.ts.tsbuffer
    [2015-01-29 22:04:24,722] [Log ] [GetMediaInfoThread 2] [DEBUG] - g_Player.doStop() - stop
    [2015-01-29 22:04:24,723] [Log ] [GetMediaInfoThread 2] [DEBUG] - TSReaderPlayer: Saving subtitle index: 0
    [2015-01-29 22:04:24,723] [Log ] [GetMediaInfoThread 2] [INFO ] - TSReaderPlayer: Cleanup DShow graph True
    [2015-01-29 22:04:24,744] [Log ] [GetMediaInfoThread 2] [INFO ] - TSReaderPlayer: Cleanup Get hr value -2147467262[/collapse]

    That is probably not meant to happen, and may be the cause of the problem.
    The only other thing I could suggest is to make sure that you've installed all windows updates. Especially the ones for .NET.

    Regards,
    mm
     

    rich76

    Portal Pro
    December 3, 2006
    141
    30
    Home Country
    United Kingdom United Kingdom
    Thanks for the help mm1352000 I've just checked windows update and its showing no new updates available.
    I'm running windows 7 64bit and have .net 4.5.2 installed and also .net 3.5 enabled in windows features menu.
    Do I need .net 2.0 also? Or any 64bit versions?

    Thanks for your help :)
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    I've just checked windows update and its showing no new updates available.
    Hmmm, okay. I wonder if disabling media info grabbing would help. I'm not sure how to do that or even if it is possible, but I guess if it is possible then the settings would be in MP configuration videos -> video database.

    and have .net 4.5.2 installed and also .net 3.5 enabled in windows features menu.
    MediaPortal 1 requires .NET 4.0 and 3.5. .NET 4.5.x is required for MediaPortal 2.

    Or any 64bit versions?
    MediaPortal is 100% 32 bit software, so no. :)
     

    rich76

    Portal Pro
    December 3, 2006
    141
    30
    Home Country
    United Kingdom United Kingdom
    I thought it would only need 32bit versions.
    When I tried to install 4.0 it says "same or higher version of .net installed"

    Just looked at disabling media info and I've selected "do not use database" but the results are still the same.

    Rich
     

    rich76

    Portal Pro
    December 3, 2006
    141
    30
    Home Country
    United Kingdom United Kingdom
    After a bit more testing I have found its the iso's causing the problems. If I remove them from the folder all is fine, no crashing. If i put the iso's in a seperate folder tv does not crash until i enter that folder. It looks like its auto mounting each iso as soon as I enter the folder to create thumbnails.
    Unticking the box "create thumbs" for the video share also fixes the issue.

    Should it really be mounting every iso in a folder to create thumbs?
    I have also noticed it doesn't matter what media I'm playing it will stop play back or crash mp while entering a folder with an iso in it.

    Not sure if it needs to be reported as a bug or if someone could test on 1.10 to see if problem still persists.

    Rich
     

    Users who are viewing this thread

    Top Bottom