Automatically recover from crashing web plugin

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
plind
New Cone
New Cone
Posts: 8
Joined: 02 Apr 2013 23:03

Automatically recover from crashing web plugin

Postby plind » 21 Apr 2013 15:18

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Automatically recover from crashing web plugin

Postby Jean-Baptiste Kempf » 22 Apr 2013 12:39

DO you have any idea about the memory used at crash time?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

plind
New Cone
New Cone
Posts: 8
Joined: 02 Apr 2013 23:03

Re: Automatically recover from crashing web plugin

Postby plind » 22 Apr 2013 19:31

@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?

plind
New Cone
New Cone
Posts: 8
Joined: 02 Apr 2013 23:03

Re: Automatically recover from crashing web plugin

Postby plind » 22 Apr 2013 22:25

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Automatically recover from crashing web plugin

Postby Jean-Baptiste Kempf » 23 Apr 2013 14:51

I don't know.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

fretless
New Cone
New Cone
Posts: 2
Joined: 07 Oct 2014 10:38

Re: Automatically recover from crashing web plugin

Postby fretless » 07 Oct 2014 10:43

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();
}
}


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 12 guests