shutter-project / shutter

Screenshot tool for Linux
https://shutter-project.org/
GNU General Public License v3.0
512 stars 34 forks source link

Shutter process does not exit after shutter close #121

Open Photon89 opened 4 years ago

Photon89 commented 4 years ago

Steprs to reproduce:

  1. Run shutter.
  2. Close it with Alt-F4
  3. shutter is still in process list, but not visible in launcher nor in tray icons.

Correct way to close shutter is "Quit" from menu. But it's not documented and there is no option to change this behaviour.

Also, initially I found "shutter" eating 100% CPU in process list, but I cannot reproduce this, probably.

shutter: Installed: 0.88.1-1 Candidate: 0.88.1-1 Version table: *** 0.88.1-1 0 500 http://ru.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages 100 /var/lib/dpkg/status

Rev.1184

Ubuntu 12.04 with Unity

Launchpad Details: #LP1237366 vsespb - 2013-10-09 11:47:21 +0000

Photon89 commented 4 years ago

similar https://bugs.launchpad.net/ubuntu/+source/linphone/+bug/1258654

Launchpad Details: #LPC vsespb - 2013-12-06 21:49:24 +0000

Photon89 commented 4 years ago

I'm not using Unity (and therefore libappindicator), but things you could do to trac the problem:

  1. Try the current version from this PPA: https://launchpad.net/~shutter/+archive/ppa?field.series_filter=precise
  2. Start Shutter from the command line and see what messages it displays after trying to close it.

Launchpad Details: #LPC Michael Kogan - 2013-12-08 09:19:39 +0000

Photon89 commented 4 years ago
  1. Start Shutter from the command line and see what messages it displays after trying to close it.

no messages at all. (below messages thrown before I try to close it. )

==== 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: 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 Use of uninitialized value in numeric le (<=) at /usr/bin/shutter line 9020. ^CWARNING: 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

  1. Try the current version from this PPA

same effect.

shutter: Installed: 0.90.1~ppa1~precise1 Candidate: 0.90.1~ppa1~precise1 Version table: *** 0.90.1~ppa1~precise1 0 500 http://ppa.launchpad.net/shutter/ppa/ubuntu/ precise/main amd64 Packages 100 /var/lib/dpkg/status 0.88.1-1 0 500 http://ru.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages

Launchpad Details: #LPC vsespb - 2013-12-08 09:36:38 +0000

Photon89 commented 4 years ago

I have perl modules installed over CPAN on my box. So I tried empty new Ubuntu 12.04 VM - same problem.

Launchpad Details: #LPC vsespb - 2013-12-08 09:42:53 +0000

Photon89 commented 4 years ago

Since you already have a VM install to play with, could you maybe test with another DE (say, Xfce)? I suppost that this is a libappindicator problem but this needs to be clarified.

Launchpad Details: #LPC Michael Kogan - 2013-12-08 11:02:28 +0000

Photon89 commented 4 years ago

I don't have Ubuntu VMs with another DE. Let's just wait till someone reproduce problem in Unity and confirm ticket. If you don't have unity you unlikely can fix it and test the fix.

Launchpad Details: #LPC vsespb - 2013-12-08 11:16:23 +0000

Photon89 commented 4 years ago

I'm having the same issue with Xubuntu 13.10.

Running command via a script as: /usr/bin/shutter -s -e -n -c --output=screenshot.png

If I hit escape, it never exits.

If I run shutter manually (no options) and then click "X" to close the window, I get the same behavior.

Attempted with both PPA and Xubuntu repository releases.

Messages on command line:

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

/usr/bin/shutter --version WARNING: Net::DBus::GLib is missing --> Ubuntu One support will be disabled!

0.90.1 Rev.1259

Launchpad Details: #LPC covertgeek - 2014-01-09 22:33:27 +0000

Photon89 commented 4 years ago

Still a problem on 0.94 Rev.1290

Repro steps:

1> $ shutter -s -e 2> wait for selection instructions to appear 3> press ESC

If you are looking at your terminal you will see: GLib-CRITICAL **: Source ID 130 was not found when attempting to remove it at /usr/bin/shutter line 7262.

Launchpad Details: #LPC htellez - 2019-05-14 18:16:52 +0000

Photon89 commented 4 years ago

htellez: I think, this is a different issue. When you press ESC in selection mode, the selection mode is terminated but Shutter itself is still running, you should see its tray icon still being displayed. This is the way it is intended to be. The original bug report describes another issue, the tray icon being gone and only a process still running.

Launchpad Details: #LPC Michael Kogan - 2019-06-15 10:27:58 +0000