High CPU Usage while Mediaportal is idle (1 Viewer)

karlostavitc

Portal Member
May 23, 2008
9
0
Home Country
As soon as I open mediaportal my CPU usage jumpos to 25-35% even when just left at idle on the first screen. This causes the skin animations and all visual displays including TV and Videos to appear choppy. Task manager reports that mediaportal.exe is using all reported CPU usage.

Previouisly I had noted that it was fine for 2-3mins then a cpu spike for 2-3 mins, before another cycle, but now it seems constant.

Any Ideas?






TV-Server Version:
MediaPortal Version: 1.0
MediaPortal Skin: Black Myst
Windows Version: XP SP3
CPU Type: Intel Core Quad Q6600
HDD: 1 x 250GB SATA
Memory: 4GB
Motherboard: Asus P5E-VM
Video Card: ASUS Nvidia 8800GS
Video Card Driver: NVIDIA GeForce 8800 GS V6.14.11.6923
Sound Card: Realtech HD Audio
Sound Card AC3:
Sound Card Driver:
1. TV Card: hauppauge WinTV-HVR-2200
1. TV Card Type:
1. TV Card Driver:
2. TV Card:
2. TV Card Type:
2. TV Card Driver:
3. TV Card:
3. TV Card Type:
3. TV Card Driver:
4. TV Card:
4. TV Card Type:
4. TV Card Driver:
MPEG2 Video Codec:
MPEG2 Audio Codec:
h.264 Video Codec:
Satelite/CableTV Provider:
HTPC Case: Antec Fusion II
Cooling:
Power Supply:
Remote: Logitech Harmony 525
TV: CRT
TV - HTPC Connection: Video In 1 x RCA
 

Paranoid Delusion

