bzr crashed with TypeError in __new__(): object of type 'NoneType' has no len()
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/
specific_files = [ self.model[path][1] ]
File "/usr/lib/
aiter = self.get_iter(key)
File "/usr/lib/
path = TreePath(path)
File "/usr/lib/
if len(path) == 0:
TypeError: object of type 'NoneType' has no len()
ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: bzr 2.5.0~beta5-
ProcVersionSign
Uname: Linux 3.2.0-10-generic x86_64
NonfreeKernelMo
ApportVersion: 1.91-0ubuntu1
Architecture: amd64
Date: Mon Jan 23 10:59:47 2012
DuplicateOf: https:/
ExecutablePath: /usr/bin/bzr
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
InterpreterPath: /usr/bin/python2.7
PackageArchitec
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
- Jelmer Vernooij (community): Approve
-
Diff: 187 lines (+65/-23)4 files modifieddiff.py (+13/-4)
tests/__init__.py (+19/-0)
tests/test_commit.py (+1/-19)
tests/test_diff.py (+32/-0)
Changed in bzr-gtk: | |
assignee: | Curtis Hovey (sinzui) → nobody |
If this issue is like the gcommit issue, I think I can fix this issue in two hours.