i-rinat / freshplayerplugin

ppapi2npapi compatibility layer
MIT License
726 stars 52 forks source link

Certain Flash heavy sits like Twitch.tv may stop downloading after a period of time. #257

Open Zombie-Ryushu opened 9 years ago

Zombie-Ryushu commented 9 years ago

Certain Flash heavy sits like Twitch.tv may stop downloading after a period of time. When this happens I have to navigate away from the page, and navigate back to the page again. Then playback resumes. I've determined this is not a connectivity issue, HTML5 streams are not affected,.

i-rinat commented 9 years ago

How long usually it takes to reproduce the issue?

Zombie-Ryushu commented 9 years ago

Around 10 or 15 minutes. It can vary.

i-rinat commented 9 years ago

Tried to reproduce that behavior several times for about a hour each, but with no success. Translation still works.

(Often I'm starting to reproduce bugs just after I write that I can't do that. :-) )

Zombie-Ryushu commented 9 years ago

I'm just going to have to keep trying to reproduce things. I have a Stack trace of FireFox itself that may be a flaw in FreshPlayerPlugin related. http://bugs.rosalinux.ru/show_bug.cgi?id=5449

i-rinat commented 9 years ago

At the time of writing, the only comment on http://bugs.rosalinux.ru/show_bug.cgi?id=5449#c6, comment 6 had stack trace. And that stack trace looks like Firefox main process.

Firefox uses separate process to host plugins. Main process spawns plugin-container, which in turn loads NPAPI plugin. Plugin container then talks to Firefox and passes data back and forth. That helps to achieve the goal: crash in a plugin affects only plugin container process, and doesn't touch browser itself. That's the case where you see something like that:

Firefox plugin crash

So since that was not plugin-container process, I don't see how any code from plugin could cause the bug.

Zombie-Ryushu commented 9 years ago

I understand.

Zombie-Ryushu commented 9 years ago

[733638.286902] Chrome_ChildThr[16895]: segfault at 0 ip 00007fbc9effb01c sp 00007fbc971fa610 error 6 in libmozalloc.so[7fbc9effa000+2000] [792225.552920] Chrome_ChildThr[30919]: segfault at 0 ip 00007fd92465701c sp 00007fd91c7fa610 error 6 in libmozalloc.so[7fd924656000+2000] [846717.910977] Chrome_ChildThr[14766]: segfault at 0 ip 00007fe944f4201c sp 00007fe93d0fa610 error 6 in libmozalloc.so[7fe944f41000+2000] [981496.954368] Chrome_ChildThr[19621]: segfault at 0 ip 00007fbe80ed501c sp 00007fbe790fa610 error 6 in libmozalloc.so[7fbe80ed4000+2000] [1119254.930007] Chrome_ChildThr[12673]: segfault at 0 ip 00007f997492b01c sp 00007f996cafa610 error 6 in libmozalloc.so[7f997492a000+2000] [1158112.341774] Chrome_ChildThr[22234]: segfault at 0 ip 00007fda83e6201c sp 00007fda7bffa610 error 6 in libmozalloc.so[7fda83e61000+2000] [1247169.157847] Chrome_ChildThr[9920]: segfault at 0 ip 00007f83f65d301c sp 00007f83ee7fa610 error 6 in libmozalloc.so[7f83f65d2000+2000] [1280614.647137] plugin-containe[7416]: segfault at 7fe187c679e0 ip 00007fe187c679e0 sp 00007fe184f9abc0 error 14 [1290855.909227] Chrome_ChildThr[14273]: segfault at 0 ip 00007f4d6d8ac01c sp 00007f4d65afa610 error 6 in libmozalloc.so[7f4d6d8ab000+2000] [1290855.915775] Chrome_ChildThr[15887]: segfault at 0 ip 00007f550c3fc01c sp 00007f55045fa610 error 6 in libmozalloc.so[7f550c3fb000+2000]

I'm grasping at straws here.

i-rinat commented 8 years ago

I don't look Twitch translation often. Some tests I made didn't reveal the bug on my machine. Looking at the code didn't reveal anything either, so I can't fix it. Maybe someone could help to fix the bug.