hp-sendfax segmentation fault
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
In Progress
|
Undecided
|
shunmugaraj |
Bug Description
Linux Distribution and version:
Linux 2.6.36-gentoo-r5
x86_64 Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz GenuineIntel GNU/Linux
-------
Printer:
Officejet_
-------
'hp-check -t' output:
# hp-check -t
HP Linux Imaging and Printing System (ver. 3.11.1)
Dependency/Version Check Utility ver. 14.3
Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies are installed to
successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball has the proper dependencies
installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check both of the above cases (both compile- and run-time dependencies).
Saving output in log file: hp-check.log
Initializing. Please wait...
---------------
| SYSTEM INFO |
---------------
Basic system information:
Linux nyx 2.6.36-gentoo-r5 #2 SMP Tue Mar 15 12:06:38 IST 2011 x86_64 Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz GenuineIntel GNU/Linux
Distribution:
gentoo 0.0
Checking Python version...
OK, version 2.6.6 installed
Checking PyQt 4.x version...
OK, version 4.8.1 installed.
Checking for CUPS...
Status: scheduler is running
Version: 1.3.11
error_log is set to level: info
Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 0.83.2
-------
| COMPILE AND RUNTIME DEPENDENCIES |
-------
note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).
Checking for dependency: CUPS - Common Unix Printing System...
OK, found.
Checking for dependency: CUPS DDK - CUPS driver development kit...
OK, found.
Checking for dependency: CUPS devel- Common Unix Printing System development files...
OK, found.
Checking for dependency: CUPS image - CUPS image development files...
OK, found.
Checking for dependency: DBus - Message bus system...
OK, found.
Checking for dependency: gcc - GNU Project C and C++ Compiler...
OK, found.
Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
OK, found.
Checking for dependency: libcrypto - OpenSSL cryptographic library...
OK, found.
Checking for dependency: libjpeg - JPEG library...
OK, found.
Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
OK, found.
Checking for dependency: libpthread - POSIX threads library...
OK, found.
Checking for dependency: libtool - Library building support services...
OK, found.
Checking for dependency: libusb - USB library...
OK, found.
Checking for dependency: make - GNU make utility to maintain groups of programs...
OK, found.
Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
OK, found.
Checking for dependency: PolicyKit - Administrative policy framework...
OK, found.
Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4...
OK, found.
Checking for dependency: Python DBus - Python bindings for DBus...
OK, found.
Checking for dependency: Python devel - Python development files...
OK, found.
Checking for dependency: Python libnotify - Python bindings for the libnotify Desktop notifications...
OK, found.
Checking for dependency: Python XML libraries...
OK, found.
Checking for dependency: Python 2.3 or greater - Required for fax functionality...
OK, found.
Checking for dependency: Python 2.2 or greater - Python programming language...
OK, found.
Checking for dependency: Reportlab - PDF library for Python...
OK, found.
Checking for dependency: SANE - Scanning library...
OK, found.
Checking for dependency: SANE - Scanning library development files...
OK, found.
Checking for dependency: scanimage - Shell scanning program...
OK, found.
Checking for dependency: xsane - Graphical scanner frontend for SANE...
OK, found.
-------
| HPLIP INSTALLATION |
-------
Currently installed HPLIP version...
HPLIP 3.11.1 currently installed in '/usr/share/hplip'.
Current contents of '/etc/hp/
# hplip.conf. Generated from hplip.conf.in by configure.
[hplip]
version=3.11.1
[dirs]
home=/usr/
run=/var/run
ppd=/usr/
ppdbase=
doc=/usr/
html=/usr/
icon=/usr/
cupsbackend=
cupsfilter=
drv=/usr/
# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=no
foomatic-
foomatic-
foomatic-
hpcups-install=yes
cups-drv-
cups-ppd-install=no
internal-
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=yes
hpijs-only-build=no
lite-build=no
udev-acl-rules=no
hpcups-
hpijs-only-build=no
Current contents of '/var/lib/
# hplip.state - HPLIP runtime persistent variables.
[plugin]
installed=0
eula=0
Current contents of '~/.hplip/
[last_used]
printer_name = Officejet-7200
working_dir = .
device_uri = hp:/net/
[commands]
fax = hp-sendfax -d %FAX_URI%
scan = xsane -V %SANE_URI%
prnt = hp-print -p%PRINTER%
pcard = hp-unload -d %DEVICE_URI%
cpy = hp-makecopies -d %DEVICE_URI%
[installation]
version = 3.9.12.29
date_time = 10/03/10 11:44:44
[settings]
systray_messages = 0
systray_visible = 0
[fax]
email_address =
voice_phone =
[refresh]
rate = 30
enable = true
type = 0
[polling]
enable = false
device_list =
interval = 5
-------
| DISCOVERED USB DEVICES |
-------
No devices found.
-------
| INSTALLED CUPS PRINTER QUEUES |
-------
HP6500
------
Type: Printer
Device URI: hp:/net/
PPD: /etc/cups/
PPD Description: HP Officejet 6500 e710a-f, hpcups 3.11.1
Printer status: printer HP6500 is idle. enabled since Tue Mar 15 15:38:22 2011
Communication status: Good
HP6500FAX
---------
Type: Fax
Device URI: hpfax:/
PPD: /etc/cups/
PPD Description: HP Fax hpcups
Printer status: printer HP6500FAX is idle. enabled since Tue Mar 15 15:39:12 2011
Communication status: Good
Officejet_7200
--------------
Type: Printer
Device URI: hp:/net/
PPD: /etc/cups/
PPD Description: HP Officejet 7200 Series, hpcups 3.9.12
Printer status: printer Officejet_7200 is idle. enabled since Sun Oct 3 12:25:24 2010
Communication status: Good
Officejet_7200_fax
------------------
Type: Fax
Device URI: hpfax:/
PPD: /etc/cups/
PPD Description: HP Fax hpcups
Printer status: printer Officejet_7200_fax is idle. enabled since Sun Oct 3 12:25:37 2010
Communication status: Good
-------
| SANE CONFIGURATION |
-------
'hpaio' in '/etc/sane.
OK, found. SANE backend 'hpaio' is properly set up.
Checking output of 'scanimage -L'...
device `hpaio:
device `hpaio:
-------
| PYTHON EXTENSIONS |
-------
Checking 'cupsext' CUPS extension...
OK, found.
Checking 'pcardext' Photocard extension...
OK, found.
Checking 'hpmudext' I/O extension...
OK, found.
Checking 'scanext' SANE scanning extension...
OK, found.
---------------
| USER GROUPS |
---------------
root bin daemon sys adm disk wheel floppy dialout tape video
-----------
| SUMMARY |
-----------
No errors or warnings.
Done.
-------
When launched under regular user
$ hp-sendfax
HP Linux Imaging and Printing System (ver. 3.11.1)
PC Sendfax Utility ver. 9.0
...
Segmentation fault
-------
Under root and with logging level debug:
# hp-sendfax -ldebug
warning: hp-sendfax should not be run as root/superuser.
HP Linux Imaging and Printing System (ver. 3.11.1)
PC Sendfax Utility ver. 9.0
Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
hp-sendfax[4795]: debug: getPrinterName(
hp-sendfax[4795]: debug: Mode=1
hp-sendfax[4795]: debug: hp:/net/
hp-sendfax[4795]: debug: hpfax:/
hp-sendfax[4795]: debug: Cache miss: officejet_
hp-sendfax[4795]: debug: Reading file: /usr/share/
hp-sendfax[4795]: debug: Searching for section [officejet_
hp-sendfax[4795]: debug: Found section [officejet_
hp-sendfax[4795]: debug: hp:/net/
hp-sendfax[4795]: debug: hpfax:/
hp-sendfax[4795]: debug: Cache miss: officejet_
hp-sendfax[4795]: debug: Reading file: /usr/share/
hp-sendfax[4795]: debug: Searching for section [officejet_
hp-sendfax[4795]: debug: Found section [officejet_
hp-sendfax[4795]: debug: [u'HP6500FAX', u'Officejet_
hp-sendfax[4795]: debug: No printer selected/specified
hp-sendfax[4795]: debug: Loading user settings...
hp-sendfax[4795]: debug: FAB command: /usr/bin/hp-fab
hp-sendfax[4795]: debug: Scan command: /usr/bin/xsane -V %SANE_URI%
hp-sendfax[4795]: debug: Auto refresh: False
hp-sendfax[4795]: debug: Auto refresh rate: 30
hp-sendfax[4795]: debug: Auto refresh type: 1
hp-sendfax[4795]: debug: Systray visible: 0
hp-sendfax[4795]: debug: Systray messages: 0
hp-sendfax[4795]: debug: Last used device URI: hpfax:/
hp-sendfax[4795]: debug: Last used printer: HP6500
hp-sendfax[4795]: debug: Working directory: .
hp-sendfax[4795]: debug: Loading user settings...
hp-sendfax[4795]: debug: FAB command: /usr/bin/hp-fab
hp-sendfax[4795]: debug: Scan command: /usr/bin/xsane -V %SANE_URI%
hp-sendfax[4795]: debug: Auto refresh: False
hp-sendfax[4795]: debug: Auto refresh rate: 30
hp-sendfax[4795]: debug: Auto refresh type: 1
hp-sendfax[4795]: debug: Systray visible: 0
hp-sendfax[4795]: debug: Systray messages: 0
hp-sendfax[4795]: debug: Last used device URI: hpfax:/
hp-sendfax[4795]: debug: Last used printer: HP6500
hp-sendfax[4795]: debug: Working directory: .
hp-sendfax[4795]: debug: Not starting dbus: running as root.
Traceback (most recent call last):
File "/usr/bin/
dlg = SendFaxDialog(None, printer_name, device_uri, mod.args)
File "/usr/share/
self.initUi()
File "/usr/share/
self.
File "/usr/share/
self.db = fax.FaxAddressB
File "/usr/share/
self.load()
File "/usr/share/
self._fab = os.path.
File "/usr/lib64/
elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'
-------
Steps to reproduce:
run hp-sendfax from command line
Changed in hplip: | |
status: | New → In Progress |
Changed in hplip: | |
assignee: | nobody → shunmugaraj (shunmugaraj83) |
Hi Liphtier,
I tried to Reproduce the issue, I could not reproduce.
Following are the versions i used
Ubuntu 10.10
HPLIP-3.11.3
Cups 1.4.4
I would like to check following things
1. Check weather you have .hplip folder created in you home directory where you are running hp-sendfax
2. Check weather it has fab.pickle file created or not
3. If 1 and 2 are ok, Add log.error( "prop.user_ dir =%s" %prop.user_dir) at line number 208, and let me know what "prop.user_dir" is pointing to, it should have a path to .hplip folder in your home directory.
Please try the above steps and let me know the results.
Thanks and Regards,
Shunmugaraj