Bug 1070259

Summary: Input disappeared and error message is shown when changing display number format
Product: Red Hat Enterprise Linux 7 Reporter: Martin Simon <msimon>
Component: gnome-calculatorAssignee: Alexander Larsson <alexl>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: mclasen, tpelka, vhumpa
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 07:23:20 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 Martin Simon 2014-02-26 13:53:04 UTC
Description of problem:
When I do some computation, then try to change preferences to show thousands separators, I get warning and error in terminal output and the displayed text disappears.

Version-Release number of selected component (if applicable):
gnome-calculator-3.8.2-4.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Type in the following number: 123456.654321*10^6 and press Enter
2. Click the Calculator's icon on the top panel and choose Preferences
3. Check Show thousands separators

Actual results:
The display becomes clear and I get following output in terminal:

(gnome-calculator:4780): Gtk-WARNING **: Invalid text buffer iterator: either the iterator is uninitialized, or the characters/pixbufs/widgets in the buffer have been modified since the iterator was created.
You must use marks, character numbers, or line numbers to preserve a position across buffer modifications.
You can apply tags and insert marks without invalidating your iterators,
but any mutation that affects 'indexable' buffer contents (contents that can be referred to by character offset)
will invalidate all outstanding iterators

(gnome-calculator:4780): Gtk-CRITICAL **: gtk_text_buffer_insert_with_tags: assertion `gtk_text_iter_get_buffer (iter) == buffer' failed

Expected results:
thousands separators shown correctly without any error nor warning

Additional info:

Comment 1 Martin Simon 2014-02-26 14:55:02 UTC
Ok, the problem is probably not connected to thousand separator  in general, but it's probably connected to number format. The error is shown and display is cleared also when I try any combination of Fixed number format and Automatic number format, so basically always when it's reasonable.

Comment 2 Martin Simon 2014-02-27 10:32:49 UTC
*** Bug 963649 has been marked as a duplicate of this bug. ***

Comment 3 Martin Simon 2014-02-27 10:36:17 UTC
*** Bug 963659 has been marked as a duplicate of this bug. ***

Comment 4 RHEL Program Management 2014-03-22 05:56:36 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 6 Vitezslav Humpa 2015-05-07 10:46:08 UTC
Works as expected with 3.14 codebase. Thousand separator and format changes are applied fine instantly, no warnings in the terminal.

Comment 8 Martin Simon 2015-09-02 10:23:53 UTC
I've re-tested this bug in gnome-calculator-3.14.1-2.el7.x86_64. According to comment 6 and my results, I assume the bug is fixed. The thousand separator and number format works fluently.

The reproducer has been incorporated into our gnome-calculator test plan.

Comment 9 errata-xmlrpc 2015-11-19 07:23:20 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2215.html