"Gramps has experienced an unexpected error" when switching to Places

I am getting a sporadic but reproducible error when trying to click on “Places”. Everything else e.g. People, Relationships, Famillies, Charts etc loads fine.

“Gramps has experienced an unexpected error” when switching to Places

On starting gramps, if I am in e.g. Relationships, then I click on Places I get an the unexpected error, with the below output. As suggested, if I close gramps, and then restart, and “Places” is already selected (becuase that’s where it was when gramps unexpectely failed) Places loads fine, and all seems fine.

On starting gramps, if I am already in Places, it loads fine.

The error seems to happen when switching from another element (e.g. Relationships) to Places.

I’ve updated to all the latest Addons in case that was a factor but no different.

I’ve had a quick search and there are several mentions of “grampsapp.py: line 188: Unhandled exception” but they don’t seem relevant. I suppose there could be some corruption in my Places, but it seems to load fine, and I only seem to get an error when I switch to Places.

Any thoughts appreciated. Many thanks

Python: 3.14.4
sqlite: 3.53.0
orjson: 3.11.8
LANG: en_GB.UTF-8
OS: Windows 10

483769: ERROR: grampsapp.py: line 188: Unhandled exception
Traceback (most recent call last):
File “C:\Program Files\GrampsAIO64-6.0.8\gramps\gui\viewmanager.py”, line 967, in view_changed
self.__change_page(page_num)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File “C:\Program Files\GrampsAIO64-6.0.8\gramps\gui\viewmanager.py”, line 983, in __change_page
self.active_page.set_active()
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File “C:\Program Files\GrampsAIO64-6.0.8\gramps\gui\views\listview.py”, line 317, in set_active
NavigationView.set_active(self)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File “C:\Program Files\GrampsAIO64-6.0.8\gramps\gui\views\navigationview.py”, line 150, in set_active
PageView.set_active(self)
~~~~~~~~~~~~~~~~~~~^^^^^^
File “C:\Program Files\GrampsAIO64-6.0.8\gramps\gui\views\pageview.py”, line 361, in set_active
self.bottombar.set_active()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
File “C:\Program Files\GrampsAIO64-6.0.8\gramps\gui\widgets\grampletbar.py”, line 320, in set_active
gramplet.pui.update()
~~~~~~~~~~~~~~~~~~~^^
File “C:\Program Files\GrampsAIO64-6.0.8\gramps\gen\plug_gramplet.py”, line 316, in update
self.generator = self.main()
~~~~~~~~~^^
File “C:\Program Files\GrampsAIO64-6.0.8\gramps\plugins\gramplet\placedetails.py”, line 111, in main
self.display_place(place)
~~~~~~~~~~~~~~~~~~^^^^^^^
File “C:\Program Files\GrampsAIO64-6.0.8\gramps\plugins\gramplet\placedetails.py”, line 131, in display_place
self.add_row(
(“Type”), place.get_type())
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Program Files\GrampsAIO64-6.0.8\gramps\plugins\gramplet\placedetails.py”, line 80, in add_row
value = Gtk.Label(label=value, halign=Gtk.Align.START)
File “AIO/gi/overrides/init.py”, line 357, in new_init
TypeError: Must be string, not PlaceType

Known issue

With a fix

In the past, I have encountered corruptions in the .ini which behaved in this manor.

I moved the affected Category’s .ini files (view modes, sidbarsand bottombarl for both the Place Tree and Places modes.)

And cleaned the places related lines in the gramps.ini file.

Excellent. Thank. I managed to edit placedetails.py (having first created a backup copy) and the issue is no more (and also delighted that my places data wasn’t corrupt which had crossed my mind)

I should have looked a bit harder for the bug report and fix report, but now I am a bit wiser!