Repeatable unexpected error (Gallery in Forms)

I was somehow unable to submit the bug report below to the Mantis Bug Tracker, to which my version of Gramps led me. It can’t be a big problem because Gramps didn’t crash. Is this a known issue? How should I proceed?

User Information:

  1. Opened a Form (Forms Gramplet active with Graph View window) containing the existing transcription of a UK Census page
  2. Viewed the original Census page contained in the Gallery section of the Form
  3. Closing the viewed page triggered this Gramps error.
  4. Doesn’t happen if only the form is opened, but the gallery file is not opened.
  5. Repeatable

Error Details:

1109010: ERROR: grampsapp.py: line 188: Unhandled exception
Traceback (most recent call last):
  File "/app/lib/python3.11/site-packages/gramps/gui/editors/displaytabs/buttontab.py", line 320, in _selection_changed
    if self.get_selected() is not None:
       ^^^^^^^^^^^^^^^^^^^
  File "/app/lib/python3.11/site-packages/gramps/gui/editors/displaytabs/gallerytab.py", line 292, in get_selected
    node = self.iconlist.get_selected_items()
           ^^^^^^^^^^^^^
AttributeError: 'GalleryTab' object has no attribute 'iconlist'

1149415: ERROR: grampsapp.py: line 188: Unhandled exception
Traceback (most recent call last):
  File "/app/lib/python3.11/site-packages/gramps/gui/editors/displaytabs/buttontab.py", line 320, in _selection_changed
    if self.get_selected() is not None:
       ^^^^^^^^^^^^^^^^^^^
  File "/app/lib/python3.11/site-packages/gramps/gui/editors/displaytabs/gallerytab.py", line 292, in get_selected
    node = self.iconlist.get_selected_items()
           ^^^^^^^^^^^^^
AttributeError: 'GalleryTab' object has no attribute 'iconlist'

System Information:

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

GTK version : 3.24.42
gobject version: 3.48.2
cairo version : (1, 26, 1)

Did you get an error from the bug tracker? And are you sure you have already created a bug tracker account and logged in before attempting to create a bug report?

If you do have an account and need to reset the password visit

https://gramps-project.org/bugs/lost_pwd_page.php

Or if you don’t have an account visit the sign up page

https://gramps-project.org/bugs/signup_page.php

Does your error occur if you use the Example.gramps family tree, this helps work out if it might be an issue with your family tree possibly having corruption ?

You’re right, you’re not the only one. There’s an existing bug: 0013326: Error reported using Forms addon [ AttributeError: 'GalleryTab' object has no attribute 'iconlist' ] - Gramps - Bugtracker – Free Genealogy Software

1 Like

Thanks. That relieves me of having to submit mine. I couldn’t find my way through that Mantis jungle this afternoon, anyway.

I am getting the following error which I have not seen before, any help gratefully received

The error occurs when I have been in a Form looked at a media item in the Gallery and then closed the Form using OK without making any modifications

24811: ERROR: grampsapp.py: line 188: Unhandled exception
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gramps/gui/editors/displaytabs/buttontab.py", line 320, in _selection_changed
    if self.get_selected() is not None:
       ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/gramps/gui/editors/displaytabs/gallerytab.py", line 292, in get_selected
    node = self.iconlist.get_selected_items()
           ^^^^^^^^^^^^^
AttributeError: 'GalleryTab' object has no attribute 'iconlist'


GRAMPS: 5.2.3 
Python: 3.11.2 
BSDDB: 6.2.9 (5, 3, 28) 
sqlite: 3.40.1 (2.6.0)
LANG: en_GB.UTF-8
OS: Linux
Distribution: 6.1.0-28-amd64

phil

When trying to figure out the next steps with an unhandled exception, two things are very helpful: searching the exception message or keywords on (1) this forum, and (2) Gramps Bugtracker.

Searching this error resulted in this thread which seems identical.

One thing that gets in the way of searching exception messages with quotes on the bug tracker is that the forum uses styled quotes (i.e. open and close quotes are different), whereas the plain text version uses single quotes (same for open and close). So when copy-pasting into the bug tracker be sure to use the plain text output from Gramps, otherwise you may not get results.

1 Like

Always forget to look at BugTracker but thanks

I think I should add this is classified as minor on bugttracker

However I think this might be slightly more serious in that you get the same error if you use Close the Window, or OK Button or Cancel Button none of which on first glance through buttontab.py or gallerytab.py appear to link into these. I think the assumption is that you will always have modified something not merely gone back to check for a possible error.

So I was wondering if this bug could be present in other similar situations or is restricted to Forms

phil