Bug 25183 - Shutter does not work with some LANG variants
Summary: Shutter does not work with some LANG variants
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA8-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2019-07-26 13:45 CEST by eric gerbier
Modified: 2021-11-18 22:52 CET (History)
13 users (show)

See Also:
Source RPM: shutter-0.94.3-2.mga8.src.rpm
CVE:
Status comment:


Attachments
spec file for 0.99.2 (2.10 KB, text/x-matlab)
2021-11-09 22:40 CET, papoteur
Details
spec file for perl goocanvas (1.95 KB, text/x-rpm-spec)
2021-11-09 22:42 CET, papoteur
Details

Description eric gerbier 2019-07-26 13:45:23 CEST
Description of problem:
the shutter does not work on mageia 7 (it was working on mageia 6)

Version-Release number of selected component (if applicable):
shutter-0.94-2.mga7

How reproducible:


Steps to Reproduce:
1. sudo urpmi shutter
2. shutter

no gui and output is 

GdkPixbuf-LOG **: gdk_pixbuf_from_pixdata() called on: at /usr/bin/shutter line 527, <DATA> line 19.
GdkPixbuf-LOG **: 	Encoding raw at /usr/bin/shutter line 527, <DATA> line 19.
GdkPixbuf-LOG **: 	Dimensions: 16 x 16 at /usr/bin/shutter line 527, <DATA> line 19.
GdkPixbuf-LOG **: 	Rowstride: 64, Length: 1048 at /usr/bin/shutter line 527, <DATA> line 19.
GdkPixbuf-LOG **: 	Copy pixels == false at /usr/bin/shutter line 527, <DATA> line 19.
GdkPixbuf-LOG **: gdk_pixbuf_from_pixdata() called on: at /usr/bin/shutter line 527, <DATA> line 19.
GdkPixbuf-LOG **: 	Encoding raw at /usr/bin/shutter line 527, <DATA> line 19.
GdkPixbuf-LOG **: 	Dimensions: 16 x 16 at /usr/bin/shutter line 527, <DATA> line 19.
GdkPixbuf-LOG **: 	Rowstride: 64, Length: 1048 at /usr/bin/shutter line 527, <DATA> line 19.
GdkPixbuf-LOG **: 	Copy pixels == false at /usr/bin/shutter line 527, <DATA> line 19.
Wide character at /usr/lib64/perl5/Encode.pm line 296, <DATA> line 19.

If I use the example from man page , for a batch use (no gui) :
shutter -f -e -o './%y-%m-%d_$w_$h.png'

no image is created
Comment 1 David GEIGER 2019-07-26 14:37:32 CEST
Assigning to the registered maintainer!

Assignee: bugsquad => shlomif
CC: (none) => geiger.david68210

Comment 2 Shlomi Fish 2019-07-26 17:15:14 CEST
shutter starts fine in the 7.1 xfce x64 live dvd in a vbox vm from the command line. I need more details on your host system, and whether it works fine in a new linux user.
Comment 3 eric gerbier 2019-07-29 11:14:37 CEST
it seems to be translation problem :

I'm french, so my locale is fr_FR.UTF-8

if I use "export LANG=fr_FR.UTF-8"
shutter does not start

if I use "export LANG=POSIX" shutter works as expected
Comment 4 eric gerbier 2019-07-30 08:29:52 CEST
some more tests wuth differents LANG :

LANG=fr : works (with warnings)
LANG=fr_FR : does not work
LANG=fr_FR.UTF-8 : does not work

same for english
LANG=en : works (with warnings)
LANG=en_GB : does not work
LANG=en_GB.UTF-8 : does not work
Comment 5 David GEIGER 2019-09-20 12:39:52 CEST
Confirmed here on my mga7 (French user) shutter doesn't work at all.
Comment 6 Lewis Smith 2019-11-28 14:34:04 CET
Re-assigning globally due to change to no specific maintainer.

Assignee: shlomif => pkg-bugs

Comment 7 Marc Krämer 2020-12-15 13:47:41 CET
it still does not start:


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

WARNING: Gtk2::AppIndicator is missing --> there will be no icon showing up in the status bar when running Unity!


INFO: gathering system information...

Linux localhost.aldente 5.7.19-desktop-3.mga7 #1 SMP Sun Oct 18 15:46:00 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Mageia release 7 (Official) for x86_64
Kernel 5.7.19-desktop-3.mga7 on a 4-processor x86_64 / \l

Glib 1.329 
Gtk2 1.24992 

Glib built for 2.58.3, running with 2.60.2
Gtk2 built for 2.24.32, running with 2.24.32

Wide character at /usr/lib64/perl5/Encode.pm line 296, <DATA> line 19.

