[fixed] tvserver sometimes fills logs with stoprecording stuff - then livetv isn't possible (1 Viewer)

disaster123

MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    Hi!

    With actual SVN i've the problem that when two simultanious recordings on the same channel are running. Stop recordings fails and then livetv isn't possible anymore.

    Code:
    2010-03-03 21:19:33.480200 [(12)]: PowerScheduler: User input detected at 03.03.2010 21:19:33
    2010-03-03 21:19:58.502600 [(12)]: PowerScheduler: User input detected at 03.03.2010 21:19:58
    2010-03-03 21:20:08.861000 [Scheduler timer(13)]: Scheduler: stop record ProSieben 03.03.2010 20:10:06-03.03.2010 21:15:00 Desperate Housewives
    2010-03-03 21:20:08.861000 [(12)]: card: StopRecording card=24, user=scheduler207
    2010-03-03 21:20:08.861000 [(12)]: card: StopRecording for card:24
    2010-03-03 21:20:08.861000 [(12)]: tvdvbchannel.OnStopRecording subch=0, subch index=0
    2010-03-03 21:20:08.861000 [(12)]: tvdvbchannel.OnStopRecording subch:0-0 tswriter StopRecording...
    2010-03-03 21:20:08.861000 [(12)]: tvdvbchannel.OnStopRecording - not recording
    2010-03-03 21:20:08.861000 [(12)]: mdplug: FreeChannel ProSieben
    2010-03-03 21:20:08.861000 [(12)]: mdplug: usage counter for channel 'ProSieben' is still 1
    2010-03-03 21:20:08.861000 [(12)]: tvcard:FreeSubChannel: subchannels count 2 subch#0 keep graph=False
    2010-03-03 21:20:08.861000 [(12)]: DVB subch:0 Decompose()
    2010-03-03 21:20:08.876600 [(12)]: FreeSubChannel CA: freeing sub channel : 0
    2010-03-03 21:20:08.876600 [(12)]: user:scheduler207 remove
    2010-03-03 21:20:08.876600 [(12)]: card: StopRecording setting new context owner on user 'scheduler208'
    2010-03-03 21:20:08.876600 [Channel state thread(11)]: Controller: DoSetChannelStates for 136 channels
    2010-03-03 21:20:08.892200 [Scheduler timer(13)]: Scheduler: stop record ProSieben 03.03.2010 20:10:06-03.03.2010 21:15:00 Desperate Housewives
    2010-03-03 21:20:08.907800 [(12)]: card: StopRecording card=24, user=scheduler207
    2010-03-03 21:20:08.907800 [(12)]: card: StopRecording for card:24
    2010-03-03 21:20:08.907800 [(12)]: card: StopRecording user 'scheduler207' not recording, skipping
    2010-03-03 21:20:08.907800 [(12)]: card: StopRecording setting new context owner on user 'scheduler208'
    2010-03-03 21:20:08.923400 [Scheduler timer(13)]: Scheduler: stop record ProSieben 03.03.2010 20:10:06-03.03.2010 21:15:00 Desperate Housewives
    2010-03-03 21:20:08.923400 [(21)]: card: StopRecording card=24, user=scheduler207
    2010-03-03 21:20:08.923400 [(21)]: card: StopRecording for card:24
    2010-03-03 21:20:08.923400 [(21)]: card: StopRecording user 'scheduler207' not recording, skipping
    2010-03-03 21:20:08.923400 [(21)]: card: StopRecording setting new context owner on user 'scheduler208'
    2010-03-03 21:20:08.939000 [Scheduler timer(13)]: Scheduler: stop record ProSieben 03.03.2010 20:10:06-03.03.2010 21:15:00 Desperate Housewives
    2010-03-03 21:20:08.954600 [(21)]: card: StopRecording card=24, user=scheduler207
    2010-03-03 21:20:08.954600 [(21)]: card: StopRecording for card:24
    2010-03-03 21:20:08.954600 [(21)]: card: StopRecording user 'scheduler207' not recording, skipping
    2010-03-03 21:20:08.954600 [(21)]: card: StopRecording setting new context owner on user 'scheduler208'
    2010-03-03 21:20:08.970200 [Scheduler timer(13)]: Scheduler: stop record ProSieben 03.03.2010 20:10:06-03.03.2010 21:15:00 Desperate Housewives
    2010-03-03 21:20:08.970200 [(21)]: card: StopRecording card=24, user=scheduler207
    2010-03-03 21:20:08.970200 [(21)]: card: StopRecording for card:24
    2010-03-03 21:20:08.970200 [(21)]: card: StopRecording user 'scheduler207' not recording, skipping
    2010-03-03 21:20:08.985800 [(21)]: card: StopRecording setting new context owner on user 'scheduler208'
    2010-03-03 21:20:08.985800 [Scheduler timer(13)]: Scheduler: stop record ProSieben 03.03.2010 20:10:06-03.03.2010 21:15:00 Desperate Housewives
    2010-03-03 21:20:09.001400 [(21)]: card: StopRecording card=24, user=scheduler207
    2010-03-03 21:20:09.001400 [(21)]: card: StopRecording for card:24
    2010-03-03 21:20:09.001400 [(21)]: card: StopRecording user 'scheduler207' not recording, skipping

    Stefan
     

    gibman

    Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    Re: tvserver sometimes fills logs with stoprecording stuff - then livetv isn't possib

    in scheduler.cs

    does it enter this If block ?
    Meaning does "_controller.StopRecording(ref _user)" return true ?

    if (_controller.StopRecording(ref _user))
    {
    recording.Recording.Refresh();
    recording.Recording.EndTime = DateTime.Now;
    recording.Recording.IsRecording = false;
    recording.Recording.Persist();
    ...

    if yes, is the schedule deleted or canceledschedule added, depending on schedule type?

    btw. what schedule types are we talking about ?


    /gibman
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    AW: tvserver sometimes fills logs with stoprecording stuff - then livetv isn't possib

    Hi gibman,

    how do i check whether it is entering this block. At least the scheduling isn't running anymore in setuptv - so it is canceled.

    Is the scheduletype relevant in that case? Uhoh it's this one => https://forum.team-mediaportal.com/...ding-option-weekly-everytime-channel-x-76007/

    But same recordings were working with RC1. Has there anything changed i missed?

    Thanks for looking into that.

    Stefan
     

    gibman

    Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    Re: tvserver sometimes fills logs with stoprecording stuff - then livetv isn't possib

    could u try with a non modified build ? Try with one of the original schedule types first.

    Also u could try and set a breakpoint on the line specified above, if u have VS installed.
    Or add some more logging.

    /gibman
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    AW: tvserver sometimes fills logs with stoprecording stuff - then livetv isn't possib

    Will try todo that but simulating this isn't easy - everytime create manually two overlapping recordings waiting until one ends and so on. I've VS2008 but the TV-Server hasn't it running and i don't have a tvcard in my DEV System.
     

    gibman

    Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    Re: tvserver sometimes fills logs with stoprecording stuff - then livetv isn't possib

    if u have SQL management tools installed u can always add schedules the easy way :

    INSERT INTO [TvLibrary].[dbo].[Schedule]
    (idChannel, scheduleType, programName, startTime, endTime, maxAirings, priority, directory, quality, keepMethod, keepDate, preRecordInterval,
    postRecordInterval, canceled, recommendedCard, series, idParentSchedule)

    VALUES (your_channel_id, 0, 'show1',
    CONVERT(datetime, '03/05/10 18:00:00') ,
    CONVERT(datetime, '03/05/10 18:45:00') , 5, 0, '', 0, 0,
    CONVERT(datetime, '01/01/00 00:00:00') , 2, 2,
    CONVERT(datetime, '01/01/00 00:00:00') , - 1, 0, null)

    this show start 18.00 and ends 18.45, it records the show regardless of EPG title.

    Make a couple of these, and make sure they overlap each other.

    /gibman
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    AW: tvserver sometimes fills logs with stoprecording stuff - then livetv isn't possib

    using MySQL - but no problem will use this way. But idParentSchedule cannot be null must be -1.

    mhm i'm not able to reproduce this manually - tried everything also with my own release. But i had this problem the last 2 weeks about 5 times.
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    AW: tvserver sometimes fills logs with stoprecording stuff - then livetv isn't possib

    I've tried everything but since upgrading to 25174 i'm not able to reproduce this. Could it be that it was a problem related to your commit 25174? as mostly i was watching TV parallel to two running recordings.
     

    gibman

    Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    Re: tvserver sometimes fills logs with stoprecording stuff - then livetv isn't possib

    It could very well be that.

    /gibman
     

    arion_p

    Retired Team Member
  • Premium Supporter
  • February 7, 2007
    3,373
    1,626
    Athens
    Home Country
    Greece Greece
    Re: tvserver sometimes fills logs with stoprecording stuff - then livetv isn't possib

    Can we mark this as fixed?
     

    Users who are viewing this thread

    Top Bottom