rshf / chromedriver

Automatically exported from code.google.com/p/chromedriver
2 stars 1 forks source link

Screenshot is blank from an VM instance without an open RDC connection #309

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set up a Windows 7 virtual machine that runs Selenium standalone server with 
ChromeDrive2 v0.7.
2. Open a connection to this VM using Remote Desktop Connection.
3. From your dev machine execute a test (towards the Selenium server in the VM) 
that loads a site and takes a screenshot.
4. Close the RDC connection to the VM.
5. Execute the same test again.

Simplified test case or site demonstrating the problem:

For step 3. we get a proper screenshot.
For step 5. we get a black screenshot.

What version of the product are you using? On what operating system?
Selenium = 2.32.0
ChromeDriver = 0.7
Chrome = 26.0.1410.64
OS = Windows 7

See chromedriver.log attached for both cases.

Original issue reported on code.google.com by valentin...@duego.com on 15 Apr 2013 at 11:54

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the report. Can you try ChromeDriver2 and see if it has the same 
problem?

Original comment by kka...@google.com on 19 Apr 2013 at 4:03

GoogleCodeExporter commented 9 years ago
The issue is in fact present with the ChromeDriver2_win32_0.7.zip, but it is 
not present with the ChromeDriver_win_26.0.1383.0.zip

Original comment by valentin...@duego.com on 22 Apr 2013 at 7:13

GoogleCodeExporter commented 9 years ago
The issue is still present with ChromeDriver2_win32_0.8

Original comment by valentin...@duego.com on 8 May 2013 at 10:58

GoogleCodeExporter commented 9 years ago
The VM used for this test was running on a local OpenStack.

Original comment by valentin...@duego.com on 30 May 2013 at 10:19

GoogleCodeExporter commented 9 years ago
Got same issue. I got a remote machine where the selenium jobs run. After 
disconnect from Windows Remote Desktop, the chromedriver2 only takes black 
screenshots. 

Original comment by karl.th...@signavio.com on 7 Jun 2013 at 4:04

GoogleCodeExporter commented 9 years ago
Same issue.
Running script in Jenkins takes a blank screen shot.
Running script on local machine takes snapshot of webpage, as expected.

Was using ChromeDriver_win_26 previously, and running script in Jenkins 
produced snapshot of webpage, as expected. Nothing else changed in environment 
expect the upgrade to ChromeDriver2

Original comment by dave.sor...@gmail.com on 11 Jun 2013 at 6:19

GoogleCodeExporter commented 9 years ago
Have same issue - further details in related Issue 294.

Original comment by tim.buck...@gmail.com on 14 Jun 2013 at 12:46

GoogleCodeExporter commented 9 years ago
We are having the same issue. VM's running a Teamcity agent. Capture 
screenshots is giving us black captures only. 

Original comment by ms.kelse...@gmail.com on 18 Jun 2013 at 4:44

GoogleCodeExporter commented 9 years ago
Same here, IEDriver and ChromeDriver just black screenshots, only Firefox works 
as expected and doing full screen shots (not only the visible part).

Original comment by schulten...@gmail.com on 21 Jun 2013 at 6:09

GoogleCodeExporter commented 9 years ago
Issue 414 has been merged into this issue.

Original comment by kka...@google.com on 9 Jul 2013 at 4:01

GoogleCodeExporter commented 9 years ago
Hopefully this issue can move out of the "NeedsClarification" state soon.  I 
would appear there is more than enough information on the problem at this 
point.  regards.

Original comment by daniel.o...@rightscale.com on 9 Jul 2013 at 4:10

GoogleCodeExporter commented 9 years ago

Original comment by kkania@chromium.org on 12 Jul 2013 at 5:11

GoogleCodeExporter commented 9 years ago
Issue 378 has been merged into this issue.

Original comment by kkania@chromium.org on 12 Jul 2013 at 5:16

GoogleCodeExporter commented 9 years ago

Original comment by kkania@chromium.org on 12 Jul 2013 at 5:16

GoogleCodeExporter commented 9 years ago
Is there any workaround or plans to fix this issue? It makes Chrome Driver 2 
basically unusable on a CI server.

Original comment by sparhome...@gmail.com on 29 Jul 2013 at 10:11

GoogleCodeExporter commented 9 years ago
I've found no workaround.  I see the issue has bee accepted.  I can only hope 
someone picks this soon and codes a fix.  

