TSWriter deadlock potential fix. | Page 16

Discussion in 'Area 51 - Testing Area' started by DJBlu, December 21, 2012.

  1. doskabouter
    • Premium Supporter

    doskabouter Community Plugin Dev

    Joined:
    September 27, 2009
    Messages:
    2,836
    Likes Received:
    799
    Location:
    Nuenen
    Ratings:
    +1,168 / 1
    Home Country:
    Netherlands Netherlands
    Show System Specs
    Could it be that this patch is causing the epg grabber to stop working somehow?

    Since a day after the install (installed on 19-6, last successful dvb epg action was on the 20th) I don't get any epg data downloaded.
    Didn't notice until today as epg is always a couple of days ahead.



    tv.log extract (only lines with epg in it) attached.

    Manually starting the dvb epg grabber doesn't do anything.
    Clicked Refresh DVB EPG right after I stopped live tv, and let it be for 4 minutes. After that, started live tv again.
    Log (at debug level) of that time:
    Code (Text):
    1.  
    2. [2013-06-24 22:40:02,395] [Log  ] [TS_File_Cleanup] [INFO ] - card:  trying to delete D:\recorded tv\TimeShift\live3-0.ts.tsbuffer2.ts
    3. [2013-06-24 22:40:02,411] [Log  ] [TS_File_Cleanup] [INFO ] - card:  deleted file D:\recorded tv\TimeShift\live3-0.ts.tsbuffer2.ts
    4. [2013-06-24 22:40:06,748] [Log  ] [20     ] [INFO ] - Controller: epg stop
    5. [2013-06-24 22:40:06,748] [EPG  ] [20     ] [INFO ] - EPG: grabber stopped..
    6. [2013-06-24 22:40:06,763] [Log  ] [20     ] [INFO ] - Controller: epg start
    7. [2013-06-24 22:40:06,795] [EPG  ] [20     ] [INFO ] - EPG: grabber initialized for 9 transponders..
    8. [2013-06-24 22:44:10,549] [Log  ] [16     ] [INFO ] - Controller: find free card for channel BBC 2
    9.  
    Edit: this was all done with the tswriter of 16-6.
    Will give the latest (of 20-6) a try as soon as I gain control of the remote :)

    Edit2: Wanted to stop the tvservice to update tvlib and tswriter, but service wouldn't stop.
    After killing process, updating both dll's, and checking the tv server configuration, it was downloading epg as normal. Will keep a close eye on it.

    One other thing:
    I have a dual dvb-c card, and some other ones too. I notice that when I'm watching TV, no epg is downloaded at all, no matter if i use one of the dvb-c's or just a plain analog one to watch the TV.
    As there is always one or two dvb-c cards available, it could use it to download epg data right?
     
    Last edited: June 24, 2013
    • Like Like x 2
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. mm1352000
    • Team MediaPortal

    mm1352000 Development Group

    Joined:
    September 1, 2008
    Messages:
    21,527
    Likes Received:
    4,738
    Ratings:
    +8,205 / 17
    Home Country:
    New Zealand New Zealand
    Thanks for the feedback doskabouter! (y)

    More likely the deadlock is still occuring. This conclusion is supported by your comment here:

    AIUI the EPG grabber logic is to only grab EPG when all tuners are idle. With some work it would be possible to make the change that you are suggesting, but that is not my focus right now...
     
    • Like Like x 2
  4. gibman
    • Premium Supporter

    gibman Retired Team Member

    Joined:
    October 4, 2006
    Messages:
    2,998
    Likes Received:
    1,321
    Occupation:
    Developer
    Location:
    Aarhus
    Ratings:
    +1,372 / 0
    Home Country:
    Denmark Denmark
    I've had this feature on my mental to do list as well.
    added to Jira for tve3.5

    https://issues.team-mediaportal.com/browse/TVLIB-31

    /gibman
     
    • Like Like x 3
  5. FreakyJ
    • Team MediaPortal

    FreakyJ Development Group

    Joined:
    July 25, 2010
    Messages:
    4,021
    Likes Received:
    839
    Gender:
    Male
    Ratings:
    +1,424 / 1
    Home Country:
    Germany Germany
    I did this some time ago for a private build, it worked, but it wasn't thaaat great with our current epg grabber... don't know the exact issues any more, but there was no real improvement without improving the whole EPG grabber...
     
    • Like Like x 1
  6. Owlsroost
    • Team MediaPortal

    Owlsroost Development Group

    Joined:
    October 28, 2008
    Messages:
    5,537
    Likes Received:
    2,829
    Location:
    Cambridge
    Ratings:
    +4,131 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Just to bump this topic....

    Do we think that the problem is (now, with the latest TsWriter locking mods) related to the EPG processing code blocking/hanging due to data parsing issues in some circumstances (and hence blocking the interface from TsWriter, so the whole graph hangs) ?
     
  7. Django.edwards

    Django.edwards Portal Pro

    Joined:
    October 22, 2009
    Messages:
    457
    Likes Received:
    47
    Gender:
    Male
    Location:
    Eupen
    Ratings:
    +55 / 0
    Home Country:
    Belgium Belgium
    Show System Specs
    Yeah, it would be quite good to solve this Problem. It seems that several users have the Problem with blocking EPG in the last time. :confused:
    I saw several threads in the german Forum. If there is a Problem with the EPG-Data transmitted over air, how to see if it came from the transmitted data or not.
    Would like to provide help if possible.
     
    Last edited: July 10, 2013
  8. Vasilich
    • Team MediaPortal

    Vasilich Test Group

    Joined:
    August 30, 2009
    Messages:
    3,392
    Likes Received:
    608
    Gender:
    Male
    Occupation:
    Developer
    Location:
    Germany, Mayence
    Ratings:
    +1,173 / 2
    Home Country:
    Russian Federation Russian Federation
    Show System Specs
    i am also getting problems (complete HTPC freeze several times a day) last several days (~ a week), and it worked almost without problems (freeze once per 2 weeks) last 2 months. Nothing was changed in HTPC (still using 1.2.3). Note that i also live in Germany, so it somehow can be connected to EPG data decoding. This problem doesn't occur if i uncheck idle EPG grabber.
     
  9. doskabouter
    • Premium Supporter

    doskabouter Community Plugin Dev

    Joined:
    September 27, 2009
    Messages:
    2,836
    Likes Received:
    799
    Location:
    Nuenen
    Ratings:
    +1,168 / 1
    Home Country:
    Netherlands Netherlands
    Show System Specs
    Haven't had a hickup/missing epg since the patch from 20-6
     
  10. Owlsroost
    • Team MediaPortal

    Owlsroost Development Group

    Joined:
    October 28, 2008
    Messages:
    5,537
    Likes Received:
    2,829
    Location:
    Cambridge
    Ratings:
    +4,131 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Hi @mm1352000 - is there a patch (or branch) available for this (v3) version ?

    Does TsWriter.ax have significant changes, apart from the extra logging, compared to the previous v2 version ?

    Thanks,

    Tony
     
    Last edited: July 11, 2013
  11. doskabouter
    • Premium Supporter

    doskabouter Community Plugin Dev

    Joined:
    September 27, 2009
    Messages:
    2,836
    Likes Received:
    799
    Location:
    Nuenen
    Ratings:
    +1,168 / 1
    Home Country:
    Netherlands Netherlands
    Show System Specs
    Somehow, epg downloading has stopped again (and an unresponsive tvservice when trying to stop it)

    Fortunately, I do have logs now, perhaps someone can improve current code based on this

    Edit: Hm, after a reboot and 2 hours of epg grabbing, still no (or just a few) entries visible, so perhaps there is some issue at my provider. To be continued...

    Edit2: after a removal of all channels and doing a new channelscan, everything is working as it should be.
     

    Attached Files:

    • epg error.zip
      File size:
      2.7 MB
      Uploaded:
      July 26, 2013
      Views:
      66
    Last edited: July 26, 2013
    • Like Like x 1
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!