TV Service taking long while to shutdown, delaying Windows shutdown/reboot (1 Viewer)


Portal Member
January 6, 2011
Netherlands Netherlands
Country flag
Just installed Mediaportal 1.4 and this was the only problem so far I couldn't resolve :)
I'll follow this topic.


Test Group
  • Team MediaPortal
  • February 23, 2008
    Netherlands Netherlands
    Country flag
    Problem is we don't even no yet if it is a bug.
    But what is being confirmed then? I've read multiple reports and confirms on this issue.
    Since some users also seem to have issues while updating, we suggest to manually stop the TVService. Maybe this is also caused by the same problem?


    Portal Pro
    November 30, 2008
    Germany Germany
    Issue appears after fixing this:

    This obviously fixed something but causes a longer shutdown time.
    This is correct. The MP1-3172 fix makes TVService react on the Windows pre-shutdown message and let it stop the TVController and all TVServer plugins cleanly. Before they were killed by the Windows Service Manager which led to exceptions and error messages in the logs. But: Though the TVService shuts down cleanly now (seen from MP's view), Windows does not notice that the TVService has been stopped and therefore now waits for 10 seconds to get a stop notification (gives an error in the System event log) and only then continues its shutdown progress. I have found no way so far how to signal Windows that the TVService has been stopped from .NET managed code.
    So the options are:
    - Revert the MP1-3172 fix and ignore the pre-shutdown message (will bring back exceptions and error logs but shuts down 10 sec faster)
    - Keep everything as it is now (slower shutdown and error in System event log)
    - Find a way to stop TVService cleanly and under control of the Windows Service manager
    The latter should be achieved, so @Developers who can help?

    Last edited:


    Test Group
  • Team MediaPortal
  • February 23, 2008
    Netherlands Netherlands
    Country flag
    TNX for the explanation Michael ;)

    Info: The tags aren't working at the moment, so if you need developers, best to tag them with their username(s)


    MP Donator
  • Premium Supporter
  • August 4, 2012
    Germany Germany
    my opinion for mp 1.5 final: to wait every evening sometimes longer to shut down the system than start the whole system is much more annoying than some faulty logs...
    Last edited:

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    L Service keeps crashing General 3
    X [solved] Display needs to be turned on for TV services to function General 1
    T [solved] failed to-startup tvservice Installation, configuration support 1
    F [solved] Could not find the MediaPortal.Common.Logging.ILogger service after upgrading from 2.2.2 to 2.2.3 General 2
    DHosein Mediaportal & Antimalware Service High CPU issue General Support 2
    Z TV-Service in falscher Version Installationsprobleme? 9
    T Missing sound in online streaming service (SVTPlay) General Support 3
    emphatic Pictures in the cloud - would a plugin be possible for services like Google Photos MediaPortal 1 Plugins 1
    K sudden complication watching recorded TV Newcomers Forum 6
    P [solved] MP2 fails to install: "Insufficient privileges to start services" General 11
    J TV service not available General 7
    M [solved] Setup Issue - Hanging on Starting Services General 3
    ajs Sync databases by Media Sync Service MediaPortal 1 Talk 26
    BlueMax1916 [Question] What does MP2 Server Service have to do with MediaPortal 2 3
    Holzi [solved] MediaPortal 2 will not install - Failed to start services MediaPortal 2 1
    Stéphane Lenclud [solved] TV Server Service preventing sleep General Support 18
    D Remove "Old" client names from Service Monitor? General 5
    B Server service on the service monitor keeps stopping randomly. Client can't see server status. 2.2 Archive 5
    D Upgrade to MP2.2 pre release fails with failure to start service 2.2 Archive 32
    T MP2.2 Pre Release fails installation with not starting the MP2-service 2.2 Archive 4
    F MP2 - V2.1 MP2 TV Service won't start Older releases 3
    J List creation takes a long time MediaPortal 2 10
    N [will not fix] Changed settings do not take effect until MP2-Client is stopped and restarted. Submit: Bug Reports 4
    zunixnuz TV Mini-EPG long text cropped on bottom side Titan Skin Feedback 0
    olli14 Power scheduler settings for no shutdown as long as kodi client is online TV-Server 1
    Similar threads

    Top Bottom