Original comment by daniel.o...@rightscale.com on 29 Jul 2013 at 10:19

GoogleCodeExporter commented 9 years ago
The issue has to do with how Windows handles device rendering with a 
disconnected session.  Firefox doesn't have the problem because they have a 
special extension to canvas that renders to a screenshot.  A workaround is to 
run a VNC server and leave the session logged in.  Auto-login for your CI 
agents would probably be your best bet.

Original comment by nirvd...@gmail.com on 14 Aug 2013 at 3:55

GoogleCodeExporter commented 9 years ago
This may be the case, but this worked in chrome driver 1.0.  The reports above 
indicate this started failing chromedriver 2.X.  So we do know that it possible 
to get the screenshot in a headless environment over Windows.  It would be 
really good to get a fix for this.  Leaving a VNC server with a logged in 
session is not a good workaround.

Original comment by daniel.o...@rightscale.com on 20 Aug 2013 at 3:19

GoogleCodeExporter commented 9 years ago
This issue is now a blocker for us, since the current Version of chrome (29) is 
not working with the old (26.0.1383.0) driver anymore (Fails with "Unknown 
command 'WaitForAllTabsToStopLoading'")

Original comment by mjeanric...@gmail.com on 21 Aug 2013 at 12:16

GoogleCodeExporter commented 9 years ago
This is now a blocker for my team as well, as we run watir tests in Jenkins on 
multiple remote VMs and rely heavily on screenshots as part of our acceptance 
testing, and Chromedriver 26.0.1383.0 does not work with Chrome 29.

Original comment by xaen...@gmail.com on 23 Aug 2013 at 2:20

GoogleCodeExporter commented 9 years ago
Voting up.  We were forced to go to chromedriver2 for chrome 29 and as with 
everyone above it broke our screenshot capability.  Screenshots on non-RDC VMs 
are critical to our CI.  Please fix the regression!

Original comment by scub...@gmail.com on 23 Aug 2013 at 3:39

GoogleCodeExporter commented 9 years ago
Voting up +1.  Non-RDC VMs are critical to our CI as well.  Please fix the 
regression!  Screenshots are critically important.  We are blocked

Original comment by daniel.o...@rightscale.com on 23 Aug 2013 at 3:44

GoogleCodeExporter commented 9 years ago
So is our team blocked. Screenshots are crucial in our tests.

Original comment by marekson...@gmail.com on 24 Aug 2013 at 8:19

GoogleCodeExporter commented 9 years ago
similar issues for my team. Voting up the issues.

Original comment by tosuke...@gmail.com on 26 Aug 2013 at 1:53

GoogleCodeExporter commented 9 years ago
Please fix the blank screenshots issue soon, its a very critical part for our 
automated tests.

Original comment by rammiess...@gmail.com on 26 Aug 2013 at 2:32

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
We are seeing this issue. 
- Running locally - screenshot is fine.
- running remote - Screenshot is blank.

Original comment by mingz...@gmail.com on 26 Aug 2013 at 5:14

GoogleCodeExporter commented 9 years ago
Seeing this issue as well.

We have a remote server farm to run our tests and this bug has blocked our 
ability to verify.

Original comment by stuart.f...@gmail.com on 26 Aug 2013 at 5:34

GoogleCodeExporter commented 9 years ago
Experiencing the same issue after upgrading to chromdriver v2.2

When getting error as below, the screenshot is blank.

org.openqa.selenium.WebDriverException: disconnected: unable to receive message 
from renderer
(Session info: chrome=29.0.1547.62)
(Driver info: chromedriver=2.2,platform=Windows NT 6.1 SP1 x86_64) (WARNING: 
The server did not provide any stacktrace information)

Original comment by lucyyan...@gmail.com on 28 Aug 2013 at 1:19

GoogleCodeExporter commented 9 years ago
In my case... we run the tests using a Windows Service in a server and with 
chromedriver 2.2, always blank (white) screen but not if you run the test in a 
local machine. 
We were using before the chromedriver of january 2013 and working fine... but 
we upgraded to 2.2... :(
It is really important for us to be able to take screenshots... is this gonna 
be fix?

Thanks.

Original comment by TCBl...@gmail.com on 28 Aug 2013 at 10:28

GoogleCodeExporter commented 9 years ago
+1, we can't use ChromeDriver2 before this bug fix.

Original comment by javaeeco...@gmail.com on 29 Aug 2013 at 8:02

GoogleCodeExporter commented 9 years ago

Original comment by kkania@chromium.org on 29 Aug 2013 at 2:14

GoogleCodeExporter commented 9 years ago
I met with this problem while trying to take screenshot of chrome by teamcity 
agent (on remote server) run as localservice.
The solution was to use remote desktop to run the agent from console and then 
close remote desktop connection. Then it works fine! This is just workaround 
but it enables usage of this driver.

Original comment by k.s.ser...@gmail.com on 30 Aug 2013 at 5:57

GoogleCodeExporter commented 9 years ago

Original comment by kkania@chromium.org on 3 Sep 2013 at 2:50

GoogleCodeExporter commented 9 years ago
Fixed in chromedriver 2.3.

Original comment by kkania@chromium.org on 3 Sep 2013 at 5:06

GoogleCodeExporter commented 9 years ago
We have verified the fix is indeed working over Windows Server 2008 with 
headless operation.  Nice work!

Original comment by daniel.o...@rightscale.com on 3 Sep 2013 at 5:19

GoogleCodeExporter commented 9 years ago
Confirmed working using chromedriver 2.3 (for windows) on Chrome 29 and Windows 
7.

Original comment by Shawn.Mc...@gmail.com on 3 Sep 2013 at 5:47

GoogleCodeExporter commented 9 years ago
Screenshots are working for the most part on Windows with Chromedriver 2.3, but 
I'm occasionally getting the following error, which is causing some failures in 
some of our tests.  So far it seems most likely to occur when trying to handle 
popup windows.

Selenium::WebDriver::Error::UnknownError:
  unknown error: cannot take screenshot
  from unknown error: Cannot access contents of url "". Extension manifest must request permission to access this host.
  JavaScript stack:
  Error: Cannot access contents of url "". Extension manifest must request permission to access this host.
      at checkForExtensionError (chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/background.js:14:17)
      at Object.callback (chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/background.js:30:5)
      at target.(anonymous function) (extensions::SafeBuiltins:20:16)
      at safeCallbackApply (sendRequest:21:15)
      at handleResponse (sendRequest:76:7)
    (Session info: chrome=29.0.1547.66)
    (Driver info: chromedriver=2.3,platform=Windows NT 6.1 SP1 x86_64)

Original comment by xaen...@gmail.com on 6 Sep 2013 at 1:50

GoogleCodeExporter commented 9 years ago
Works fine now! Very good job! Thanks.

Original comment by karl.th...@signavio.com on 18 Sep 2013 at 12:49

GoogleCodeExporter commented 9 years ago
Screenshots are back but I am not getting full page screenshots. Is anyone else 
facing this?

Original comment by narayan4...@gmail.com on 25 Sep 2013 at 6:47

GoogleCodeExporter commented 9 years ago
Same here - not getting full page screenshots.

Original comment by mingz...@gmail.com on 25 Sep 2013 at 6:56

GoogleCodeExporter commented 9 years ago
same here - not getting full page screenshots.  Sounds like a new issue

Original comment by daniel.o...@rightscale.com on 25 Sep 2013 at 4:29

GoogleCodeExporter commented 9 years ago
I've got the same problem, which described in #39. Is anybody figure out how to 
workaround this? Is this a new issue?

Original comment by atolp...@crystals.ru on 30 Sep 2013 at 12:16

GoogleCodeExporter commented 9 years ago
Hi ..

 I am facing similar kind of issue. I am running my webdriver test in a remote VM with IE 9. After starting the execution, I am closing the remote desktop session.

But I found the screenshot as blank while verifying the report after completion 
of execution.

Can anyone please find me a solution?? 
Thanks & regards

Original comment by mridul.d...@gmail.com on 16 Oct 2013 at 7:19

GoogleCodeExporter commented 9 years ago
Hi same problem, 

If I lock my machine, all screenshot from chromedriver are blank, I have not 
the problem with FirefoxDriver

Original comment by cyril.bi...@gmail.com on 17 Dec 2013 at 8:10

GoogleCodeExporter commented 9 years ago

Original comment by samu...@chromium.org on 21 Feb 2015 at 12:25