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.
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.
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 âŚ
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.
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.
@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?
GRAMPS: 5.2.2
Python: 3.12.3
BSDDB: 6.2.9 (5, 3, 28)
sqlite: 3.45.1 (2.6.0)
LANG: it_IT.UTF-8
SO: Linux
In Graphview I cantât memorize âShowIDsâ and âShowavatarsâ to 0.
Each time I re-open the database I find one of the two, or both, set to 1.
thanks
antonio
In another thread, I wondered if adding configuration options might cause a backwards compatibility problems with saved settings.
In other situations, weâve noted preferences/configuration information that was âcorruptedâ and deleting the file let Gramps start the file afresh. (The most consistent examples were when upgrading to a new major Gramps version. The addons all had settings contributed. But until the addons were re-downloaded, those setting were unrecognized. Custom Filters using addon Rule Packs were likewise at risk.)
As I add new Configuration option to a specific Gramplet, I wonder if some handling of ini files as chunk-based file format or container formats could be enhanced for more failure resistance and better purging of bad chunks. And if versioning information shouldnât be in plugin settings chunks.
Today I modified the file graphview.py changing the default line 155
(âinterface.graphview-show-IDâ, True),
to
(âinterface.graphview-show-IDâ, False),
Does this not mean that the preferences reading code is encountering an error when trying to read (or save) the setting in the Gramps User Directory and failing back to the defaults?
Is there some simple code that might be implemented to flush a named section of preferences?
@Antonio You mentioned that âShow Avatarsâ was not working either. When you changed just the show-id on line 155 of graphview.py, did Show Avatar setting also start working?
My hypothesis is that the upper case in show-ID setting might be an issue, but the show-avatar settings are all specified in lower case so I might not expect any problems with that.