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


Portal Member
March 4, 2007
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.


Portal Member
March 4, 2007
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.



Retired Team Member
  • Premium Supporter
  • April 3, 2006
    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.


    Portal Member
    March 4, 2007
    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 (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    g0rsq Info box randomly popping up when watching TV or other video MediaPortal 2 Newcomers Forum 1
    Symphy Version for MediaPortal 1.25 ASIO music player 0
    doskabouter Installing mediaportal MediaPortal 1 3
    A Mediaportal Allgemeines Support- und Diskussionsforum 0
    G Update von MediaPortal Installationsprobleme? 0
    ajs [News] MediaPortal 1 - 1.25 Released! News and Announcements 1
    horned_reaper Standby is prevented by MediaPortal client General Support 0
    U [solved] MediaPortal crashing on startup General Support 10
    high [unanswered] Hallo möchte gerne Mediaportal. nutzen kann mich jemand anrufen? contactform feedback and requests 2
    ajs [News] MediaPortal 1.25 Pre-Release ready for testing! News and Announcements 0
    ajs [Rejected] Mediaportal Codename MediaPortal 1 41
    M 2nd (Touch-)Display Support on MediaPortal 2 such MPDisplay++? General 2
    N Steam release of MediaPortal MediaPortal 1 Talk 0
    torone Dritter versuch mit Mediaportal 2 Allgemeines Support- und Diskussionsforum 1
    M Fehlerhafter Link auf der aktuellen MediaPortal Seite Page- und Forumsfeedback 0
    H 1.24.0 MP 1.24 high CPU utilization when 'Keep MediaPortal always on top' option enabled Bugreports 4
    mickb [solved] Mediaportal Stops working General Support 5
    J [solved] Newbie to MediaPortal 2 - Cannot open/run TV programs Newcomers Forum 4
    atlantic How to use Spotify inside Mediaportal? Listen Music 18
    horned_reaper MediaPortal configuration error log message General Support 1
    Rob Hexenmeister Mediaportal Properties #plot etc... General Support 3
    ajs [News] MediaPortal 1 - 1.24 Released! News and Announcements 3
    S [solved] access the desktop without leaving mediaportal General Support 5
    J New computer with win10 and how will i set Mediaportal up ? Newcomers Forum 55
    T MediaPortal Extensions Manager Fehlermeldung bei Installation einer Erweiterung Installationsprobleme? 1
    Similar threads

    Top Bottom