[confirm] Mediaportal randomly stops playing videos from networkshare (1 Viewer)

draclich

Portal Member
March 4, 2007
21
3
melb.vic.au
I created a simple fileSystemWatcher program to monitor a UNC path. It does work for correctly for sub directories. So it appears that GetUniqueTopLevelFolders is the cause. When only the parent directory is returned then its unlikely there will be a major issue with how many fileSystemWatchers are created. I'll hopefully have a better patch shortly.
 

draclich

Portal Member
March 4, 2007
21
3
melb.vic.au
This new patch fixes the issue where by instead of the share being added as a watcher each directory of the share was. I've added logic to not add watchers where the parent is already being watched.

The whole file watcher and file cache setup is problematic due to watchers being driven off is this file cached. I have changed virtualDirectory to add shares to a watcher directly with a new public method.

The only case I haven't tested it a samba share. I'll try and look at it later.


Lastly FileExistsInCache is called with and without full paths. Is this expected? I didn't investigate it to determine if it caches relative addressed files.
 

Attachments

davidf

Retired Team Member
  • Premium Supporter
  • April 3, 2006
    796
    348
    Scotland
    Scotland Scotland
    The internal patch is now in SVN (I included the sqlite journal check from your patch). If you have any remaining issues then let me know.
     

    draclich

    Portal Member
    March 4, 2007
    21
    3
    melb.vic.au
    Cache is disabled by default in the svn and it doesn't exhibit the issue. Enabling it causes the same hang when to many UNC watchers are created. The issue can be solved by ensuring all shares are added at parent watchers. I put a change in my patch for virtualdirectory.GetRootExt to force create a watcher for each share.

    There is still the annoying performance overhead where every directory in the share attempts to be added as a watcher instead of being filtered out by util.GetUniqueTopLevelFolders. Most of my changes where to try and clean that up as well.
     

    Users who are viewing this thread

    Similar threads
    OP Title Forum Replies Date
    g0rsq Info box randomly popping up when watching TV or other video MediaPortal 2 Newcomers Forum 1
    A MediaPortal is still the best! (At least as far as I know...) MediaPortal 1 Talk 1
    ajs 1.28.0 MediaPortal 1.28 Pre-Release ready for testing! News and Announcements 39
    K MediaPortal 2.3.1 live tv freezes when inserting a usb memory stick or when mounting an external drive General 8
    C Can't Install MediaPortal 2 On Windows 10 Home General 13
    A mediaportal 1.27 embedded subtitles not working MediaPortal 1 Talk 3
    A MediaPortal Error log issue MediaPortal 1 Talk 26
    gpnash 1.27.0 mediaportal split between two monitors? MediaPortal 1 Talk 8
    Steve.Rayner61 MediaPortal won't start following W10 Update General Support 5
    Scheibes I must leave MediaPortal Team Lounge 2
    V Einstellen von ServusTV zum Aufnehmen provoziert Neustart von Mediaportal TV / Streaming 0
    R MpExtended fails to find MediaPortal TV Server Installation, configuration support 0
    T Madvr with GeForce 30xx - can't play SDR content after playing HDR General Support 26
    ajs 1.27.0 MediaPortal 1 - 1.27 Released! News and Announcements 0
    M TechniSat CableStar HD2 / Windows 10? Und dann natürlich auch unter Mediaportal? TV / Streaming 1
    ge2301 MediaPortal 2.3.2 Release News and Announcements 0
    S mediaportal with headphone General Support 13
    ge2301 MediaPortal 2.3.1 Release News and Announcements 0
    ajs 1.27.0 MediaPortal 1.27 Pre-Release ready for testing! News and Announcements 2
    T Change tv subtitle in MediaPortal 1.26 Newcomers Forum 12
    T Change tv subtitle in MediaPortal 1.26 MediaPortal 1 Talk 0
    G 1.26.0 Errors when exiting Mediaportal GUI using StreamedMP 3.2.2.0 skin. StreamedMP 0
    S MP2 - V2.3 MediaPortal 2.3 Client stürzt ab - freetype6.dll nicht gefunden General 1
    ajs 1.26.0 MediaPortal 1 - 1.26 Released! News and Announcements 1
    T Neuer MediaPortal Rechner Barebones/PC-Systeme/Kaufberatung 2

    Similar threads

    Top Bottom