Gsmartcontrol crashing

When I open gsmartcontrol and select a HDD the program crashes.

Though smartctl does work in terminal:

[francois@francois-pc ~]$ sudo smartctl /dev/sdc
[sudo] password for francois: 
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.9.13-xanmod2-MANJARO] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

ATA device successfully opened

Use 'smartctl -a' (or '-x') to print SMART (and more) information

[francois@francois-pc ~]$ sudo smartctl -a /dev/sdc
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.9.13-xanmod2-MANJARO] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Toshiba 3.5" DT01ACA... Desktop HDD
Device Model:     TOSHIBA DT01ACA050
Serial Number:    13GL6STGS
LU WWN Device Id: 5 000039 ff2e47717
Firmware Version: MS1OA750
User Capacity:    500,107,862,016 bytes [500 GB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Sun Jan  3 17:59:54 2021 CAT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x80) Offline data collection activity
                                        was never started.
                                        Auto Offline Data Collection: Enabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever 
                                        been run.
Total time to complete Offline 
data collection:                ( 4703) seconds.
Offline data collection
capabilities:                    (0x5b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        No Conveyance Self-test supported.
                                        Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine 
recommended polling time:        (   1) minutes.
Extended self-test routine
recommended polling time:        (  79) minutes.
SCT capabilities:              (0x003d) SCT Status supported.
                                        SCT Error Recovery Control supported.
                                        SCT Feature Control supported.
                                        SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000b   100   100   016    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0005   137   137   054    Pre-fail  Offline      -       88
  3 Spin_Up_Time            0x0007   127   127   024    Pre-fail  Always       -       181 (Average 180)
  4 Start_Stop_Count        0x0012   098   098   000    Old_age   Always       -       8106
  5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000b   100   100   067    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0005   118   118   020    Pre-fail  Offline      -       33
  9 Power_On_Hours          0x0012   098   098   000    Old_age   Always       -       20732
 10 Spin_Retry_Count        0x0013   100   100   060    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   098   098   000    Old_age   Always       -       8079
192 Power-Off_Retract_Count 0x0032   094   094   000    Old_age   Always       -       8194
193 Load_Cycle_Count        0x0012   094   094   000    Old_age   Always       -       8194
194 Temperature_Celsius     0x0002   162   162   000    Old_age   Always       -       37 (Min/Max 5/54)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0008   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   200   000    Old_age   Always       -       4

SMART Error Log Version: 1
ATA Error Count: 4
        CR = Command Register [HEX]
        FR = Features Register [HEX]
        SC = Sector Count Register [HEX]
        SN = Sector Number Register [HEX]
        CL = Cylinder Low Register [HEX]
        CH = Cylinder High Register [HEX]
        DH = Device/Head Register [HEX]
        DC = Device Command Register [HEX]
        ER = Error register [HEX]
        ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Error 4 occurred at disk power-on lifetime: 18234 hours (759 days + 18 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  84 51 d1 27 1f a1 08  Error: ICRC, ABRT 209 sectors at LBA = 0x08a11f27 = 144776999

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  25 00 00 f8 1c a1 e0 08      01:39:04.744  READ DMA EXT
  25 00 80 78 1c a1 e0 08      01:39:04.732  READ DMA EXT
  25 00 00 78 18 a1 e0 08      01:39:04.726  READ DMA EXT
  25 00 80 f8 17 a1 e0 08      01:39:04.717  READ DMA EXT
  25 00 00 f8 13 a1 e0 08      01:39:04.712  READ DMA EXT

Error 3 occurred at disk power-on lifetime: 16250 hours (677 days + 2 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  84 51 51 af 94 9d 01  Error: ICRC, ABRT 81 sectors at LBA = 0x019d94af = 27104431

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  25 00 80 80 94 9d e0 00      06:15:13.351  READ DMA EXT
  25 00 80 00 94 9d e0 00      06:15:13.351  READ DMA EXT
  25 00 80 80 93 9d e0 00      06:15:13.351  READ DMA EXT
  25 00 80 00 93 9d e0 00      06:15:13.350  READ DMA EXT
  25 00 80 80 92 9d e0 00      06:15:13.350  READ DMA EXT

Error 2 occurred at disk power-on lifetime: 16250 hours (677 days + 2 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  84 51 71 0f 94 9d 01  Error: ICRC, ABRT 113 sectors at LBA = 0x019d940f = 27104271

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  25 00 80 00 94 9d e0 00      06:15:13.351  READ DMA EXT
  25 00 80 80 93 9d e0 00      06:15:13.351  READ DMA EXT
  25 00 80 00 93 9d e0 00      06:15:13.350  READ DMA EXT
  25 00 80 80 92 9d e0 00      06:15:13.350  READ DMA EXT
  25 00 80 00 92 9d e0 00      06:15:13.350  READ DMA EXT

Error 1 occurred at disk power-on lifetime: 9945 hours (414 days + 9 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  84 51 09 77 e2 94 02  Error: ICRC, ABRT 9 sectors at LBA = 0x0294e277 = 43311735

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  25 00 38 48 e2 94 e0 00      01:38:50.669  READ DMA EXT
  25 00 08 38 a0 71 e0 00      01:38:50.655  READ DMA EXT
  25 00 08 d8 3f ba e0 00      01:38:50.655  READ DMA EXT
  25 00 20 f8 9a b7 e0 00      01:38:50.643  READ DMA EXT
  25 00 40 20 ea 24 e0 00      01:38:50.632  READ DMA EXT

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%     16831         -
# 2  Short offline       Completed without error       00%     16435         -
# 3  Extended offline    Interrupted (host reset)      60%     16427         -
# 4  Short offline       Completed without error       00%     16416         -
# 5  Short offline       Completed without error       00%     16405         -
# 6  Short offline       Completed without error       00%     16397         -
# 7  Short offline       Completed without error       00%     16378         -
# 8  Short offline       Completed without error       00%     16363         -
# 9  Short offline       Completed without error       00%     16354         -
#10  Short offline       Completed without error       00%     16320         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

What’s the output running gsmartcontrol from the terminal?

Tip: Highlight all the output then click the Preformatted text </> button. :wink:

[francois@francois-pc ~]$ sudo gsmartcontrol
[sudo] password for francois: 

(process:3816): Gtk-WARNING **: 22:23:06.444: Locale not supported by C library.
        Using the fallback 'C' locale.
<error> [gtk] _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’

(gsmartcontrol:3816): Gtk-WARNING **: 22:23:06.491: Theme parsing error: gtk.css:68:35: The style property GtkButton:child-displacement-x is deprecated and shouldn't be used anymore. It will be removed in a future version

(gsmartcontrol:3816): Gtk-WARNING **: 22:23:06.491: Theme parsing error: gtk.css:69:35: The style property GtkButton:child-displacement-y is deprecated and shouldn't be used anymore. It will be removed in a future version

(gsmartcontrol:3816): Gtk-WARNING **: 22:23:06.492: Theme parsing error: gtk.css:70:34: The style property GtkCheckButton:indicator-size is deprecated and shouldn't be used anymore. It will be removed in a future version

(gsmartcontrol:3816): Gtk-WARNING **: 22:23:06.492: Theme parsing error: gtk.css:71:36: The style property GtkCheckMenuItem:indicator-size is deprecated and shouldn't be used anymore. It will be removed in a future version

(gsmartcontrol:3816): Gtk-WARNING **: 22:23:06.492: Theme parsing error: gtk.css:73:46: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated and shouldn't be used anymore. It will be removed in a future version

(gsmartcontrol:3816): Gtk-WARNING **: 22:23:06.492: Theme parsing error: gtk.css:76:30: The style property GtkExpander:expander-size is deprecated and shouldn't be used anymore. It will be removed in a future version

(gsmartcontrol:3816): Gtk-WARNING **: 22:23:06.493: Theme parsing error: gtk.css:83:29: The style property GtkStatusbar:shadow-type is deprecated and shouldn't be used anymore. It will be removed in a future version
<error> [gtk] setenv()/putenv() are not thread-safe and should not be used after threads are created
<error> [gtk] setenv()/putenv() are not thread-safe and should not be used after threads are created
<error> [gtk] setenv()/putenv() are not thread-safe and should not be used after threads are created
<error> [gtk] setenv()/putenv() are not thread-safe and should not be used after threads are created
<error> [gtk] setenv()/putenv() are not thread-safe and should not be used after threads are created
<error> [gtk] setenv()/putenv() are not thread-safe and should not be used after threads are created
<error> [gtk] setenv()/putenv() are not thread-safe and should not be used after threads are created
<error> [gtk] setenv()/putenv() are not thread-safe and should not be used after threads are created
<error> [gtk] setenv()/putenv() are not thread-safe and should not be used after threads are created
<error> [gtk] setenv()/putenv() are not thread-safe and should not be used after threads are created
<warn>  [hz] Warning: exit: Some SMART command to the disk failed, or there was a checksum error in a SMART data structure
<error> [gtk] setenv()/putenv() are not thread-safe and should not be used after threads are created
<error> [gtk] setenv()/putenv() are not thread-safe and should not be used after threads are created
<warn>  [hz] Warning: exit: The device error log contains records of errors.

** (gsmartcontrol:3816): ERROR **: 22:23:24.708: 
unhandled exception (type std::exception) in signal handler:
what: locale::facet::_S_create_c_locale name not valid

Trace/breakpoint trap

Using The preformatted text button only indents the first line. Had to indent the text using Kate.

You apparently didn’t read the second line of my post. :roll_eyes:

Perhaps file a bug report upstream.

Xfce, Kernel 4.14; here Gsmartcontrol (1.1.3-3) works fine.
Did you installed it from official repo? Please also posts the output of inxi -Fazy

Yes it is installed from the official repo.

[francois@francois-pc ~]$ inxi -Fazy
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "",
        LC_ALL = (unset),
        LC_MONETARY = "en_ZA.UTF-8",
        LC_MEASUREMENT = "en_ZA.UTF-8",
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
System:
  Kernel: 5.10.4-xanmod1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-manjaro-xanmod 
  root=UUID=4d51e282-5e00-43c0-ac9e-9b64dd9c1d60 rw quiet udev.log_priority=3 
  Desktop: KDE Plasma 5.20.4 tk: Qt 5.15.2 wm: kwin_x11 dm: SDDM 
  Distro: Manjaro Linux 
Machine:
  Type: Desktop System: Gigabyte product: N/A v: N/A serial: <filter> Chassis: 
  type: 3 serial: <filter> 
  Mobo: Gigabyte model: H61M-S2PV REV 2.2 serial: <filter> 
  UEFI: American Megatrends v: Fce date: 03/03/2014 
CPU:
  Info: Single Core model: Intel Celeron G465 bits: 64 type: MT 
  arch: Sandy Bridge family: 6 model-id: 2A (42) stepping: 7 microcode: 2F 
  L2 cache: 1.5 MiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 7582 
  Speed: 1890 MHz min/max: 1600/1900 MHz Core speeds (MHz): 1: 1890 2: 1890 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  Type: l1tf 
  mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
  Type: meltdown mitigation: PTI 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: conditional, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics 
  vendor: Gigabyte driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:0102 
  Display: x11 server: X.Org 1.20.10 compositor: kwin_x11 driver: intel 
  unloaded: modesetting alternate: fbdev,vesa display ID: :0 screens: 1 
  Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.2x8.0") 
  s-diag: 414mm (16.3") 
  OpenGL: renderer: Mesa DRI Intel HD Graphics 2000 (SNB GT1) 
  v: 3.3 Mesa 20.3.1 compat-v: 3.0 direct render: Yes 
Audio:
  Device-1: Intel 6 Series/C200 Series Family High Definition Audio 
  vendor: Gigabyte driver: snd_hda_intel v: kernel bus ID: 00:1b.0 
  chip ID: 8086:1c20 
  Sound Server: ALSA v: k5.10.4-xanmod1-MANJARO 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Gigabyte driver: r8169 v: kernel port: e000 bus ID: 02:00.0 
  chip ID: 10ec:8168 
  IF: enp2s0 state: down mac: <filter> 
  Device-2: TP-Link TL-WN823N v2/v3 [Realtek RTL8192EU] type: USB 
  driver: rtl8192eu bus ID: 1-1.1:3 chip ID: 2357:0109 serial: <filter> 
  IF: wlp0s26u1u1 state: up mac: <filter> 
Drives:
  Local Storage: total: 1.82 TiB used: 241.94 GiB (12.9%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/sda maj-min: 8:0 vendor: Kingston model: SKC600256G 
  size: 238.47 GiB block size: physical: 4096 B logical: 512 B speed: 3.0 Gb/s 
  serial: <filter> rev: 0105 
  ID-2: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST3250318AS 
  size: 232.88 GiB block size: physical: 512 B logical: 512 B speed: 3.0 Gb/s 
  serial: <filter> rev: CC49 
  ID-3: /dev/sdc maj-min: 8:32 vendor: Toshiba model: DT01ACA050 
  size: 465.76 GiB block size: physical: 4096 B logical: 512 B speed: 3.0 Gb/s 
  serial: <filter> rev: A750 
  ID-4: /dev/sdd maj-min: 8:48 type: USB vendor: Toshiba 
  model: External USB 3.0 size: 931.51 GiB block size: physical: 512 B 
  logical: 512 B serial: <filter> rev: 5438 
Partition:
  ID-1: / raw size: 238.17 GiB size: 233.43 GiB (98.01%) 
  used: 42.94 GiB (18.4%) fs: ext4 dev: /dev/sda2 maj-min: 8:2 
  ID-2: /boot/efi raw size: 300 MiB size: 299.4 MiB (99.80%) 
  used: 312 KiB (0.1%) fs: vfat dev: /dev/sda1 maj-min: 8:1 
Swap:
  Alert: No Swap data was found. 
Sensors:
  System Temperatures: cpu: 29.8 C mobo: 27.8 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 223 Uptime: 12h 53m wakeups: 1 Memory: 15.51 GiB 
  used: 3.97 GiB (25.6%) Init: systemd v: 247 Compilers: gcc: 10.2.0 
  clang: 11.0.0 Packages: pacman: 1752 lib: 440 Shell: Bash v: 5.1.0 
  running in: yakuake inxi: 3.2.01