Keyboard could not be grabbed

Bug #1021996 reported by bruno.braga
44
This bug affects 9 people
Affects Status Importance Assigned to Milestone
Shutter
Confirmed
Low
Mario Kemper (Romario)

Bug Description

I am running Shutter (my favourite by the way) on Ubuntu machines for quite some time, but recently I changed my window manager to i3wm, but I am having problems there.
Shutter only works for Selection screenshot, all others fail with the message:

"Error while taking the screenshot. Keyboard could not be grabbed."

(image attached)

I ran it in debug mode, and found lots of issues I am not quite sure about which one could be related to this, so I decided to open this ticket.

The debugging output was (ran it and tried to take 3 desktop screenshots):

---

$ shutter -d
WARNING: gnome-web-photo is missing --> screenshots of websites will be disabled!

WARNING: Net::DBus::GLib is missing --> Ubuntu One support will be disabled!

WARNING: Image::ExifTool is missing --> Writing Exif information will be disabled!

INFO: gathering system information...

Linux mac17 3.2.0-25-generic #40-Ubuntu SMP Wed May 23 20:30:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

Ubuntu 12.04 LTS \n \l

Glib 1.241
Gtk2 1.223

Glib built for 2.30.1, running with 2.32.3
Gtk2 built for 2.24.6, running with 2.24.10

3D reflection - /usr/share/shutter/resources/system/plugins/perl/sp3dreflection/sp3dreflection
3D rotate - /usr/share/shutter/resources/system/plugins/perl/sp3drotate/sp3drotate
Barrel Distortion - /usr/share/shutter/resources/system/plugins/perl/spbardistortion/spbardistortion
Bordereffects - /usr/share/shutter/resources/system/plugins/perl/spbordereffects/spbordereffects
Negate - /usr/share/shutter/resources/system/plugins/perl/spnegate/spnegate
Polaroid - /usr/share/shutter/resources/system/plugins/perl/sppolaroid/sppolaroid
Resize - /usr/share/shutter/resources/system/plugins/perl/spresize/spresize
Sepia - /usr/share/shutter/resources/system/plugins/perl/spsepia/spsepia
Hard Shadow - /usr/share/shutter/resources/system/plugins/perl/spshadow/spshadow
Watermark - /usr/share/shutter/resources/system/plugins/perl/spwatermark/spwatermark
Shutter Branding - /usr/share/shutter/resources/system/plugins/shell/spaddlogo/spaddlogo
Grayscale - /usr/share/shutter/resources/system/plugins/shell/spgrayscale/spgrayscale
Jigsaw Piece 1 - /usr/share/shutter/resources/system/plugins/shell/spjigsaw1/spjigsaw1
Jigsaw Piece 2 - /usr/share/shutter/resources/system/plugins/shell/spjigsaw2/spjigsaw2
Offset - /usr/share/shutter/resources/system/plugins/shell/spoffset/spoffset
Raise Border - /usr/share/shutter/resources/system/plugins/shell/spraise/spraise
Soft Edges - /usr/share/shutter/resources/system/plugins/shell/spsoftedges/spsoftedges
Sunk Border - /usr/share/shutter/resources/system/plugins/shell/spsunk/spsunk
Torned Paper - /usr/share/shutter/resources/system/plugins/shell/sptornedpaper/sptornedpaper
Autocrop - /usr/share/shutter/resources/system/plugins/shell/sptrim/sptrim

INFO: new upload-plugin information detected - /usr/share/shutter/resources/system/upload_plugins/upload/Dropbox
Can't locate Net/Dropbox/API.pm in @INC (@INC contains: /usr/share/shutter/resources/modules /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /usr/share/shutter/resources/system/upload_plugins/upload/Dropbox.pm line 73.
BEGIN failed--compilation aborted at /usr/share/shutter/resources/system/upload_plugins/upload/Dropbox.pm line 73.

ERROR: upload-plugin exists but does not work properly - /usr/share/shutter/resources/system/upload_plugins/upload/Dropbox
Current window manager: i3

type_changed was emitted by widget Gtk2::ComboBox=HASH(0x2791990)

qvalue_changed was emitted by widget Gtk2::HScale=HASH(0x4f5e0a0)

progname_toggled was emitted by widget Gtk2::CheckButton=HASH(0x277b208)

im_colors_changed was emitted by widget Gtk2::ComboBox=HASH(0x277b220)

im_colors_toggled was emitted by widget Gtk2::CheckButton=HASH(0x4f524e8)

thumbnail_changed was emitted by widget Gtk2::HScale=HASH(0x4f52428)

thumbnail_toggled was emitted by widget Gtk2::CheckButton=HASH(0x4f523e0)

bordereffect_toggled was emitted by widget Gtk2::CheckButton=HASH(0x4f52368)

bordereffect_changed was emitted by widget Gtk2::SpinButton=HASH(0x4f52320)

menu_delay_changed was emitted by widget Gtk2::SpinButton=HASH(0x2765eb0)

keybinding_sel_toggled was emitted by widget Gtk2::CheckButton=HASH(0x4f51768)

hide_time_changed was emitted by widget Gtk2::SpinButton=HASH(0x4f4c8f8)

ns_changed was emitted by widget Gtk2::ComboBox=HASH(0x4f4c8c8)
Use of uninitialized value in numeric le (<=) at /usr/bin/shutter line 9020.

