[JIRA] Created: (SRC-816) Browser session fails to start on Firefox 3.6

10 views
Skip to first unread message

Andy Belsky (JIRA)

unread,
Feb 5, 2010, 4:39:51 AM2/5/10
to selenium-deve...@googlegroups.com
Browser session fails to start on Firefox 3.6
---------------------------------------------

Key: SRC-816
URL: http://jira.openqa.org/browse/SRC-816
Project: Selenium Remote Control
Issue Type: Bug
Components: Launcher - Firefox, Server
Affects Versions: 1.0.1
Environment: Windows XP SP3; Windows Vista
Firefox 3.6
Reporter: Andy Belsky


Selenium server starts OK, but when trying to execute some tests the following error occures:

-------------------------------------------------------
20:21:28.334 INFO - Checking Resource aliases
20:21:28.349 INFO - Command request: getNewBrowserSession[*chrome, http://localhost:8080/konakart/, ] on session null
20:21:28.365 INFO - creating new remote session
20:21:29.802 INFO - Allocated session 0f8f5a8b5e9f4959a73efca935ea3dcf for http://localhost:8080/konakart/, launching...
20:21:30.162 INFO - Preparing Firefox profile...
20:22:05.397 ERROR - Failed to start new browser session, shutdown browser and clear all session data
java.lang.RuntimeException: Firefox refused shutdown while preparing a profile
at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeCreated(FirefoxChromeLauncher.java:311)
at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.populateCustomProfileDirectory(FirefoxChromeLauncher.java:106)
at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launch(FirefoxChromeLauncher.java:83)
at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launchRemoteSession(FirefoxChromeLauncher.java:350)
at org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession(BrowserSessionFactory.java:357)
at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:122)
at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:84)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.java:699)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:393)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:364)
at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:125)
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:820)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245)
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.FirefoxChromeLauncher$FileLockRemainedException: Lock file still present! C:\WINDOWS\customProfileDir0f8f5a8b5e9f4959a73efca935ea3dcf\parent.lock
at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFileLockToGoAway(FirefoxChromeLauncher.java:269)
at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeCreated(FirefoxChromeLauncher.java:309)
... 19 more
20:22:19.522 INFO - Got result: Failed to start new browser session: Unable to delete file C:\WINDOWS\customProfileDir0f8f5a8b5e9f4959a73efca935ea3dcf\parent.lock on session null
java.lang.RuntimeException: Could not start Selenium session: Failed to start new browser session: Unable to delete file C:\WINDOWS\customProfileDir0f8f5a8b5e9f4959a73efca935ea3dcf\parent.lock
at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:89)
at launcher.TestRunner.startSelenium(TestRunner.java:155)
at launcher.TestRunner.run(TestRunner.java:128)
at launcher.TestRunner.run(TestRunner.java:101)
at launcher.TestRunner.main(TestRunner.java:249)
Caused by: com.thoughtworks.selenium.SeleniumException: Failed to start new browser session: Unable to delete file C:\WINDOWS\customProfileDir0f8f5a8b5e9f4959a73efca935ea3dcf\parent.lock
at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:91)
at com.thoughtworks.selenium.HttpCommandProcessor.getString(HttpCommandProcessor.java:262)
at com.thoughtworks.selenium.HttpCommandProcessor.start(HttpCommandProcessor.java:223)
at com.unitedinternet.portal.selenium.utils.logging.LoggingCommandProcessor.start(LoggingCommandProcessor.java:269)
at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:81)
... 4 more

-------------------------------------------------------

Works fine on Firefox 3.5.3

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.openqa.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


Andy Belsky (JIRA)

unread,
Feb 5, 2010, 4:57:50 AM2/5/10
to selenium-deve...@googlegroups.com

