Bug 439431

Summary: YaST2 hangs on printer configuration
Product: [openSUSE] openSUSE 11.0 Reporter: Elmar Stellnberger <estellnb>
Component: YaST2Assignee: Michal Zugec <mzugec>
Status: RESOLVED INVALID QA Contact: Jiri Srain <jsrain>
Severity: Critical    
Priority: P5 - None CC: jsmeix
Version: Final   
Target Milestone: ---   
Hardware: 64bit   
OS: openSUSE 11.0   
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: yast2 log file
shorter yast2 log of successive attempts to install printer
hwinfo
not what you will need: crash not reproduced
yast2 log - other similar cfg attempt
yast2 log for new interface (all of yast has crashed)
pure printer log with besaid crash

Description Elmar Stellnberger 2008-10-28 09:11:04 UTC
Whenever I try to configure my newly plugged USB printer Yast2 starts to hang (the printer configuration as well as the whole control center). Even after a cleanup and retry YaST2 still hung:
 Removed all your print queues in YaST and finish YaST:
 Removed YaST's printer files:
rm /var/lib/YaST2/printers
rm /var/lib/YaST2/ppd_db.ycp
Comment 1 Elmar Stellnberger 2008-10-28 09:26:01 UTC
Created attachment 248271 [details]
yast2 log file
Comment 2 Elmar Stellnberger 2008-10-28 09:30:58 UTC
Created attachment 248274 [details]
shorter yast2 log of successive attempts to install printer
Comment 3 Elmar Stellnberger 2008-10-28 09:53:33 UTC
Comment on attachment 248274 [details]
shorter yast2 log of successive attempts to install printer

see also bug 439438.
Comment 4 Alexander Orlovskyy 2008-10-28 14:52:17 UTC
Please provide following logs with connected usb printer:

hwinfo output log

dmesg output log
Comment 5 Elmar Stellnberger 2008-10-29 15:57:05 UTC
Created attachment 248623 [details]
hwinfo
Comment 6 Elmar Stellnberger 2008-10-29 16:00:03 UTC
Created attachment 248627 [details]
not what you will need: crash not reproduced

Unfortunately I could not reproduce the crash.
Now it simply breaks with the error message 'error saving file mfc9840cdw'.
Comment 7 Alexander Orlovskyy 2008-10-30 07:19:04 UTC
Reassign to yast2-maintainers
Comment 8 Elmar Stellnberger 2008-11-27 17:34:40 UTC
Created attachment 256327 [details]
yast2 log - other similar cfg attempt

before: rm /var/lib/YaST2/printers & ppd_db.ycp
cups(File)DoRequest: client-error-request-value-too-long

any suggestion on how to enable my printer?
Comment 9 Michal Zugec 2008-12-04 14:03:14 UTC
Test backported package from 11.1:
http://download.opensuse.org/repositories/home:/jsmeix/openSUSE_11.0/
Comment 10 Michal Zugec 2008-12-04 14:21:14 UTC
Regarding using FACTORY in openSUSE 11.0 or 10.3, read
http://en.opensuse.org/YaST/Development/Printer_Enhancement#Under_construction_for_openSUSE_11.1
Comment 11 Michal Zugec 2008-12-04 14:21:56 UTC
And please write your feedback about new yast2-printer package
Comment 12 Elmar Stellnberger 2008-12-04 15:38:02 UTC
Yast still crashes with the new interface (all of Yast, not just the printer configuration). Besides this:
* how can I change printer connections
* how can I delete printer connections
* it is not possible to select a correct printer driver, though I have installed the drivers for my machine
What shall I do?
Comment 13 Elmar Stellnberger 2008-12-04 15:46:16 UTC
  Some days ago I have also opened a support request(10449298321) because I can not print at the moment but have not got any response on it. Could you please help me configuring my printer? How can I reset the printer configuration files?
