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

Key: SRC-494
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Stefan Scheidt
Votes: 11
Watchers: 11
Operations

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

RC can't start Firefox 3 browser session

Created: 26/Jun/08 10:14 AM   Updated: Today 01:28 PM
Component/s: Launcher - Firefox
Affects Version/s: 1.0 beta 1
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. Zip Archive customProfileDira84a069eecdc40ae941d8e77e1126146.zip (7 kb)
2. Text File Selenium.log (16 kb)
3. Text File server-SNAPSHOT.log (14 kb)
4. Text File server.log (13 kb)

Environment: Windows XP Pro SP 3 (german), java build 1.6.0_06-b02


 Description  « Hide
See http://clearspace.openqa.org/thread/14487. When starting RC in interactive mode like described in the tutorial, RC can't start a FF3 browser session. Root Exception seems to be:

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

and

Caused by: org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher$FileLockRemainedException: Lock file still present! C:\DOKUME~1\ssc\LOKALE~1\Temp\customProfileDir98367f6f09a64844ab44af9895d6ffee\parent.lock

(I will attach server.log with the complete logging)

A firefox.exe process is startet, which keeps a lock on parent.lock. When manually killing firefox.exe, the session gets startet.

I tried the same with nightly build selenium-remote-control-1.0-20080626.090504-453-dist.zip and have this exception:

java.lang.RuntimeException: Timed out waiting for profile to be created!

(see server-SNAPSHOT.log) This time there's no firefox.exe keeping a lock on any file, but the profiles directory content seems to be incomplete.

See also http://jira.openqa.org/browse/SRC-225.

Stefan.


 All   Comments   Work Log   Change History      Sort Order:
Stefan Scheidt - 26/Jun/08 10:15 AM
complete server log for 1.0 beta 1

Stefan Scheidt - 26/Jun/08 10:16 AM
complete server log for nightly build 1.0-20080626.090504-453

Stefan Scheidt - 30/Jun/08 06:34 AM
Hello, here an update: I modified the firefox proxy settings to use localhost:4444, than started Selenium RC and entered this command:

cmd=getNewBrowserSession&1=*custom C:\\Programme\\Mozilla Firefox\\firefox.exe&2=http://www.google.com

This works. So it seems to be a problem with "*firefox" and the Profile Creation...

I will upload the incomplete custom profile, that will get produced when using *firefox with the current nightly build (selenium-remote-control-1.0-20080630.090045-469-dist.zip).

Regards
Stefan

Gabriele C. - 24/Jul/08 05:35 AM
Same problem with Firefox 3 on Ubuntu 8.04.

David Pegram - 29/Aug/08 12:14 PM
I'm also running into this issue after upgrading to Firefox 3.0.1 on Win XP Pro SP2.

[INFO] [selenium:selenese {execution: selenium-tests}]
[INFO] Results will go to: C:\projects\ProtocolTrackingSeleniumTest\target\results-firefox-TestSuite.html
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Firefox refused shutdown while preparing a profile
Lock file still present! c:\DOCUME~1\cdpegram\LOCALS~1\Temp\customProfileDir897522\parent.lock
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.RuntimeException: Firefox refused shutdown while preparing a profile
        at org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher.waitForFullProfileToBeCreated(FirefoxCustomProfileLauncher.java:277)
        at org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher.launch(FirefoxCustomProfileLauncher.java:147)
        at org.openqa.selenium.server.browserlaunchers.AbstractBrowserLauncher.launchHTMLSuite(AbstractBrowserLauncher.java:20)
        at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:88)
        at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:135)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:52)
        at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:714)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:583)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:476)
        at org.codehaus.groovy.runtime.Invoker.invokePojoMethod(Invoker.java:104)
        at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:77)
        at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:85)
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:158)
        at org.codehaus.mojo.selenium.SeleneseMojo.execute(SeleneseMojo.groovy:146)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher$FileLockRemainedException: Lock file still present! c:\DOCUME~1\cdpegram\LOCALS~1\Temp\customProfileDir897522\parent.lock
        at org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher.waitForFileLockToGoAway(FirefoxCustomProfileLauncher.java:235)
        at org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher.waitForFullProfileToBeCreated(FirefoxCustomProfileLauncher.java:275)
        ... 35 more

Hugo Palma - 12/Sep/08 04:31 AM
I'm still seeing this on FF 3.0.1, Window VISTA and selenium 1.0-SNAPSHOT.

Andrew McGregor - 11/Nov/08 11:32 AM
My code is simple:

package test.testcases;

import com.thoughtworks.selenium.SeleneseTestCase;

public class TestLoginLogout extends SeleneseTestCase {

public void setUp() throws Exception {
super.setUp("http://localhost:4444", "*chrome");
super.setCaptureScreetShotOnFailure(true);
}

public void tearDown() throws Exception {
//SelStarter.stopSeleniumServer();
super.tearDown();
}

public void testNew() throws Exception {
selenium.open("http://localhost:8080/DSD-DEV/Index.jsp");
selenium.type("str_User_Name", "super");
selenium.type("str_Password", "user");
selenium.click("sbm_Submit");
selenium.waitForPageToLoad("1000");
selenium.selectWindow("null");
for (int second = 0;; second++) {
if (second >= 60) fail("timeout");
try { if (selenium.isTextPresent("CCRS")) break; } catch (Exception e) {}
Thread.sleep(1000);
}

selenium.click("optu2");
selenium.waitForPageToLoad("1000");
assertTrue(selenium.isTextPresent("Logged On Since"));
selenium.click("Menu.jsp:40");
}
}

when I run this with FF3 I get the "parent lock file" problem.

Hugo Palma - 11/Nov/08 11:36 AM
This is already fixed in the current snapshot.

Can you try it out and see if it works for you ?

Jack Senechal - 04/Dec/08 01:28 PM
I tested the current snapshot under FF3 on Ubuntu 8.10, and it works great. Thanks!