[ http://jira.openqa.org/browse/SRC-816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19310#action_19310 ]

Andy Belsky commented on SRC-816:
---------------------------------

And the same error occures with FF 3.6 on XP SP2.

Alain Camus (JIRA)

unread,
Feb 10, 2010, 7:41:38 AM2/10/10
to selenium-deve...@googlegroups.com

[ http://jira.openqa.org/browse/SRC-816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19336#action_19336 ]

Alain Camus commented on SRC-816:
---------------------------------

I get this error with Selenium Grid, when trying to do the demo like in http://selenium-grid.seleniumhq.org/run_the_demo.html

The solution mentionned on [http://selenium-grid.seleniumhq.org/faq.html|http://selenium-grid.seleniumhq.org/faq.html#when_starting_firefox_i_get_java_javalangruntimeexception_firefox_refused_shutdown_while_preparing_a_profile] doesn't help. Even after killing all firefox, deleting all customProfileDir's folders and rebooting, the demo gives four times the same error (each session blocking itself).

Selenium Grid 1.0.4, Windows XP SP2, Firefox 3.6

Alain Camus (JIRA)

unread,
Feb 10, 2010, 8:25:39 AM2/10/10
to selenium-deve...@googlegroups.com

[ http://jira.openqa.org/browse/SRC-816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19337#action_19337 ]

Alain Camus commented on SRC-816:
---------------------------------

Tried RC (1.0.1) again, and got the same error on a test that worked yesterday. The only changes I see is that I tried Selenium Grid and messed with the customProfileDir's folders.
{code}
14:16:18.736 INFO - Command request: getNewBrowserSession[*firefox, http://vm-wwwdevel/, ] on session null
14:16:18.736 INFO - creating new remote session
14:16:18.736 INFO - Allocated session 3db6c79ba88e47b0b63d75690426164a for http://vm-wwwdevel/, launching...
14:16:18.861 INFO - Preparing Firefox profile...
14:16:40.427 ERROR - Failed to start new browser session, shutdown browser and clear all session data


java.lang.RuntimeException: Firefox refused shutdown while preparing a profile

at [...]
Caused by: org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher$FileLockRemainedException: Lock file still present! C:\DOCUME~1\aca\LOCAL
S~1\Temp\customProfileDir3db6c79ba88e47b0b63d75690426164a\parent.lock


at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFileLockToGoAway(FirefoxChromeLauncher.java:269)
at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeCreated(FirefoxChromeLauncher.java:309)

... 20 more
14:16:52.700 INFO - Got result: Failed to start new browser session: Unable to delete file C:\DOCUME~1\aca\LOCALS~1\Temp\customProfileDir3db6c79ba88e4
7b0b63d75690426164a\parent.lock on session null
{code}

Alain Camus (JIRA)

unread,
Feb 10, 2010, 8:57:39 AM2/10/10
to selenium-deve...@googlegroups.com

[ http://jira.openqa.org/browse/SRC-816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19338#action_19338 ]

Alain Camus commented on SRC-816:
---------------------------------

I finally remembered I already solved this yesterday for Selenium RC by applying http://www.qaautomation.net/?p=15
I also applied it on selenium-grid-1.0.4\vendor\selenium-server-1.0.1.jar, and Selenium Grid demo works smoothly.

Patrick Lightbody (JIRA)

unread,
Feb 23, 2010, 1:22:38 PM2/23/10
to selenium-deve...@googlegroups.com

[ http://jira.openqa.org/browse/SRC-816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Patrick Lightbody updated SRC-816:
----------------------------------

Assignee: Patrick Lightbody
Fix Version/s: 1.0.3

> Browser session fails to start on Firefox 3.6
> ---------------------------------------------
>
> Key: SRC-816
> URL: http://jira.openqa.org/browse/SRC-816
> Project: Selenium Remote Control
> Issue Type: Bug
> Components: Launcher - Firefox, Server
> Affects Versions: 1.0.1
> Environment: Windows XP SP3; Windows Vista
> Firefox 3.6
> Reporter: Andy Belsky

> Assignee: Patrick Lightbody
> Fix For: 1.0.3

Patrick Lightbody (JIRA)

unread,
Feb 23, 2010, 1:26:38 PM2/23/10
to selenium-deve...@googlegroups.com

[ http://jira.openqa.org/browse/SRC-816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19376#action_19376 ]

Patrick Lightbody commented on SRC-816:
---------------------------------------

See release announcement:

http://seleniumhq.wordpress.com/2010/02/23/selenium-1-0-3-released/

> Browser session fails to start on Firefox 3.6
> ---------------------------------------------
>
> Key: SRC-816
> URL: http://jira.openqa.org/browse/SRC-816
> Project: Selenium Remote Control
> Issue Type: Bug
> Components: Launcher - Firefox, Server
> Affects Versions: 1.0.1
> Environment: Windows XP SP3; Windows Vista
> Firefox 3.6
> Reporter: Andy Belsky

> Assignee: Patrick Lightbody
> Fix For: 1.0.3
>
>

Patrick Lightbody (JIRA)

unread,
Feb 23, 2010, 1:24:42 PM2/23/10
to selenium-deve...@googlegroups.com

[ http://jira.openqa.org/browse/SRC-816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Patrick Lightbody resolved SRC-816.
-----------------------------------

Resolution: Fixed

> Browser session fails to start on Firefox 3.6
> ---------------------------------------------
>
> Key: SRC-816
> URL: http://jira.openqa.org/browse/SRC-816
> Project: Selenium Remote Control
> Issue Type: Bug
> Components: Launcher - Firefox, Server
> Affects Versions: 1.0.1
> Environment: Windows XP SP3; Windows Vista
> Firefox 3.6
> Reporter: Andy Belsky

> Assignee: Patrick Lightbody
> Fix For: 1.0.3
>
>

Reply all
Reply to author
Forward
0 new messages