When running meld with $DISPLAY unset: meld crashed with AttributeError in __main__: 'NoneType' object has no attribute 'append_search_path'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
meld (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: meld
STEPS TO REPRODUCE:
* Run the following command:
DISPLAY="" meld
Alternately, run "ssh localhost" (assuming X isn't forwarded by default) and then run meld.
ACTUAL RESULTS: This crash.
Ubuntu version: 11.04 beta2
Meld version: 1.5.0-0ubuntu1
ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: meld 1.5.0-0ubuntu1
ProcVersionSign
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Fri Apr 15 08:19:12 2011
EcryptfsInUse: Yes
ExecutablePath: /usr/bin/meld
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Beta amd64 (20110413)
InterpreterPath: /usr/bin/python2.7
PackageArchitec
ProcCmdline: /usr/bin/python /usr/bin/meld
ProcEnviron:
SHELL=/bin/bash
PATH=(custom, user)
LC_COLLATE=POSIX
LANG=en_US.UTF-8
PythonArgs: ['/usr/bin/meld']
SourcePackage: meld
Title: meld crashed with AttributeError in __main__: 'NoneType' object has no attribute 'append_
Traceback:
Traceback (most recent call last):
File "/usr/bin/meld", line 125, in <module>
gtk.
AttributeError: 'NoneType' object has no attribute 'append_
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
Output on the command line when this happens: pymodules/ python2. 7/gtk-2. 0/gtk/_ _init__ .py:57: GtkWarning: could not open display warn(str( e), _gtk.Warning) icon_theme_ get_for_ screen: assertion `GDK_IS_SCREEN (screen)' failed theme_get_ default( ).append_ search_ path(meld. paths.icon_ dir()) icon_theme_ get_default( ).append_ search_ path(meld. paths.icon_ dir()) search_ path'
/usr/lib/
warnings.
/usr/bin/meld:125: GtkWarning: IA__gtk_
gtk.icon_
Traceback (most recent call last):
File "/usr/bin/meld", line 125, in <module>
gtk.
AttributeError: 'NoneType' object has no attribute 'append_
Basically, meld just needs to exit gracefully where there's no display. (rather than crashing)