[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
    40
    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

    @Pablik I finally got back to this, and I got it working. What I did was this. I intended to copy the UHD-BR disc to my local hard drive, so I put the disc in the drive, and then brought up MakeMKV. In MakeMKV I went through the initial steps to copy the UHD-BR disc to my drive, and while MakeMKV was parsing the disc, I noticed a...
    @Pablik I finally got back to this, and I got it working. What I did was this. I intended to copy the UHD-BR disc to my local hard...
    I just uninstalled AnyDVDHD due to RedFox being no longer reachable, and I have taken the MakeMKV route described in this thread...
    Replies
    4
    Views
    1K
    Perhaps... Only way to confirm would be for me to invest in a different USB DVB-S2 tuner (like the Hauppauge WinTV-NOVA-S2), which I might do if the issue persists.
    Perhaps... Only way to confirm would be for me to invest in a different USB DVB-S2 tuner (like the Hauppauge WinTV-NOVA-S2), which...
    I have a dedicated TV Server x64 v1.36 running on Windows 11, with a Hauppauge WinTV-dualHD tuner for DVB-T channels (Freeview) and...
    Replies
    8
    Views
    831
    It is possible to have both MP1 and MP2 installed on the same drive (I have a test partition with just such an arrangement). However... The TV Server parts of MP1 and MP2 start when the system boots, and TV Server runs all of the time, even when it is not recording and live TV is not being viewed. If both TV Servers were active, they...
    It is possible to have both MP1 and MP2 installed on the same drive (I have a test partition with just such an arrangement)...
    Help Please. Yesterday upon switch-on, I had this issue with MP2: When I clicked on the [REC] icon in the following Image...
    Replies
    26
    Views
    3K
    It's getting weirder..... If I remove all the IP cards in the TVServer setup and then add them back I can scan the M3u and tune the stations but if I rescan it on the same card it just keeps updating the 1 channel. My brain is melting.........
    It's getting weirder..... If I remove all the IP cards in the TVServer setup and then add them back I can scan the M3u and tune the...
    Having great fun with this still. I have a fairly good PC setup, Ryzen 5 8500g, Msi Pro 650M-P with 32GB of RAM with a TBS 6281 and...
    Replies
    2
    Views
    580
    @CyberSimian this workaround worked. @TLD this hint was good because I wanted to install x64. Now I have x86 installed
    @CyberSimian this workaround worked. @TLD this hint was good because I wanted to install x64. Now I have x86 installed
    After reinstalling a WinTV quad HD card and MP1.36, the TV service no longer starts automatically. A manual start is no problem...
    Replies
    4
    Views
    689
    Top Bottom