[Approved] Fix for TVE #0002126 (1 Viewer)

framug

Super Moderator
  • Team MediaPortal
  • January 31, 2005
    6,155
    2,227
    South of France
    Home Country
    France France
    • Thread starter
    • Moderator
    • #2
    Since I tested it on a USB key, I found better cartridges for my rifle.
    And, here are the evidences (screenshots before/after) :

    I modified older classes wich are now for latest #23143 SVN.
     

    Attachments

    • before.JPG
      before.JPG
      49 KB
    • after.JPG
      after.JPG
      49.5 KB

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Actually it would be more important to fix the MediaPortal client side to show the correct error note when the disk is full.
     

    framug

    Super Moderator
  • Team MediaPortal
  • January 31, 2005
    6,155
    2,227
    South of France
    Home Country
    France France
    • Thread starter
    • Moderator
    • #4
    Hi tourettes,

    Ah, OK, it was not very clear, in the mantis. ;)
    May I hope this fix will be integrated anyway ?
    Then I didn't work for nothing ?
    I will have a look on the client side but, I don't promise something for sure.
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    I think it's also important to handle disk space also during recording and timeshifting, not only on starting.

    does your patch cover this?
     

    framug

    Super Moderator
  • Team MediaPortal
  • January 31, 2005
    6,155
    2,227
    South of France
    Home Country
    France France
    • Thread starter
    • Moderator
    • #6
    Hi morpheus,

    I admit not, for the server side but, I would like to explain you what I found :

    For the server side :
    TimeShifter doesn't want to start if there is less space than 488,5 MB.
    I'm absolutely sure of that because fully tested.
    The TimeShift file is always 250 MB.
    Then, for this event, user has to stay on record state in the TV-Server Configuration during more than 7 minutes.
    And even if more than 7 minutes, the TV-Server doesn't crash.
    Of course, in this case, .ts file will not be really usable but, click record button on Manual Control Form, isn't it intended only for testing if record is OK, finally ?
    Then, shouldn't it be enough, just for this case ?
    Don't forget, before, it was a messagebox with another message displayed but, there was neither specific thread or timer for that too.
    Then, I thought it was just a bug to fix.

    For the client side, it's not the same error message (look at screenshot) :
    It appears to be inside TVHome.cs, when ChannelTuneFailedNotifyUser(TvResult succeeded, bool wasPlaying, Channel channel) method is called.
    Then, shouldn't it be another mantis record for that ?
    (Just wonder and of course, I agree, we have to fix it too).

    What do you think, about ?

    Edit : ooops, just seen that unknown error, is because of the new NoFreeDiskSpace implemented and, not treated yet in TVHome.
    I must to look a bit more inside.
     

    Attachments

    • before_client.JPG
      before_client.JPG
      55.9 KB

    framug

    Super Moderator
  • Team MediaPortal
  • January 31, 2005
    6,155
    2,227
    South of France
    Home Country
    France France
    • Thread starter
    • Moderator
    • #7
    Enjoy Client side :
     

    Attachments

    • after_client.JPG
      after_client.JPG
      57.6 KB
    • TVHome.patch
      30.6 KB
    • strings_en.patch
      30.6 KB

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    shouldn't your patch consider also the settings from tvservice?

    i.e. you can set timeshift file size to 1 GB per file, min 2, max 4. your hardcoded check "<500000" wouldn't fit here.

    I think this should be possible to check?
    :D
     

    framug

    Super Moderator
  • Team MediaPortal
  • January 31, 2005
    6,155
    2,227
    South of France
    Home Country
    France France
    • Thread starter
    • Moderator
    • #9
    morpheus, sorry to ask you this.
    Remember, I'm a bit noob, with this TVE3. :p
    I didn't know there were such settings.
    Is it what I surrounded in red and green ?
    I have to multiply Minimum files with Filesize to obtain the value and finally use it in the test ?
    Is it what you ask me for ?

    Edit : Well, or maybe, I suppose multiply Maximum files with Filesize, isnt it ?
     

    Attachments

    • noob.JPG
      noob.JPG
      58.6 KB

    framug

    Super Moderator
  • Team MediaPortal
  • January 31, 2005
    6,155
    2,227
    South of France
    Home Country
    France France
    • Thread starter
    • Moderator
    • #10
    After many tests :

    - Changing Minimum or Maximum files settings doesn't change disk space needed.
    - Only changing Filesize is influential with disk space needed.
    A 256 MB/file value in Filesize implies 512 000 000 bytes free on HDD for it works.
    (488 MB exactly because, you know of this story for bad commercial disk size, they count 1 KB = 1000 Bytes and 1 MB = 1000 KB).
    A 257 MB/file value in Filesize implies 514 000 000 bytes free on HDD for it works.

    Then, I determined this calcul solution for it works :

    Error No Free Disk Space if :

    Free Disk Space on HDD < (timeshiftMaxFileSize in Bytes * 2)


    I uploaded newer TimeShifter.patch in the first post, if you agree with my solution...
     

    Users who are viewing this thread

    Similar threads

    Default Direct Sound Device was the problem. MPAR worked better than Dircect Sound, but is still a problem. Changed Audio Renderer to use the TV and it's working.
    Default Direct Sound Device was the problem. MPAR worked better than Dircect Sound, but is still a problem. Changed Audio Renderer...
    New computer build with Windows 11 Pro. MediaPortal 1.34 x64. When I pause a video the audio drops out. This only occurs when...
    Replies
    2
    Views
    2K
    https://forum.team-mediaportal.com/threads/mediaportal-1-1-34-with-x64-support-released.141238/
    https://forum.team-mediaportal.com/threads/mediaportal-1-1-34-with-x64-support-released.141238/
    Bei Computerbase.de gibt es die Version 1.34 (in x86 und x64) seit Mitte der Woche (19.06.2024): Hier wird noch die Beta...
    Replies
    1
    Views
    2K
    Before you create this bug report: Make sure that your system (Windows, codecs and drivers) is up to date, matching the Requirements and you've filled in your System Specs. Have a look at our MediaPortal Wiki! Maybe the solution is already there. Have a look at our Jira (Bug and Issue Tracker)and the threads in this section, maybe...
    Before you create this bug report: Make sure that your system (Windows, codecs and drivers) is up to date, matching the...
    Before you create this bug report: Make sure that your system (Windows, codecs and drivers) is up to date, matching the...
    Replies
    0
    Views
    224
    All good now!!
    All good now!!
    We have just released MediaPortal 1.36 - Polar Express x86 and x64 version. Highlights of this release Bugfixes: [MP1-5229] -...
    Replies
    2
    Views
    2K
    As video playback in MP2 2.5 is buggy, PLEASE add an option for an external video player! I'd LOVE to have VLC back as videoplayer, like in MP1! This works perfectly. You will make a LOT of people VERY happy when you add this option. THANK YOU! EDIT: let me do some explaining about why it's buggy: regarding functionality, everything...
    As video playback in MP2 2.5 is buggy, PLEASE add an option for an external video player! I'd LOVE to have VLC back as videoplayer...
    As video playback in MP2 2.5 is buggy, PLEASE add an option for an external video player! I'd LOVE to have VLC back as videoplayer...
    Replies
    0
    Views
    253
    Top Bottom