Issue 3182: Flash consumes CPU even if audio or video is not playing,  
possibly due to SetUnhandledExceptionFilter
http://code.google.com/p/chromium/issues/detail?id=3182

New issue report by [EMAIL PROTECTED]:
What steps will reproduce the problem?
1. Open up a web page with 3/4 flash videos
2. Play then and then stop them all
3. Flash keeps consuming about 40% CPU.

What is the expected output? What do you see instead?
CPU usage should be less than 5% ideally 0. It is less in other Firefox and
Safari

During debugging this symptom, flash is often caught stuck in kernel32!
SetUnhandledExceptionFilter (which was calling kernel32!VirtualQuery
repeatedly) during the processing of WM_TIMERs.

cpu pointed out that: flash calls SetUnhandledExceptionFilter in our thread
constantly (looks like basically in every call). It never seems to set the
previous handler back (which we set to catch crashes by generating
minidumps and sending them to us). So what we do is wrap the entire thread
function in a SEH handler and in the _except block we reset the unhandled
exception filter back to us and re-throw the exception.

This could be a reason for SetUnhandledExceptionFilter taking longer than
usual.

Apparently, in flash 10, it doesn't call SetUnhandledExceptionFilter
anymore (needs to be verified). In that case we won't need to wrap the
exception filter.


Issue attributes:
        Status: Assigned
        Owner: [EMAIL PROTECTED]
        CC: [EMAIL PROTECTED],  [EMAIL PROTECTED],  [EMAIL PROTECTED],   
[EMAIL PROTECTED]
        Labels: Type-Bug Pri-2 OS-All Area-WebKit flash Plugins

-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Chromium-bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/chromium-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to