CC: (none) => mageia

Marc Krämer 2020-12-16 16:48:23 CET

Whiteboard: (none) => CAULDRON_TOO

Marc Krämer 2020-12-27 12:08:27 CET

Depends on: (none) => 27944

Comment 8 Marc Krämer 2020-12-27 12:10:09 CET
It would be really good to get this tool working, as it helps taking screenshots.
Lewis Smith 2020-12-31 11:29:51 CET

Depends on: 27944 => (none)

Comment 9 Lewis Smith 2020-12-31 11:49:02 CET
Well, I have just installed (~30 pkgs) & tried it. After much messing about with plugins, it started OK from the menu; from terminal:
 $ shutter
WARNING: gnome-web-photo is missing --> screenshots of websites will be disabled!
WARNING: Gtk2::AppIndicator is missing --> there will be no icon showing up in the status bar when running Unity!
INFO: gathering system information...
 then lots of O/P, then the GUI, closed, to
quit was emitted by widget Gtk2::ImageMenuItem=HASH(0x4973fd8)
GLib-CRITICAL **: Source ID 32 was not found when attempting to remove it at /usr/bin/shutter line 7265.

shutter-0.94-2.mga7
 $ echo $LANG
 cy_GB.UTF-8
Desktop: LXDE 0.10.0 wm: Openbox

For me, it worked similarly for Cauldron/Mageia 8.
Marc indicated CAULDRON_TOO (which I removed); can anyone else for whom it does not work for M7 confirm the problem for M8 also? If you find it does *not* work for that, please:
* Edit the title to show both M7 & M8
* Change the heading Version 7 -> Cauldron
* Put MGA7TOO in the Whiteboard field.
(or we will).

Whiteboard: CAULDRON_TOO => (none)
Summary: shutter does not work on mageia 7 => shutter does not work on mageia 7 on some systems
CC: (none) => lewyssmith

Comment 10 man draker 2021-01-05 17:04:59 CET
I can confirm, that the behaviour is the same with a just updated Cauldron right now.
Crash with

echo $LANG
de_DE.UTF-8

works with:

echo $LANG
POSIX

CC: (none) => man-draker

Comment 11 Lewis Smith 2021-01-05 21:47:15 CET
Thank you contributors for the LANG tests, which certainly pin this down; bug adjusted accordingly.

Re-assigning to Shlomi whose comment 2 was encouraging.

(In reply to Marc Krämer from comment #8)
> It would be really good to get this tool working, as it helps taking
> screenshots.
Try flameshot, it is remarkable, with a host of instantly accessible features. Configure it to sit in Systray. You have to explore it: read its intro (& note that the mousewheel changes font size as well as line thickness), and explore all the border icons. It offers one-click saving, and powerful screenshot annotations avoiding subsequent image editing.
Who needs shutter?

Version: 7 => Cauldron
Assignee: pkg-bugs => shlomif
Source RPM: shutter-0.94-2.mga7.src.rpm => shutter-0.94-2.mga7.src.rpm, shutter-0.94.3-2.mga8.src.rpm
Summary: shutter does not work on mageia 7 on some systems => shutter does not work with some LANG variants, M7 & M8
Whiteboard: (none) => MGA7TOO

Comment 12 Marc Krämer 2021-01-06 10:09:03 CET
@Lewis: shlomi has quit as maintainer, so I don't expect him to check this.

I've tried changing LANG and starting shutter, but this fails.

I've tried flameshot, looks nice. I'll try this for now.
Comment 13 Marc Krämer 2021-01-30 12:21:13 CET
should we just drop shutter? If this one is not working at all, and is propably unmaintained(?), it is better to drop it, than to get the impression this is working as expected.
Comment 14 Morgan Leijström 2021-01-30 13:04:23 CET
It does not happen much upstream.

Last bugfix release one and a half year ago, and from what it fix since the version we have i dont spot a fix for the problem we see.
https://launchpad.net/shutter
New bugs keep being registered
https://bugs.launchpad.net/shutter

Flameshot is in cauldron but not mga7

I think we should drop Shutter in mga8.
While doing that ensure there is a (working) screenshot app installed with any single desktop we fully support.

CC: (none) => fri

Comment 15 Lewis Smith 2021-01-30 14:38:18 CET
Thanks Morgan for the research.
I remember QA testing flameshot once, so perhaps it is in M7 Backports.

CC'ing ISO team, as this may effect ISO contents.

CC: (none) => isobuild
Assignee: shlomif => pkg-bugs
Summary: shutter does not work with some LANG variants, M7 & M8 => shutter does not work with some LANG variants, M7 & M8, and is scarcely active upstream. CAN WE DROP IT?

Comment 16 Morgan Leijström 2021-01-30 17:20:14 CET
___Shutter:

Coincidence?  1 hr ago: version 0.95
https://launchpad.net/shutter/+announcement/28417

So i suggest to try packaging this at least for mga7.

https://github.com/shutter-project
https://shutter-project.org/




___Flameshot:

I dont find it in mag7 backports either.

But i find their Appimage works on 64 bit mga7 plasma.
chmod +x, and launch it, and there the icon is in systray :)

