Like many people before myself, I'm having problems with Flash bringing down an entire CPU core (specifically, one of the threads is always using up 100% CPU).
Flash is probably running on more than 1 page (I'm using a lot of tabs), but what seemed to start this CPU usage was a bit after I started streaming a movie. That worked fine for a while, but at some point playback started skipping so I decided to investigate.
I've tried investigating through CPU sampling using Xcode's Instruments.app, and what I've found odd by walking down the sampled call stack is that about 80% of the CPU usage seemed fishy, and was due to exactly 4 recursive calls for NP_Initialize
(see picture for one of the 2 call sites where this happened).
Both sites where this is happening (and not much else?) are inside the stack tree of 0x10fb8ec66 > 0x10fb93947
(in this sample). I'm also attaching the trace.
and
I thought this is unnatural, especially because from what I've read about NPAPI, NP_Initialize
is meant to be called by the browser only once. So anyone care to venture a suggestion as to why this happens?
I'm using the latest Firefox Beta 20.0 on OSX Mountain Lion 10.8.2, and my version of Shockwave Flash is 11.6.602.167.
Instruments trace at http://www.sendspace.com/file/h12wte