[further infos missing] MePo chrashed after ending a radio stream ... (1 Viewer)

megahorst

Super User
  • Team MediaPortal
  • Super User
  • July 8, 2006
    879
    259
    Home Country
    Germany Germany
    After stopping a DVB-C radio stream MePo chrashed.

    Logs are added
     

    megahorst

    Super User
  • Team MediaPortal
  • Super User
  • July 8, 2006
    879
    259
    Home Country
    Germany Germany
    I had this issue again.
    DVB-C radio was playing for several hours. After stopping MePo crashed.

    I error.log I can see:

    Code:
    2013-01-27 18:02:00.354382 [ERROR][MPMain(1)]: MediaPortal stopped due to an exception Der Wert darf nicht NULL sein. mscorlib	bei System.Threading.Monitor.Enter(Object obj)
      bei MediaPortal.Player.BaseTSReaderPlayer.UpdateCurrentPosition()
      bei MediaPortal.Player.BaseTSReaderPlayer.get_CurrentPosition()
      bei MediaPortal.Player.g_Player.get_CurrentPosition()
      bei MediaPortalApp.OnProcess()
      bei MediaPortal.D3DApp.Application_Idle(Object sender, EventArgs e)
      bei System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
      bei System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
      bei System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
      bei System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
      bei System.Windows.Forms.Application.Run(Form mainForm)
      bei MediaPortalApp.Main(String[] args)
     

    Owlsroost

    Retired Team Member
  • Premium Supporter
  • October 28, 2008
    5,540
    5,038
    Cambridge
    Home Country
    United Kingdom United Kingdom
    It looks like MP is stopping play, closing down and cleaning up the graph - but then asking the graph for a duration update, which - not surprisingly - is generating an exception.....(since the graph no longer exists, as far as I can tell from the logs).

    @Sebastiii - any thoughts ?

    Tony
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Hi Tony,

    Yep from log i see like you and in UpdateCurrentPosition() it should return like graph no longer exists.

    Code:
    protected void UpdateCurrentPosition()
    	{
    	  if (_mediaSeeking == null || _graphBuilder == null || Thread.CurrentThread.Name != "MPMain")
    	  {
    		return;
    	  }

    @megahorst does it happen after few minutes play too ?
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Hi Tony,

    Yep from log i see like you and in UpdateCurrentPosition() it should return like graph no longer exists.

    Should, but the code doesn't seem to do so - it could be some threading issue where other thread closes down the graph and then UpdateCurrentPosition() manages to access the free graph.

    edit - based on the logs this is probably what happened:

    2013-01-27 18:02:00.143370 [Debug][(3)]: Remove filter from graph: TsReader 0
    2013-01-27 18:02:00.152370 [Debug][(3)]: TSReaderPlayer: Cleanup _graphBuilder

    2013-01-27 18:02:00.286378 [Info.][MPMain(1)]: Exception :confused:ystem.ArgumentNullException: Der Wert darf nicht NULL sein.

    Two different threads are poking around the same place.

    It could be the WIFI remote thread that causes the wrong thread to do the graph cleanup.
    2013-01-27 18:01:49.952787 [Debug][(3)]: [WIFI_REMOTE] Sending dialog close to clients

    All events need to be processed in the main thread (as MP is not thread safe in many places).
     

    megahorst

    Super User
  • Team MediaPortal
  • Super User
  • July 8, 2006
    879
    259
    Home Country
    Germany Germany
    Hi Tony,

    Yep from log i see like you and in UpdateCurrentPosition() it should return like graph no longer exists.

    Code:
    protected void UpdateCurrentPosition()
    	{
    	  if (_mediaSeeking == null || _graphBuilder == null || Thread.CurrentThread.Name != "MPMain")
    	  {
    		return;
    	  }

    @megahorst does it happen after few minutes play too ?

    I have seen this only three or four times after closing long radio sessions.

    I was not using WiFi remote at this time and there was no other client loged in with a WiFi remote client.
     
    Last edited:

    megahorst

    Super User
  • Team MediaPortal
  • Super User
  • July 8, 2006
    879
    259
    Home Country
    Germany Germany
    Is there anything that I can do for further clarification?
    Should I open a thread in the WiFi remote section?
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    If you werent using wifi remote then it is quite weird. Log looks like wifi remote causes the directshow graph to be cleaned from the wifi remote's thread.

    It would be good to investigate on wifi remote's side why &how such happens.
     
    Last edited:

    DieBagger

    Retired Team Member
  • Premium Supporter
  • September 11, 2007
    2,516
    1,276
    39
    Austria
    Home Country
    Austria Austria
    If you werent using wifi remote then it is quite weird. Log looks like wifi remote causes the directshow graph to be cleaned from the wifi remote's thread.

    It would be good to investigate on wifi remote's side why &how such happens.
    I'll take a look at it...
     

    Users who are viewing this thread

    Similar threads

    I've setup my HDHomeRun in MP1 as (4) IPTV cards rather than Atsc. I can see the (4) Atsc cards, but just have them disabled. I did it this way so I didn't have to edit the channel names every time tested a new TV-server install. Anyway, it works. I don't know if this would get you past the BDA driver issue. I'll provide more...
    I've setup my HDHomeRun in MP1 as (4) IPTV cards rather than Atsc. I can see the (4) Atsc cards, but just have them disabled. I...
    I am brand new to MediaPortal. I have installed MP 2.4.1 on Windows 10. It is a fresh install and fully up to date. I have an...
    Replies
    19
    Views
    826
    MP1 MP2 MP2 - V2.5 No genres after upgrade to 2.5 DE
    You need to check the wiki for TVMosaic, you have recordings as source available once TVM is installed. And of course images and music are part of the NET6 version as for NET4. If you have issues with it further infos would be good.
    You need to check the wiki for TVMosaic, you have recordings as source available once TVM is installed. And of course images and...
    Make sure that your system (Windows, codecs and drivers) is up to date, matching the Requirements and you've filled in your System...
    Replies
    10
    Views
    601
    It's working after some hours search: the Auto3D plugin which I haven't used for years was corrupting the start of the TV live stream from server to MP. If anyone has a similar problem - disable all old plugins and then enable one after another :-)
    It's working after some hours search: the Auto3D plugin which I haven't used for years was corrupting the start of the TV live...
    After using MP for more than 10 years with regularly updates - this is the first time that after an update MP is not working...
    Replies
    3
    Views
    1K
    That was it! :) I had to set it to "Maintain display scaling". I think it was set to "Maintain Aspect Ratio", which added black bars to MediaPortal when playing videos that didn't conform to a strict 16:9 ratio, I suppose. Thanks to everyone for the patience and help, I can finally enjoy videos fully.
    That was it! :) I had to set it to "Maintain display scaling". I think it was set to "Maintain Aspect Ratio", which added black...
    I'm running MePo in 1080p to my 4K TV (because my Intel NUC HTPC ain't powerful enough to run in 4K) and for some videos, I see...
    Replies
    12
    Views
    2K
    • Sticky
    MP1 MP2 [News] MediaPortal 2 - 2.5 Release DE
    Will be version 2.5.1 ready quite soon? I read somewhere it will be a bugfix release, no new features are probably not in focus.
    Will be version 2.5.1 ready quite soon? I read somewhere it will be a bugfix release, no new features are probably not in focus.
    We are proud to present MediaPortal 2.5 MediaPortal 2.5 is a full-blown media center software that addresses most common user...
    Replies
    70
    Views
    4K
    Top Bottom