Bug 1537008 - Shutter crash on capture when another instance already running.
Summary: Shutter crash on capture when another instance already running.
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: shutter
Version: 27
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Liang Suilong
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-22 09:20 UTC by Alex B
Modified: 2020-05-17 19:31 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-11-30 19:20:17 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Alex B 2018-01-22 09:20:03 UTC
Description of problem:
If "/usr/bin/shutter --select" is called when Shutter is already running it crashes.

Version-Release number of selected component (if applicable):
Shutter 0.93.1 Rev 1278

How reproducible:

Steps to Reproduce:
1. Start shutter or capture screen via /usr/bin/shutter --select
2. Shutter is now running and sits in tray
3. Call /usr/bin/shutter --select

Actual results:
Shutter crashes/coredumps

Expected results:
Take a screenshot via --select just like before

Additional info:

First instance started with debug:
==================================
/usr/bin/shutter --debug
WARNING: gnome-web-photo is missing --> screenshots of websites will be disabled!


INFO: gathering system information...

Linux navarro.ibm.com 4.14.13-300.fc27.x86_64 #1 SMP Thu Jan 11 04:00:01 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

\S
Kernel \r on an \m (\l)


Glib 1.326 
Gtk2 1.24992 

Glib built for 2.53.4, running with 2.54.2
Gtk2 built for 2.24.31, running with 2.24.32

GdkPixbuf-LOG **: gdk_pixbuf_from_pixdata() called on: at /usr/bin/shutter line 520, <DATA> line 19.
GdkPixbuf-LOG **: 	Encoding raw at /usr/bin/shutter line 520, <DATA> line 19.
GdkPixbuf-LOG **: 	Dimensions: 16 x 16 at /usr/bin/shutter line 520, <DATA> line 19.
GdkPixbuf-LOG **: 	Rowstride: 64, Length: 1048 at /usr/bin/shutter line 520, <DATA> line 19.
GdkPixbuf-LOG **: 	Copy pixels == false at /usr/bin/shutter line 520, <DATA> line 19.
GdkPixbuf-LOG **: gdk_pixbuf_from_pixdata() called on: at /usr/bin/shutter line 520, <DATA> line 19.
GdkPixbuf-LOG **: 	Encoding raw at /usr/bin/shutter line 520, <DATA> line 19.
GdkPixbuf-LOG **: 	Dimensions: 16 x 16 at /usr/bin/shutter line 520, <DATA> line 19.
GdkPixbuf-LOG **: 	Rowstride: 64, Length: 1048 at /usr/bin/shutter line 520, <DATA> line 19.
GdkPixbuf-LOG **: 	Copy pixels == false at /usr/bin/shutter line 520, <DATA> line 19.
GdkPixbuf-LOG **: gdk_pixbuf_from_pixdata() called on: at /usr/bin/shutter line 520, <DATA> line 19.
GdkPixbuf-LOG **: 	Encoding raw at /usr/bin/shutter line 520, <DATA> line 19.
GdkPixbuf-LOG **: 	Dimensions: 16 x 16 at /usr/bin/shutter line 520, <DATA> line 19.
GdkPixbuf-LOG **: 	Rowstride: 64, Length: 1048 at /usr/bin/shutter line 520, <DATA> line 19.
GdkPixbuf-LOG **: 	Copy pixels == false at /usr/bin/shutter line 520, <DATA> line 19.
GdkPixbuf-LOG **: gdk_pixbuf_from_pixdata() called on: at /usr/bin/shutter line 520, <DATA> line 19.
GdkPixbuf-LOG **: 	Encoding raw at /usr/bin/shutter line 520, <DATA> line 19.
GdkPixbuf-LOG **: 	Dimensions: 16 x 16 at /usr/bin/shutter line 520, <DATA> line 19.
GdkPixbuf-LOG **: 	Rowstride: 64, Length: 1048 at /usr/bin/shutter line 520, <DATA> line 19.
GdkPixbuf-LOG **: 	Copy pixels == false at /usr/bin/shutter line 520, <DATA> line 19.
File::Glob::glob() will disappear in perl 5.30. Use File::Glob::bsd_glob() instead. at /usr/bin/shutter line 8199.
Barrel Distortion - /usr/share/shutter/resources/system/plugins/perl/spbardistortion/spbardistortion
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
Grayscale - /usr/share/shutter/resources/system/plugins/shell/spgrayscale/spgrayscale
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
Current window manager: compiz
shutter_wrksp_direct_compiz0x0
shutter_wrksp_direct_compiz1600x0
shutter_wrksp_direct_compiz3200x0
shutter_wrksp_direct_compiz0x900
shutter_wrksp_direct_compiz1600x900
shutter_wrksp_direct_compiz3200x900
shutter_wrksp_direct_compiz0x1800
shutter_wrksp_direct_compiz1600x1800
shutter_wrksp_direct_compiz3200x1800

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

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

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

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

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

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

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

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

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

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

ns_changed was emitted by widget Gtk2::ComboBox=HASH(0x55b230d09130)

