Can't take window screenshots

Asked by Malaphus

Shutter works fine for fullscreen screenshots, however any time I try to screenshot a WINDOW, I get this error in the console I've run shutter from:

brandon@cronus:~/downloads$ shutter

INFO: checking installed components...

INFO: no command line parameters set...

GdkPixbuf-CRITICAL **: gdk_pixbuf_copy_area: assertion `src_y >= 0 && src_y + height <= src_pixbuf->height' failed at sub Shutter::Screenshot::Window::get_shape line 55, <DATA> line 771.
GdkPixbuf-CRITICAL **: gdk_pixbuf_copy_area: assertion `src_x >= 0 && src_x + width <= src_pixbuf->width' failed at sub Shutter::Screenshot::Window::get_shape line 55, <DATA> line 771.

It doesn't crash shutter or anything, it just shows a blank image instead of the window I clicked. I imagine I am just missing some package or something? I'm using a near-stock debian installation 5.0.3

Question information

Language:
German (Germany) Edit question
Status:
Solved
For:
Shutter Edit question
Assignee:
No assignee Edit question
Solved by:
Malaphus
Solved:
Last query:
Last reply:
Revision history for this message
Mario Kemper (Romario) (mario-kemper) said :
#1

Am Montag, den 01.02.2010, 14:08 +0000 schrieb Malaphus:
> It doesn't crash shutter or anything, it just shows a blank image
> instead of the window I clicked. I imagine I am just missing some
> package or something? I'm using a near-stock debian installation
> 5.0.3

This doesn't look like a missing package. Could you please tell me a
little bit more about your system - at least what desktop environment /
window manager and what theme you are using?

What kind of windows are you trying to capture? Gtk, Qt or does it not
work at all?

Could you please run shutter with debug parameter, reproduce the error
and attach the terminal output here? (shutter --debug)

Thanks for your help
Mario

Revision history for this message
Malaphus (brandon-collisionpoint) said :
#2

I am using debian unstable currently, although this error existed before I upgraded to unstable as well, when I was using stable. I am using fluxbox with nothing else. Using kernel 2.6.32, compiled for amd64.

Here is the full debug output:

Type: motion-notify
...
Type: motion-notify
Type: button-press
Type: button-release
0, 0, 0, 0 cropped
Calculating window shape
Current 5,-1,600,1
Current 2,0,606,1
Current 1,1,608,1
Current 0,2,610,3
Current -1,5,612,359
5 -1 600 1
GdkPixbuf-CRITICAL **: gdk_pixbuf_copy_area: assertion `src_y >= 0 && src_y + height <= src_pixbuf->height' failed at sub Shutter::Screenshot::Window::get_shape line 55, <DATA> line 771.
2 0 606 1
1 1 608 1
0 2 610 3
-1 5 612 359
GdkPixbuf-CRITICAL **: gdk_pixbuf_copy_area: assertion `src_x >= 0 && src_x + width <= src_pixbuf->width' failed at sub Shutter::Screenshot::Window::get_shape line 55, <DATA> line 771.
Parsing wildcards for /home/brandon/$name_008.png
Parsed $width and $height: /home/brandon/$name_008.png
Parsed $name: /home/brandon/brandon@cronus: ~-downloads_008.png
Trying to save file to /home/brandon/brandon@cronus: ~-downloads_008.png
Saving file /home/brandon/brandon@cronus: ~-downloads_008.png, png, 9
Updating fileinfos for key: [8] - 17:10:33
file:///home/brandon/brandon@cronus: ~-downloads_008.png thumbnail created
file:///home/brandon/brandon@cronus: ~-downloads_008.png thumbnail already exists
screenshot successfully saved to /home/brandon/brandon@cronus: ~-downloads_008.png!
created - [8] - 17:10:33
changed - [8] - 17:10:33
file:///home/brandon/brandon@cronus: ~-downloads_008.png - changed

Revision history for this message
Malaphus (brandon-collisionpoint) said :
#3

Missed the last line:

Updating fileinfos REJECTED for key: [8] - 17:10:33 (not modified)

Revision history for this message
Mario Kemper (Romario) (mario-kemper) said :
#4

Are you using a theme/style that uses the XShape Extension (http://en.wikipedia.org/wiki/Shape_extension)? These styles deliver rounded window corners for example, see:
http://img3.imageshack.us/img3/385/men001004015.png

As you can see in the screenshot above, I can reproduce the error using fluxbox and one of the styles called "bora*". Shutter usually queries the shapes of a non-rectangular window to display the window correctly (with transparent window borders in this case). Something goes wrong here in this special case.

I'll have a closer look at this as soon as possible.

Regards
Mario

Revision history for this message
Malaphus (brandon-collisionpoint) said :
#5

You were correct. simply removing/commenting the window.roundedCorners line in my style config fixed the problem, I can now take screenshots of windows! Thanks. I didn't care for the rounded corners anyway, have always just been too lazy to turn them off :P