Fixed
Status Update
Comments
vs...@google.com <vs...@google.com>
to...@gmail.com <to...@gmail.com> #2
Turning off Host GPU mode does fix things, but then UiAutomator screenshots don't work. On the other hand, with GPU mode on, UiAutomator screenshots just show up as black. This is true even with the Genymotion emulators - although I know that's separate from the Android SDK, maybe it'll be helpful to debug why this is occurring.
I'm on Ubuntu 12.04 myself.
I'm on Ubuntu 12.04 myself.
da...@gmail.com <da...@gmail.com> #3
I also experience this "black screenshot" bug when using "Host GPU".
I need "Host GPU", because colors are banded otherwise, making the screenshots unusable.
Host OS: Windows 7 64bits
Display adapter: Intel HD 4600
SDK tools version: 22.3 (bug also occurred with older version)
Targetting all sorts of AVD with "Host GPU" turned in.
I need "Host GPU", because colors are banded otherwise, making the screenshots unusable.
Host OS: Windows 7 64bits
Display adapter: Intel HD 4600
SDK tools version: 22.3 (bug also occurred with older version)
Targetting all sorts of AVD with "Host GPU" turned in.
da...@gmail.com <da...@gmail.com> #4
Same bug on OS X.
he...@gmail.com <he...@gmail.com> #7
Same on a fresh Ubuntu 13.10
fa...@gmail.com <fa...@gmail.com> #8
Same here on Windows 8.1 x64 with Radeon HD7770.
im...@gmail.com <im...@gmail.com> #9
[Comment deleted]
im...@gmail.com <im...@gmail.com> #10
Same here.
Mac OSX 10.6.8
NVIDIA GeForce 320M
ADT Build: v22.3.0-887826
Android 4.4.2
Intel x86 Atom Image
Mac OSX 10.6.8
NVIDIA GeForce 320M
ADT Build: v22.3.0-887826
Android 4.4.2
Intel x86 Atom Image
im...@gmail.com <im...@gmail.com> #11
Sorry for the extra email but when running "Dump View Hierarchy for UI Automater" all node images are blank as well. I assume these bugs are linked.
fa...@arkxu.com <fa...@arkxu.com> #12
Same here.
Mac OS 10.9.1, Intel x86 Atom Image. Turn off Host GPU will make everything back to normal.
Mac OS 10.9.1, Intel x86 Atom Image. Turn off Host GPU will make everything back to normal.
pu...@gmail.com <pu...@gmail.com> #13
Same problem. Windows 7, Intel Integrated Graphics
SDK Platform 19
SDK Platform 19
da...@gmail.com <da...@gmail.com> #14
[Comment deleted]
[Deleted User] <[Deleted User]> #15
screen shot captured using screencap is also only black pixels
pr...@gmail.com <pr...@gmail.com> #16
I cannot get the Nexus 10 emulator to start without using host gpu. But when using host gpu I cannot do a screen capture. Therefore I cannot capture any screenshots of Nexus 10 emulator to use in google play store.
le...@gmail.com <le...@gmail.com> #17
I'm seeing this today with an Android 4.4.2 emulation running on Mac OS X 10.9.2. I was seeing normal UIAutomator screens until I updated my Android tools this morning.
sa...@gmail.com <sa...@gmail.com> #18
For a workaround try Android 4.0.3 (API 15) with the Intel Atom (x86) image. I could capture ddms screenshots with both "use host gpu" and HAXM enabled. Only this combination works for me.
ol...@gmail.com <ol...@gmail.com> #19
Same problem here on OS X.
de...@gmail.com <de...@gmail.com> #20
Is it planned to be fixed? Now automatic screenshots can be created only on Android 4.0 - 4.2
sh...@gmail.com <sh...@gmail.com> #21
Running into this issue as well with api 19 and nexus 7 2013 from google for the device. Running on Mac OSX 10.9.5.
Disabling the host gpu does not work and only produces a black screen.
Hoping this can get fixed.
Disabling the host gpu does not work and only produces a black screen.
Hoping this can get fixed.
ka...@gmail.com <ka...@gmail.com> #22
Same here with API 21 (Google APIs), x64. With host GPU on emulator works, but I am unable to get any screenshots from it. As soon as I switch off host GPU the Emulator no longer works and only shows a black screen. Log says the system writes tombstones on the double.
This is my AVM setup:
Name: AVD_for_Nexus_6_by_Google
CPU/ABI: Google APIs Intel Atom (x86_64)
Path: C:\Users\jwahlmann\.android\avd\AVD_for_Nexus_6_by_Google.avd
Target: Google APIs (API level 21)
Skin: 1440x2560
SD Card: C:\Users\xxx\.android\avd\N7.avd\sdcard.img
Snapshot: no
hw.lcd.density: 560
hw.dPad: no
avd.ini.encoding: ISO-8859-1
hw.camera.back: webcam0
disk.dataPartition.size: 200M
hw.gpu.enabled: no
runtime.network.latency: none
skin.dynamic: no
hw.keyboard: no
runtime.network.speed: full
hw.device.hash2: MD5:9b564b60b1aebee32c73ded9daa1e620
hw.ramSize: 768
tag.id : google_apis
tag.display: Google APIs
hw.sdCard: yes
hw.device.manufacturer: Google
hw.mainKeys: no
hw.accelerometer: yes
hw.trackBall: no
hw.device.name : Nexus 6
hw.sensors.proximity: yes
hw.battery: yes
hw.sensors.orientation: yes
hw.audioInput: yes
hw.camera.front: emulated
hw.gps: yes
avd.ini.displayname: Nexus 6 API 21
snapshot.present: no
vm.heapSize: 128
runtime.scalefactor: 0.25
This is my AVM setup:
Name: AVD_for_Nexus_6_by_Google
CPU/ABI: Google APIs Intel Atom (x86_64)
Path: C:\Users\jwahlmann\.android\avd\AVD_for_Nexus_6_by_Google.avd
Target: Google APIs (API level 21)
Skin: 1440x2560
SD Card: C:\Users\xxx\.android\avd\N7.avd\sdcard.img
Snapshot: no
hw.lcd.density: 560
hw.dPad: no
avd.ini.encoding: ISO-8859-1
hw.camera.back: webcam0
disk.dataPartition.size: 200M
hw.gpu.enabled: no
runtime.network.latency: none
skin.dynamic: no
hw.keyboard: no
runtime.network.speed: full
hw.device.hash2: MD5:9b564b60b1aebee32c73ded9daa1e620
hw.ramSize: 768
tag.display: Google APIs
hw.sdCard: yes
hw.device.manufacturer: Google
hw.mainKeys: no
hw.accelerometer: yes
hw.trackBall: no
hw.sensors.proximity: yes
hw.battery: yes
hw.sensors.orientation: yes
hw.audioInput: yes
hw.camera.front: emulated
hw.gps: yes
avd.ini.displayname: Nexus 6 API 21
snapshot.present: no
vm.heapSize: 128
runtime.scalefactor: 0.25
ei...@googlemail.com <ei...@googlemail.com> #23
I have this issue in the nexus 10 emulator, but it's working fine on the nexus 7 emulator. Api Level 18
po...@gmail.com <po...@gmail.com> #24
are there any workarounds to get a screenshot? we tried to use the lolipop emulator - without host gpu it's absolutely not possible to use the emulator. it's way to slow...
ka...@gmail.com <ka...@gmail.com> #25
#25: I was able to get them by running JUnit Tests with Robotium. You get only the App's view and Dialogs without the app background, though.
Another option is to run the emulator on the pc/mac with the highest screen resolution or on a 4k screen and take the screenshots with the Desktop OS function. Or better use something like Snip It (Windows) to get rid to the emulator window frame.
Another option is to run the emulator on the pc/mac with the highest screen resolution or on a 4k screen and take the screenshots with the Desktop OS function. Or better use something like Snip It (Windows) to get rid to the emulator window frame.
vh...@google.com <vh...@google.com>
ia...@gmail.com <ia...@gmail.com> #26
<rant>
Holy crap, Google! This bug has been around since last September! I'd love to provide my 10 inch tablet users with a screenshot. I've spent the last 2 hours fighting your crappy emulators until I find the "magic configuration" (who knew using my GPU would render the screenshot function unusable?!) to get screenshots for all devices and now this.
/me goes back to writing iOS apps where he doesn't spend 2/3 of his development time fighting the tools.
</rant>
Holy crap, Google! This bug has been around since last September! I'd love to provide my 10 inch tablet users with a screenshot. I've spent the last 2 hours fighting your crappy emulators until I find the "magic configuration" (who knew using my GPU would render the screenshot function unusable?!) to get screenshots for all devices and now this.
/me goes back to writing iOS apps where he doesn't spend 2/3 of his development time fighting the tools.
</rant>
vi...@gmail.com <vi...@gmail.com> #27
I am having the same problem, how do i tun off the use host GPU option ?
mi...@gmail.com <mi...@gmail.com> #28
you turn it off e.g. in emulator settings when you create or edit one, uncheck "use host gpu" or similar there
co...@gmail.com <co...@gmail.com> #29
Same bug on Mac OS Maverick.
The only workaround is to not use Host gpu.
The only workaround is to not use Host gpu.
vh...@google.com <vh...@google.com> #30
Please confirm in Android Studio 1.1 release and close if appropriate.
ha...@google.com <ha...@google.com> #32
Assigned back to Vince since test team do not handle individual bug verification per chat with Vince.
ol...@gmail.com <ol...@gmail.com> #33
Working on OS X running Android Studio 1.1 Beta 4, running a Android 4.1.2 x86 device in 480x800 resolution.
dm...@gmail.com <dm...@gmail.com> #34
Still have the same bug on MacOS X 10.10.2, MacBook Pro Late 2011, Intel HD 3000.
Emulator: Nexus 5, HWA: on, x64
Emulator: Nexus 5, HWA: on, x64
dm...@gmail.com <dm...@gmail.com> #35
Sorry, forgot to write:
SDK Tools 24.0.2, Android API 21 - Google API / 5.0.1 / Intel Atom x86_64
SDK Tools 24.0.2, Android API 21 - Google API / 5.0.1 / Intel Atom x86_64
ol...@gmail.com <ol...@gmail.com> #36
Did some more testing. Tried Android 5.0, 4.4 and 4.3. Could NOT get screenshots from those.
However, as mentioned above, using Android 4.1.2 x86 works with GPU, and it didn't before, so I guess that's progress...
It should be noted that I'm still running OS X Mavericks, but I don't think that matters at all here.
So use Android 4.1.2 for now...
However, as mentioned above, using Android 4.1.2 x86 works with GPU, and it didn't before, so I guess that's progress...
It should be noted that I'm still running OS X Mavericks, but I don't think that matters at all here.
So use Android 4.1.2 for now...
vs...@google.com <vs...@google.com> #37
We have found the root cause of this issue and are working on a fix. The next update to the SDK Tools + system images should fix the issue.
da...@gmail.com <da...@gmail.com> #38
mb...@gmail.com <mb...@gmail.com> #39
When can we expect the update for this fix?
bo...@google.com <bo...@google.com>
yo...@gmail.com <yo...@gmail.com> #40
sdk tools 24.1.2 says "Fixed AVD screen capture issues when using GPU emulation."
but the problem still exists on emulator for nexus 4 and android 5.0.1 with haxm and gpu emulation on :)
but the problem still exists on emulator for nexus 4 and android 5.0.1 with haxm and gpu emulation on :)
km...@gmail.com <km...@gmail.com> #41
Same here -- SDK tools 24.1.2, Linux, GPU acceleration, 5.0 emulator -- screenshots come out all black.
Logcat output:
03-05 21:27:43.448 W/GraphicBufferAllocator( 937): alloc(480, 800, 1, 00000333, ...) failed -22 (Invalid argument)
03-05 21:27:43.448 E/ ( 937): GraphicBufferAlloc::createGraphicBuffer(w=480, h=800) failed (Invalid argument), handle=0x0
03-05 21:27:43.450 E/BufferQueueProducer( 1973): [ScreenshotClient] dequeueBuffer: createGraphicBuffer failed
Logcat output:
03-05 21:27:43.448 W/GraphicBufferAllocator( 937): alloc(480, 800, 1, 00000333, ...) failed -22 (Invalid argument)
03-05 21:27:43.448 E/ ( 937): GraphicBufferAlloc::createGraphicBuffer(w=480, h=800) failed (Invalid argument), handle=0x0
03-05 21:27:43.450 E/BufferQueueProducer( 1973): [ScreenshotClient] dequeueBuffer: createGraphicBuffer failed
xi...@gmail.com <xi...@gmail.com> #42
It maybe because of new system images are not updated yet.
bo...@google.com <bo...@google.com> #43
the other half of the fix is in the system image;
api 22 has the fix and it is on the way to release.
api 21, 19, 18 will be updated with this and other fixes soon.
api 22 has the fix and it is on the way to release.
api 21, 19, 18 will be updated with this and other fixes soon.
ni...@gmail.com <ni...@gmail.com> #44
Hmm. And how to get api 22? Is there any SDK/Emulator preview? As I understand it's Android 5.1?
th...@gmail.com <th...@gmail.com> #45
I hope the update is out by next week. I'd love to provide my 10 inch tablet users with a screenshot, and disabling host GPU is not an option for me.
ol...@gmail.com <ol...@gmail.com> #46
Meanwhile, you can use Android 4.1.2 to take screenshots on tablets. It works with GPU enabled.
d....@gmail.com <d....@gmail.com> #47
[Comment deleted]
d....@gmail.com <d....@gmail.com> #48
It works, finnaly :) with gpu enabled api 22
ke...@gmail.com <ke...@gmail.com> #49
I have updated to API 22,
using Nexus5 VD, with Android 5.1 x86 image,
enabled GPU, enabled and selected Webcam0 (usb device),
on Win 7 x64.
Camera picture preview is fine, but taking photo results with:
1) screen shot with emulated cam, comes out fine
2) screen shot with webcam0 still comes out black
I'm using ACTION_IMAGE_CAPTURE (default camera capture activity)
Can please someone confirm this or suggest what can I try to resolve this issue.
I have tried also with Google Api image with same result.
P.S. tried to run SDK camera2basic sample but not getting even camera preview, and taking picture crash app on API21 VD.
Tnx!
using Nexus5 VD, with Android 5.1 x86 image,
enabled GPU, enabled and selected Webcam0 (usb device),
on Win 7 x64.
Camera picture preview is fine, but taking photo results with:
1) screen shot with emulated cam, comes out fine
2) screen shot with webcam0 still comes out black
I'm using ACTION_IMAGE_CAPTURE (default camera capture activity)
Can please someone confirm this or suggest what can I try to resolve this issue.
I have tried also with Google Api image with same result.
P.S. tried to run SDK camera2basic sample but not getting even camera preview, and taking picture crash app on API21 VD.
Tnx!
bo...@google.com <bo...@google.com> #50
hello #53,
are you able to run "screencap" and get the non-black image from webcam?
I just tried on my window 8 box with usb webcam and I can take screencap with
webcam on (GPU on) without any problem.
if you are using app to capture the image, please provide a simple apk that
demonstrates the problem, it helps me to reproduce the issue.
thanks,
are you able to run "screencap" and get the non-black image from webcam?
I just tried on my window 8 box with usb webcam and I can take screencap with
webcam on (GPU on) without any problem.
if you are using app to capture the image, please provide a simple apk that
demonstrates the problem, it helps me to reproduce the issue.
thanks,
bo...@google.com <bo...@google.com> #51
hello #53,
I also tried to use webcam on linux and have no problem taking picture with webcam using "ACTION_IMAGE_CAPTURE"
Intent imageCaptureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
I also tried to use webcam on linux and have no problem taking picture with webcam using "ACTION_IMAGE_CAPTURE"
Intent imageCaptureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
ke...@gmail.com <ke...@gmail.com> #52
thanks for reply guys,
I was not playing with this since I reported problem. I forgot to mention that emulated picture screen shot comes out just fine, maybe this could be a clue for further investigation, this way I presume that rights on file creation are just fine.. I will try to make simple apk to upload
I was not playing with this since I reported problem. I forgot to mention that emulated picture screen shot comes out just fine, maybe this could be a clue for further investigation, this way I presume that rights on file creation are just fine.. I will try to make simple apk to upload
du...@gmail.com <du...@gmail.com> #53
What branches and/or tags contain this fix?
I'm building AOSP for API 19 and would like to have this fix included in my build.
The master branch (repo init ... -b master) seems to contain the fix, but of course the master branch is API 22.
The API 19 branch I'm using (repo init ... -b android-4.4.4_r2) does not seem to contain this fix.
I'm building AOSP for API 19 and would like to have this fix included in my build.
The master branch (repo init ... -b master) seems to contain the fix, but of course the master branch is API 22.
The API 19 branch I'm using (repo init ... -b android-4.4.4_r2) does not seem to contain this fix.
ra...@gmail.com <ra...@gmail.com> #54
that is great information about <a href="https://mymaccrack.com/screenlog-crack/ " rel=“nofollow”>SCREENLOG</a> what i was looking for.
Description
SDK tools version (available in the "About" section of the 'android' tool
UI): 22.2.1
Eclipse version: ADT Bundle v22.0.5-757759
ADT plug-in version: 22.0.5
Platform targeted by your project: n/a
Version of the platform running in the emulator: 4.3 (x86 image, Nexus S stock device bumped up to 4.3, 32GB external storage, Host GPU Mode toggled ON)
STEPS TO REPRODUCE:
1. Bring up the emulator
2. Click on its entry in DDMS's Devices view
3. Click on the camera button to take a screenshot
EXPECTED RESULTS: A screenshot
OBSERVED RESULTS: A solid black rectangle
Toggling off Host GPU Mode restores normal behavior.
Other notes:
- It does not matter what app is running
- Restarting the emulator does not help
Let me know if you need additional information -- thanks!