Graph view is not saving settings

Hi.

A few weeks ago I detect that settings of Graph View was not loading correctly.

I thought that it was a minor problem with my system, but today an Italian user has report an identical problem on Facebook too.

Problem consists that, each time you open Gramps, Graph view always loads the same configuration.

1 Like

This is symptom of not being able to write updates to the settings (.ini) files for the affected view.

This usually indicates a corruption in those files.

Un-installing and re-installing Gramps will NOT resolve corrupted settings files. You have to go into the Gramps User Directory and clean those manually.

1 Like

I have not been watching the updates for this addon but recall discussions about changing something in the avatars.

Could it be that the setting parameters for avatars changed and Gramps is choking on the old settings format?

If the problem lies in corrupted .ini files, it would be very helpful to save the current settings by copying to another location or if it’s just a few files, rename them individually. If the issue is resolved by the application regenerating the settings, then it comparing the old and new may lead us to figuring out what might be going wrong.

2 Likes

Hi,
I was the one posting it on FB.
After some tries I got to this conclusion:
it seems that Gramps writes the Ancestry_graphview.ini file on closing, but it does not read it on opening. … may be …

1 Like

It happens to me too.

1 Like

I also confirm that this happens on

GRAMPS: 5.2.3
Python: 3.11.9
BSDDB: not found
sqlite: 3.42.0 (2.6.0)
LANG: en_GB.UTF-8
OS: Linux
Distribution: 6.4.0-150600.23.17-default

It is not quite consistent, however, In graphview I always set, by hand,
no IDs
full dates
no avatars
no animation

and sometimes I get one or the other setting (but not all) as ignored when restarting gramps. But the next time I have to set them again Very strange!

1 Like

I so sorry but i think that this is an developper error.

Sometimes Graph view loads different settings. So Graph view is not loading default options.

These are my preferences:

Graph View sometimes load these options:

and sometimes loads these options:

1 Like

Looked up the contact info in the Addon List. That contributor does not seem to have an account here on Discourse. So sent an eMail pointing to this thread. Perhaps he can suggest something.

1 Like

I have reported on bugtracker
https://gramps-project.org/bugs/view.php?id=13399

2 Likes

Hi!

I found a way to solve the problem. I made a correction in the Graph View code that seems to fix it.

I replaced all occurrences of ‘interface.graphview-show-ID’ with ‘interface.graphview-show-id’ in the file graphview.py. This solution worked for me.

I have been testing this change for several days and have already notified it in the bugtracker.

1 Like

I don’t understand your problem. For me, you changed the code or manually modify the ini file.
You can see the bug report.

Yes, I modified the code. After removing and reinstalling the plugin twice without solving the problem, I decided to review the code.

Hi @SNoiraud

@ommrianxo’s finding about the capitalization of “ID” in ‘interface.graphview-show-ID’ prompted me to take a quick look at some of the config/preference code. Nothing jumped out immediately that indicated that there’s case sensitivity, but several other users reporting this behavior seems to indicate that there might be something to it.

The code that introduced this setting seems to be very recent and reviewing names of other settings in addons-source and gramps code, I don’t see any with capitalized letters so far, so I wonder if it is exposing unknown behavior?

1 Like