MovingPictures plugin cause 100% CPU usage (1 Viewer)

acidmic

Portal Member
November 16, 2010
8
0
Hello All!

If got some problems with MovingPictures plugin since a month or two. If i start MediaPortal the process cause 100% CPU usage on one core. I've figured out that this problem is in conjunction with MovingPictures. If I disable the MovingPictures Plugin anything is fine. I'm using MovingPictures within the StreamedMP package.

Process Explorer shows this thread within MP which is causing the heavy usage:
mscorwks.dll!CreateApplicationContext+0x44c3

Stack Trace:
ntoskrnl.exe!SeAccessCheckWithHint+0xb4a
ntoskrnl.exe!KeAcquireSpinLockAtDpcLevel+0x7d2
ntoskrnl.exe!KeWaitForMutexObject+0x19f
ntoskrnl.exe!PsIsSystemProcess+0x94
ntoskrnl.exe!KeStackAttachProcess+0x11c1
ntoskrnl.exe!ObReferenceObjectByPointerWithTag+0x233
ntdll.dll!RtlInitUnicodeString+0x202
MediaInfo.dll!MediaInfo_Info_Version+0x11af7b
MediaInfo.dll!MediaInfo_Info_Version+0x113874
MediaInfo.dll!MediaInfo_Info_Version+0x11af7b
ntdll.dll!RtlInitUnicodeString+0x202
ntdll.dll!RtlFreeHeap+0x7e
MediaInfo.dll!MediaInfo_Info_Version+0x1af922
MediaInfo.dll!MediaInfo_Info_Version+0x11b822
MediaInfo.dll+0x1212
MediaInfo.dll!MediaInfo_Info_Version+0x24e74
MediaInfo.dll!MediaInfo_Info_Version+0x112a04
MediaInfo.dll!MediaInfo_Info_Version+0x11c770
MediaInfo.dll!MediaInfo_Info_Version+0x46d7f
MediaInfo.dll!MediaInfo_Info_Version+0x46d91
MediaInfo.dll!MediaInfo_Info_Version+0x46e43
MediaInfo.dll!MediaInfo_Info_Version+0x3f1d5
MediaInfo.dll!MediaInfo_Info_Version+0x462a6
MediaInfo.dll!MediaInfo_Info_Version+0xbdc09
MediaInfo.dll!MediaInfo_Info_Version+0x481ae


If I open the MovingPictures config in MP configuration I've got also 100% cpu usage!
Same process thread:
mscorwks.dll!CreateApplicationContext+0x44c3

Stack Trace:
ntoskrnl.exe!SeAccessCheckWithHint+0xb4a
ntoskrnl.exe!KeAcquireSpinLockAtDpcLevel+0x7d2
ntoskrnl.exe!KeWaitForMutexObject+0x19f
ntoskrnl.exe!PsIsSystemProcess+0x94
ntoskrnl.exe!KeStackAttachProcess+0x11c1
ntoskrnl.exe!ObReferenceObjectByPointerWithTag+0x233
MediaInfo.dll!MediaInfo_Info_Version+0x1b2baa
MediaInfo.dll!MediaInfo_Info_Version+0x1aea1e
MediaInfo.dll!MediaInfo_Info_Version+0x98c
MediaInfo.dll!MediaInfo_Info_Version+0x113874
MediaInfo.dll!MediaInfo_Info_Version+0x1ae92e
ntdll.dll!RtlFreeHeap+0x7e
MediaInfo.dll!MediaInfo_Info_Version+0x1af922
MediaInfo.dll!MediaInfo_Info_Version+0x1af941


If i exit MP or MP Configuration the process is still active in background without a window.

I've tried different StreamedMP versions and also tried latest beta release (1.1.1.1148) of MovingPictures as standalone installation. No effect.

Find attached my logfiles with debug accuracy.

PLEASE HELP ME! I love MovingPictures and can't use it anymore!

My system basic data:
MP 1.1.1.0
StreamedMP 1.4.3.2245
Win7 X64 Ultimate
4GB RAM
AMD Opteron 1212
ATI Radeon HD 4550 HDMI
Terratec Cynergi C PCI

I've also started a thread in german forum but no reason since today: https://forum.team-mediaportal.com/skins-485/immer-100-cpu-last-mit-streamedmp-89516/
 

g0rsq

Portal Member
August 18, 2010
45
3
Home Country
United Kingdom United Kingdom
I had similar problem after first trying moving pictures.

Found problem by checking task manager/ Performance/resource monitor, and checking for what was hogging the cpu.

I also checked the disc activity, and found moving pictures was hogging this also, constantly accessing several movie files.

Problem was that I had several movies recorded from Media center before changing to mediaportal, and these were causing the problem.

Moved these files out of the media portal movie folder, and no more CPU hogging, or disc activity hogging.

Maybe worth trying to remove any recently added movies, and see if the behaviour returns to normal.

regards

Peter
 

acidmic

Portal Member
November 16, 2010
8
0
AW: MovingPictures plugin cause 100% CPU usage

Wow! Man! You're the greatest!

A look in Process Explorer handle list told me that MovingPictures has a permanent handle on one movie! I've moved this movie out of the directory and anything is fine now!

Thanks a lot for your help!

Michael

:)
 

g0rsq

Portal Member
August 18, 2010
45
3
Home Country
United Kingdom United Kingdom
Glad I was some help

I am normally the one recieving such help on these forums!

:oops:
 

MacGyverek

Portal Pro
January 27, 2010
144
23
Rydułtowy
Home Country
Poland Poland
Please help me...I have the same problem. But please explain me how check a problem and where move folder. I don't uderstand how do that...
 

g0rsq

Portal Member
August 18, 2010
45
3
Home Country
United Kingdom United Kingdom
In my case the problem was with one of the movies in the folder that MyMovies scans.

Two ways to find and fix problem.

1 Move all your movies out of the folder that MyMovies is looking in (check configuration of MyMovies for which folder, or folders it is looking in). Then one by one put the movies back untill you find one that causes the problem.

If you have a lot of movies this can be difficult and take a long time.

2 Use windows "Resource Monitor" and look at disk activity. This should tell you what files are being written to your disk at any time. You look for the one with most activity, and this should be the file name of one of your movies.

This might only be possible in Windows 7

When you find the bad movie, just move it out of the folder MyMovies is scanning.

Also think if you have added any movies recently? My problem was caused by movies recorded in Windows Media Center, and added to the MyMovies folder.
 

RoChess

Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    Or download 3rd party tools that do the same.

    SysInternals, now part of Microsoft still offers all their awesome tools for download.

    ProcExp = Process Explorer allows you to see what filehandles a program still has a lock on, and you can also unlock them without rebooting. I use this a lot when I'm unable to delete a file or folder, because explorer.exe or some other process did not release the handle properly.

    Start the program progexp.exe, goto Find -> "Find Handle or DLL..." -> type in the foldername that matches your import folder, for example "Movies" and press Enter.

    In the list below you will see something like:

    explorer.exe 3396 handle D:\Movies\blabla.avi

    double click that entry, so you are taken to the actual handle, then right click in the bottom on the handle and select "close handle", this will give a warning telling you the risks involved and then it will kill the handle. This will release the lock and you are good to go.

    In your case however you want to keep an eye on what DLL is doing the lock, perhaps it is the mediainfo.dll one to scan the metadata, or whatever else. Or simply find out what the problematic movie is, so you can take it out of the import folders. Usually the problem can be permanently fixed by remuxing the file.
     

    Users who are viewing this thread

    Top Bottom