Locked time-shift files cause failure to change channel (1 Viewer)

Charlie TV

MP Donator
  • Premium Supporter
  • February 22, 2014
    81
    27
    United Kingdom United Kingdom
    Country flag
    Last edited by a moderator:

    mm1352000

    Development Group
  • Team MediaPortal
  • September 1, 2008
    21,571
    8,218
    New Zealand New Zealand
    Country flag
    Just now I got an error message about out of space when changing channel on the client.
    I can see that your time-shift drive (E: ) has 6.2 GB total space, and that only 1.5 GB was free at the time the logs were collected. MASTER had been time-shifting since even before BIGBOY's test started, and so presumably was using a full sized buffer:
    [2016-01-12 17:39:54,070] [Log ] [3 ] [INFO ] - Controller: StartTimeShifting started on card:9 to E:\\live9-1.ts.tsbuffer

    Further, I can see that time-shfit files were cleared after your failed channel change:
    [collapse]
    [2016-01-13 18:28:08,846] [Log ] [33 ] [INFO ] - Controller: find free card for channel BBC ONE South
    ...
    [2016-01-13 18:28:24,227] [Log ] [33 ] [INFO ] - Controller: Timeshifting failed, no more cards available.
    ...
    [2016-01-13 18:28:24,383] [Log ] [TS_File_Cleanup] [INFO ] - card: delete timeshift files E:\\live9-3.ts
    [2016-01-13 18:28:24,383] [Log ] [TS_File_Cleanup] [INFO ] - card: trying to delete E:\live9-3.ts.tsbuffer
    [2016-01-13 18:28:24,383] [Log ] [44 ] [DEBUG] - Controller: DoSetChannelStates for 66 channels
    [2016-01-13 18:28:24,383] [Log ] [44 ] [INFO ] - ChannelStates.GetAllTimeshiftingAndRecordingChannels took 1 msec
    [2016-01-13 18:28:24,524] [Log ] [44 ] [INFO ] - ChannelStates.DoSetChannelStates took 153 msec
    [2016-01-13 18:28:29,391] [Log ] [TS_File_Cleanup] [INFO ] - card: delete timeshift files E:\\live9-3.ts
    [2016-01-13 18:28:29,391] [Log ] [TS_File_Cleanup] [INFO ] - card: trying to delete E:\live9-3.ts.tsbuffer
    [2016-01-13 18:28:29,391] [Log ] [TS_File_Cleanup] [INFO ] - card: deleted file E:\live9-3.ts.tsbuffer
    [2016-01-13 18:28:29,391] [Log ] [TS_File_Cleanup] [INFO ] - card: trying to delete E:\live9-3.ts.tsbuffer1.ts
    [2016-01-13 18:28:29,438] [Log ] [TS_File_Cleanup] [INFO ] - card: deleted file E:\live9-3.ts.tsbuffer1.ts
    [2016-01-13 18:28:29,438] [Log ] [TS_File_Cleanup] [INFO ] - card: trying to delete E:\live9-3.ts.tsbuffer2.ts
    [2016-01-13 18:28:29,453] [Log ] [TS_File_Cleanup] [INFO ] - card: deleted file E:\live9-3.ts.tsbuffer2.ts
    [2016-01-13 18:28:29,453] [Log ] [TS_File_Cleanup] [INFO ] - card: trying to delete E:\live9-3.ts.tsbuffer3.ts
    [2016-01-13 18:28:29,500] [Log ] [TS_File_Cleanup] [INFO ] - card: deleted file E:\live9-3.ts.tsbuffer3.ts[/collapse]

    That's presumably what enabled the subsequent channel changes to succeed.

    In short: the circumstances seem to make sense.

    Keep in mind that the time-shift buffer settings are per-stream.
    This table might also be of some use to you:
    http://wiki.team-mediaportal.com/1_...k_for_Timeshifting/Suggested_Ramdisk_Settings
     
    Last edited:

    Charlie TV

    MP Donator
  • Premium Supporter
  • February 22, 2014
    81
    27
    United Kingdom United Kingdom
    Country flag
    Cool I think :) I have the Ramdisk settings in-line with the guide already. Bounce this if it's off topic but should I therefore change anything?

    btw it's always confused me why MP states that the Drive space needed is 3150 MByte!? Would be nice to have just a dropdown menu, how much disk space do you have, how many clients to support and it just does magic and handles how many files and sizes etc. The min/max files is over my head, even after reading the wiki page many times! :)

    Anyway, thank you for your help and usual amazing support :)

    Cheers
     

    Attachments

    mm1352000

    Development Group
  • Team MediaPortal
  • September 1, 2008
    21,571
    8,218
    New Zealand New Zealand
    Country flag
    I think I have the Ramdisk settings in-line with the guide already
    Hmmm, that's interesting because the maths doesn't add up.

    The dxdiag log tells me that the E: drive has 6.2 GB total space, but only 1.5 GB was free. This was the status after BIGBOY's stream had stopped.

    I know from the TV service log file that BIGBOY's stream had 3 time-shift files:
    [collapse]
    [2016-01-13 18:28:29,391] [Log ] [TS_File_Cleanup] [INFO ] - card: delete timeshift files E:\\live9-3.ts
    [2016-01-13 18:28:29,391] [Log ] [TS_File_Cleanup] [INFO ] - card: trying to delete E:\live9-3.ts.tsbuffer
    [2016-01-13 18:28:29,391] [Log ] [TS_File_Cleanup] [INFO ] - card: deleted file E:\live9-3.ts.tsbuffer
    [2016-01-13 18:28:29,391] [Log ] [TS_File_Cleanup] [INFO ] - card: trying to delete E:\live9-3.ts.tsbuffer1.ts
    [2016-01-13 18:28:29,438] [Log ] [TS_File_Cleanup] [INFO ] - card: deleted file E:\live9-3.ts.tsbuffer1.ts
    [2016-01-13 18:28:29,438] [Log ] [TS_File_Cleanup] [INFO ] - card: trying to delete E:\live9-3.ts.tsbuffer2.ts
    [2016-01-13 18:28:29,453] [Log ] [TS_File_Cleanup] [INFO ] - card: deleted file E:\live9-3.ts.tsbuffer2.ts
    [2016-01-13 18:28:29,453] [Log ] [TS_File_Cleanup] [INFO ] - card: trying to delete E:\live9-3.ts.tsbuffer3.ts
    [2016-01-13 18:28:29,500] [Log ] [TS_File_Cleanup] [INFO ] - card: deleted file E:\live9-3.ts.tsbuffer3.ts[/collapse]

    3 x 350 = 1.05 GB

    1.5 - 1.05 = total space available when BIGBOY was trying to change channel = 450 MB

    That number seems right because in order to successfully start time-shifting, TV Server requires that there be enough space to create 2 time-shift files.

    What doesn't add up is how only 1.5 GB could be free (and 4.7 GB used) when only MASTER is streaming. Even with a full sized buffer, MASTER's stream should only have been using 8 x 350 MB = 2.8 GB. Is there other stuff using up space on the disk?


    Bounce this if it's off topic but should I therefore change anything?
    No, not unless part of the disk space is used for something else.

    btw it's always confused me why MP states that the Drive space needed is 3150 MByte!?
    That number is calculated as: (8 stream files + 1 file worth of free space) x 350 MB per file.
    The "1 file worth of free space" is space left to ensure the disk doesn't ever get completely full (which can be really bad if the disk is also used for the operating system).

    Would be nice to have just a dropdown menu, how much disk space do you have, how many clients to support and it just does magic and handles how many files and sizes etc.
    It would be nice to not have to specify the file counts and sizes, but the maths gets quite tricky. Essentially the mathematical problem is: what is the smallest common factor of 2 numbers which is greater than or equal to [approx.] 100 MB.

    The min/max files is over my head, even after reading the wiki page many times! :)
    "Min" is not really a minimum. It's just the standard buffer size when time-shifting.
    "Max" only has an effect when you pause. When you pause, the buffer size can increase from the standard size up to the maximum size.
     

    Charlie TV

    MP Donator
  • Premium Supporter
  • February 22, 2014
    81
    27
    United Kingdom United Kingdom
    Country flag
    Hi,

    The RAM disk isn't used for anything else, just the MP buffers.

    I can pull logs from MASTER (the other client) if that is helpful? I've only provided the logs for the TVServer (called MEDIA) and one of the clients BIGBOY. So I just put both clients on different HD channels to cause maximum stress and after a day or two I get the error message. It's not the end of the world tbh I don't normally have MASTER turned on that much, it was just in the interests of breaking stuff for you ;)

    Cheers
     

    Charlie TV

    MP Donator
  • Premium Supporter
  • February 22, 2014
    81
    27
    United Kingdom United Kingdom
    Country flag
    Hi, just for info.. I had the Unable to Play:confused:tream 9 error today;

    In the Log on the TV Server End;
    [2016-01-22 12:46:48,484] [Log ] [33 ] [INFO ] - card2:BIGBOY 9 0
    [2016-01-22 12:46:48,484] [Log ] [33 ] [INFO ] - Controller: delete timeshift files E:\\live9-0.ts
    [2016-01-22 12:46:48,484] [Log ] [33 ] [INFO ] - Controller: delete E:\live9-0.ts.tsbuffer
    [2016-01-22 12:46:48,484] [Log ] [33 ] [DEBUG] - Controller: Error "The process cannot access the file 'E:\live9-0.ts.tsbuffer' because it is being used by another process." on delete in CleanTimeshiftFiles
    [2016-01-22 12:46:48,484] [Log ] [33 ] [INFO ] - Controller: delete E:\live9-0.ts.tsbuffer6.ts
    [2016-01-22 12:46:48,484] [Log ] [33 ] [DEBUG] - Controller: Error "The process cannot access the file 'E:\live9-0.ts.tsbuffer6.ts' because it is being used by another process." on delete in CleanTimeshiftFiles
    [2016-01-22 12:46:48,500] [Log ] [33 ] [INFO ] - Controller: delete E:\live9-0.ts.tsbuffer8.ts
    [2016-01-22 12:46:48,500] [Log ] [33 ] [DEBUG] - Controller: Error "The process cannot access the file 'E:\live9-0.ts.tsbuffer8.ts' because it is being used by another process." on delete in CleanTimeshiftFiles
    [2016-01-22 12:46:48,500] [Log ] [33 ] [INFO ] - Controller: epg stop

    Rebooting the client made no difference, there is 5Gb free on the RAM disk on the Server. Stopping/starting the service on the Server fixed it.

    If it helps and you want full logs let me know or if it's more helpful to load these into a new thread etc.

    Cheers
     

    mm1352000

    Development Group
  • Team MediaPortal
  • September 1, 2008
    21,571
    8,218
    New Zealand New Zealand
    Country flag
    I'm confused. I can't see any indications that MediaPortal or TV Server crashed, and I don't recall you mentioning crashes previously either.
    So, please can you explain what you mean. Dates/times and channel names would be appreciated.
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    Dark Eyes TVService locks up or fails to restart on resuming from sleep, and crashes when grabbing EPG Installation, configuration support 7
    C Attempt to play DVD locks up MediaPortal watch/edit Videos 0
    HTPCSourcer [Approved] Nikki Locke as SuperUser Suggestions for new Team Members 2
    morpheus_xx [Finished] Debugging dead locks in UPnP library MediaPortal 2 1
    M WTV Files does not play on client, MPEG files works well General 0
    bigboss97 Does anyone has a SoundGraph imon remote file for MP2 to share? General 0
    J Help with new grabber file. WebEPG 1
    S [solved] No sound - MKV file MediaPortal 1 Talk 2
    G WTV files General 11
    Golf4 TV-Records werden als Audio-Files importiert ? Allgemeines Support- und Diskussionsforum 0
    azzuro [fixed] [WIP MP2.3] - Audio files not imported to MP MediaPortal 2 18
    HTPCSourcer Media Accessor is flooding logs with files from attached monitor MediaPortal 2 9
    R [will not fix] [MP2-832] MP2.2.2 subtitles not shown for WTV files Submit: Bug Reports 7
    R [solved] Files moved to new location - Easy way to update database? My TVSeries 7
    R Files moved to different location - Easy way to update database? Moving Pictures 2
    thepahakurki Trakt error: Invalid or missing file Trakt 8
    M Keymapping Which File To Edit General Support 4
    F No data in "File Details" Moving Pictures 2
    R [solved] Moving pictures importer wont add files from a removable drive. Is there a work around ? Moving Pictures 8
    R Directx 9.0 June 2010 does not install on Windows 10 x64, ends up with weird failure / no debug file Installation, configuration support 0
    B xml file for perfect player Newcomers Forum 1
    K How to enable autoplaying of the next video files in the folder MediaPortal 1 Talk 2
    B Text files attached to videos Watch / Listen Media 10
    Neoculture Bulk file name update My TVSeries 6
    ge2301 [fixed] [MP2-807] Problem when switching player in PiP mode with audio files MediaPortal 2 32
    Similar threads

























    Top Bottom