MediaPortal Wait many times on Wait Tvserver (1 Viewer)

azzuro

Test Group
  • Team MediaPortal
  • May 10, 2007
    9,360
    4,987
    France - IDF
    France France
    Country flag
    • Thread starter
    • Moderator
    • #1
    MediaPortal Version: 1.4.0

    Description
    When Start MP on the first time in a day.

    MP need wait many time on "Waiting TVserver" on splachscreen view.

    and when restart HTPC on this day, no more waiting !

    So, i think it's XMLTV issue.

    because i have set than XMLTV grabbing EPG 1 time/day and my HTPC is slow and internet connection is bad.
    need lot of time for download EPG and insert it in MySQL.

    MP should wait TVservice processus started before starting MP,

    but i think xmltv is added in initialized processus = really bad .


    i think the better things is to start tvservice and plugins initilialization only, but plugins should wait tvservice initialized, before plugins start work.
    @mm1352000 @mattjcury

    Steps to Reproduce:
    system : Singleseat
    Start MP as Shell
    with xmltv support.

    better is to test on low power system
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,433
    10,254
    France
    France France
    Country flag
    It seems that xmltv is not started in separate thread from your input.
    But i'm not sure.

    Nothing in log can tell is tvservice is busy ?
     
    Last edited:

    mm1352000

    Development Group
  • Team MediaPortal
  • September 1, 2008
    21,571
    8,218
    New Zealand New Zealand
    Country flag
    @mm1352000
    you can help with this ?
    I don't think this problem has anything to do with XMLTV... and you can prove this with a simple test: disable the XMLTV plugin and see how long it takes for MP to start.

    You can see this in the MP log files:
    [2013-08-08 18:19:19,906] [Log ] [MPMain ] [INFO ] - Main: TV service is stopped, so we try start it...
    [2013-08-08 18:19:48,410] [Log ] [MPMain ] [INFO ] - TvService seems to be already starting up.
    [2013-08-08 18:19:48,410] [Log ] [MPMain ] [INFO ] - Main: The TV service has started successfully.
    ...and in the TV service log:
    [2013-08-08 18:19:32,496] [Log ] [4 ] [DEBUG] - Setting up EventWaitHandle with name: Global\MPTVServiceInitializedEvent
    ...
    [2013-08-08 18:19:47,625] [Log ] [TVService] [INFO ] - TV Service: Load plugins
    [2013-08-08 18:19:47,843] [Log ] [TVService] [INFO ] - PluginManager: Loaded ComSkipLauncher version:1.0.2.0 author:and-81
    [2013-08-08 18:19:47,878] [Log ] [TVService] [INFO ] - PluginManager: Loaded ConflictsManager version:1.0.0.1 author:Broceliande
    [2013-08-08 18:19:47,929] [Log ] [TVService] [INFO ] - PluginManager: Loaded Power Scheduler version:0.1.0.0 author:micheloe
    [2013-08-08 18:19:47,988] [Log ] [TVService] [INFO ] - PluginManager: Loaded ServerBlaster version:1.1.1.0 author:joboehl with ralphy mods
    [2013-08-08 18:19:48,019] [Log ] [TVService] [INFO ] - PluginManager: Loaded TV Movie EPG import version:1.0.3.0 author:rtv
    [2013-08-08 18:19:48,074] [Log ] [TVService] [INFO ] - PluginManager: Loaded WebEPG version:1.0.0.0 author:Arion_p - James
    [2013-08-08 18:19:48,113] [Log ] [TVService] [INFO ] - PluginManager: Loaded XmlTv version:1.0.0.0 author:Frodo
    [2013-08-08 18:19:48,113] [Log ] [TVService] [INFO ] - TV Service: Plugins loaded
    [2013-08-08 18:19:48,117] [Log ] [TVService] [INFO ] - TV Service: Plugin: ComSkipLauncher disabled
    [2013-08-08 18:19:48,117] [Log ] [TVService] [INFO ] - TV Service: Plugin: ConflictsManager disabled
    [2013-08-08 18:19:48,121] [Log ] [TVService] [INFO ] - TV Service: Plugin: Power Scheduler disabled
    [2013-08-08 18:19:48,125] [Log ] [TVService] [INFO ] - TV Service: Plugin: ServerBlaster disabled
    [2013-08-08 18:19:48,128] [Log ] [TVService] [INFO ] - TV Service: Plugin: TV Movie EPG import disabled
    [2013-08-08 18:19:48,136] [Log ] [TVService] [INFO ] - TV Service: Plugin: WebEPG disabled
    [2013-08-08 18:19:48,136] [Log ] [TVService] [INFO ] - TV Service: Plugin: XmlTv started
    [2013-08-08 18:19:48,140] [Log ] [TVService] [INFO ] - plugin: xmltv started
    [2013-08-08 18:19:48,140] [Log ] [TVService] [DEBUG] - xmltv: Registered xmltv as PowerEventHandler to tvservice
    [2013-08-08 18:19:48,214] [Log ] [TVService] [INFO ] - TV Service: Plugins started
    [2013-08-08 18:19:48,214] [Log ] [TVService] [INFO ] - TV Service: Plugin: XmlTv started all
    [2013-08-08 18:19:48,214] [Log ] [TVService] [DEBUG] - XmlTvImporter: NOT registered with PowerScheduler EPG handler
    [2013-08-08 18:19:48,214] [Log ] [TVService] [INFO ] - TV service: Started
    So, XMLTV is started right at the end of the service load process. There is almost zero delay between XMLTV start and MP detecting that the service has finished starting.
    I think that the problem is that your PC hardware is just too slow.
    Processor: AMD Sempron(tm) Processor 2800+, ~1.6GHz
    Memory: 1024MB RAM
    Available OS Memory: 1024MB RAM
    Page File: 1476MB used, 688MB available
    The CPU speed is very slow, and it is a Sempron (AMD equivalent of Intel Celeron/Pentium) - it is not good.
    Further, only 1GB of memory. This is not enough for W7. The sloooow swap file on your HDD will be used all the time.

    So, I recommend you downgrade to XP on this PC... or get a new one.
     

    azzuro

    Test Group
  • Team MediaPortal
  • May 10, 2007
    9,360
    4,987
    France - IDF
    France France
    Country flag
    • Thread starter
    • Moderator
    • #7
    The CPU speed is very slow, and it is a Sempron (AMD equivalent of Intel Celeron/Pentium) - it is not good. Further, only 1GB of memory. This is not enough for W7. The sloooow swap file on your HDD will be used all the time. So, I recommend you downgrade to XP on this PC... or get a new one.
    YOUR ARE CRAZYYYYYYYYYYYYYYYYY .
    No more XP

    LOL :ROFLMAO:

    So, XMLTV is started right at the end of the service load process. There is almost zero delay between XMLTV start and MP detecting that the service has finished starting. I think that the problem is that your PC hardware is just too slow.
    i think this issue is not identified in LOG, because i need always do an Hard-Reset , so we should view in log 2 X MP starting on the same day also TVserveur.
    but i think LOG is deleted when MP is restarted in the same day !
    if this is true it's an BIG issue in LOG management.

    i can't confirm it for now ( @work) . but if it's true. we need fix this ...
     
    Last edited:

    azzuro

    Test Group
  • Team MediaPortal
  • May 10, 2007
    9,360
    4,987
    France - IDF
    France France
    Country flag
    • Thread starter
    • Moderator
    • #8
    Wikipedia is telling me your CPU is from 2004! I think time for an upgrade if you want startup to be faster. ;)
    it's planned, but first is to finish my House. ;)
    but for test it's better, if MP working great on old system > working better on fast system :p ((the false argument... lol )
     

    azzuro

    Test Group
  • Team MediaPortal
  • May 10, 2007
    9,360
    4,987
    France - IDF
    France France
    Country flag
    • Thread starter
    • Moderator
    • #9
    @Testers
    Can you verify if in LOG, many MP startup ( not resume) on the same day are saved in LOG. in the same file or is renamed as Mediaportal-1.log for the same day.

    Step : ( Hours are example)
    - Start MP at 18h00 and close it, restart it at 18h20 close it.
    -- verify LOG if you look MP starting at 18h00 and 18h20

    - Start MP at 18h00 and KILL (with task management for simulate crash) it, restart it at 18h20 ( close or kill it).
    -- verify LOG if you look MP starting at 18h00 and 18h20

    Same things with TVservice. but only Killed version.
     

    mm1352000

    Development Group
  • Team MediaPortal
  • September 1, 2008
    21,571
    8,218
    New Zealand New Zealand
    Country flag
    Can you verify if in LOG, many MP startup ( not resume) on the same day are saved in LOG. in the same file or is renamed as Mediaportal-1.log for the same day.
    Logs are renamed as MediaPortal.1.log and TVService.1.log etc.

    it's planned, but first is to finish my House. ;)
    Fair enough. :)

    but for test it's better, if MP working great on old system > working better on fast system :p ((the false argument... lol )
    :LOL: :D

    YOUR ARE CRAZYYYYYYYYYYYYYYYYY .

    No more XP
    It was a real suggestion. Honestly, XP is not so bad as you seem to think it is - it is not the devil! :)
    You can laugh and say that I'm crazy, but I still say XP would suit the age of the hardware better than W7. It can run better on less memory with lower power CPUs like you have. W7 vs. XP is your choice. :)

    Here is the last analysis I will do for this problem...


    i think this issue is not identified in LOG, because i need always do an Hard-Reset , so we should view in log 2 X MP starting on the same day also TVserveur.
    Okay, let us look. I have compared the TV service and MP log files...


    On 8 August you have the delay because TV service was not started when MP was starting. TV service took about 28 seconds to start.
    [2013-08-08 18:19:19,906] [Log ] [MPMain ] [INFO ] - Main: TV service is stopped, so we try start it...
    [2013-08-08 18:19:32,496] [Log ] [4 ] [DEBUG] - Setting up EventWaitHandle with name: Global\MPTVServiceInitializedEvent
    [2013-08-08 18:19:48,214] [Log ] [TVService] [INFO ] - TV service: Started
    [2013-08-08 18:19:48,410] [Log ] [MPMain ] [INFO ] - TvService seems to be already starting up.
    [2013-08-08 18:19:48,410] [Log ] [MPMain ] [INFO ] - Main: The TV service has started successfully.
    [2013-08-08 18:19:48,410] [Log ] [MPMain ] [INFO ] - Main: TV service is in status Running - proceeding...
    On 7 August you have no delay because TV service had already started when MP started. TV service still took about 11 seconds to start.
    [2013-08-07 19:30:10,062] [Log ] [4 ] [DEBUG] - Setting up EventWaitHandle with name: Global\MPTVServiceInitializedEvent
    [2013-08-07 19:30:21,152] [Log ] [TVService] [INFO ] - TV service: Started
    [2013-08-07 19:30:21,308] [Log ] [MPMain ] [INFO ] - TvService seems to be already starting up.
    [2013-08-07 19:30:21,308] [Log ] [MPMain ] [INFO ] - Main: The TV service has started successfully.
    [2013-08-07 19:30:21,308] [Log ] [MPMain ] [INFO ] - Main: TV service is in status Running - proceeding...
    On 4 August you have the delay because TV service was not started when MP was starting. TV service took about 13 seconds to start.
    [2013-08-04 21:59:13,890] [Log ] [MPMain ] [INFO ] - Main: TV service is stopped, so we try start it...
    [2013-08-04 21:59:30,460] [Log ] [4 ] [DEBUG] - Setting up EventWaitHandle with name: Global\MPTVServiceInitializedEvent
    [2013-08-04 21:59:43,746] [Log ] [TVService] [INFO ] - TV service: Started
    [2013-08-04 21:59:44,035] [Log ] [MPMain ] [INFO ] - TvService seems to be already starting up.
    [2013-08-04 21:59:44,035] [Log ] [MPMain ] [INFO ] - Main: The TV service has started successfully.
    [2013-08-04 21:59:44,035] [Log ] [MPMain ] [INFO ] - Main: TV service is in status Running - proceeding...
    When you try to start MP and the TV service at the same time (probably Windows is also still starting) then RAM runs out and Windows must use your HDD as swap memory... which is really slow. So, allow the TV service to start and W7 to load before you try to start MP.
     

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

    OP Similar threads Forum Replies Date
    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
    g0rsq Info box randomly popping up when watching TV or other video MediaPortal 2 Newcomers Forum 1
    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
    geotwticher TV Guide EPG Grabber for Australia 2020 RIP freepg.tv General 4
    azzuro [News] MediaPortal 1.24 Pre-Release ready for testing! News and Announcements 0
    M.Hulot Warum Blu-ray-Menü nicht anwendbar bei MediaPortal? Allgemeines Supportforum 5
    Similar threads

























    Top Bottom