Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9003797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:45:25+00:00 2026-06-16T00:45:25+00:00

Today, I ran into weird issue: java.awt.Robot captures black areas, instead of image content.

  • 0

Today, I ran into weird issue: java.awt.Robot captures black areas, instead of image content. I’m using Ubuntu 12.04 and OpenJDK6/7.

java.awt.Robot on Unix is supported by the sun.awt.X11.XRobotPeer,
which, following the corresponding OpenJDK sources, uses image grabbing functions similar to those, used by xwd utililty (lines 92-162).

So, I ran the following command:

xwd -root -out test.screen.root.xwd

and then opened this file with gimp. Here’s what I get:

enter image description here

Then I tried:

xwd -root | xwdtopnm | pnmtopng > Screenshot.root.png

And I got the following result:
Console output:

xwdtopnm: writing PPM file
libpng warning: Invalid sBIT depth specified

And the image itself:
enter image description here

What can cause this? How can I fix it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T00:45:26+00:00Added an answer on June 16, 2026 at 12:45 am

    Seems like the only way to fix this is to use your own native implementation of screen shotting.

    Here’s the detailed description of the problem at the launchpad from unity devs: launchpad conversation.

    The problem is in the way unity-2d draws itself and in the use of XShaping.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I ran into a problem using java objects in jython today because jython is
Today, I ran into this weird problem with a user using Mac OS X.
I've ran into a weird issue today, I'm hoping someone else can help me
I ran into an issue using a struct today that caught me off guard,
Today I ran into an issue using RoR to stub calls to AR objects.
Today I ran into something a bit weird. I used mini-profiler to see the
I tried using PHPDoc for the first time today and quickly ran into a
I ran into a situation today where Java was not invoking the method I
I ran into a interesting issue today. Check out this pseudo-code: void Loop() {
I use TortoiseSVN on WindowsXP and ran into an issue inside repository browser today.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.