Bug 1299505

Summary: gnome-calculator prints "Currency LTL is not provided by IMF or ECB" in Financial mode
Product: [Fedora] Fedora Reporter: Jiri Prajzner <jprajzne>
Component: gnome-calculatorAssignee: Ray Strode [halfline] <rstrode>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 23CC: mcatanzaro+wrong-account-do-not-cc, rstrode, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-15 00:14:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jiri Prajzner 2016-01-18 14:25:44 UTC
Description of problem:
gnome-calculator prints "Currency LTL is not provided by IMF or ECB" in Financial mode

Version-Release number of selected component (if applicable):
3.18.2

How reproducible:
Always

Steps to Reproduce:
1. execute gnome-calculator
2. switch to Financial mode
3.

Actual results:
** (gnome-calculator:20713): WARNING **: currency.vala:407: Currency LTL is not provided by IMF or ECB

Expected results:
No warning printed out for LTL currency conversion

Additional info:
This is not dependent on whether the Financial mode has LTL set as the last used currency in a conversion. It seems to be set as an implicit default.

Comment 1 Zbigniew Jędrzejewski-Szmek 2016-10-13 14:30:46 UTC
$ GDK_BACKEND=wayland gnome-calculator

** (gnome-calculator:2198): CRITICAL **: number_reciprocal: assertion 'self != NULL' failed

** (gnome-calculator:2198): CRITICAL **: currency_set_value: assertion 'value != NULL' failed

** (gnome-calculator:2198): WARNING **: currency.vala:406: Currency IRR is not provided by IMF or ECB

$ rpm -qf /bin/gnome-calculator 
gnome-calculator-3.22.0-1.fc25.x86_64

Comment 2 Michael Catanzaro 2016-10-15 00:14:49 UTC
Fixed by https://git.gnome.org/browse/gnome-calculator/commit/?id=63d2f489897cbead3a7ded94b00209fced877b31 earlier this year

Will push a follow-up to remove the Iranian Rial.

Comment 3 Michael Catanzaro 2016-10-15 00:15:58 UTC
(In reply to Zbigniew Jędrzejewski-Szmek from comment #1)
> $ GDK_BACKEND=wayland gnome-calculator
> 
> ** (gnome-calculator:2198): CRITICAL **: number_reciprocal: assertion 'self
> != NULL' failed
> 
> ** (gnome-calculator:2198): CRITICAL **: currency_set_value: assertion
> 'value != NULL' failed

These are different bugs, please run it with G_DEBUG=fatal-criticals to get a nice backtrace can be reported via ABRT.

Comment 4 Michael Catanzaro 2016-10-15 00:24:41 UTC
(In reply to Zbigniew Jędrzejewski-Szmek from comment #1)
> ** (gnome-calculator:2198): WARNING **: currency.vala:406: Currency IRR is
> not provided by IMF or ECB

It's working now, maybe data for this currency was just temporarily missing? Or maybe it stopped trading? I have no clue what happened here.

Comment 5 Zbigniew Jędrzejewski-Szmek 2016-10-15 16:02:56 UTC
I cannot reproduce it now. I tried with network up and down, and no warnings are printed. I'll open a new issue if I see it again.