Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Status-Untriaged
New issue 5609 by
de...@surfly.com: python: Not reading from pipe causes
firefox to stuck
http://code.google.com/p/selenium/issues/detail?id=5609
I've experienced Firefox process to completely stuck when run through
selenium. The problem is that Firefox (on my machine) spits out a lot of
debugging information to stderr.
Selenium install a PIPE for stderr but does not bother to read from it (it
seems). Such when pipe buffer is filled, the whole process becomes stuck.
This patch fixes the problem at the expense of spewing a lot of garbage to
the terminal. The proper solution would be to redirect that data to
/dev/null
--- a/3rdparty/selenium/webdriver/firefox/firefox_binary.py
+++ b/3rdparty/selenium/webdriver/firefox/firefox_binary.py
@@ -69,11 +69,11 @@ class FirefoxBinary(object):
for cli in self.command_line:
command.append(cli)
- Popen(command, stdout=PIPE, stderr=STDOUT,
+ Popen(command,
env=self._firefox_env).communicate()
command[1] = '-foreground'
self.process = Popen(
- command, stdout=PIPE, stderr=STDOUT,
+ command,
env=self._firefox_env)
def _get_firefox_output(self):
Selenium version: 2.32.0
OS: Ubuntu 12.04
Browser: Firefox 20
Browser version: 20.0+build1-0ubuntu0.12.04.3
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings