software-center crashed with ValueError in get_iter(): invalid tree path '0:0'

Bug #846204 reported by Yfrwlf
228
This bug affects 28 people
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
Fix Released
Medium
Michael Vogt

Bug Description

?

ProblemType: Crash
DistroRelease: Ubuntu 11.10
Package: software-center 4.1.22
ProcVersionSignature: Ubuntu 3.0.0-10.16-generic 3.0.4
Uname: Linux 3.0.0-10-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 1.22.1-0ubuntu2
Architecture: amd64
Date: Fri Sep 9 22:54:34 2011
ExecutablePath: /usr/share/software-center/software-center
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta amd64 (20110904)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/software-center /tmp/skype-ubuntu_2.2.0.35-1_amd64.deb
PythonArgs: ['/usr/bin/software-center', '/tmp/skype-ubuntu_2.2.0.35-1_amd64.deb']
SourcePackage: software-center
Title: software-center crashed with ValueError in get_iter(): invalid tree path '0:0'
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Yfrwlf (yfrwlf) wrote :
tags: removed: need-duplicate-check
Changed in software-center (Ubuntu):
status: New → Confirmed
Michael Vogt (mvo)
visibility: private → public
Changed in software-center (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Michael Vogt (mvo) wrote :

Did someone has a idea how to reproduce this bug? Help with reproducing would be most appreciated!

Revision history for this message
Matthew McGowan (mmcg069) wrote :

i have personally never seen this crash. it could be the model is altered without the AppTreeView.clear_model being called which would reset the 'expanded_path' ...

My lazy solution is to catch any exceptions from the offending code with a 'try:' (see linked branch)

Not ideal. There is a gtk_tree_model_iter_is_valid method but the docs warn it is slow. not sure if try is much better...

Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (4.2 KiB)

This bug was fixed in the package software-center - 4.1.23.4

---------------
software-center (4.1.23.4) oneiric; urgency=low

  [ Matthew McGowan ]
  * utils/submit_review_gtk3.py:
    - fix crash when submitting a review (LP: #852016)
  * fix the overlay icon position in the (lobby|subcat) featured tiles
  * fix the backforward button such that the border-radius is switched
    when in rtl mode.
  * softwarecenter/ui/gtk3/views/appdetailsview_gtk.py:
    - fix stray dotted lines at bottom of the "not found"
      screen (LP: #853514)
  * softwarecenter/ui/gtk3/widgets/buttons.py:
    - add a focus ring for the "More" buttons on the
      home screen (LP: #854177)
  * softwarecenter/ui/gtk3/widgets/exhibits.py:
    - add a focus ring for the exhibits banner (LP: #854168)
  * check the button-release occurs within the exhibit banner
    (LP: #848805)
  * add additional checks to ensure we bail on a NoneType within
    apptreeview._on_button_press_event. also switch some StateType's
    to the Gtk3 correct StateFlags'
  * reimplement the focal frames for focal CellRendererButtons
    in the apptreeview
  * lp:~mmcg069/software-center/rtl-improvements
    - make the appview progress bar fill in the correct direction when in rtl
      mode
    - also improve the positioning of the installed overlay icon in both ltr
      and rtl modes.
  * lp:~mmcg069/software-center/nav-improvements
    - correct the navhistory behaviour when a user clears the search_entry,
      remove spurious navhistory items, improve unit test (LP: #854047)
  * lp:~mmcg069/software-center/lobby-work
    - update the lobby and subcat views when selecting to view "Canonical
      Maintained Software", other lobby fixes and cleanup (LP: #835025)
  * lp:~mmcg069/software-center/description-improvements:
    - improvements to the description area in the details view, make
      description text selectable, update unit test (LP: #854368)
  * lp:~mmcg069/software-center/Bug846204:
    - a solution to LP: #846204

  [ Kiwinote ]
  * softwarecenter/db/application.py:
    - fix UnicodeDecodeError in __init__ (LP: #838791)
  * softwarecenter/db/debfile.py:
    - fix UnicodeDecodeError in __init__ (LP: #835887)
  * softwarecenter/ui/gtk3/widgets/buttons.py:
    - draw focus-line for category tiles and subcategory tiles
    - make featuredtiles accessible
  * softwarecenter/ui/gtk3/widgets/description.py:
    - fix crash in rendering bullet points in rtl layouts
  * softwarecenter/ui/gtk3/widgets/exhibits.py:
    - make exhibits accessible

  [ Gary Lasker ]
  * utils/submit_review_gtk3.py:
    - fix crash if an error occurs while submitting
      a review (LP: #854187)
  * softwarecenter/ui/gtk3/widgets/apptreeview.py:
    - check that a category is not selected before updating,
      fixes a crash on e.g. a network change event (LP: #848085)
  * softwarecenter/ui/gtk3/panes/installedpane.py:
    - display a spinner while loading the oneconf
      list view
  * pyflakes fixes

  [ Michael Vogt ]
  * softwarecenter/ui/gtk3/views/purchaseview.py,
    test/gtk3/test_purchase.py:
    - ensure to never log sensitive oauth token data to the console
      from webkit and add test
  * debian/c...

Read more...

Changed in software-center (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Michael Vogt (mvo) wrote :

The problem here is actually that when the tree is rebuild expand_path is called while the tree is in flux and the rowref is simply not found yet.

Revision history for this message
Michael Vogt (mvo) wrote :

I looked at this problem again and fixed it in a different way that should avoid the need to try/except and ignore the error. Instead the error should not happen anymore.

Changed in software-center (Ubuntu):
assignee: nobody → Michael Vogt (mvo)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.