fct_update_tray_menu was called by Gnome2::Wnck::Screen=HASH(0x55b23050ac08)
GdkPixbuf-LOG **: gdk_pixbuf_from_pixdata() called on: at /usr/bin/shutter line 4505.
GdkPixbuf-LOG **: 	Encoding raw at /usr/bin/shutter line 4505.
GdkPixbuf-LOG **: 	Dimensions: 14 x 14 at /usr/bin/shutter line 4505.
GdkPixbuf-LOG **: 	Rowstride: 56, Length: 808 at /usr/bin/shutter line 4505.
GdkPixbuf-LOG **: 	Copy pixels == false at /usr/bin/shutter line 4505.
GdkPixbuf-LOG **: gdk_pixbuf_from_pixdata() called on: at /usr/bin/shutter line 4505.
GdkPixbuf-LOG **: 	Encoding raw at /usr/bin/shutter line 4505.
GdkPixbuf-LOG **: 	Dimensions: 14 x 14 at /usr/bin/shutter line 4505.
GdkPixbuf-LOG **: 	Rowstride: 56, Length: 808 at /usr/bin/shutter line 4505.
GdkPixbuf-LOG **: 	Copy pixels == false at /usr/bin/shutter line 4505.
Updating fileinfos for key: [1] - Selection_999(1611).png
file:///home/bujnoch/Documents/Screenshots/Selection_999(1611).png thumbnail already exists
file:///home/bujnoch/Documents/Screenshots/Selection_999(1611).png thumbnail already exists
GdkPixbuf-LOG **: gdk_pixbuf_from_pixdata() called on: at /usr/bin/shutter line 2884.
GdkPixbuf-LOG **: 	Encoding raw at /usr/bin/shutter line 2884.
GdkPixbuf-LOG **: 	Dimensions: 16 x 16 at /usr/bin/shutter line 2884.
GdkPixbuf-LOG **: 	Rowstride: 64, Length: 1048 at /usr/bin/shutter line 2884.
GdkPixbuf-LOG **: 	Copy pixels == false at /usr/bin/shutter line 2884.
GdkPixbuf-LOG **: gdk_pixbuf_from_pixdata() called on: at /usr/bin/shutter line 2884.
GdkPixbuf-LOG **: 	Encoding raw at /usr/bin/shutter line 2884.
GdkPixbuf-LOG **: 	Dimensions: 16 x 16 at /usr/bin/shutter line 2884.
GdkPixbuf-LOG **: 	Rowstride: 64, Length: 1048 at /usr/bin/shutter line 2884.
GdkPixbuf-LOG **: 	Copy pixels == false at /usr/bin/shutter line 2884.

fct_update_tray_menu was called by Gnome2::Wnck::Screen=HASH(0x55b23050ac08)

fct_update_tray_menu was called by Gnome2::Wnck::Screen=HASH(0x55b23050ac08)

fct_update_tray_menu was called by Gnome2::Wnck::Screen=HASH(0x55b23050ac08)


Now --select from second terminal:
==================================
/usr/bin/shutter --select --debug
WARNING: gnome-web-photo is missing --> screenshots of websites will be disabled!


(shutter:21038): Unique-DBus-WARNING **: Error while sending message: Message recipient disconnected from message bus without replying

INFO: There is already another instance of Shutter running!

First terminal shows only this:
===============================
Segmentation fault (core dumped)


This might be the same issue:
https://bugs.launchpad.net/shutter/+bug/731874

Comment 1 Ben Cotton 2018-11-27 17:24:25 UTC
This message is a reminder that Fedora 27 is nearing its end of life.
On 2018-Nov-30  Fedora will stop maintaining and issuing updates for
Fedora 27. It is Fedora's policy to close all bug reports from releases
that are no longer maintained. At that time this bug will be closed as
EOL if it remains open with a Fedora  'version' of '27'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 27 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 2 Ben Cotton 2018-11-30 19:20:17 UTC
Fedora 27 changed to end-of-life (EOL) status on 2018-11-30. Fedora 27 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 3 Roberto Villegas 2020-05-17 19:31:32 UTC
Thanks for this fix!!!
https://bugs.launchpad.net/shutter/+bug/731874/comments/14

It works for me even on:
shutter 0.94.3 Rev.1306
Fedora release 31 (Thirty One)
Sun 17 May 2020 02:22:58 PM CDT

vim /bin/shutter
  326     #send $cmdid
  327     if ( defined $cmdid && defined $extra ) {
  328         if (!$extra) {
  329             ###Quick fix to avoid segmentation fault in some environments.
  330             $extra = "text=>null";
  331         }
  332         $app->send_message( $cmdid, text => $extra );
  333     }
...
  495                 else {###
  496                     #my $arg = defined $message->get ? $message->get_text : "";
  497                     #&evt_take_screenshot( 'global_keybinding', $cmd, undef, $arg );
  498                     my $extra = $message->get_text;
  499                     if ( $extra eq "text=>null" ) {
  500                         $extra = '';
  501                     }
  502                     &evt_take_screenshot( 'global_keybinding', $cmd, undef, $extra );
  503                 }
  504             }


Note You need to log in before you can comment on or make changes to this bug.