Appimage: https://github.com/flameshot-org/flameshot/releases

Really nice :)   i.e see video at https://flameshot.org/

I also see they have it as Flatpak:
https://flathub.org/apps/details/org.flameshot.Flameshot
Comment 17 Dave Hodgins 2021-01-31 01:08:24 CET
(In reply to Morgan Leijström from comment #16)
> ___Flameshot:
> 
> I dont find it in mag7 backports either.

https://mirror.math.princeton.edu/pub/mageia/distrib/7/SRPMS/core/backports/flameshot-0.6.0-1.mga7.src.rpm

CC: (none) => davidwhodgins

Comment 18 Morgan Leijström 2021-01-31 03:00:11 CET
You are correct, dont know why i missed it...
the rpm is at i.e http://ftp.acc.umu.se/mirror/mageia/distrib/7.1/x86_64/media/core/backports/

Anyhow, it is old - that Appimage have much more functions, and translations :)
Comment 19 papoteur 2021-11-06 21:16:21 CET
A new release has been published.
https://github.com/shutter-project/shutter/tree/v0.99.2

CC: (none) => yves.brungard_mageia

Comment 20 Morgan Leijström 2021-11-06 22:59:58 CET
In mga8 we have 0.94.3-2
Works for me in Swedish locale, minus some bad characters in the localised menu.

Summary: shutter does not work with some LANG variants, M7 & M8, and is scarcely active upstream. CAN WE DROP IT? => Shutter does not work with some LANG variants (still?), new release upstream.
Status comment: (none) => Seldom updated. Drop in mga9? Or update, also in mga8 - now!
Whiteboard: MGA7TOO => MGA8TOO
Source RPM: shutter-0.94-2.mga7.src.rpm, shutter-0.94.3-2.mga8.src.rpm => shutter-0.94.3-2.mga8.src.rpm

Comment 21 Marc Krämer 2021-11-07 12:52:31 CET
nope:
[marc@lap01 ~]$ shutter 
WARNING: gnome-web-photo is missing --> screenshots of websites will be disabled!

WARNING: Gtk2::AppIndicator is missing --> there will be no icon showing up in the status bar when running Unity!


INFO: gathering system information...

Linux lap01.aldente 5.10.75-desktop-1.mga8 #1 SMP Wed Oct 20 10:23:35 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Mageia release 8 (Official) for x86_64
Kernel 5.10.75-desktop-1.mga8 on a 4-processor x86_64 / \l

Glib 1.3293 
Gtk2 1.24993 

Glib built for 2.64.3, running with 2.66.8
Gtk2 built for 2.24.32, running with 2.24.33

Wide character at /usr/lib64/perl5/vendor_perl/Locale/gettext.pm line 226, <DATA> line 19.
[marc@lap01 ~]$ ps aux|grep -i shutt
marc       26130  0.0  0.0  35508   712 pts/2    S+   12:51   0:00 grep --color -i shutt
Comment 22 papoteur 2021-11-09 22:40:39 CET
Created attachment 12980 [details]
spec file for 0.99.2

I tried to build this release with this spec file.
It needs also to add a new package Goocanvas-CairoFiles.
However, the program still crashes in French, but not with LC_ALL.
Comment 23 papoteur 2021-11-09 22:42:00 CET
Created attachment 12981 [details]
spec file for perl goocanvas
Comment 24 papoteur 2021-11-10 12:18:31 CET
I didn't find any bug report in shutter about translations.
Running the 0.99.2, I get this trace:

