After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 645663 - gcalctool crashes switching to advanced mode @unit_get_name
gcalctool crashes switching to advanced mode @unit_get_name
Status: RESOLVED FIXED
Product: gnome-calculator
Classification: Core
Component: general
5.91.x
Other Linux
: Normal normal
: ---
Assigned To: gcalctool maintainers
gcalctool maintainers
Depends on:
Blocks:
 
 
Reported: 2011-03-25 20:30 UTC by Christopher Aillon
Modified: 2011-03-27 22:45 UTC
See Also:
GNOME target: ---
GNOME version: 2.91/3.0


Attachments
Stack trace from gcalctool 5.91.93 (5.56 KB, text/plain)
2011-03-25 20:45 UTC, Christopher Aillon
Details

Description Christopher Aillon 2011-03-25 20:30:56 UTC
Upstreaming from https://bugzilla.redhat.com/show_bug.cgi?id=689646

Stack trace is https://bugzilla.redhat.com/attachment.cgi?id=486715

I can easily reproduce this on 2.91.93, simply with Mode>Advanced.
Comment 1 Christopher Aillon 2011-03-25 20:45:36 UTC
Created attachment 184226 [details]
Stack trace from gcalctool 5.91.93

Stack trace in .93 is slightly different...
Comment 2 Robert Ancell 2011-03-26 01:22:55 UTC
I think you've got an invalid unit in gsettings.  Could you check the values in /apps/gcalctool/source-units and /apps/gcalctool/target-units?

I've fixed master to handle this case now.
Comment 3 Christopher Aillon 2011-03-26 02:43:52 UTC
source-units is "degrees" (plural) and target-units is "radians" (plural).

Changing to the singular for both gets rid of the crash.  Not sure how they got that way, since I didn't set them....  did it change recently?
Comment 4 Christopher Aillon 2011-03-26 10:07:53 UTC
To follow up on my earlier question, this was probably caused by http://git.gnome.org/browse/gcalctool/commit/?id=e3589a5989de8fa6c36044983180d2beca311292 and just hadn't noticed it til now.
Comment 5 Robert Ancell 2011-03-27 22:45:17 UTC
Glad you had those values, otherwise I wouldn't have noticed!  Thanks again.