.Net error in MP 1.9.0 (1 Viewer)

thekiwi

MP Donator
  • Premium Supporter
  • January 26, 2007
    287
    16
    Gisborne
    Home Country
    New Zealand New Zealand
    Hi everyone

    Since upgrading to 1.9 my very stable 1.8 install has degraded with very frequent .Net errors which crash mediaportal and also impact the desktop in Windows 7 Ult. Ive been trying to catch it in Debug mode, but no luck yet.

    It happens at the most random of ties:
    * In the middle of playing a recording
    * In the middle of a movie via Moving Pictures
    * Sometimes just with the system being turned on and sitting at the front screen.

    The .net runtime error that displays refers to something about a clash in sockets, but the details in the Event Logs dont really show the same. Logs in Mediaportal itself dont show anything.

    Here are the 3 entries from the Windows Event log:
    Code:
    Application: MediaPortal.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.NullReferenceException
    Stack:
       at Microsoft.DirectX.Direct3D.Font.OnLostDevice()
       at Microsoft.DirectX.Direct3D.Font.OnParentLost(System.Object, System.EventArgs)
       at System.EventHandler.Invoke(System.Object, System.EventArgs)
       at Microsoft.DirectX.Direct3D.Device.raise_DeviceLost(System.Object, System.EventArgs)
       at Microsoft.DirectX.Direct3D.Device.Dispose()
       at MediaPortal.D3D.CleanupEnvironment()
       at MediaPortal.D3D.Dispose(Boolean)
       at System.ComponentModel.Component.Finalize()
    Code:
    Faulting application name: MediaPortal.exe, version: 1.9.0.0, time stamp: 0x54168047
    Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
    Exception code: 0xc0000005
    Fault offset: 0x04296cb0
    Faulting process id: 0xbcc
    Faulting application start time: 0x01cffe9937b8651e
    Faulting application path: C:\Program Files (x86)\Team MediaPortal\MediaPortal\MediaPortal.exe
    Faulting module path: unknown
    Report Id: e7dc94b7-6a98-11e4-94fe-c82a1458c82d
    Code:
    Fault bucket , type 0
    Event Name: CLR20r3
    Response: Not available
    Cab Id: 0
    
    Problem signature:
    P1: mediaportal.exe
    P2: 1.9.0.0
    P3: 54168047
    P4: Microsoft.DirectX.Direct3DX
    P5: 9.12.589.0
    P6: 442d82b0
    P7: a40
    P8: c
    P9: System.NullReferenceException
    P10:
    
    Attached files:
    
    These files may be available here:
    C:\Users\Media\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_mediaportal.exe_5049189596ef9d5e423d79521315baa748940a4_109e3b8a
    
    Analysis symbol:
    Rechecking for solution: 0
    Report Id: e7dc94b7-6a98-11e4-94fe-c82a1458c82d
    Report Status: 0

    I have the task bar to hide and after this crash that is unresponsive. Floating the mouse tothe bottom margin doesnt cause it to show. Hitting Windows Key shows it, but nothing on it can be clicked.

    I'll try and get a debug report, but have been trying for a while now.
     

    HomeY

    Test Group
  • Team MediaPortal
  • February 23, 2008
    6,475
    4,645
    49
    ::1
    Home Country
    Netherlands Netherlands
    You can set logging to Debug by default in MP config.
    Then when you get a crash again, use the WatchDog option #3 to collect the logs and post them here.
     

    thekiwi

    MP Donator
  • Premium Supporter
  • January 26, 2007
    287
    16
    Gisborne
    Home Country
    New Zealand New Zealand
    Thanks will give it a go.

    One thing I did notice that whilst the error log file was empty, and nothing showed in the Mediaportal log there was a log called "MediaBrowser.log" with entries right up to the crash time.

    I dont use MediaBrowser, but had installed it a while back to see what it did etc. Ive uninstalled it so will see if it was that causing the conflct.

    Ive attached its log files in case to the more trained eye it suggests it was the culprit.
     

    HomeY

    Test Group
  • Team MediaPortal
  • February 23, 2008
    6,475
    4,645
    49
    ::1
    Home Country
    Netherlands Netherlands
    [11-13 07:42:49,907] [Config Main ] [ERROR] System.Threading.Tasks.TaskCanceledException: A task was canceled.
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at Pondman.MediaPortal.MediaBrowser.MediaBrowserService.<Discover>d__0.MoveNext()
    Threading can lead to freezes.

    I'd suggest to check your Windows Event logs to see why MP crashed.
    Those logs should also be collected when you use option #3 from the WatchDog.

    And you might want to check out this thread:
    https://forum.team-mediaportal.com/threads/mp1-4578-crashes-after-standby.127806/

    I know it's long, but i know D3D errors are discussed there in the last couple of pages.
    There are also binaries available with D3D codechanges, so worth a read.

    Let us know how it goes after disabling the MediaBrowser service.
     

    pünktchen

    Portal Pro
    October 26, 2010
    537
    201
    Home Country
    Germany Germany
    Just to mention: I also have .Net errors with MP 1.9.
    Mainly it happens if i play a video for some time, stop it and start the next one.
    No problems with resume after standby! Nothing is shown in the MP debug logs, only .Net errors in the Windows event logs!
     

    pünktchen

    Portal Pro
    October 26, 2010
    537
    201
    Home Country
    Germany Germany
    Okay, I've made some tests and can always reproduce .NET errors on two different systems here:
    They have different driver versions, different LAV versions, different Microsoft patches. One system with MP 1.9, the other with MP 1.10pre!

    Steps to reproduce:
    1. start a video (play for some seconds)
    2. stop
    3. start a video (play for some seconds)
    4. stop
    5. start a video -> CRASH with .NET error

    With "watchdog option 1" it crashes sometimes after the fourth or fifth video but in general it is always the same.
    Not specific to MyVideos, MovingPictures or MPTVSeries...

    Attached only the logs of one system, because the other is identical in terms of "errors"
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Windows application event log says:
    "16.11.2014 02:33:25";".NET Runtime";"(0)";"Error";"Anwendung: MediaPortal.exe
    Frameworkversion: v4.0.30319
    Beschreibung: Der Prozess wurde aufgrund eines Ausnahmefehlers beendet.
    Ausnahmeinformationen: System.AccessViolationException
    Stapel:
    bei MediaPortal.Player.TSReaderPlayer.GetInterfaces(System.String)

    That's somewhere here:
    https://github.com/MediaPortal/Medi...ediaportal/Core/Player/TSReaderPlayer.cs#L287

    Seems very odd to me, especially since that code hasn't changed since at least 2012.

    Did you have this problem before MP 1.9?
    Have you changed anything other than MP (drivers etc.)?
     

    pünktchen

    Portal Pro
    October 26, 2010
    537
    201
    Home Country
    Germany Germany
    Windows application event log says:
    "16.11.2014 02:33:25";".NET Runtime";"(0)";"Error";"Anwendung: MediaPortal.exe
    Frameworkversion: v4.0.30319
    Beschreibung: Der Prozess wurde aufgrund eines Ausnahmefehlers beendet.
    Ausnahmeinformationen: System.AccessViolationException
    Stapel:
    bei MediaPortal.Player.TSReaderPlayer.GetInterfaces(System.String)

    That's somewhere here:
    https://github.com/MediaPortal/Medi...ediaportal/Core/Player/TSReaderPlayer.cs#L287

    Seems very odd to me, especially since that code hasn't changed since at least 2012.

    Did you have this problem before MP 1.9?
    Have you changed anything other than MP (drivers etc.)?
    No problems before because i was on MP 1.4 ;)

    The event log you've mentioned was because i played a recording...
    If you look at the other event logs you will see always this when i play videos thrue TVSeries or MovingPictures:
    Code:
    Anwendung: MediaPortal.exe
    Frameworkversion: v4.0.30319
    Beschreibung: Der Prozess wurde aufgrund eines Ausnahmefehlers beendet.
    Ausnahmeinformationen: System.AccessViolationException
    Stapel:
       bei MediaPortal.Player.VideoPlayerVMR9.GetInterfaces()
       bei MediaPortal.Player.VideoPlayerVMR7.Play(System.String)
       bei MediaPortal.Player.g_Player.Play(System.String, MediaType, System.IO.TextReader, Boolean, Int32, Boolean, Boolean)
       bei WindowPlugins.GUITVSeries.VideoHandler.Play(Int32)
       bei WindowPlugins.GUITVSeries.VideoHandler.ResumeOrPlay(WindowPlugins.GUITVSeries.DBEpisode)
       bei WindowPlugins.GUITVSeries.TVSeriesPlugin.CommonPlayEpisodeAction()
       bei WindowPlugins.GUITVSeries.TVSeriesPlugin.OnClicked(Int32, MediaPortal.GUI.Library.GUIControl, ActionType)
       bei MediaPortal.GUI.Library.GUIWindow.OnMessage(MediaPortal.GUI.Library.GUIMessage)
       bei WindowPlugins.GUITVSeries.TVSeriesPlugin.OnMessage(MediaPortal.GUI.Library.GUIMessage)
       bei MediaPortal.GUI.Library.GUIWindowManager.SendMessage(MediaPortal.GUI.Library.GUIMessage)
       bei MediaPortal.GUI.Library.GUIWindowManager.DispatchThreadMessages()
       bei MediaPortalApp.FrameMove()
       bei MediaPortal.D3D.OnIdle(System.Object, System.EventArgs)
       bei System.Windows.Forms.Application+ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32)
       bei System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)
       bei System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
       bei System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
       bei System.Windows.Forms.Application.Run(System.Windows.Forms.Form)
       bei MediaPortalApp.Main(System.String[])
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand

    Users who are viewing this thread

    Top Bottom