Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

WebDriver: Plugin Container for Firefox has stopped working. #3314

Closed
lukeis opened this issue Mar 3, 2016 · 21 comments
Closed

WebDriver: Plugin Container for Firefox has stopped working. #3314

lukeis opened this issue Mar 3, 2016 · 21 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 3, 2016

Originally reported on Google Code with ID 3314

What steps will reproduce the problem?

 1. The following Java codes which display a PDF file using Adobe Reader plugin are
executed. 
        FirefoxDriver webDriver = new FirefoxDriver();
        webDriver.get("file://c:/work/sample.pdf");
        Thread.sleep(5000);
        webDriver.quit();

 2. The execution is repeated. 

What is the expected output? What do you see instead?

I expected that Firefox would be completed normally. 
However, in almost all cases, a window then pops up and says Plugin Container for Firefox
has stopped working.

Selenium version: 2.10.0
OS: Windows Vista Business SP2
Browser: Firefox
Browser version: 7.0.1

Reported by testplatform-contact@nri.co.jp on 2012-02-01 06:42:23

@lukeis lukeis self-assigned this Mar 3, 2016
@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

I supplement. 
When it is operated manually, it ends normally. 

Reported by testplatform-contact@nri.co.jp on 2012-02-02 00:47:48

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by barancev on 2012-05-11 19:04:55

  • Labels added: Component-WebDriver, Browser-Firefox

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

seeing this as well w/ selenium 2.24.1 and firefox 12 on windows vista

Reported by Jay.Springfield on 2012-07-17 17:25:56

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Noticed the same, any update on this ?

Reported by rdekleijnaspider on 2012-09-14 11:31:13

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

I had noticed it earlier. now i notice it on a very consistent basis.
selenium version: 2.31
OS: Windows 7 Professional N
Browser: Firefox 19.0

Reported by jayeshpatil on 2013-03-19 23:33:03

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Any workarounds for this one?

Reported by jayeshpatil on 2013-03-19 23:33:45

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Hi!

Is this issue still reproduced? I can not reproduce it at my win7, ff20, selenium 2.32.
Test code and test pdf exsample are attached.

If it's still presented please provide test scenario and test input (pdf file) with
which error is occured.
Also please check pdf plugin is updated to last version.

But i'm not sure that selenium could and will do anything if error is inside FF pdf
plugin or ff.


Reported by a.u.savchuk on 2013-05-07 11:49:13

  • Status changed: NeedsClarification

- _Attachment: [t.py](https://storage.googleapis.com/google-code-attachments/selenium/issue-3314/comment-7/t.py)_ - _Attachment: [test.pdf](https://storage.googleapis.com/google-code-attachments/selenium/issue-3314/comment-7/test.pdf)_

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Thank you for the answer. 
I check, after upgrading selenium to a new version. 

Reported by testplatform-contact@nri.co.jp on 2013-05-09 01:50:40

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Closing due to inactivity. Please ask to reopen if the issue is still actual.

Reported by barancev on 2013-08-15 16:31:39

  • Status changed: Fixed

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Hello,

This issue seems to appear with Firefox 30 and Selenium-server 2.42.2. After closing
the browser using driver.close() / driver.quit() a pop up appears on the screen with
the following message - "Plugin container for firefox has stopped working".

Environment information : Windows 7
Firefox : 30.0
Selenium server : 2.42.2

The issue is not reproducible with Firefox 29.0.1 and Selenium server 2.42.2

Reported by Stanoev.Nikolay on 2014-06-12 13:35:17

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

The problem is not only with pdf, I got the same problem with a flash plugin.

Environment information : Windows 7 (64-bit)
Firefox : 30.0
Selenium server : 2.41.0

Reported by fbommeli on 2014-06-17 07:29:15

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

I found this with Firefox 30 and Selenium 2.42.2 as well.  What is complaining is the
plugin container in Firefox, which at webdriver shutdown cannot stop all the plugins
it needs to.  After a good deal of too-ing and fro-ing I discovered that the Flash
plugin in Firefox was preventing a clean shutdown of the plugin container.

After disabling the Flash plugin, then the webdriver shuts down as expected.

With the debugger on and stepping through the FirefoxDriver code in the quit method,
it looks like a timing thing.  Basically, the plugin container in firefox hasn't fully
gone before the parent webdriver is no longer there (it seems to me).  If you place
break points in the quit method, hang around a bit, then step through, all things work
as expected, as the plugin container has time to die before the web driver does.

So, at present, either only ever run the Firefox webdriver with debug points in the
driver quit method, or deactivate the flash plugin.

There may be other plugins that cause the behaviour observed, so see (by turning them
on or off)

Reported by jimmer.ball on 2014-06-18 10:35:26

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Got the same problem with:

Environment information : Windows 7 (64-bit)
Firefox : 30.0
Selenium server : 2.42.2

Using following solution for now:

//driver.quit();
Runtime.getRuntime().exec("taskkill /F /IM firefox.exe");
Thread.sleep(5000);
Runtime.getRuntime().exec("taskkill /F /IM plugin-container.exe");
Runtime.getRuntime().exec("taskkill /F /IM WerFault.exe");

Reported by PSBBel on 2014-06-18 10:47:08

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Got the same problem with:

Environment information : Windows 7 (64-bit)
Firefox : 30.0
Selenium server : 2.41.0

Using following solution for now (to disable Flash):

    // http://serverfault.com/a/447214
    profile.setPreference("plugin.state.flash", 0);

Reported by PaulGrime on 2014-06-29 14:43:20

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

got the same problem with:
Environment information : Windows 7 (64-bit)
Firefox : 30.0
Selenium server : 2.39.0

Reported by ranjitargautam on 2014-07-17 07:37:36

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

please re-open issue, as it is present again.

Reported by alejandro.moncayo@studentuniverse.com on 2014-07-18 13:30:32

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

See issue 7506

Reported by barancev on 2014-07-18 13:44:24

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

The same problem with,

Environment information : Windows 7 (64-bit)
Firefox : 30.0
Selenium server : 2.42.2

Reported by shilu.s.s on 2014-07-31 07:41:28

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

It is a new issue in FF30, see https://code.google.com/p/selenium/issues/detail?id=7506#c11

Reported by barancev on 2014-07-31 07:45:37

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Found a solution:

Go to \\Program Files (x86)\Mozilla Firefox\

find plugin-container.exe

delete or rename it!

Cheers!

Reported by dimapetrisor on 2014-09-09 15:06:50

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by luke.semerau on 2015-09-17 18:14:47

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 3, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant