davidben / nspluginwrapper

A cross-platform NPAPI plugin viewer
http://nspluginwrapper.org
GNU General Public License v2.0
23 stars 10 forks source link

Clicking the next video button on hulu sometimes hangs #25

Open davidben opened 13 years ago

davidben commented 13 years ago

Not yet sure what's going on, and it's not completely reproducible. There does appear to be a race involved; the viewer is waiting for an SYNC_ACK to begin its event loop, but the wrapper had other work to do and never returns to its event loop for some reason.

davidben commented 13 years ago

Actually, the block seems to be that the viewer's requested an NPN_GetProperty as a response to the NPP_NewStream (probably Chromium-level interleaving) and never gets a response. Possibly some sort of deadlock involving changing window.location (the property being accessed) so deep in the stack.

davidben commented 13 years ago

Looking at hulu's javascript, it appears they make a synchronous ajax request after calling closeApp. It's possible this call is taking too long or (more likely) deadlocking. Should reproduce this on a Chromium build with debug symbols to figure out what the browser's waiting on.