MP2 - V2.1 MP2 suddenly stops working while playing audio / Crash inside FreeType (1 Viewer)

Status
Not open for further replies.

Alan Honeyman

Portal Pro
July 6, 2012
152
5
77
Home Country
Australia Australia
Several times this morning, after playing audio for some time, MP2 fails. Perhaps this is related to TrakT as per this log message:

[2018-02-16 08:25:18,373] [41637 ] [AMQ 'TraktHandler'] [INFO ] - Trakt.tv: Successfully logged in
[2018-02-16 08:25:18,375] [41639 ] [AMQ 'TraktHandler'] [ERROR] - Unhandled exception in message handler of async message queue 'TraktHandler' when handling a message of type 'PlayerStarted'
System.NullReferenceException: Object reference not set to an instance of an object.
at MediaPortal.UiComponents.Trakt.Service.TraktHandler.IsSeries(MediaItem item)
at MediaPortal.UiComponents.Trakt.Service.TraktHandler.StartScrobble()
at MediaPortal.UiComponents.Trakt.Service.TraktHandler.OnMessageReceived(AsynchronousMessageQueue queue, SystemMessage message)
at MediaPortal.Common.Messaging.AsynchronousMessageQueue.DoWork()
[2018-02-16 08:38:04,682] [807946 ] [InputMgr ] [INFO ] - Releasing filter System.__ComObject, remaining references: 1
[2018-02-16 08:38:05,382] [808646 ] [AMQ 'TraktHandler'] [ERROR] - Unhandled exception in message handler of async message queue 'TraktHandler' when handling a message of type 'PlayerStopped'
System.NullReferenceException: Object reference not set to an instance of an object.
at MediaPortal.UiComponents.Trakt.Service.TraktHandler.IsSeries(MediaItem item)
at MediaPortal.UiComponents.Trakt.Service.TraktHandler.StopScrobble()
at MediaPortal.UiComponents.Trakt.Service.TraktHandler.OnMessageReceived(AsynchronousMessageQueue queue, SystemMessage message)
at MediaPortal.Common.Messaging.AsynchronousMessageQueue.DoWork()
 

aspik

