When running meld with $DISPLAY unset: meld crashed with AttributeError in __main__: 'NoneType' object has no attribute 'append_search_path'

Bug #761869 reported by Daniel Holbert
44
This bug affects 9 people
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
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelModules: nvidia
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
PackageArchitecture: all
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_search_path'
Traceback:
 Traceback (most recent call last):
   File "/usr/bin/meld", line 125, in <module>
     gtk.icon_theme_get_default().append_search_path(meld.paths.icon_dir())
 AttributeError: 'NoneType' object has no attribute 'append_search_path'
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Daniel Holbert (dholbert) wrote :
Revision history for this message
Daniel Holbert (dholbert) wrote :

Output on the command line when this happens:
/usr/lib/pymodules/python2.7/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
/usr/bin/meld:125: GtkWarning: IA__gtk_icon_theme_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
  gtk.icon_theme_get_default().append_search_path(meld.paths.icon_dir())
Traceback (most recent call last):
  File "/usr/bin/meld", line 125, in <module>
    gtk.icon_theme_get_default().append_search_path(meld.paths.icon_dir())
AttributeError: 'NoneType' object has no attribute 'append_search_path'

Basically, meld just needs to exit gracefully where there's no display. (rather than crashing)

tags: removed: need-duplicate-check
visibility: private → public
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in meld (Ubuntu):
status: New → Confirmed
Revision history for this message
Rolf Leggewie (r0lf) wrote :

Still the same problem in bionic

tags: added: bionic
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.