[grisbi-bugs] [Grisbi 0002062]: Currency keeps getting duplicated
Grisbi Bug Tracker
bugtracker at grisbi.org
Sam 12 Déc 08:27:41 CET 2020
The following issue has been RESOLVED.
======================================================================
https://www.grisbi.org/bugsreports/view.php?id=2062
======================================================================
Reported By: ebo
Assigned To: pbiava
======================================================================
Project: Grisbi
Issue ID: 2062
Category: Main
Reproducibility: unable to reproduce
Severity: minor
Priority: low
Status: resolved
OS: Fedora
Unstable Impact: Yes
Version OS:
Version GTK:
Resolution: fixed
Fixed in Version: 1.9.x
======================================================================
Date Submitted: 2020-10-27 11:21 CET
Last Modified: 2020-12-12 08:27 CET
======================================================================
Summary: Currency keeps getting duplicated
Description:
I keep having “Pound Sterling” getting duplicated in (actually, at the end
of) my list of currencies — sometimes up to a handful extra records —
despite the extra records not being used in any transaction/account
settings/currency link.
I am unable to reproduce, nor narrow down the cause, I'm afraid.
It's not really a nuisance, it's just that it feels “wrong”.
======================================================================
----------------------------------------------------------------------
(0005674) ebo (reporter) - 2020-10-27 11:49
https://www.grisbi.org/bugsreports/view.php?id=2062#c5674
----------------------------------------------------------------------
Note: I believe I'm using manually installed Grisbi v1.9.0 (that's what `grisbi
-V` prints to stdout), but I'm not 100% sure which version I've installed last.
----------------------------------------------------------------------
(0005676) LudovicRousseau (administrator) - 2020-10-27 20:12
https://www.grisbi.org/bugsreports/view.php?id=2062#c5676
----------------------------------------------------------------------
Version 1.9.0 is old. The current unstable version is 1.9.96.
Please upgrade and tell us if the problem is stil present. See
https://sourceforge.net/projects/grisbi/files/grisbi%20unstable/1.9.96/
----------------------------------------------------------------------
(0005677) ebo (reporter) - 2020-10-27 21:12
https://www.grisbi.org/bugsreports/view.php?id=2062#c5677
----------------------------------------------------------------------
Sorry, I should have tested the latest version first indeed.
I've now upgraded to 1.9.96. I then went to Preferences/Resources/Currencies,
and clicked on “? Remove” for the duplicate, and triggered a segfault:
Grisbi version: 1.9.96
grisbi() [0x4ce4a0]
grisbi() [0x4ce79a]
/lib64/libc.so.6(+0x3ca70) [0x7f24802dea70]
/lib64/libc.so.6(cfree+0x20) [0x7f248032eaa0]
/lib64/libglib-2.0.so.0(g_free+0xd) [0x7f24804c6a4d]
grisbi() [0x432637]
grisbi() [0x4327b2]
grisbi() [0x4fced9]
/lib64/libgobject-2.0.so.0(+0x13ae6) [0x7f24805acae6]
/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0xb99) [0x7f24805c56e9]
/lib64/libgobject-2.0.so.0(g_signal_emit+0x93) [0x7f24805c5c63]
/lib64/libgtk-3.so.0(+0x143a80) [0x7f2480cf0a80]
/lib64/libgobject-2.0.so.0(g_closure_invoke+0x18a) [0x7f24805ac88a]
/lib64/libgobject-2.0.so.0(+0x260ba) [0x7f24805bf0ba]
/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0xfa9) [0x7f24805c5af9]
/lib64/libgobject-2.0.so.0(g_signal_emit+0x93) [0x7f24805c5c63]
/lib64/libgtk-3.so.0(+0x141ca4) [0x7f2480ceeca4]
/lib64/libgtk-3.so.0(+0x40989f) [0x7f2480fb689f]
/lib64/libgobject-2.0.so.0(+0x13ae6) [0x7f24805acae6]
/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0xb99) [0x7f24805c56e9]
/lib64/libgobject-2.0.so.0(g_signal_emit+0x93) [0x7f24805c5c63]
/lib64/libgtk-3.so.0(+0x2110dc) [0x7f2480dbe0dc]
/lib64/libgobject-2.0.so.0(g_cclosure_marshal_VOID__BOXEDv+0xa4)
[0x7f24805afc84]
/lib64/libgobject-2.0.so.0(+0x13ae6) [0x7f24805acae6]
/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0xb99) [0x7f24805c56e9]
/lib64/libgobject-2.0.so.0(g_signal_emit+0x93) [0x7f24805c5c63]
/lib64/libgtk-3.so.0(+0x20e0d7) [0x7f2480dbb0d7]
/lib64/libgtk-3.so.0(+0x20f7d3) [0x7f2480dbc7d3]
/lib64/libgtk-3.so.0(+0x212913) [0x7f2480dbf913]
/lib64/libgtk-3.so.0(gtk_event_controller_handle_event+0x70) [0x7f2480d851b0]
/lib64/libgtk-3.so.0(+0x3aa38d) [0x7f2480f5738d]
/lib64/libgtk-3.so.0(+0x40338c) [0x7f2480fb038c]
/lib64/libgobject-2.0.so.0(+0x13a05) [0x7f24805aca05]
/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0x2fb) [0x7f24805c4e4b]
/lib64/libgobject-2.0.so.0(g_signal_emit+0x93) [0x7f24805c5c63]
/lib64/libgtk-3.so.0(+0x3ac474) [0x7f2480f59474]
/lib64/libgtk-3.so.0(+0x25aea0) [0x7f2480e07ea0]
/lib64/libgtk-3.so.0(gtk_main_do_event+0x8e3) [0x7f2480e09b83]
/lib64/libgdk-3.so.0(+0x3ded9) [0x7f2480ae1ed9]
/lib64/libgdk-3.so.0(+0x729a6) [0x7f2480b169a6]
/lib64/libglib-2.0.so.0(g_main_context_dispatch+0x16f) [0x7f24804c078f]
/lib64/libglib-2.0.so.0(+0x52b18) [0x7f24804c0b18]
/lib64/libglib-2.0.so.0(g_main_loop_run+0x83) [0x7f24804c0e33]
/lib64/libgtk-3.so.0(gtk_dialog_run+0x147) [0x7f2480d69917]
grisbi() [0x481b4f]
/lib64/libgobject-2.0.so.0(g_closure_invoke+0x18a) [0x7f24805ac88a]
/lib64/libgobject-2.0.so.0(+0x26423) [0x7f24805bf423]
/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0xfa9) [0x7f24805c5af9]
/lib64/libgobject-2.0.so.0(g_signal_emit+0x93) [0x7f24805c5c63]
/lib64/libgio-2.0.so.0(+0xee875) [0x7f24806e0875]
----------------------------------------------------------------------
(0005766) pbiava (administrator) - 2020-12-07 07:42
https://www.grisbi.org/bugsreports/view.php?id=2062#c5766
----------------------------------------------------------------------
Do you still have the problem?
If so, the easiest way is to remove the duplicate currency directly from the
account file.
Open the file with gedit for example.
Make a copy of the file before.
----------------------------------------------------------------------
(0005767) pbiava (administrator) - 2020-12-07 08:01
https://www.grisbi.org/bugsreports/view.php?id=2062#c5767
----------------------------------------------------------------------
Bug confirmed.
----------------------------------------------------------------------
(0005770) ebo (reporter) - 2020-12-07 11:06
https://www.grisbi.org/bugsreports/view.php?id=2062#c5770
----------------------------------------------------------------------
Oh, interesting!
Question: is the bug the seg-fault on deleting a currency, or the currency
keeping getting duplicated? (Indeed, I'm afraid I've mentioned two issues in
this ticket.)
Anyway, here's where I'm at now:
1/ Currency getting duplicated
I've upgraded from 1.9.0 ? 1.9.96, and for the past month or so with regular
usage, the issue hasn't re-occured. I'd thus assume it had been solved in the
meantime. (Note: of course, I tried to delete the XML node manually (and made
sure it was never referenced anywhere else in the account file) yet it kept
reappearing.)
2/ Segfault when clicking on “-” to delete a currency via the GUI.
I understand that this is the bug you've been able to replicate. I remember
I could reproduce it at the time, but as the issue
https://www.grisbi.org/bugsreports/view.php?id=1 has been fixed, I'm not
deleting anything else.
? Would you like me to raise a separate ticket with this second issue, so the
history is cleaner?
----------------------------------------------------------------------
(0005788) pbiava (administrator) - 2020-12-12 08:27
https://www.grisbi.org/bugsreports/view.php?id=2062#c5788
----------------------------------------------------------------------
For me the bug is old probably due to a crash of grisbi
I fixed the problem by automatically removing any duplicate currency created.
It's in the next version.
There is no need to make another ticket however you must remove link number 4
which seems to be due to a bug
----------------------------------------------------------------------
(0005789) pbiava (administrator) - 2020-12-12 08:27
https://www.grisbi.org/bugsreports/view.php?id=2062#c5789
----------------------------------------------------------------------
fixed in version 1.9.97-2
Issue History
Date Modified Username Field Change
======================================================================
2020-10-27 11:21 ebo New Issue
2020-10-27 11:21 ebo File Added: Screenshot from 2020-10-27
10-15-21.png
2020-10-27 11:21 ebo File Added: Screenshot from 2020-10-27
10-14-22.png
2020-10-27 11:21 ebo File Added: Screenshot from 2020-10-27
10-14-08.png
2020-10-27 11:21 ebo File Added: Screenshot from 2020-10-27
10-13-37.png
2020-10-27 11:21 ebo File Added: Screenshot from 2020-10-27
10-10-53.png
2020-10-27 11:49 ebo Note Added: 0005674
2020-10-27 20:12 LudovicRousseauNote Added: 0005676
2020-10-27 21:12 ebo Note Added: 0005677
2020-12-07 07:42 pbiava Note Added: 0005766
2020-12-07 08:00 pbiava Assigned To => pbiava
2020-12-07 08:00 pbiava Status new => assigned
2020-12-07 08:01 pbiava Status assigned => confirmed
2020-12-07 08:01 pbiava Note Added: 0005767
2020-12-07 11:06 ebo Note Added: 0005770
2020-12-12 08:27 pbiava Note Added: 0005788
2020-12-12 08:27 pbiava Status confirmed => resolved
2020-12-12 08:27 pbiava Resolution open => fixed
2020-12-12 08:27 pbiava Fixed in Version => 1.9.x
2020-12-12 08:27 pbiava Note Added: 0005789
======================================================================
Plus d'informations sur la liste de diffusion bugsreports