Retired Team Member
  • Team MediaPortal
  • April 14, 2008
    1,322
    586
    Hi,
    what do you mean by "MP2 fails" ? Does the audio playback stops unexpectedly? Or does it not even start? Can you still reproduce this error? If so, could you please attach log files?

    Regarding the trakt error, this should be fixed in a upcoming version of this plugin. Nevertheless it shouldn't have any impact on the audio playback.
     

    Alan Honeyman

    Portal Pro
    July 6, 2012
    152
    5
    77
    Home Country
    Australia Australia
    It seems to happen at the end of playing and has happened with both audio and video. Attached is an audio example. I was playing a number of tracks over maybe an hour or so when at or near the end of a track, I get a popup saying Mediaportal has stopped working. Log attached.
     

    Attachments

    • MediaPortal2-Logs-2018-03-04-10.01.21.zip
      701.2 KB

    aspik

    Retired Team Member
  • Team MediaPortal
  • April 14, 2008
    1,322
    586
    Looks like a skin engine + PIP problem. The client log ends unexpectedly at:
    [2018-03-04 09:50:23,183] [130801832] [AMQ 'TraktHandler'] [INFO ] - Trakt.tv: Scrobble Response:

    and just before this, the windows event log contains:
    Code:
    "Error";"4/03/2018 9:50:22 AM";".NET Runtime";"Application: MP2-Client.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.AccessViolationException
       at Tao.FreeType.FT.FT_Load_Glyph(IntPtr, UInt32, Int32)
       at MediaPortal.UI.SkinEngine.ContentManagement.AssetCore.FontAssetCore.AddGlyphInternal(UInt32)
       at MediaPortal.UI.SkinEngine.ContentManagement.AssetCore.FontAssetCore.AddGlyph(UInt32)
       at MediaPortal.UI.SkinEngine.ContentManagement.AssetCore.FontAssetCore.Character(Char)
       at MediaPortal.UI.SkinEngine.ContentManagement.AssetCore.FontAssetCore.PartialTextWidth(System.String, Int32, Int32, Single, Boolean)
       at MediaPortal.UI.SkinEngine.ContentManagement.AssetCore.FontAssetCore.TextWidth(System.String, Single, Boolean)
       at MediaPortal.UI.SkinEngine.Rendering.TextBuffer.TextWidth(System.String)
       at MediaPortal.UI.SkinEngine.Controls.Visuals.Label.CalculateInnerDesiredSize(SharpDX.Size2F)
       at MediaPortal.UI.SkinEngine.Controls.Visuals.FrameworkElement.Measure(SharpDX.Size2F ByRef)
       at MediaPortal.UI.SkinEngine.Controls.Panels.DockPanel.CalculateDesiredSize(System.Collections.Generic.IEnumerator`1<MediaPortal.UI.SkinEngine.Controls.Visuals.FrameworkElement>, SharpDX.Size2F)
       at MediaPortal.UI.SkinEngine.Controls.Panels.DockPanel.CalculateInnerDesiredSize(SharpDX.Size2F)
       at MediaPortal.UI.SkinEngine.Controls.Visuals.FrameworkElement.Measure(SharpDX.Size2F ByRef)
       at MediaPortal.UI.SkinEngine.Controls.Visuals.FrameworkElement.UpdateLayoutRoot(SharpDX.Size2F)
       at MediaPortal.UI.SkinEngine.ScreenManagement.Screen.Prepare()
       at MediaPortal.UI.SkinEngine.ScreenManagement.ScreenManager.DoExchangeSuperLayer_NoLock(MediaPortal.UI.SkinEngine.ScreenManagement.Screen)
       at MediaPortal.UI.SkinEngine.ScreenManagement.ScreenManager.DoSetSuperLayer_NoLock(MediaPortal.UI.SkinEngine.ScreenManagement.Screen)
       at MediaPortal.UI.SkinEngine.ScreenManagement.ScreenManager.OnMessageReceived(MediaPortal.Common.Messaging.AsynchronousMessageQueue, MediaPortal.Common.Messaging.SystemMessage)
       at MediaPortal.Common.Messaging.AsynchronousMessageQueue.DoWork()
       at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
       at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
       at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
       at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
       at System.Threading.ThreadHelper.ThreadStart()
    
    ";"1026"
    "Error";"4/03/2018 9:50:24 AM";"Application Error";"Faulting application name: MP2-Client.exe, version: 2.1.1712.10518, time stamp: 0x5a3969a1
    Faulting module name: freetype6.dll, version: 0.0.0.0, time stamp: 0x55874bdd
    Exception code: 0xc0000005
    Fault offset: 0x00055a80
    Faulting process id: 0x2c70
    Faulting application start time: 0x01d3b21177173cc1
    Faulting application path: C:\Program Files (x86)\Team MediaPortal\MP2-Client\MP2-Client.exe
    Faulting module path: C:\Program Files (x86)\Team MediaPortal\MP2-Client\Plugins\SkinEngine\freetype6.dll

    can you reproduce it reliably? Does it happen only while playing a video in background? After given timespan?
     

    Alan Honeyman

    Portal Pro
    July 6, 2012
    152
    5
    77
    Home Country
    Australia Australia
    So far it seems quite random. I've been playing tracks since my last message without a problem.
     

    aspik

    Retired Team Member
  • Team MediaPortal
  • April 14, 2008
    1,322
    586
    @morpheus_xx
    the event log says that freetype6 is responsible for this crash. We are using currently 2.6.3. The latest version is 2.9. Can we just update to this version or are they any other dependencies/components we would have to update/adjust too?
     

    Lehmden

    Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,554
    3,936
    Lehmden
    Home Country
    Germany Germany
    Hi.
    I think I can confirm this issue. On a random basis I also have crashes after playing multiple videos. In general they happen when the playback of a video stops after already played some more videos before. Sometimes client crashes (Mediaportal has stopped working) sometimes I don't get any items displayed on the screen, sometimes the client don't react to anything and needs to be "killed" in task manager. As this seems to be random and only after using the client for a longer time, it most likely is hard to find, I fear...
     

    Lehmden

    Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,554
    3,936
    Lehmden
    Home Country
    Germany Germany
    Don't remember but I will have a look next time this happens..
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    @morpheus_xx
    the event log says that freetype6 is responsible for this crash. We are using currently 2.6.3. The latest version is 2.9. Can we just update to this version or are they any other dependencies/components we would have to update/adjust too?
    It's worth a try to update. The last time it fixed some crash issues already, but obviously not all.
     
    Status
    Not open for further replies.

    Users who are viewing this thread

    Top Bottom