Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Device Sreenshot not working in Android Debug Monitor

I'm trying to take screenshot in DDMS, to use Hierarchy Viewer and learn about views. But when i try to use button Take Screenshot, always returns black screen. See below:

enter image description here

Erro log:

01-26 10:22:22.980: E/gralloc_goldfish(922): gralloc_alloc: Mismatched usage flags: 320 x 480, usage 333
01-26 10:22:22.980: W/GraphicBufferAllocator(922): alloc(320, 480, 1, 00000333, ...) failed -22 (Invalid argument)
01-26 10:22:22.980: E/(922): GraphicBufferAlloc::createGraphicBuffer(w=320, h=480) failed (Invalid argument), handle=0x0
01-26 10:22:22.980: E/BufferQueue(1788): [ScreenshotClient] dequeueBuffer: SurfaceComposer::createGraphicBuffer failed

My emulator: API 19 - Android 4.4.2 - Device 3.2" QVGA (ADP2) (320, 480), using Host GPU

Anyone know how can i solve this?

like image 731
Diogo Alves Avatar asked Jan 26 '14 15:01

Diogo Alves


1 Answers

Turning off "Use Host GPU" for this AVD will fix this.

like image 62
TechnoTim Avatar answered Oct 30 '22 18:10

TechnoTim