full was emitted by widget Gtk2::MenuToolButton=HASH(0x27f1c90)
3 Ns used in wild-card
Searching for files with pattern: (?^u:20120707_(\d\d\d)\.jpeg)
Searching for files with pattern: (?^u:20120707_(\d\d\d)\.jpeg)
Comparing 20120702_001.jpeg
Comparing Screenshot from 2012-07-07 12:10:33.png
Comparing Screenshot from 2012-06-28 23:10:11.png
Comparing 20120629_001.jpeg
Comparing 20120706_001.jpeg
Comparing 20120616_90f4.jpeg
Comparing 20120629_002.jpeg
Comparing 20120707_001.jpeg
001 is currently greatest value...
Comparing 20120628_002.jpeg

full was emitted by widget Gtk2::MenuToolButton=HASH(0x27f1c90)
3 Ns used in wild-card
Searching for files with pattern: (?^u:20120707_(\d\d\d)\.jpeg)
Searching for files with pattern: (?^u:20120707_(\d\d\d)\.jpeg)
Comparing 20120702_001.jpeg
Comparing Screenshot from 2012-07-07 12:10:33.png
Comparing Screenshot from 2012-06-28 23:10:11.png
Comparing 20120629_001.jpeg
Comparing 20120706_001.jpeg
Comparing 20120616_90f4.jpeg
Comparing 20120629_002.jpeg
Comparing 20120707_001.jpeg
001 is currently greatest value...
Comparing 20120628_002.jpeg

Gtk2::Gdk::Event=SCALAR(0x4f40c78) was emitted by widget Gtk2::Window=HASH(0x477e770)

3, 68754845 was emitted by widget Gtk2::StatusIcon=HASH(0x4c32b88)

quit was emitted by widget Gtk2::ImageMenuItem=HASH(0x4a1a660)
WARNING: DBus connection to org.freedesktop.compiz failed --> setting keyboard shortcuts may not work when using compiz

org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.compiz was not provided by any .service files

----

Any ideas of what could be the problem?

Thanks,

Revision history for this message
bruno.braga (bruno-braga) wrote :
Revision history for this message
Mario Kemper (Romario) (mario-kemper) wrote :

i3wm is not supported yet. I'll have a look at it.

Changed in shutter:
assignee: nobody → Mario Kemper (Romario) (mario-kemper)
importance: Undecided → Low
milestone: none → misc
status: New → Confirmed
Revision history for this message
nh2 (nh2) wrote :

Any update here?

Revision history for this message
superchargingmachine (superchargingmachine) wrote :

I'm having the same issue on Bodhi Enlightenment E17. Rectangular capture and website capture work. Take a screenshot of your desktop or select a window give the error, "keyboard could not be grabbed" and "Maybe mouse pointer could not be grabbed or the selected area is invalid", respectively.

Revision history for this message
Kuzma (kuzma-wm) wrote :

Same problem

Revision history for this message
Johannes Deutsch (j-deutsch) wrote :

Same problem on my system, too!

Revision history for this message
Yannick Vaucher @ Camptocamp (yvaucher-c2c) wrote :

Any update same issue on Ubuntu 14.04 with i3-wm ?

As superchargingmachine selection capture works but other gives the 'not grabbed' errors

Revision history for this message
Jeff Hoogland (jeffhoogland) wrote :

Just a nudge that this still exists with the latest Enlightenment desktop (as of this post DR19.2)

~Jeff

Revision history for this message
Tomas Sandven (codemonkey1991) wrote :

I have this problem as well, but I should specify that taking a desktop screenshot *does work* in workspace 1, but not in any other workspace (2, 3, 4...)

Revision history for this message
Somewhere over the.. (nemonein) wrote :

It happens on Kubuntu 17.10.
Desktop capture gives this error.

Revision history for this message
Rubin Starset (rubin110) wrote :

About 2-3 months ago I started seeing this under Debian Sid running KDE Plasma 5.12.4. Additionally the app no longer gives me a list of windows to pick from the select a window drop down box. Both of these weren't an issue prior under the same environment.

Revision history for this message
3vi1 (launchpad-net-eternaldusk) wrote :

I'm seeing this in test installs of Cosmic Cuttlefish (daily build, pre-alpha) as well, when trying to take shots of the latest plasma-desktop.

Revision history for this message
bruno dias da silva (brunodiasinfo) wrote :

Hello, I had the same problem on Arch using gnome3 with wayland, after starting gnome with Xorg, the problem was solved.

┌──[bruno@chiredean]─[ 27/08/2020-06:55:41 PM]─[✔]─[~]
└──╼ $ uname -r
5.8.3-arch1-1

┌──[bruno@chiredean]─[ 27/08/2020-06:55:50 PM]─[✔]─[~]
└──╼ $ env | grep wayland

┌──[bruno@chiredean]─[ 27/08/2020-06:57:37 PM]─[✗]─[~]
└──╼ $ env | grep xorg
DESKTOP_SESSION=gnome-xorg
XDG_SESSION_DESKTOP=gnome-xorg
GDMSESSION=gnome-xorg

Revision history for this message
Roman Motovilov (bombey77) wrote :

Hello, I had the same problem on Ubuntu 21.04 using Gnome 3.38.5.

I got the application from ppa:linuxuprising/shutter repository.

Revision history for this message
Roman Motovilov (bombey77) wrote :

Hello. After I started my Ubuntu with xorg everything started working well.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.