Flameshot crashes on screen capture

  • Open
  • quality assurance status badge
Details
2 participants
  • Jacob Hrbek
  • Maxime Devos
Owner
unassigned
Submitted by
Jacob Hrbek
Severity
normal
J
J
Jacob Hrbek wrote on 14 Jan 2022 06:58
(address . bug-guix@gnu.org)
25a11a16-4ce8-ca44-565e-391563ad975b@rixotstudio.cz
bash-5.0$ flameshot
(process:6205): Gtk-WARNING **: 06:51:44.636: Locale not supported by C
library.
    Using the fallback 'C' locale.
QSettings::value: Empty key passed
QSettings::value: Empty key passed
QSettings::setValue: Empty key passed
QSettings::value: Empty key passed
QSettings::setValue: Empty key passed
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setCompositionMode: Painter not active
QPainter::translate: Painter not active
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::setBrush: Painter not active
[source ] [function ] [line ] Locales on your system are not properly
configured. Falling back to defaults
terminate called after throwing an instance of 'std::runtime_error'
  what():  locale::facet::_S_create_c_locale name not valid
Aborted
Steps to reproduce:
1. Install flameshot e.g. `guix install flameshot`
2. Run `flameshot` in a terminal
3. Invoke the flameshot gui e.g. by clicking on the flameshot icon in
the icon tray
4. Try to save screenshot and expect the failure above.
Info
GNU GuixSD (374fea0f3bc8035f626cb29e6045130df9ffdaf8)
bash-5.0$ cat /etc/config.scm
;; This is an operating system configuration generated
;; by the graphical installer.
(use-modules (gnu))
(use-service-modules
  cups
  desktop
  networking
  ssh
  xorg)
(operating-system
  (locale "en_US.utf8")
  (timezone "Europe/Prague")
  (keyboard-layout (keyboard-layout "us"))
  (host-name "leonid")
  (users (cons* (user-account
                  (name "kreyren")
                  (comment "Jacob Hrbek")
                  (group "users")
                  (home-directory "/home/kreyren")
                  (supplementary-groups
                    '("wheel" "netdev" "audio" "video")))
                %base-user-accounts))
  (packages
    (append
      (list (specification->package "nss-certs"))
      %base-packages))
  (services
      (append (list
         (service xfce-desktop-service-type)
            (service openssh-service-type)
            (service tor-service-type)
            (set-xorg-configuration
              (xorg-configuration
                (keyboard-layout keyboard-layout)))) %desktop-services))))
  (bootloader
    (bootloader-configuration
      (bootloader grub-bootloader)
      (targets (list "/dev/sda"))
      (keyboard-layout keyboard-layout)))
  ;; SECURITY(Krey): Swap partition is not zero-ed on reboot so it
should reside on an encrypted device --
  ;;(swap-space
    ;;(target (uuid "c965c556-351d-4007-9d33-e7ffbc9c1701")))
  (mapped-devices
    (list (mapped-device
            (source
              (uuid "c3ff1f21-b82f-4566-b8a3-274352f40dd4"))
            (target "cryptroot")
            (type luks-device-mapping))
          (mapped-device
            (source
              (uuid "82c4852c-a46b-43e3-abdb-15600ae61e2e"))
            (target "cryptboot")
            (type luks-device-mapping))
          (mapped-device
            (source
              (uuid "b14e499f-0c4f-46f6-9adb-1b020f460b11"))
            (target "crypthome_kreyren")
            (type luks-device-mapping))))
  (file-systems
    (cons* (file-system
             (mount-point "/")
             (device "/dev/mapper/cryptroot")
             (type "btrfs")
             (dependencies mapped-devices))
           (file-system
             (mount-point "/boot")
             (device "/dev/mapper/cryptboot")
             (type "btrfs")
             (dependencies mapped-devices))
           (file-system
             (mount-point "/home/kreyren")
             (device "/dev/mapper/crypthome_kreyren")
             (type "btrfs")
             (dependencies mapped-devices))
           %base-file-systems)))
bash-5.0$ uname -r
5.14.14-gnu
Attachment: signature.asc
M
M
Maxime Devos wrote on 14 Jan 2022 19:45
d16843bc2be9fe5faf6695847ccf5b957d3dc69b.camel@telenet.be
Hi,

Jacob Hrbek schreef op vr 14-01-2022 om 05:58 [+0000]:
Toggle quote (7 lines)
> [...]
> [source ] [function ] [line ] Locales on your system are not properly
> configured. Falling back to defaults
> terminate called after throwing an instance of 'std::runtime_error'
>   what():  locale::facet::_S_create_c_locale name not valid
>   (locale "en_US.utf8")

IIRC and IIUC this is not a valid locale, try "en_US.UTF-8" instead.
Maybe the Guix System code should check if the locale string looks reasonable ...

Also, there appears to be a bug in a (dependency of) flameshot, because of
[source ], [function ] and [line ] not being replaced with the location of the
source file, function name and the line number, but that seems more something
for upstream.

Greetings,
Maxime
Attachment: file
-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYeHExBccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7n5DAQDr6XDbvs9FOX803SfmJPzNHkF8
BFZErps5BhJEwtRsEQD/VP1aIUuijUe7KWSAUmEuHAwu6ASwBxBXDZgA/UPAwAo=
=HXP5
-----END PGP SIGNATURE-----


?