Possible corruption of "display_as" name format list

@usdanskys filed a bug report last month that appears to be related to either corrupt custom display formats for Names or bad pointers to that list.

See 0013347: new person window comes up with “Preferred Name” and "“ERROR, Edit Name format in Preferences [XXXXX]” QuLogic submitted a patch PR posted 26 Aug 2024 as noted in the Bug Tracking

I think the problem is related to having a Custom Name Display Format set as the default in the [preferences] chunk of the gramps.ini but where Gramps won’t be aware anything but a placeholder the built-in formats until a Tree is loaded.

So what happens if Preferences is set to -1, the 1st custom display name format when Gramps starts with no Tree? Does it set a dummy placeholder that is NULL for the fmt_str and its name. And then when the Tree is loaded or an XML is loaded into the Gramps workspace, maybe all the custom formats are pushed down in the list?

How can we diagnose his file? Can we use SuperTool (dashboard category) script to get a raw list of the known display formats before a database is loaded, after, and after importing the .gramps XML into a new, blank tree?

The topic linked at the bottom will list the display_as for all the selected People. To do proper diagnostic, we probably need a report finding all People leveraging alternative display_as settings.

Sample export of a tree using custom display name formats overriding in the names.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE database PUBLIC "-//Gramps//DTD Gramps XML 1.7.1//EN"
"http://gramps-project.org/xml/1.7.1/grampsxml.dtd">
<database xmlns="http://gramps-project.org/xml/1.7.1/">
  <header>
    <created date="2024-08-19" version="5.2.1"/>
  </header>
  <name-formats>
    <format number="-3" name="Given NotPatronymic Patronymic" fmt_str="given Notpatronymic patronymic" active="1"/>
    <format number="-2" name="SURNAME, Given Suffix (Common)" fmt_str="SURNAME, given suffix (common)" active="1"/>
    <format number="-1" name="Given SURNAME, Suffix" fmt_str="given SURNAME, suffix" active="1"/>
  </name-formats>
  <people>
    <person handle="_fae412920c541f1ea1bde07c5cb" change="1724109313" id="I0000">
      <gender>M</gender>
      <name type="Birth Name" display="-2">
        <first>John</first>
        <surname derivation="Patrilineal">Smith</surname>
      </name>
      <name alt="1" type="Also Known As">
        <first>Johann</first>
        <surname prefix="von" derivation="Patronymic">Schmidt</surname>
      </name>
    </person>
  </people>
</database>

Pertinent entry in the gramps.ini

[preferences]
⋮
name-format=-3
⋮

Patrice ( @PLegoux ) posted a SuperTool Script in another topic which reads the display_as values for all the Preferred and Alternative Names for a Person.

1 Like

My default name display is Title Given "Nickname" Surname, Suffix. This is for my Master database and what is normally set in Preferences and gramps.ini; name-format=-7 But when I open the Example database, this display preference does not exist, and there is no option with the number -7. Gramps always defaults to Surname, Given Suffix.

The gramps.ini setting is not the problem.

In an earlier post in the bug thread, @usdanskys included his 5.1 database. When I opened it with 5.2.3. The opened database was successfully converted and when open, the names displayed correctly.

https://gramps-project.org/bugs/view.php?id=13347#c66942

This seems a bit self-contradictory. The gramps.ini is set to something. Yet it does not exist in a basic situation and does something else.

So it seems that some exploration (that isn’t obscured by the GUI re-interpreting the data) to verify that an interaction is not contributing to the problem obliquely.

Testing of the new patch has been requested.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.