Wide character at /usr/lib64/perl5/vendor_perl/Locale/gettext.pm line 226, <DATA> line 19.
        Locale::gettext::_convert(Locale::gettext=HASH(0x5701ea8), "_Renommer\x{2026}") called at /usr/lib64/perl5/vendor_perl/Locale/gettext.pm line 126
        Locale::gettext::get(Locale::gettext=HASH(0x5701ea8), "_Rename...") called at /usr/share/shutter/resources/modules/Shutter/App/Menu.pm line 543
        Shutter::App::Menu::fct_ret_actions_menu(Shutter::App::Menu=HASH(0x1bd2080), Gtk3::AccelGroup=HASH(0x57bc798), Locale::gettext=HASH(0x5701ea8), "/usr") called at /usr/share/shutter/resources/modules/Shutter/App/Menu.pm line 79
        Shutter::App::Menu::create_menu(Shutter::App::Menu=HASH(0x1bd2080)) called at /usr/bin/shutter line 490
        Shutter::App::STARTUP(Shutter::App=HASH(0x501a0e0)) called at /usr/lib64/perl5/vendor_perl/Glib/Object/Introspection.pm line 67
        Glib::Object::Introspection::__ANON__(Shutter::App=HASH(0x501a0e0)) called at /usr/bin/shutter line 10943
Erreur de segmentation (core dumped)

The problem seems to be in (our) gettext function, when the … alias \x{2026} character is returned in a translated string.
Or shouldn't the character have been encoded in such a way when building .mo files?
papoteur 2021-11-10 18:25:17 CET

Depends on: (none) => 29640

Comment 25 Jani Välimaa 2021-11-10 20:19:08 CET
This is a duplicate of bug 14541. The original bug was fixed but reintroduced again in 0.94-1.mga7 with incorrectly removed shutter-0.93.1-mga-fix-utf8-locale.patch.

https://svnweb.mageia.org/packages?view=revision&revision=1204866

The patch is now restored and rediffed in cauldron's shutter-0.99.2-1.mga9.

CC: (none) => jani.valimaa

Comment 26 papoteur 2021-11-11 10:29:56 CET
Thanks Wally,
I can now launch it in cauldron.
What is surprising is that our perl-gettext doesn't seem to have the same behaviour as in Debian.
Jani Välimaa 2021-11-11 16:54:06 CET

Summary: Shutter does not work with some LANG variants (still?), new release upstream. => Shutter does not work with some LANG variants
Status comment: Seldom updated. Drop in mga9? Or update, also in mga8 - now! => (none)
Version: Cauldron => 8
Depends on: 29640 => (none)
Whiteboard: MGA8TOO => (none)

Comment 27 Jani Välimaa 2021-11-11 16:56:10 CET
Should be fixed also in mga8 with shutter-0.94.3-2.1.mga8 in core/updates_testing. Please test.

Assignee: pkg-bugs => qa-bugs

Comment 28 Olivier Placais 2021-11-12 13:05:56 CET
Hello,

I have just test shutter-0.94.3-2.1.mga8 in mga8 plasma.
It's seem to work perfectly.
I've done several screenshots and edit them in the editor without problem.

CC: (none) => olivier.placais

Comment 29 Herman Viaene 2021-11-12 16:45:06 CET
MGA8-64 Plasma on Lenovo B50 Dutch installation.
No installation issues.
I have
LANGUAGE=nl_BE.UTF-8:nl
LANG=nl_BE.UTF-8

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

WARNING: Gtk2::AppIndicator is missing --> there will be no icon showing up in the status bar when running Unity!


INFO: gathering system information...

Linux mach5.hviaene.thuis 5.10.78-server-1.mga8 #1 SMP Sat Nov 6 14:59:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Mageia release 8 (Official) for x86_64
Kernel 5.10.78-server-1.mga8 on a 4-processor x86_64 / \l

Glib 1.3293 
Gtk2 1.24993 

Glib built for 2.64.3, running with 2.66.8
Gtk2 built for 2.24.32, running with 2.24.33

ERROR: settingsfile /home/tester8/.shutter/settings.xml does not exist


INFO: new plugin information detected - /usr/share/shutter/resources/system/plugins/perl/spbardistortion/spbardistortion
Tunnelvervorming - /usr/share/shutter/resources/system/plugins/perl/spbardistortion/spbardistortion

and more of plugins....
but in th end the tool opens and I have been able to take a region-screenshot and save it on the laptop.
OK for me.

Whiteboard: (none) => MGA8-64-OK
CC: (none) => herman.viaene

Comment 30 Thomas Andrews 2021-11-13 16:56:19 CET
Since the original bug was about it crashing on launch, and we have two successful launches, that should be enough. 

Validating. I don't see anything here resembling an advisory.

CC: (none) => andrewsfarm, sysadmin-bugs
Keywords: (none) => validated_update

Comment 31 papoteur 2021-11-14 11:21:07 CET
Advisory
=============================
The program shutter was crashing when some translated strings had extra character in UTF8.
The fix restores a patch which was already applied previously, but no more applied in the current  release.
============================
Dave Hodgins 2021-11-18 19:26:14 CET

Keywords: (none) => advisory

Comment 32 Mageia Robot 2021-11-18 22:52:05 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2021-0211.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


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