Bug 1033824

Summary: Unexpected error prevents Gramps from running
Product: [Fedora] Fedora Reporter: Steven Usdansky <usdanskys>
Component: grampsAssignee: Gwyn Ciesla <gwync>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 22CC: ccecchi, cz172638, gwync, loganjerry, mclasen, valdis.kletnieks
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-09-11 11:48:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Steven Usdansky 2013-11-23 12:28:11 UTC
Description of problem:
Upon startup, Gramps pops up an error dialog "Gramps has experienced an unexpected error" along with the main window. The error message aooears below. Upon hitting the cancel button, Gramps closes.

Version-Release number of selected component (if applicable):
gramps-4.0.2-1.fc21.noarch
python-2.7.5-9.fc21.x86_64

How reproducible:
100% of the time

Steps to Reproduce:
1. Boot computer
2. click on gramps launcher in panel (or start gramps from a terminal
3.

Actual results: Main window and an error dialog with the following message:
2852: ERROR: grampsgui.py: line 384: 
Gramps failed to start. Please report a bug about this.
This could be because of an error in a (third party) View on startup.
To use another view, don't load a Family Tree, change view, and then load your Family Tree.
You can also change manually the startup view in the gramps.ini file 
by changing the last-view parameter.
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/gramps/gui/grampsgui.py", line 353, in __startgramps
    Gramps(argparser)
  File "/usr/lib/python2.7/site-packages/gramps/gui/grampsgui.py", line 297, in __init__
    self.vm.post_init_interface()
  File "/usr/lib/python2.7/site-packages/gramps/gui/viewmanager.py", line 706, in post_init_interface
    self.__open_activate(None)
  File "/usr/lib/python2.7/site-packages/gramps/gui/viewmanager.py", line 1096, in __open_activate
    dialog = DbManager(self.dbstate, self.window)
  File "/usr/lib/python2.7/site-packages/gramps/gui/dbman.py", line 154, in __init__
    self._populate_model()
  File "/usr/lib/python2.7/site-packages/gramps/gui/dbman.py", line 324, in _populate_model
    node = self.model.append(None, data)
  File "/usr/lib64/python2.7/site-packages/gi/overrides/Gtk.py", line 1194, in append
    return self._do_insert(parent, -1, row)
  File "/usr/lib64/python2.7/site-packages/gi/overrides/Gtk.py", line 1187, in _do_insert
    treeiter = self.insert_with_values(parent, position, columns, row)
AttributeError: 'TreeStore' object has no attribute 'insert_with_values'


Expected results:
Gramps starts normally with no error

Additional info:
Removed ~/.gramps completely and re-tried. Family Trees window pops up with new button ungrayed.  When clicking on that button to create a new family tree, I get:

64808: ERROR: grampsapp.py: line 114: Unhandled exception
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/gramps/gui/dbman.py", line 732, in __new_db
    self._create_new_db()
  File "/usr/lib/python2.7/site-packages/gramps/gui/dbman.py", line 746, in _create_new_db
    last, tval, False, ''])
  File "/usr/lib64/python2.7/site-packages/gi/overrides/Gtk.py", line 1194, in append
    return self._do_insert(parent, -1, row)
  File "/usr/lib64/python2.7/site-packages/gi/overrides/Gtk.py", line 1187, in _do_insert
    treeiter = self.insert_with_values(parent, position, columns, row)
AttributeError: 'TreeStore' object has no attribute 'insert_with_values'

Comment 1 Steven Usdansky 2013-11-23 12:40:36 UTC
Seems to work properly upon reverting to
gtk3-3.8.4-1.fc19.x86_64
gtkmm30-3.8.1-2.fc20.x86_64

Comment 2 Steven Usdansky 2013-11-23 13:24:00 UTC
The error appears to be a gtk3 error (perhaps a mismatch between gtk3 and the gobject introspection), rather than a gnumeric error. The example code at
https://developer.gnome.org/gnome-devel-demos/3.5/treeview_treestore.py.html.en
gives the same error when run with current gtk3:
AttributeError: 'TreeStore' object has no attribute 'insert_with_values'

gobject-introspection-1.38.0-1.fc21.x86_64
pygobject3-3.11.1-1.fc21.x86_64
pygobject3-base-3.11.1-1.fc21.x86_64
gtk3-3.11.0-1.fc21.x86_64

Comment 3 Matthias Clasen 2014-09-19 02:17:23 UTC
not a gtk bug, I'm afraid

Comment 4 Jaroslav Reznik 2015-03-03 15:13:31 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 5 Gwyn Ciesla 2015-09-03 18:18:56 UTC
Is this still happening with gramps 4.1.3?

Comment 6 Steven Usdansky 2015-09-11 11:48:34 UTC
Neither 4.1.3 nor 4.2.0 exhibit this bug. Closing (which I should have done long ago)