[further infos missing] MePo chrashed after ending a radio stream ... (2 Viewers)

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,539
    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,523
    10,466
    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
    41
    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

    As Alexander Pope said: A little learning is a dangerous thing, and Dr Google explains this as: The quotation warns that superficial knowledge of a subject can make people arrogant or foolish, suggesting one should either learn deeply or not at all. "Superficial", and "arrogant or foolish" would be me :eek: . However... I would...
    As Alexander Pope said: A little learning is a dangerous thing, and Dr Google explains this as: The quotation warns that...
    I have just discovered that I can no longer receive any of the independent radio channels broadcast on DVB-T in the UK. In...
    Replies
    12
    Views
    4K
    To other people reading about this 'issue', Doskabouter provided me with a fix/patch. It is a modified version of tswriter.ax which solved the problem with dolby digital plus audio. I want to thank Doskabouter for all his time and energy he put into resolving this!!
    To other people reading about this 'issue', Doskabouter provided me with a fix/patch. It is a modified version of tswriter.ax which...
    Hi all, I could use some help with the following; OS: Win11 24H2 TV server: 1.37.000.0|x64 (working with Mediaportal for maybe 20...
    Replies
    4
    Views
    3K
    After many hours of troubleshooting I've given up and accepted that it's just "one of these things" when using madVR for watching live TV. I've now ticked the box to "Use EVR for LiveTV", with a default display refresh rate of 50Hz. In combination with tweaking some of the Nvidia 3D settings for the MP executable only, I now have a...
    After many hours of troubleshooting I've given up and accepted that it's just "one of these things" when using madVR for watching...
    Every so often, when I switch to a TV channel, my MP client stops accepting user inputs, either from the remote or keyboard/mouse...
    Replies
    30
    Views
    8K
    I compliment you on the thoroughness of your investigations. (y) Unfortunately, I don't have any ideas what the problem might be. :( Perhaps someone else will post with some suggestions. :unsure: -- from CyberSimian in the UK
    I compliment you on the thoroughness of your investigations. (y) Unfortunately, I don't have any ideas what the problem might be...
    Would appreciate it if someone could solve (or point me in the right direction to resolve) this issue. I have “MultiSeat”...
    Replies
    4
    Views
    1K
    I noticed there's an updated Visual C++ Runtime (14.50.35710), maybe try to reinstall the runtimes? That's what fixed the issue when I tried 1.38.1
    I noticed there's an updated Visual C++ Runtime (14.50.35710), maybe try to reinstall the runtimes? That's what fixed the issue...
    I just updated from 1.37 to 1.38. MediaPortal 1.38 exits abruptly when stopping video playback. I did three tests; Debug with...
    Replies
    38
    Views
    9K
    Top Bottom