History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: SRC-225
Type: Bug Bug
Status: Closed Closed
Resolution: Duplicate
Priority: Major Major
Assignee: Dan Fabulich
Reporter: Godefroid Chapelle
Votes: 4
Watchers: 12
Operations

If you were logged in you would be able to see more operations.
Selenium Remote Control

on Mac OSX, Firefox hangs after server issues "Preparing Firefox profile..."

Created: 02/Feb/07 05:26 PM   Updated: 18/Nov/08 01:52 PM
Component/s: Launcher - Firefox, Launcher - Safari
Affects Version/s: 0.9.0, 0.9.2
Fix Version/s: None

Environment:
Mac OSX 10.4.8
Firefox 2.0.0.1


 Description  « Hide
When launching a test with python driver, Firefox is launched when server issues "Preparing Firefox profile..." but never gets killed.
If I kill it manually, the test moves on and succeed.

 All   Comments   Change History      Sort Order:
Peter Russell - 12/Feb/07 12:24 PM
I also see this issue with Firefox 2.0.0.1 on Ubuntu Edgy, whilst following the tutorial

Sam Keen - 04/Mar/07 05:22 PM
Not sure it you had this info
Like the others, I hang at

Extracting /customProfileDirCUSTFF to /tmp/customProfileDir979326
Preparing Firefox profile...

But If I close the firefox that Selenium opened I get

Launching Firefox...
Not handling: http://pear.php.net/selenium-server/core/jsunit/app/jsUnitCore.js?null
Mar 4, 2007 3:13:21 PM org.mortbay.util.Container start
INFO: Started HttpContext[/,/]
Browser 979326/:top sel_48149 posted START NEW
..........

And all seems fine after this.


Igor Artamonov - 07/Jun/07 07:43 AM
openSuSE 10.2
Firefox 2.0.0.2
selenium rc 0.9.0
unit tests from Java 1.6

After selenium.start() i see only:
Extracting /customProfileDirCUSTFF to /tmp/customProfileDirXXXXX
Preparing Firefox profile...

and nothing more, no new Firefox window after this...


Fabio Lin - 17/Jun/07 08:42 AM
I'm using Ubuntu Feisty with Firefox 2.0.0.4 and I have the same problem.

Carl Bray - 22/Jun/07 11:16 AM
The root cause of this problem is because the call to goQuitApplication() in kill.html doesn't kill Firefox so the exe.execute() method in FirefoxCustomProfileLauncher never returns.

Larry Edelstein - 03/Jul/07 01:42 PM
I get something very similar - Firefox 2.0.0.4, but on Windows XP Pro:

GET: cmd=getNewBrowserSession&1=*firefox&2=http%3A%2F%2Flocalhost%3A8080%2F
customProfileDir = C:\DOCUME~1\xxx\LOCALS~1\Temp\customProfileDir931425
Extracting /customProfileDirCUSTFF to C:\DOCUME~1\xxx\LOCALS~1\Temp\customProfileDir931425
Preparing Firefox profile...

Then, after a while:

11:39:13,187 WARN HttpConnection:780 - GET /selenium-server/driver/?cmd=getNewBrowserSession&1=*firefox&2=http%3A%2F%2Flocalhost%3A8080%2F HTTP/1.1
java.lang.RuntimeException: Firefox refused shutdown while preparing a profile
at org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher.waitForFullProfileToBeCreated(FirefoxCustomProfileLauncher.java:261)
at org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher.launch(FirefoxCustomProfileLauncher.java:135)
at org.openqa.selenium.server.browserlaunchers.AbstractBrowserLauncher.launchRemoteSession(AbstractBrowserLauncher.java:24)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.java:470)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:316)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:296)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:129)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
at org.mortbay.http.HttpServer.service(HttpServer.java:909)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
Caused by: org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher$FileLockRemainedException: Lock file still present! C:\DOCUME~1\LARRYE~1\LOCALS~1\Temp\customProfileDir931425\parent.lock
at org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher.waitForFileLockToGoAway(FirefoxCustomProfileLauncher.java:219)
at org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher.waitForFullProfileToBeCreated(FirefoxCustomProfileLauncher.java:259)
... 15 more


Dan Fabulich - 04/Jul/07 01:04 AM
Duplicate of SRC-216, fixed in latest snapshot

Ben Warner - 16/Jul/07 05:24 AM
I was stuck on this issue as well. I noticed that on the RC FAQ page, the last entry mentions a bug with FF2. He suggests using the lastest snapshot of RC, rather than the 9.0 version. I downloaded 9.2 and it all works now.

Howard - 19/May/08 06:19 PM
this still happens to me with:
Mac OSX 10.5
Firefox 3 Release Candidate 1

i've tried SRC 0.9.2 and SRC 1.0 Beta 1,
both have a reproducible error of hanging at "Preparing Firefox profile..."


cytoe - 28/May/08 01:18 PM
Also found this problem:

Windows Vista 32
Firefox 3 Release Candidate 1
SRC 1.0Beta1


Greg Stewart - 20/Jun/08 12:54 AM
Also wanted to add my comment that this is not working for me
Mac OSX 10.5
Firefox 3

Using SRC 1.0 Beta 1, as above it's hanging at "Preparing Firefox profile..." and killing the instance of FF manually starts the actual tests.


Judy - 25/Jun/08 06:14 PM
I've got this with Firefox 3 on XP - where the last Firefox 2 version was working perfectly.

Chris Milburn - 15/Jul/08 10:50 AM
We also have this 'Preparing Firefox profile' then hanging in a linux 2.6/Firefox 2.0.0.12 environment.
Ive even tried hacking out the defunct

chrome://killff/content/kill.html

command and replacing it with :-

chrome://global/content/dummyWindow.xul

with no success (this does shutdown firefox if run from the command line however)

tried 0.92, 1.0 Beta and the nightly build, all fail.


I also have this problem, on a Windows Server 2003, with Firefox 3.0.1.
Any ideas?

Just to note that I observed on Selenium Remote Control 1.0 beta-1.

dminik06 - 24/Jul/08 07:59 AM
Same problem. Firefox 3.0.x (vista) + Selenium RC 1.0 beta1 (also tried several nightly builds with no luck) results in exception as commented above. Failes after "Preparing Firefox profile..."

Naveed - 28/Jul/08 02:00 PM
I got this same issue using Firefox 3 (the default on Ubuntu) and Selenium RC 1.0 beta1. I used a workaround I found at http://www.alittlemadness.com/2008/05/01/selenium-on-ubuntu-hardy-heron/. Basically, I installed firefox2:
sudo apt-get install firefox-2
and I updated selenium test to point to this new browser:
*firefox /usr/lib/firefox/firefox-2-bin

Bryan - 29/Oct/08 10:50 AM
This issue says it was closed because it is a duplicate, but there is no reference to the other issue. Searching on the same information brings this issues up.

I am having the same issue on Firefox 3.0.3 on OSX.


Hugo Palma - 29/Oct/08 10:58 AM
I don't know what's the duplicate issue but i got it working by using the 1.0-SNAPSHOT version.

Bryan - 29/Oct/08 12:07 PM
1.0-SNAPSHOT fixed it for me as well. Thanks Hugo!