Moderation Manager
  • Premium Supporter
  • June 13, 2005
    13,062
    2,978
    Cheshire
    Home Country
    United Kingdom United Kingdom
    CPU MP.JPG

    Homescreen 1-2% cpu use here, check your plugins, possibly one of these producing such high cpu.

    What happens if you turn off in directshowfilter control\video renderer settings\vmr9 exclusive mode, any affect with that.

    EPG can also cause cpu to spike while loading any files.

    If none of these, you may have a borked system.
     

    karlostavitc

    Portal Member
    May 23, 2008
    9
    0
    Home Country
    Thx Paranoid, It works fine once I disable the MP-TVSeries plugin. On further inspection it appears that my TV Series Databas is currupt. When I try to empty it, I get a Currupt error and when I try to search and update it I get a repeating unable to find 'mediainfo.dll' error message.

    I re-copied the plugins files overwriting everything but I still get the error, is this related to a specific file or a container in the SQL2005 database? How would I repair it, or is this the wrong place to ask that question?
     

    Paranoid Delusion

    Moderation Manager
  • Premium Supporter
  • June 13, 2005
    13,062
    2,978
    Cheshire
    Home Country
    United Kingdom United Kingdom
    Hi

    If you open MP config "user files" is at the top, check the database folder, the tvseriesdatabase is there, just delete it.
     

    jonywee

    Portal Member
    September 7, 2007
    21
    19
    Home Country
    Netherlands Netherlands
    Same problem here. I've tried the following, all with no effect:
    - Disabled VMR9 exclusive mode
    - Disabled ALL modules
    - Updated video driver
    - Updated AMD processor driver
    - Removed all .db3 databases
    - Changed skin from BlueTwo to BlueTwo Wide
    - Set loglevel to debug

    The CPU usage is high right after startup and when idle. I observed a 15-20% CPU usage for hours. The majority of the CPU usage is shown as kernel time. The debuglog does not report anything after startup (when MP left idle). TV is running fine, but that's hardware accelerated.

    There is one case when MP does NOT have this high CPU: Start MP w/o fullscreen, Alt-Tab to another application and CPU drops to 0-2%. Alt-Tab back to MP and CPU is steady at 15-20% again.

    I'm pretty much out of ideas. Any suggestions? :confused:

    TV-Server Version: 1.0.0.0 RC 1
    MediaPortal Version: 1.0.0.0 RC 1
    MediaPortal Skin: BlueTwo
    Windows Version: XP Pro SP2
    CPU Type: AMD Athlon 64 3500+
    HDD: Samsung SP2004C 200GB + Maxtor OneTouch 500GB
    Memory: 1GB (2 x 512 DDR-SDRAM)
    Motherboard: Asus A8N8L
    Video Card: Nvidia GeForce 6150
    1. TV Card: Hauppauge PVR 150 MCE
    1. TV Card Type: Analog
    1. TV Card Driver: 2.0.43.24103
    Remote: MCE remote
     

    petsa

    MP Donator
  • Premium Supporter
  • January 23, 2007
    588
    15
    Stockholm
    Home Country
    Sweden Sweden
    Hi,

    I had a similar problem with CPU idling. It turned out to be a combo of being in Basic Home and having an ATUI gfx card. If I left the Home screen, e.g. went to Weather, CPU settled into a few %. Now I use a Nvidia card and I don't have any problem,

    Having said that I can see you are both using Nvidia cards. Do you have CPU idling when not in Home?

    /Peter
     

    jonywee

    Portal Member
    September 7, 2007
    21
    19
    Home Country
    Netherlands Netherlands
    Thank you Peter. I tested a dozen screens and CPU is hungry in all of them. Including Weather screen. TV screen uses 50% with TV off and 60% with TV on.

    Further investigation shows that the main thread is the busy one. With TaskInfo I managed to observe the callstacks for a while. Below are the only two callstacks that appear. Could this problem be releated to DirectX (because of module d3d9.dll in the callstack)? Or maybe MP is constantly JITting?
    I updated to DirectX 9.0c March 2008, but that did not help either. Some more clues?

    ==========

    Thread Start Address:
    Symbol Name: Line Number: PC:
    mscoree ! _CorExeMain() + 0x0 ------ 7900B183

    Thread Stack::
    Symbol: Line Number: PC:confused:tack Frame:
    ntdll ! KiFastSystemCallRet() + 0x0 ------ 7C90EB9413F00C
    mscorwks ! GetCLRFunction() + 0x10d4b ------ 79EF3DFF13F040
    mscorwks ! _CorExeMain() + 0xbba6 ------ 79FC51ED13F050
    mscorwks ! _CorExeMain() + 0xbb94 ------ 79FC51DB13F064
    mscorwks ! _CorExeMain() + 0xbb53 ------ 79FC519A13F0A0
    mscorwks ! _CorExeMain() + 0xbc54 ------ 79FC529B13F160
    System.Windows.Forms.ni + 441DBB ------ 7B411DBB13F208
    System.Windows.Forms.ni + B31A5 ------ 7B0831A513F284
    System.Windows.Forms.ni + B2FE3 ------ 7B082FE313F2B4
    System.Windows.Forms.ni + 992C2 ------ 7B0692C213F480
    mscorwks ! LogHelp_TerminateOnAssert() + 0x3433 ------ 79E7C74B13F490
    mscorwks ! LogHelp_TerminateOnAssert() + 0x33b4 ------ 79E7C6CC13F510
    mscorwks ! LogHelp_TerminateOnAssert() + 0x35c9 ------ 79E7C8E113F64C
    mscorwks ! LogHelp_TerminateOnAssert() + 0x346b ------ 79E7C78313F668
    mscorwks ! LogHelp_TerminateOnAssert() + 0x35f5 ------ 79E7C90D13F7E0
    mscorwks ! GetCLRFunction() + 0xc77c ------ 79EEF83013FA48
    mscorwks ! GetCLRFunction() + 0xd126 ------ 79EF01DA13FF18
    mscorwks ! _CorExeMain() + 0x14c ------ 79FB979313FF68
    mscorwks ! _CorExeMain() + 0x98 ------ 79FB96DF13FFB0
    mscoree ! _CorExeMain() + 0x30 ------ 7900B1B313FFC0
    KERNEL32 ! RegisterWaitForInputIdle() + 0x49 ------ 7C816FD713FFF0


    Thread Start Address:
    Symbol Name: Line Number: PC:
    mscoree ! _CorExeMain() + 0x0 ------ 7900B183

    Thread Stack::
    Symbol: Line Number: PC:confused:tack Frame:
    ntdll ! KiFastSystemCallRet() + 0x0 ------ 7C90EB9413EDB8
    KERNEL32 ! Sleep() + 0xf ------ 7C80245113EDC8
    d3d9 ! DebugSetLevel() + 0x500d ------ 4FD4003D13EE0C
    d3d9 ! DebugSetLevel() + 0x758b ------ 4FD425BB13EF74
    d3d9 ! DebugSetLevel() + 0xe856 ------ 4FD4988613F004
    d3d9 ! DebugSetLevel() + 0x15f1e ------ 4FD50F4E13F100
    ntdll ! NtQueryPerformanceCounter() + 0xc ------ 7C90E10E13F104
    KERNEL32 ! QueryPerformanceCounter() + 0x14 ------ 7C80A43B7C90E10E
    ntdll ! KiFastSystemCallRet() + 0x0 ------ 7C90EB947FFE0304
     

    karlostavitc

    Portal Member
    May 23, 2008
    9
    0
    Home Country
    Thx again paraoid,
    I have tried deleteing the TvSeries databse file but am having the same problem with the currupt database errors when I try to empy or update the TVSeries Database.

    Is it using a SQL Database?

    I have MS SQL 2005 Express edition, is there anyway to repair or remove the database from there so it can be recreated?

    I don't know much about sql and tried to browse through the tools available to no avail.
     

    Paranoid Delusion

    Moderation Manager
  • Premium Supporter
  • June 13, 2005
    13,062
    2,978
    Cheshire
    Home Country
    United Kingdom United Kingdom
    jonywee

    Could it be related to the Maxtor OneTouch 500GB being external drive, and constantly trying to refresh contents.

    karlostavitc

    DB is on its own, and should not be related to main db for TVServer, unless the files are showing in recorded TV.

    Make sure they do not have access to a shared folder, ie, both of above being able to access.
     

    karlostavitc

    Portal Member
    May 23, 2008
    9
    0
    Home Country
    Paranoid,
    Sorry, I don't really understand what you mean by stored on a shared folder. Actual movies and Tvseries are stored on a share on a file server however because its still in initial setup I haven't made any customisations to the TVserver yet. Would you mind clarifying.

    Thanks again
     

    Users who are viewing this thread

    Top Bottom