bzr crashed with TypeError in __new__(): object of type 'NoneType' has no len()

Bug #920525 reported by Curtis Hovey
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar GTK+ Frontends
In Progress
Undecided
Unassigned
bzr-gtk (Ubuntu)
New
Undecided
Unassigned

Bug Description

This is a bzr-gtk gdiff issue. The diff works, but an error happens when the window is closed. This may be the same kind of issue I fixed in gcommit where the callback is called while the window is being destroyed. In that case, The treeview still existed, but it's model and state were None.

To reproduce on precise with trunk:
Branch any project
bzr gdiff
See no changes
close the window
See TB

Traceback (most recent call last):
  File "/home/curtis/.bazaar/plugins/gtk/diff.py", line 391, in _treeview_cursor_cb
    specific_files = [ self.model[path][1] ]
  File "/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py", line 730, in __getitem__
    aiter = self.get_iter(key)
  File "/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py", line 744, in get_iter
    path = TreePath(path)
  File "/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py", line 1110, in __new__
    if len(path) == 0:
TypeError: object of type 'NoneType' has no len()

ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: bzr 2.5.0~beta5-2ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-10.17-generic 3.2.1
Uname: Linux 3.2.0-10-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 1.91-0ubuntu1
Architecture: amd64
Date: Mon Jan 23 10:59:47 2012
DuplicateOf: https://bugs.launchpad.net/bugs/914363
ExecutablePath: /usr/bin/bzr
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/bzr gdiff
PythonArgs: ['/usr/bin/bzr', 'gdiff']
SourcePackage: bzr
Title: bzr crashed with TypeError in __new__(): object of type 'NoneType' has no len()
UpgradeStatus: Upgraded to precise on 2012-01-19 (4 days ago)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Related branches

Revision history for this message
Curtis Hovey (sinzui) wrote :
visibility: private → public
Changed in bzr-gtk:
assignee: nobody → Curtis Hovey (sinzui)
status: New → In Progress
Revision history for this message
Curtis Hovey (sinzui) wrote :

If this issue is like the gcommit issue, I think I can fix this issue in two hours.

description: updated
Revision history for this message
Apport retracing service (apport) wrote : This bug is a duplicate

Thank you for taking the time to report this crash and helping to make this software better. This particular crash has already been reported and is a duplicate of bug #914363, so is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Please continue to report any other bugs you may find.

tags: removed: need-duplicate-check
Curtis Hovey (sinzui)
Changed in bzr-gtk:
assignee: Curtis Hovey (sinzui) → nobody
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.