[confirm] Why oh Why :( Read() no open file (3 Viewers)

pilehave

Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Home Country
    Denmark Denmark
    The change i'm making is to create the next timeshifting file before the previous one is completely filled. This should allow plenty of time for the next file to be ready on the network share before it is needed.

    At the moment a new file is only created the instant the previous one is completely filled and (i'm guessing) it sometimes takes a little while to be 'seen' on the share which is why it sometimes fails to open.

    To ensure that the file is visible on the network, perhaps it could be accessed by the client ie. 10 seconds before it should be visible? This should ensure that Windows has the path cached, right?

    Maybe this is already your idea :)

    :D
     

    miroslav22

    Development Group Member
  • Premium Supporter
  • September 4, 2009
    703
    460
    Warwick
    Home Country
    United Kingdom United Kingdom
    Hopefully a similar change won't be needed for tsreader, but we'll see how it goes :) Shouldn't be difficult if needed
     

    mylle

    Portal Pro
    April 14, 2005
    574
    66
    Denmark
    Home Country
    Denmark Denmark
    OK,

    Seems timeshifting to a ram drive does not make a difference with my setup :(

    Hopefully V4 of the patch will be ready soon :)

    regards
    Jacob
     

    tompa

    MP Donator
  • Premium Supporter
  • October 3, 2005
    665
    34
    Stockholm
    Home Country
    Sweden Sweden
    mylle, thanks for reporting this!

    Iv seen the same thing at my setup for version 1.1.2

    /tompa
     

    miroslav22

    Development Group Member
  • Premium Supporter
  • September 4, 2009
    703
    460
    Warwick
    Home Country
    United Kingdom United Kingdom
    Hi,

    Unfortunately i've not been able to replicate this problem so can't confirm this will help. V4 of the attached patch contains the code that creates the next buffer file in advance. Would anyone mind testing it to see if it helps and post back either way?

    Thanks :)
     

    Attachments

    • StreamingDiskIOFix-v4-Test-Binaries (SVN 27305).zip
      1,001.1 KB
    • DiscontinuityFixV4-Test (SVN 27305).patch
      79.7 KB

    romuz

    Retired Team Member
  • Premium Supporter
  • July 26, 2008
    1,045
    250
    Moskau
    Home Country
    Russian Federation Russian Federation
    Hi applied that patch
    and now im geting stops of live tv (using unc)
    tsreader log contains new errors

    23-01-2011 20:36:54.891 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:36:55.898 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:36:56.904 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:36:57.911 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:36:58.920 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:36:59.929 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:00.935 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:01.942 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:02.948 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:03.954 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:04.962 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:05.969 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:06.977 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:07.984 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:08.993 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:09.999 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:11.008 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:12.018 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:13.026 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:14.033 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:15.042 [a18]FileReader::Read() read to less bytes

    + discontinuites
     

    miroslav22

    Development Group Member
  • Premium Supporter
  • September 4, 2009
    703
    460
    Warwick
    Home Country
    United Kingdom United Kingdom
    Hi applied that patch
    and now im geting stops of live tv (using unc)
    tsreader log contains new errors

    23-01-2011 20:36:54.891 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:36:55.898 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:36:56.904 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:36:57.911 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:36:58.920 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:36:59.929 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:00.935 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:01.942 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:02.948 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:03.954 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:04.962 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:05.969 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:06.977 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:07.984 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:08.993 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:09.999 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:11.008 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:12.018 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:13.026 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:14.033 [a18]FileReader::Read() read to less bytes
    23-01-2011 20:37:15.042 [a18]FileReader::Read() read to less bytes

    + discontinuites

    Thanks Romuz, i'll try again :)

    Would everyone mind posting what their network setup is like? Mine's all fully wired 1gbps which might be why i'm not seeing these problems.

    Does anyone use wireless or homeplug/powerline adaptors?
     

    romuz

    Retired Team Member
  • Premium Supporter
  • July 26, 2008
    1,045
    250
    Moskau
    Home Country
    Russian Federation Russian Federation
    Mine 1gbps wired too
    additional info

    23-01-2011 22:06:07.861 [d70]FileReader::Read() read to less bytes
    23-01-2011 22:06:08.868 [d70]FileReader::Read() read to less bytes
    23-01-2011 22:06:09.877 [d70]FileReader::Read() read to less bytes
    23-01-2011 22:06:10.886 [d70]FileReader::Read() read to less bytes
    23-01-2011 22:06:11.893 [d70]FileReader::Read() read to less bytes
    23-01-2011 22:06:12.903 [d70]FileReader::Read() read to less bytes
    this errors happens even right after skip back for 15 sec so it is not related with network files caching

    BUT imho my main issue related to that tsreader are too close to the end of the buffer
    because after skiping back logs like this

    23-01-2011 21:55:51.562 [710]Demux : Video to render 0.899 Sec
    23-01-2011 21:55:51.564 [710]Demux : Audio to render 0.603 Sec
    23-01-2011 21:55:55.175 [710]Demux : Audio to render 0.590 Sec
    23-01-2011 21:55:55.415 [710]Demux : Audio to render 0.578 Sec
    23-01-2011 21:55:56.017 [710]Demux : Video to render 0.768 Sec
    23-01-2011 21:55:56.020 [710]Demux : Audio to render 0.464 Sec
    23-01-2011 21:56:30.565 [710]Demux : Audio to render 0.354 Sec
    23-01-2011 21:56:32.988 [710]Demux : Audio to render 0.326 Sec
    23-01-2011 21:56:36.737 [710]Demux : Video to render 0.750 Sec
    23-01-2011 21:56:46.137 [710]Demux : Audio to render 0.263 Sec
    23-01-2011 21:56:53.813 [710]Demux : Video to render 0.671 Sec
    23-01-2011 21:58:17.776 [710]Audio Continuity error... 1 ( prev e )
    23-01-2011 21:58:39.181 [710]Demux : Audio to render 0.116 Sec
    23-01-2011 21:58:39.182 [710]Demux : Video to render 0.477 Sec
    23-01-2011 21:58:46.258 [710]Audio Continuity error... 2 ( prev 0 )
    23-01-2011 21:58:46.260 [710]Video Continuity error... f ( prev c )

    are gone and all works perefectly
    even with FileReader::Read() read to less bytes
    it is not produce any visual issues
     

    tompa

    MP Donator
  • Premium Supporter
  • October 3, 2005
    665
    34
    Stockholm
    Home Country
    Sweden Sweden
    Would everyone mind posting what their network setup is like? Mine's all fully wired 1gbps which might be why i'm not seeing these problems.

    Does anyone use wireless or homeplug/powerline adaptors?

    In my case its a 100Mbs wired network. What I have seen is thats its only happens on one of my clients (not tested yet with 1.2a), so I think its due to that NIC.
    Could that be the case?

    /tompa
     

    Users who are viewing this thread

    Top Bottom