Shutter - Screenshot Tool

Launching a second instance of Shutter if one instance is already open causes a crash

Reported by Photon on 2011-03-09
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Shutter
Low
Mario Kemper (Romario)

Bug Description

When Shutter is already open the use of Print or Alt+Print crashes it with following output:

Speicherzugriffsfehler

If using the shortcuts when Shutter isn't open everything works fine.

Rev. 1064 on Arch Linux

Full output attached.

Photon (michael-kogan) wrote :
description: updated

This does not happen when running Ubuntu, but I have seen those crashes during development. Could you please try different capture modes and check if Shutter crashes in all cases? See 'man shutter' for all available capture modes.

Seems to appear with all modes (selecting different modes in Preferences>Keyboard and then trying Alt+Print).

summary: - Using PrintScreen when Shuter is already open causes a crash
+ Using PrintScreen when Shutter is already open causes a crash
Photon (michael-kogan) wrote :

Using libunique 1.1.6 and perl-gtk2-unique 0.05.

Changed in shutter:
assignee: nobody → Mario Kemper (Romario) (mario-kemper)
importance: Undecided → Low
milestone: none → 0.88.x
status: New → Confirmed
Photon (michael-kogan) wrote :

I thought, you might be interested in the output of the new instance launched with another instance being open, the relevant lines are

WARNING **: Error while sending message: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus) at /usr/bin/shutter line 320, <DATA> line 19.

INFO: There is already another instance of Shutter running!

Also, the problem is not related to the PrintScreen shortcut, it appears also when both instances are launched from the terminal via "/usr/bin/shutter --full".

summary: - Using PrintScreen when Shutter is already open causes a crash
+ Launching a second instance of Shutter if one instance is already open
+ causes a crash
tags: added: instances
removed: shortkeys
bericp1 (bericp1) wrote :

Affects me too on Arch, all packages related to shutter up to date. Any other way to bind shortcut keys without running the shutter command again?

Changed in shutter:
milestone: upload → capture
patryk (pbratkowski) wrote :

Also have that problem running aur/shutter 0.90.1-1 and aur/shutter-bzr 1253-2

Using the bzr revision, if I change line 333 from
$app->send_message( $cmdid, text => '' );
to
$app->send_message( $cmdid, text => 'a' );

it no longer crashes when running shutter --full in another window. It appears that $message->get_text causes the segfault when text is set to an empty string.

It still crashes when using shutter --window, because on line 330, $extra is defined, but set to ''.

Sorry, I won't debug the whole thing but this should get you started in the right direction.

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

Other bug subscribers

Bug attachments