Bug 512477 - hp-setup hangs at startup
Summary: hp-setup hangs at startup
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: hplip
Version: 11
Hardware: i686
OS: Linux
low
high
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-17 20:48 UTC by Andrea
Modified: 2010-06-28 13:41 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-06-28 13:41:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
output of "strace hp-setup" (647.21 KB, application/octet-stream)
2009-07-17 20:48 UTC, Andrea
no flags Details

Description Andrea 2009-07-17 20:48:47 UTC
Created attachment 354209 [details]
output of "strace hp-setup"

Description of problem:

In Fedora 11
hp-setup starts, but after copyrights it hangs forever.

Version-Release number of selected component (if applicable):

hplip I have installed is

hplip-gui-3.9.2-4.fc11.i586
hplip-3.9.2-4.fc11.i586
hplip-libs-3.9.2-4.fc11.i586

How reproducible:

always

Steps to Reproduce:
1.become root
2.hp-setup
  
Actual results:

after copyrights, it hangs

Expected results:

gui pops up and configuration continues

Additional info:

I've run "strace hp-setup" and attached the output.
Nothing is logged to /var/log/messages.
When run with extra logging, it only prints

hp-setup[3037]: debug: param=

Comment 1 Tim Waugh 2009-07-28 09:22:24 UTC
Try 'hp-setup --disable-dbus' -- does that work around it?

Comment 2 Tim Waugh 2009-07-28 09:23:02 UTC
Oh, wait, that's an hp-toolbox option...

Comment 3 Andrea 2009-07-28 19:14:52 UTC
An update of the situation is

1) it works when I run "hp-setup -i"

2) I've run strace and this is the last part of it

stat64("/root/.kde/share/config/kdeglobals", {st_mode=S_IFREG|0600, st_size=117, ...}) = 0
stat64("/root/.kde/share/config/kdeglobals", {st_mode=S_IFREG|0600, st_size=117, ...}) = 0
stat64("/root/.kde/share/config/kdeglobals", {st_mode=S_IFREG|0600, st_size=117, ...}) = 0
fstat64(8, {st_mode=S_IFREG|0600, st_size=117, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7c26000
read(8, "[$Version]\nupdate_info=kwin.upd:k"..., 4096) = 117
read(8, ""..., 4096) = 0
close(8) = 0
munmap(0xb7c26000, 4096) = 0
stat64("/root/.kde/share/config/oxygenrc", 0xbf9345b4) = -1 ENOENT (No such file or directory)
stat64("/etc/kde/oxygenrc", 0xbf9345b4) = -1 ENOENT (No such file or directory)
stat64("/usr/share/kde-settings/kde-profile/default/share/config/oxygenrc", 0xbf9345b4) = -1 ENOENT (No such file or directory)
stat64("/usr/share/config/oxygenrc", 0xbf9345b4) = -1 ENOENT (No such file or directory)
socket(PF_FILE, SOCK_STREAM, 0) = 8
connect(8, {sa_family=AF_FILE, path=@"/tmp/dbus-YMPFCiHxV1"...}, 23) = 0
fcntl64(8, F_GETFL) = 0x2 (flags O_RDWR)
fcntl64(8, F_SETFL, O_RDWR|O_NONBLOCK) = 0
fcntl64(8, F_GETFD) = 0
fcntl64(8, F_SETFD, FD_CLOEXEC) = 0
geteuid32() = 0
rt_sigaction(SIGPIPE, {0x1, [PIPE], SA_RESTART}, {0x1, [], 0}, 8) = 0
poll([{fd=8, events=POLLOUT}], 1, 0) = 1 ([{fd=8, revents=POLLOUT}])
write(8, "\0"..., 1) = 1
write(8, "AUTH EXTERNAL 30\r\n"..., 18) = 18
poll([{fd=8, events=POLLIN}], 1, -1) = 1 ([{fd=8, revents=POLLIN}])
read(8, "OK a16eba9acfc3638eec7139ec4a60df"..., 2048) = 37
poll([{fd=8, events=POLLOUT}], 1, -1) = 1 ([{fd=8, revents=POLLOUT}])
write(8, "BEGIN\r\n"..., 7) = 7
poll([{fd=8, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=8, revents=POLLIN|POLLOUT|POLLHUP}])
read(8, ""..., 2048) = 0
close(8) = 0
futex(0x98c4114, FUTEX_WAIT_PRIVATE, 1, NULL <unfinished ...>

... nothing more is added after that

3) I've used the python debugger and found that it hangs on a call to
QApplication(sys.argv)

> /usr/share/hplip/setup.py(193)<module>()
-> log.debug("param=%s" % param)
(Pdb)
> /usr/share/hplip/setup.py(196)<module>()
-> if mode == GUI_MODE:
(Pdb)
> /usr/share/hplip/setup.py(197)<module>()
-> if ui_toolkit == 'qt3':
(Pdb)
> /usr/share/hplip/setup.py(202)<module>()
-> if not utils.canEnterGUIMode4():
(Pdb)
> /usr/share/hplip/setup.py(206)<module>()
-> if mode == GUI_MODE:
(Pdb)
> /usr/share/hplip/setup.py(207)<module>()
-> if ui_toolkit == 'qt3':
(Pdb)
> /usr/share/hplip/setup.py(280)<module>()
-> try:
(Pdb)
> /usr/share/hplip/setup.py(281)<module>()
-> from PyQt4.QtGui import QApplication, QMessageBox
(Pdb)
> /usr/share/hplip/setup.py(282)<module>()
-> from ui4.setupdialog import SetupDialog
(Pdb)
 /usr/share/hplip/setup.py(287)<module>()
-> app = QApplication(sys.argv)
(Pdb)

... hangs

4) but, if I run it via the hp-toolbox (Device, Setup device), it always works.

5) on my PS3 it always works

I don't really know who to blame here...

Comment 4 Tim Waugh 2009-10-01 17:04:20 UTC
Me either. :-(

Comment 5 Bug Zapper 2010-04-27 15:45:37 UTC
This message is a reminder that Fedora 11 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 11.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '11'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 11's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 11 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 6 Bug Zapper 2010-06-28 13:41:50 UTC
Fedora 11 changed to end-of-life (EOL) status on 2010-06-25. Fedora 11 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.