Page 1 of 1

Automatically recover from crashing web plugin

Posted: 21 Apr 2013 15:18
by plind
Hi,

I want to leave Chrome (26.0.1.1410.43) with the VLC 2.0.6 Web Plugin running for an extended period of time (showing a network stream). However, after an undetermined number of hours, the plugin always crashes. This is on Windows 7, 64 bit. I'm using VLC 2.0.6 32 bit. This also happens with Firefox 20.

It would be great if the plugin would never crash, obviously. But a workaround would be to have Chrome (or Firefox) automatically restart when the plugin crashes. Does anyone know if and how this can be done?

Thanks, Pascal

Re: Automatically recover from crashing web plugin

Posted: 22 Apr 2013 12:39
by Jean-Baptiste Kempf
DO you have any idea about the memory used at crash time?

Re: Automatically recover from crashing web plugin

Posted: 22 Apr 2013 19:31
by plind
@Jean-Baptiste, I haven't seen the memory usage at crash time. I just checked the session that has been running since 1.5 hours so far and I did indeed find an ever increasing memory usage of the plugin. It was at 200MB and going "2 steps forward 1 step back" in memory allocation. I will keep an eye on the usage and try to see when it crashes.

Do you think this is a bug?

Re: Automatically recover from crashing web plugin

Posted: 22 Apr 2013 22:25
by plind
Hmmm... hang on. Memory does not seem to increase that much anymore beyond the 210MB. I'll keep monitoring and let you know if I find anything.

In the meantime... you wouldn't know if I can have Chrome or Firefox auto restart or auto crash when the plugin crashes, would you?

Th, Pascal

Re: Automatically recover from crashing web plugin

Posted: 23 Apr 2013 14:51
by Jean-Baptiste Kempf
I don't know.

Re: Automatically recover from crashing web plugin

Posted: 07 Oct 2014 10:43
by fretless
What about a javascript function like this?

function showVlcState(){
try {
if(vlc.input.state == 7)
{location.reload()}
else if(vlc.input.state == 3)
//
}
catch(err) {
location.reload();
}
}