gsmartcontrol not working

Bug #1231229 reported by varlesh
32
This bug affects 13 people
Affects Status Importance Assigned to Milestone
gsmartcontrol (Debian)
Fix Released
Unknown
gsmartcontrol (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I installed the gsmartcontrol and when you start the program closes. Then I started the program with the option:
sudo gsmartcontrol --no-scan
The program is not closed, but as soon as I start to scan drives (Ctrl + R), then the program closes

Log:
pc @ pc: ~ $ sudo gsmartcontrol --no-scan

(gsmartcontrol:10625): Gtk-WARNING **: Theme file for default has no directories

<warn> [app] SmartctlParser::parse_section_info_property(): Unknown property "Rotation Rate"
<warn> [app] SmartctlParser::parse_section_info_property(): Unknown property "Vendor"
<warn> [app] SmartctlParser::parse_section_info_property(): Unknown property "Product"
<warn> [app] SmartctlParser::parse_section_info_property(): Unknown property "Revision"
<warn> [app] SmartctlParser::parse_section_info_property(): Unknown property "Logical block size"
<warn> [app] SmartctlParser::parse_section_info_property(): Unknown property "Device type"
<error> [gtk]
<error> [gtk] unhandled exception (type std::exception) in signal handler:
<error> [gtk] what: basic_string::substr
<error> [gtk]

Info:
Kubuntu 13.10 Beta 1 i686
KDE 4.11.1
GSmartControl version 0.8.7
smartmontools release 6.2 dated 2013-03-16 at 14:35:27 UTC
GTK 2.24.20
menu 2.1.46

HDD info:
Device Model: Hitachi HDS5C1010CLA382
Serial Number: JC0911HX14HEUH
LU WWN Device Id: 5 000cca 363d022f8
Firmware Version: JC4OA3MA
User Capacity: 1 000 204 886 016 bytes [1,00 TB]
Sector Size: 512 bytes logical/physical
Rotation Rate: 5700 rpm
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: ATA8-ACS T13/1699-D revision 4
SATA Version is: SATA 2.6, 3.0 Gb/s
Local Time is: Thu Sep 26 06:30:10 2013 MSK
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
Local Time is: Thu Sep 26, 2013 6:30:10 MSK
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

Related branches

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gsmartcontrol (Ubuntu):
status: New → Confirmed
Revision history for this message
Van Nilla (vanilla-z) wrote :

Work-around is to get gsmartcontrol to use an older version of smartctl (which it depends on, being a wrapper for smartctl).
I'm guessing smartctl 6.2 generates output that gsmartcontrol is not parsing correctly.

As root, do "sudo which smartctl" and/or "sudo whereis smartctl"

For each one found to "smartctl --version" to see if you have 5.x or 6.x.

Temporarily rename smartctl that 6.2 (maybe to smartctl-6.2). Leave in place any smartctl 5.x version, and note where it is at.

Now "sudo gsmartcontrol" and if it finds the 5.x version it will run ok. If it does not find smartctl, it will tell you to use the prefs to tell gsmartcontrol where the smartctl is that you want it to use.

I'll see if I can figure out the patch needed.

Revision history for this message
Van Nilla (vanilla-z) wrote :

You may need to download an older smartctl and/or compile it... and report back here which version worked for you!

Revision history for this message
trent-- (sylvainfaivre) wrote :

A quick workaround is to replace the smartmontools package with the one from raring (version 5.43-0ubuntu1 at the time of writing).

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gsmartcontrol - 0.8.7-1ubuntu1

---------------
gsmartcontrol (0.8.7-1ubuntu1) utopic; urgency=medium

  * Add 04_compat_with_smartmontools_6.patch. Fixes a crash at
    startup. LP: #1231229
  * Add 05_fix_ATA_version.patch. Correctly report the ATA/SATA version
    LP: #1310282
 -- Jackson Doak <email address hidden> Mon, 09 Jun 2014 19:37:24 +1000

Changed in gsmartcontrol (Ubuntu):
status: Confirmed → Fix Released
Changed in gsmartcontrol (Debian):
status: Unknown → New
Changed in gsmartcontrol (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.