Comment 14 Elmar Stellnberger 2008-12-04 15:47:12 UTC
someone has closed my support request without giving any response.
Comment 15 Michal Zugec 2008-12-04 15:50:30 UTC
All you described is possible with new yast2-printer module.
For this segfault, please attach yast log
Comment 16 Elmar Stellnberger 2008-12-04 15:52:27 UTC
Accidentially I can not remember where to find the y2logs.
Comment 17 Michal Zugec 2008-12-04 15:52:49 UTC
re comment #13: could you write new bugreport (in bugzilla)?
as a workaround you can still use http://localhost:631/
Comment 18 Michal Zugec 2008-12-04 15:53:18 UTC
it's /var/log/YaST2/y2log file
Comment 19 Elmar Stellnberger 2008-12-04 15:58:08 UTC
Created attachment 258058 [details]
yast2 log for new interface (all of yast has crashed)
Comment 20 Elmar Stellnberger 2008-12-04 16:03:34 UTC
Created attachment 258060 [details]
pure printer log with besaid crash
Comment 21 Elmar Stellnberger 2008-12-04 16:11:20 UTC
May you delete the forelast attachment as soon as you have downloaded it 'yast2 log for new interface (all of yast has crashed)'? It does also contain other information than YaST2 printer log messages. Nevertheless it contains more than one successive printer configuration attempt, all of which have ended with crashes.
Comment 22 Elmar Stellnberger 2008-12-04 16:13:13 UTC
May I downgrade to the old printer interface now?
I think the error is not in the printer interface, because kcmshell printers, the KDE utility to configure printers has also crashed in my case at trying to set the default printer. 
Can you tell me how to proceed?
Comment 23 Johannes Meixner 2008-12-04 16:26:34 UTC
FYI:
I use the new yast2-printer on my openSUSE 11.0 workstation
all the time and it never crashed for me but it may look
as if it had hang up because of bug #442173.

(I do this to make sure that the new yast2-printer is
backward compatible at least for openSUSE 11.0)
Comment 24 Elmar Stellnberger 2008-12-04 17:19:03 UTC
Unfortunately I do not get any answer on http://localhost:631/ though cups has been restarted. What`s the matter here?
Comment 25 Elmar Stellnberger 2008-12-04 17:20:45 UTC
No I do not think the problems are related to the gui - three different guis refuse to work yast new/old-gui and kcmshell printer.
Comment 26 Elmar Stellnberger 2008-12-04 17:43:27 UTC
It always crashes on "store queue" after printer setup.
Comment 27 Michal Zugec 2008-12-05 13:57:43 UTC
what's your locale? (output of "locale" command)
Comment 28 Elmar Stellnberger 2008-12-06 11:44:28 UTC
oops, comments #1 to #6 belong to a different Opensuse-installation with locale  pt_BR.UTF-8; should have opened a new request. Nevertheless at the second installation something is messed up with cups:
> lpinfo -m
lpinfo: cups-driverd failed to execute.
> lpinfo -v
lpinfo: cups-deviced failed to execute.
> /etc/init.d/cups status
Checking for cupsd:                                                   running
Comment 29 Elmar Stellnberger 2008-12-06 12:58:32 UTC
The web interface at repositories/home:/jsmeix/openSUSE_11.0/ simply does not work. I can not select a driver even if I state the location of the .ppd file manually. Selecting USB-connections does not work either; have tested it with both Suse-1..0 installations.
Comment 30 Elmar Stellnberger 2008-12-06 13:00:21 UTC
Can anyone tell me how to set my printer up?
> lpadmin -p ps -v socket://10.0.0.20:9100 -P /usr/share/cups/model/brmfc9840cdw.ppd -E
asks for a password, but does not accept the password specified by
> lppasswd -g sys -a root
localhost:631 does not respond.
Comment 31 Elmar Stellnberger 2009-02-23 20:00:36 UTC
That system has probably been hacked. Nevertheless the installation that bug has been reported for has been wracked down so that I do not want to test for it any more. Will reopen new bug if issue still present.
Comment 32 Elmar Stellnberger 2009-02-23 20:08:07 UTC
.