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

WebDriver hangs on frame change to AJAX long polling/server push frame #2767

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

Comments

@lukeis
Copy link
Member

lukeis commented Mar 3, 2016

Originally reported on Google Code with ID 2767

Hi!

I am using FirefoxDriver with Windows 7. When i try to select frame
which receives content by using long polling/server push the whole WebDriver freezes.
It does not always freeze on the frame selection
driver.switchTo().frame("long_polling_frame") but after that when
calling driver.switchTo().defaultContent();

I can see that the Thread is hanging on SocketInputStream.read0() like
waiting for response. Firefox error console does not display any
errors. Last event received by the Firefox is the frame change to the server push frame.


Selenium version: selenium-java 2.11.0
OS: Windows 7
Browser: Firefox
Brower version: 7.01


Reported by AnttiK26 on 2011-11-03 19:32:10

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

SocketInputStream.socketRead0(FileDescriptor, byte[], int, int, int) line: not available
[native method] 
SocketInputStream.read(byte[], int, int, int) line: 150 
SocketInputStream.read(byte[], int, int) line: 121  
SocketInputBuffer(AbstractSessionInputBuffer).fillBuffer() line: 149    
SocketInputBuffer.fillBuffer() line: 110    
SocketInputBuffer(AbstractSessionInputBuffer).readLine(CharArrayBuffer) line: 264   
DefaultResponseParser.parseHead(SessionInputBuffer) line: 98    
DefaultResponseParser(AbstractMessageParser).parse() line: 252  
DefaultClientConnection(AbstractHttpClientConnection).receiveResponseHeader() line:
281 
DefaultClientConnection.receiveResponseHeader() line: 247   
BasicPooledConnAdapter(AbstractClientConnAdapter).receiveResponseHeader() line: 219 
HttpRequestExecutor.doReceiveResponse(HttpRequest, HttpClientConnection, HttpContext)
line: 298   
HttpRequestExecutor.execute(HttpRequest, HttpClientConnection, HttpContext) line: 125   
DefaultRequestDirector.tryExecute(RoutedRequest, HttpContext) line: 645 
DefaultRequestDirector.execute(HttpHost, HttpRequest, HttpContext) line: 464    
DefaultHttpClient(AbstractHttpClient).execute(HttpHost, HttpRequest, HttpContext) line:
820 
HttpCommandExecutor.fallBackExecute(HttpContext, HttpUriRequest) line: 383  
HttpCommandExecutor.execute(Command) line: 362  
NewProfileExtensionConnection.execute(Command) line: 122    
FirefoxDriver$LazyCommandExecutor.execute(Command) line: 258    
FirefoxDriver(RemoteWebDriver).execute(String, Map<String,?>) line: 397 
RemoteWebDriver$RemoteTargetLocator.defaultContent() line: 611  


This is the hanged threads stack trace

Reported by AnttiK26 on 2011-11-03 19:39:16

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by barancev on 2011-11-04 21:33:12

  • Labels added: Component-WebDriver, Browser-Firefox

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Hi!

Is this issue still reproduced with last selenium version?

If so could you provide executable test script and public URL or HTML+CSS+JS pf page
at which problem is reproduced?

Reported by a.u.savchuk on 2013-08-02 19:00:54

  • Status changed: NeedsClarification

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Closing due to inactivity and the age. Feel free to reopen if the issue still actual.

Reported by barancev on 2013-09-04 18:52:04

  • Status changed: Fixed

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

This issue still reproduce. When I has connection to Faye with long-polling only then
Firefox not doing anything

Reported by asimonov on 2014-10-30 16:57:39

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

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

  • 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