MP2 - V2.3.2 [Bug] MP2 service keeps crashing within a few seconds of startup (1 Viewer)

jamanga

MP Donator
  • Premium Supporter
  • December 1, 2008
    11
    1
    Country flag
    Hi

    I really love MediaPortal and have been using MP1 for a long time. I'm setting up a new PC for a friend now and thought I'd try MP2. As per title, this is a new install onto a Win10 Home PC.

    In the event viewer there are 2 errors.

    1.
    Application: MP2-Server.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.NullReferenceException
    at MediaPortal.Common.Services.FileEventNotification.FileWatcher.Dispose()
    at MediaPortal.Common.Services.FileEventNotification.FileWatcher.Finalize()

    2.
    Faulting application name: MP2-Server.exe, version: 2.3.2101.13487, time stamp: 0x5ff75d98
    Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
    Exception code: 0xc0000005
    Fault offset: 0x0e04bc3a
    Faulting process ID: 0xccc
    Faulting application start time: 0x01d7123b814a564f
    Faulting application path: C:\Program Files (x86)\Team MediaPortal\MP2-Server\MP2-Server.exe
    Faulting module path: unknown
    Report ID: 8871d626-868d-4eea-839a-349840e2d3c3
    Faulting package full name:
    Faulting package-relative application ID:

    Initally I tried to connect an 8TB external drive as a media source, which showed a busy cursor for a few seconds, then closed MP2.
    From then on I no longer get a chance to changed these settings because the server keeps crashing. In the log I see:

    [2021-03-06 14:58:19,156] [3190 ] [Main ] [WARN ] - MediaLibrary: Share watcher cannot be used for path {e88e64a8-0233-4fdf-ba27-0b44c6a39ae9}:///D:/Movies/
    MediaPortal.Common.FileEventNotification.NotSupportedDriveTypeException: The drive type of "D:\Movies\" is not supported by the system.
    at MediaPortal.Common.Services.FileEventNotification.FileWatcher..ctor(String path)
    at MediaPortal.Common.Services.FileEventNotification.FileEventNotifier.Subscribe(FileWatcherInfo fileWatcherInfo)
    at MediaPortal.Common.Services.FileEventNotification.FileEventNotifier.Subscribe(String path, Boolean includeSubDirectories, FileEventHandler eventHandler, IEnumerable`1 filter, IEnumerable`1 changeTypes)
    at MediaPortal.Common.Services.ResourceAccess.LocalFsResourceProvider.LocalFsResourceProvider.RegisterChangeTracker(PathChangeDelegate changeDelegate, String path, IEnumerable`1 fileNameFilters, IEnumerable`1 changeTypes)
    at MediaPortal.Common.Services.ResourceAccess.LocalFsResourceProvider.LocalFsResourceAccessor.RegisterChangeTracker(PathChangeDelegate changeDelegate, IEnumerable`1 fileNameFilters, IEnumerable`1 changeTypes)
    at MediaPortal.Backend.Services.MediaLibrary.MediaLibrary.ShareWatcher..ctor(Share share, MediaLibrary parent, Boolean scheduleImport, Int32 checkIntervalMs, Int32 importDelaySecs)
    at MediaPortal.Backend.Services.MediaLibrary.MediaLibrary.InitShareWatchers()
     

    Attachments

    ge2301

    Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    7,356
    2,626
    Stuttgart
    Germany Germany
    Country flag
    Could you please try 2 things:
    1. Add the share as server media source instead of client server source. Please always set the credentials for the access.
    2. If 1 doesn't help, try to deactivate the share watcher check mark once
     

    jamanga

    MP Donator
  • Premium Supporter
  • December 1, 2008
    11
    1
    Country flag
    Hi - thanks for the reply

    re: 1. Sorry I've googled but don't see how to add the source via the server itself - can you point me in the right direction? Also I can't see a way to remove the directory I added to client, since the server keeps crashing.
    re: 2. I did activate the share watcher option, but as per above I can't seem to change this now that the server doesn't run - or rather does start then crashes about 5-6 seconds later.
     

    ge2301

    Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    7,356
    2,626
    Stuttgart
    Germany Germany
    Country flag
    re: 1. Sorry I've googled but don't see how to add the source via the server itself - can you point me in the right direction? Also I can't see a way to remove the directory I added to client, since the server keeps crashing.
    To reset all settings delete the folder "C:\ProgramData\Team MediaPortal".
    No need to goggle, everything is descibed in our WIKI.
    After adding the source as server share dont forget to enter the credentials.

    re: 2. I did activate the share watcher option, but as per above I can't seem to change this now that the server doesn't run - or rather does start then crashes about 5-6 seconds later.
    After doing above the server should not crash.
     

    jamanga

    MP Donator
  • Premium Supporter
  • December 1, 2008
    11
    1
    Country flag
    Hi

    Thanks for responding again. I tried to delete the c:\programdata\team mediaportal - there were a couple of files it didn't delete because it said they were "in use" so I skipped these, and this did seem to stop server service crashing.

    The next problem was that neither the x86 or x64 clients would run - they would start and then crash. I can post the logs if you wish.

    I uninstalled the application and could then delete the programdata directory. Re-installed. Ran the x64 version and selected the movie directory from the external hard drive (maybe 2000 movies) and selected the "monitor share" option. This almost immediately crashed the server again.

    I repeated the uninstall/delete files process and this time did NOT select to monitor the share and so far so good - I've added both the movies and tv-series as media sources and it looks like it's now downloading some content. I'll leave it running overnight and see how it goes tomorrow.
     

    morpheus_xx

    Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,748
    7,110
    Germany Germany
    Country flag
    Initally I tried to connect an 8TB external drive as a media source, which showed a busy cursor for a few seconds, then closed MP2.
    What kind of filesystem does your drive use? NTFS, exFAT? This is important as not every filesystem supports change notifications. In case of unsupported filesystems the error handling in code needs to be improved
     

    jamanga

    MP Donator
  • Premium Supporter
  • December 1, 2008
    11
    1
    Country flag
    Hi

    The OS is NTFS, the external driver is exFAT - should I format as NTFS instead?
     

    jamanga

    MP Donator
  • Premium Supporter
  • December 1, 2008
    11
    1
    Country flag
    btw. the media content downloaded overnight - all appears stable so far.
     

    morpheus_xx

    Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,748
    7,110
    Germany Germany
    Country flag
    the external driver is exFAT - should I format as NTFS instead?
    If you need automatic import when new files are added to monitored folders, you would need to reformat to NTFS (but with loss of data, filesystem can't be converted between NTFS vs. exFAT).
    Otherwise new media will be visible after nightly refresh, or after you clicked "re-import" in GUI.

    When we improve error handling in code, this will avoid crashes, but still the feature itself is not supported on exFAT.
     

    jamanga

    MP Donator
  • Premium Supporter
  • December 1, 2008
    11
    1
    Country flag
    All good, thanks for your support and of course, excellent product!
     

    Users who are viewing this thread

    Similar threads
    OP Title Forum Replies Date
    P [solved] MP2 fails to install: "Insufficient privileges to start services" General 16
    BlueMax1916 [Question] What does MP2 Server Service have to do with ...microsoft.com/filestreamingservice...? MediaPortal 2 3
    ge2301 MP2 - V2.4 [MP2-867] Dynamic font scaling for EPG programs in relation to number of rows MediaPortal 2 2
    ge2301 MP2 - V2.4 [MP2-866] Optimize Nereus for touch displays MediaPortal 2 20
    S External player in MP2 and see videos made with my cam? General 8
    P MP2 TV Recording Logs General 1
    T MP2 - V2.3 MP2 Won't Restart, Requires System Reboot Submit: Bug Reports 2
    ge2301 MP2 - V2.4 [MP2-863] Extend View Mode Settings MediaPortal 2 8
    porky996t Outdated Tuning Parameters in MP2 TVServer Config TV-Server 0
    B IRSS shows button presses, nothing happening out-of-the-box in MP2 Newcomers Forum 1
    D MP2 DLNA status? General 10
    N [solved] MP2 TV-Server DD cine 2 V6, Astra keine deutschen Sender mehr General 4
    H MP2 - V2.4 [MP2-855] Extend Nereus HomeMenuEditor to allow configuration of HomeContent features MediaPortal 2 26
    M MP2 - V2.3 MP2 & USB Problems Submit: Bug Reports 43
    L MP2 - V2.3 Troubles upgrading from MP2 2.2.3 to 2.3 General 0
    T MP2 - V2.3 MP2 x64 won't run Submit: Bug Reports 5
    J Copying Old VHS tapes Newcomers Forum 8
    W MP2 - V2.3 MP2 2.3 Import von Audioquellen / Datenbankprobleme Allgemeines Support- und Diskussionsforum 26
    G MP2 - V2.3 New install and crashing MP2-2.3 General 6
    S MP2 - V2.3 MP2 No video General 6
    W [solved] MP2 Server stürzt immer nach kurzer Zeit ab Allgemeines Support- und Diskussionsforum 89
    toricred MP2 - V2.3 MP2 2.3 Client won't start General 7
    Grisu002 MP2 - V2.3 MP2 2.3 Client startet nicht - bleibt beim Laden hängen Allgemeines Support- und Diskussionsforum 64
    M [solved] MP2 PROBLEME Standby Allgemeines Support- und Diskussionsforum 2
    Scheibes Was passiert bei MP2? Allgemeines Support- und Diskussionsforum 42

    Similar threads

    Top Bottom