2

Im trying to take screen shot of my Emulator .

  1. I run my app.

  2. Then switched to Android Device Monitor Screen.

  3. In Device panel I clicked my online Emulator(Nexus5[emulator-5554]) in which my app is running.

  4. To take screen shot of my app i pressed the screen shot Camera button.

    enter image description here

  5. Faced an error with empty X screen

enter image description here

Here is my LogCat error

10-04 23:07:41.008: E/gralloc_goldfish(923): gralloc_alloc: Mismatched usage flags: 1080 x 1920, usage 333
10-04 23:07:41.008: W/GraphicBufferAllocator(923): alloc(1080, 1920, 1, 00000333, ...) failed -22     (Invalid argument)
10-04 23:07:41.008: E/(923): GraphicBufferAlloc::createGraphicBuffer(w=1080, h=1920) failed (Invalid argument), handle=0x0
10-04 23:07:41.018: E/BufferQueue(3045): [ScreenshotClient] dequeueBuffer: SurfaceComposer::createGraphicBuffer failed

please help me with this issue..Thanks

SaravanaRaja
  • 3,228
  • 2
  • 21
  • 29
  • 1
    Rather than use Android Debug Monitor, try taking the screenshot straight from Android Studio, using the camera toolbar button in the DDMS view. – CommonsWare Oct 05 '14 at 18:17
  • @CommonsWare Wow..!! Another option.!! i'll try that.. Thanks for showing another way to achieve this :) but, what about this above problem.. any solution ..? – SaravanaRaja Oct 05 '14 at 18:32
  • My hope is that Android Studio and the Android Debug Monitor are conflicting and causing your issue. If that is not the problem, I have no idea, sorry. – CommonsWare Oct 05 '14 at 18:35
  • Is the emulator using host GPU? This could be the cause. – Diego Torres Milano Nov 04 '14 at 19:51

0 Answers0