"100%" CPU-Load (1 Viewer)

mts

Portal Pro
September 2, 2007
317
25
Home Country
Germany Germany
Hi,

I used your plugin for years now and was very happy with it, but now suddenly it nearly freezes my MP.
One core is at 100%. When I open the movingPictures configDialog I run into the same problem.
Unfortunately I don't see any log or something to find the error.

Maybe there is a corrupt movie-file in a watched folder, but I have over 500 movies in there so I don't know how to find it.
 

Marvman

Retired Team Member
  • Premium Supporter
  • November 14, 2007
    1,163
    735
    Bavaria
    Home Country
    Germany Germany
    That is exactly the same I had with TVSeries yesterday. My DB-file was corrupted, to bad that the SQLite don't support a repair.

    Try this:

    d:\sqlite3.exe d:\old.db .dump | d:\sqlite3.exe d:\newdb.db

    and replace the existing one (backup it before!!!)

    you need sqlite3 tool http://www.sqlite.org/sqlite-3_7_2.zip
     

    mts

    Portal Pro
    September 2, 2007
    317
    25
    Home Country
    Germany Germany
    AW: "100%" CPU-Load

    I don't think this is my problem, because I already tried to restore to a backup I made a few days before.
    I even deleted my DB and the problem is still there.

    I found the problem. I have checked my latest recordings and was able to find the file.
    But I can play the movie without any problems. So there must be something else corrupted.

    One thing is quite strange: After terminating and reopening the configuration.exe the movie is imporeted, but I have 100% CPU-Load again.

    The movie gets correctly detected but it hangs on "Retriebing media information".
    So whatever happens after ""Retriebing media information" has a problem!
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    Re: AW: "100%" CPU-Load

    So whatever happens after ""Retriebing media information" has a problem!

    That is MediaInfo.DLL related. It is a seperate project to get information from a mediafile, and it is constantly being updated to fix problems. It can sometimes take extreme long times to read the file to get all the information. I had delays of 120seconds at one point, and this has been corrected by the MediaInfo developer because it required to pass on an extra parseSpeed parameter. You will have to wait for MediaPortal v1.1.1 to get the fix, and it also has to be coded into MovingPictures and MP-TVSeries as they use their own implementation for importing.

    That only fixes one problem, which I happened to luck into with the right AVI file and steps to repoduce and report problem to MediaInfo developers. There are however countless of different reasons that things can fail, and yours might be for other reasons. So if your problem is new, then help them fix it.

    As a workaround you can just remove the offending file or disable the MediaInfo retrieval. To do so, just delete every MediaInfo.DLL file you got in all your Team MediaPortal folders (make a backup of course, just store it on desktop or something).
     

    mts

    Portal Pro
    September 2, 2007
    317
    25
    Home Country
    Germany Germany
    AW: "100%" CPU-Load

    To prevent MP from freezing:
    Just get the mediafile-info in a seperate thread, so you can skip it for a file after a timeout.

    I would upload the "problem-file" but it has ca. 4GB.
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    Re: AW: "100%" CPU-Load

    I would upload the "problem-file" but it has ca. 4GB.

    The actual problem is more then likely contained in the first few kB's of the file, as that is where all the header information is located. There are many tools available that allow you to generate a smaller 'sample' of the same file that might still contain the problem. And you can also debug the issue more by using the full MediaInfo GUI application, which has extra options.

    If nobody takes the time to find out the cause of a problem and help developers, then there might never come a solution.
     

    Users who are viewing this thread

    Top Bottom