Issue 6888 in selenium: high CPU usage when chromedriver is uploading a file

1,288 views
Skip to first unread message

sele...@googlecode.com

unread,
Jan 22, 2014, 5:38:14 PM1/22/14
to selenium-develope...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Status-Untriaged

New issue 6888 by jpmi...@gmail.com: high CPU usage when chromedriver is
uploading a file
http://code.google.com/p/selenium/issues/detail?id=6888

What steps will reproduce the problem?
1. using selenium to automate a chrome browser in Ubuntu 13.10, login to
our product's webUI and navigate to our firmware upload menu - no problem
2. Select the file to upload (using send_keys) - no problem
3. Click 'apply' in our webUI and start to upload the file (approx 11MB in
size), this is where the problem starts. Everything goes very slow
and 'top' reports that 'chromedriver' is using 100% CPU and the PC is
behaving as though the CPU is under load.
4. while the file upload was happening I ran strace on the chromedriver pid
and got: futex(0x7fffceef30f4, FUTEX_WAIT_PRIVATE, 1, NULL
5. When the file upload is complete CPU usage goes back to normal.

What is the expected output? Normal operation during file upload. Used to
work well when I was running Ubutnu 12.10 and chromedriver 2.6.

What do you see instead? Bogged down PC during file upload and the
inability to perform the test on multiple devices (using multiple
webdrivers in parallel as I used to do before I upgraded everything).


Selenium version: 2.25.0
OS: Ubuntu 13.10 (all updates installed)
Browser: Chrome
Browser version: Version 32.0.1700.77

I'm using python to drive everything and my code hadn't changed from when
everything was working to now. What changed is the PC. My test PC failed
and when bringing it back on line I decided to start clean with the latest
of everything: OS, selenium, webdrivers, etc as I was hoping to get around
some other issues which I'd seen had since been fixed.

--
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

sele...@googlecode.com

unread,
Jan 24, 2014, 1:16:45 AM1/24/14
to selenium-develope...@googlegroups.com
Updates:
Status: Invalid

Comment #1 on issue 6888 by luke.semerau: high CPU usage when chromedriver
please provide a reproducible test case for this and mention which version
of chromedriver you are using (2.8 is the latest, if not using it please
upgrade). Also Selenium is now 2.39.0 (but that likely won't help you here).

Also since this is a chromedriver issue, please log a new bug with that
project (with all the extra information):

https://code.google.com/p/chromedriver/

sele...@googlecode.com

unread,
Feb 19, 2014, 6:41:37 PM2/19/14
to selenium-develope...@googlegroups.com

Comment #2 on issue 6888 by jpmi...@gmail.com: high CPU usage when
The diff below in the function send_keys() in the file
selenium/webdriver/remote/webelement.py fixed my problem. I know this has
been updated already to only happen if the webdriver is remote. The high
CPU usage was during this upload action

on
142,144c142,144
< local_file = LocalFileDetector.is_local_file(*value)
< if local_file is not None:
< value = self._upload(local_file)
---
> #local_file = LocalFileDetector.is_local_file(*value)
> #if local_file is not None:
> # value = self._upload(local_file)
Reply all
Reply to author
Forward
0 new messages