Hi
Just installed FC3 and I am having some problems setting up my printer, a Lexmark Optra E312. On running system-config-printer, I click on New, a little box pops up saying "Loading Printer Information Please Wait..." and then disappears. Then the egg timer mouse cursors just sits there and the setup program does nothing.
Running system-config-printer from the command line I get the following error
[ram@skymoo ~]$ system-config-printer sh: line 1: 5375 Segmentation fault perl -e 'ioctl(STDIN,0x84005001,$result);print $result' 2>/dev/null </dev/usb/lp0 Traceback (most recent call last): File "/usr/share/printconf/util/queueTree.py", line 580, in new_button_clicked self.addQueue.addQueueDruid () File "/usr/share/printconf/util/addQueue.py", line 248, in addQueueDruid self.populate_device_view () File "/usr/share/printconf/util/addQueue.py", line 468, in populate_device_view self.local_devs = self.parent.conf.scan_local_printer_devices (force) File "/usr/share/printconf/util/printconf_conf.py", line 1265, in scan_local_printer_devices local_printer_devices.device_dict[dev].update(autodetect_usb_printer(dev, i)) File "/usr/share/printconf/util/printconf_conf.py", line 1392, in autodetect_usb_printer return { "auto" : auto } UnboundLocalError: local variable 'auto' referenced before assignment
and running system-config-printer-tui from the command line I get the following
[ram@skymoo ~]$ system-config-printer-tui Initializing alchemist edit environment ... Initializing linux printing database ... Traceback (most recent call last): File "/usr/sbin/system-config-printer-tui", line 8, in ? printconf_tui.startup_and_find_cmd() File "/usr/share/printconf/util/printconf_tui.py", line 2412, in startup_and_find_cmd main.cmd_handlers[cmd]() File "/usr/share/printconf/util/printconf_tui.py", line 1993, in tui_main_run qld_run() File "/usr/share/printconf/util/printconf_tui.py", line 1857, in qld_run if nqd_run(): File "/usr/share/printconf/util/printconf_tui.py", line 157, in nqd_run nqd_typedata_run() File "/usr/share/printconf/util/printconf_tui.py", line 405, in nqd_typedata_run nqd.typedata.handlers[nqd.queue_type_space]() File "/usr/share/printconf/util/printconf_tui.py", line 422, in nqd_typedata_local_run local_devices = scan_local_printer_devices(force = 1) File "/usr/share/printconf/util/printconf_conf.py", line 1265, in scan_local_printer_devices local_printer_devices.device_dict[dev].update(autodetect_usb_printer(dev, i)) File "/usr/share/printconf/util/printconf_conf.py", line 1392, in autodetect_usb_printer return { "auto" : auto }
Any one have any ideas what is going wrong here and how to fix it?
Cheers
Adam
On Tue, 2004-11-23 at 17:28, Adam Mercer wrote:
Hi
Just installed FC3 and I am having some problems setting up my printer, a Lexmark Optra E312. On running system-config-printer, I click on New, a little box pops up saying "Loading Printer Information Please Wait..." and then disappears. Then the egg timer mouse cursors just sits there and the setup program does nothing.
Running system-config-printer from the command line I get the following error
[ram@skymoo ~]$ system-config-printer sh: line 1: 5375 Segmentation fault perl -e 'ioctl(STDIN,0x84005001,$result);print $result' 2>/dev/null </dev/usb/lp0 Traceback (most recent call last): File "/usr/share/printconf/util/queueTree.py", line 580, in new_button_clicked self.addQueue.addQueueDruid () File "/usr/share/printconf/util/addQueue.py", line 248, in addQueueDruid self.populate_device_view () File "/usr/share/printconf/util/addQueue.py", line 468, in populate_device_view self.local_devs = self.parent.conf.scan_local_printer_devices (force) File "/usr/share/printconf/util/printconf_conf.py", line 1265, in scan_local_printer_devices local_printer_devices.device_dict[dev].update(autodetect_usb_printer(dev, i)) File "/usr/share/printconf/util/printconf_conf.py", line 1392, in autodetect_usb_printer return { "auto" : auto } UnboundLocalError: local variable 'auto' referenced before assignment
and running system-config-printer-tui from the command line I get the following
[ram@skymoo ~]$ system-config-printer-tui Initializing alchemist edit environment ... Initializing linux printing database ... Traceback (most recent call last): File "/usr/sbin/system-config-printer-tui", line 8, in ? printconf_tui.startup_and_find_cmd() File "/usr/share/printconf/util/printconf_tui.py", line 2412, in startup_and_find_cmd main.cmd_handlers[cmd]() File "/usr/share/printconf/util/printconf_tui.py", line 1993, in tui_main_run qld_run() File "/usr/share/printconf/util/printconf_tui.py", line 1857, in qld_run if nqd_run(): File "/usr/share/printconf/util/printconf_tui.py", line 157, in nqd_run nqd_typedata_run() File "/usr/share/printconf/util/printconf_tui.py", line 405, in nqd_typedata_run nqd.typedata.handlers[nqd.queue_type_space]() File "/usr/share/printconf/util/printconf_tui.py", line 422, in nqd_typedata_local_run local_devices = scan_local_printer_devices(force = 1) File "/usr/share/printconf/util/printconf_conf.py", line 1265, in scan_local_printer_devices local_printer_devices.device_dict[dev].update(autodetect_usb_printer(dev, i)) File "/usr/share/printconf/util/printconf_conf.py", line 1392, in autodetect_usb_printer return { "auto" : auto }
Any one have any ideas what is going wrong here and how to fix it?
Cheers
Adam
Adam,
No idea, but you can get at the printer configuration thru cups' web interface at http://localhost:631. Go to manage printers and click the Add Printer button. Use root when requested.
BTW: There was some traffic on one of the Fedora lists yesterday indicating that problems with system-config-printer running on some H/W. It was not very specific, but there may be something in the archives.
Bob...
On Wed, 2004-11-24 at 06:44 -0500, Bob Chiodini wrote:
On Tue, 2004-11-23 at 17:28, Adam Mercer wrote:
Hi
Just installed FC3 and I am having some problems setting up my printer, a Lexmark Optra E312. On running system-config-printer, I click on New, a little box pops up saying "Loading Printer Information Please Wait..." and then disappears. Then the egg timer mouse cursors just sits there and the setup program does nothing.
Running system-config-printer from the command line I get the following error
[ram@skymoo ~]$ system-config-printer sh: line 1: 5375 Segmentation fault perl -e 'ioctl(STDIN,0x84005001,$result);print $result' 2>/dev/null </dev/usb/lp0 Traceback (most recent call last): File "/usr/share/printconf/util/queueTree.py", line 580, in new_button_clicked self.addQueue.addQueueDruid () File "/usr/share/printconf/util/addQueue.py", line 248, in addQueueDruid self.populate_device_view () File "/usr/share/printconf/util/addQueue.py", line 468, in populate_device_view self.local_devs = self.parent.conf.scan_local_printer_devices (force) File "/usr/share/printconf/util/printconf_conf.py", line 1265, in scan_local_printer_devices local_printer_devices.device_dict[dev].update(autodetect_usb_printer(dev, i)) File "/usr/share/printconf/util/printconf_conf.py", line 1392, in autodetect_usb_printer return { "auto" : auto } UnboundLocalError: local variable 'auto' referenced before assignment
and running system-config-printer-tui from the command line I get the following
[ram@skymoo ~]$ system-config-printer-tui Initializing alchemist edit environment ... Initializing linux printing database ... Traceback (most recent call last): File "/usr/sbin/system-config-printer-tui", line 8, in ? printconf_tui.startup_and_find_cmd() File "/usr/share/printconf/util/printconf_tui.py", line 2412, in startup_and_find_cmd main.cmd_handlers[cmd]() File "/usr/share/printconf/util/printconf_tui.py", line 1993, in tui_main_run qld_run() File "/usr/share/printconf/util/printconf_tui.py", line 1857, in qld_run if nqd_run(): File "/usr/share/printconf/util/printconf_tui.py", line 157, in nqd_run nqd_typedata_run() File "/usr/share/printconf/util/printconf_tui.py", line 405, in nqd_typedata_run nqd.typedata.handlers[nqd.queue_type_space]() File "/usr/share/printconf/util/printconf_tui.py", line 422, in nqd_typedata_local_run local_devices = scan_local_printer_devices(force = 1) File "/usr/share/printconf/util/printconf_conf.py", line 1265, in scan_local_printer_devices local_printer_devices.device_dict[dev].update(autodetect_usb_printer(dev, i)) File "/usr/share/printconf/util/printconf_conf.py", line 1392, in autodetect_usb_printer return { "auto" : auto }
Any one have any ideas what is going wrong here and how to fix it?
Cheers
Adam
Adam it looks like the underlying python code that is used to autodetect the usb printer has what looks to be a syntax problem. I would suspect that isn't the case, but that is the indication. BTW, both the gui and tui based sysconfig-printer tools will use the same python code, so there generally won't be much difference in behavior.
Since the OS was installed have you tried to up2date / yum / apt-get any upgrades. I don't specifically recall seeing this error anywhere, but you should try that first to see if there was a bug fix reported and fixed. If there has been no correction for the problem you will want to report the problem in bugzilla for the developers to consider. Make sure you add all hardware and software information that you can provide.
Good Luck.....
On Wed, Nov 24, 2004 at 08:28:40AM -0600, Sam Williams wrote:
[ram@skymoo ~]$ system-config-printer sh: line 1: 5375 Segmentation fault perl -e 'ioctl(STDIN,0x84005001,$result);print $result' 2>/dev/null </dev/usb/lp0
[...]
Adam it looks like the underlying python code that is used to autodetect the usb printer has what looks to be a syntax problem.
No, that's perl segfaulting, and it's probably due to a kernel oops in the ioctl it's calling.
Tim. */
On Wed, 24 Nov 2004 08:28:40 -0600, Sam Williams sam-williams@insightbb.com wrote:
Just installed FC3 and I am having some problems setting up my printer, a Lexmark Optra E312. On running system-config-printer, I click on New, a little box pops up saying "Loading Printer Information Please Wait..." and then disappears. Then the egg timer mouse cursors just sits there and the setup program does nothing.
Adam it looks like the underlying python code that is used to autodetect the usb printer has what looks to be a syntax problem. I would suspect that isn't the case, but that is the indication. BTW, both the gui and tui based sysconfig-printer tools will use the same python code, so there generally won't be much difference in behavior.
Since the OS was installed have you tried to up2date / yum / apt-get any upgrades. I don't specifically recall seeing this error anywhere, but you should try that first to see if there was a bug fix reported and fixed. If there has been no correction for the problem you will want to report the problem in bugzilla for the developers to consider. Make sure you add all hardware and software information that you can provide.
Hi
The following morning from sending that email I logged in and was greeted by a pop-up telling me that eggcups had crashed (along with gnome-volume-manager, or something like that) and did I want to restart the application. No matter how many times I clicked on the restart application button the pop-up kept coming back.
After a through look on the gnome bugzilla I found the following
http://bugzilla-test.gnome.org/show_bug.cgi?id=151307
specially comment 13 (prelink /usr/lib/libdbus*so), running this solved both problems that I was having. system-config-printer now works fine.
Thanks for all the help and suggestions.
Cheers
Adam
On Tue, Nov 23, 2004 at 10:28:19PM +0000, Adam Mercer wrote:
Hi
Just installed FC3 and I am having some problems setting up my printer, a Lexmark Optra E312. On running system-config-printer, I click on New, a little box pops up saying "Loading Printer Information Please Wait..." and then disappears. Then the egg timer mouse cursors just sits there and the setup program does nothing.
Running system-config-printer from the command line I get the following error
[ram@skymoo ~]$ system-config-printer sh: line 1: 5375 Segmentation fault perl -e 'ioctl(STDIN,0x84005001,$result);print $result' 2>/dev/null </dev/usb/lp0
What does 'dmesg' show? Looks like the kernel oopsed to me.
Tim. */
On Wed, 24 Nov 2004 12:05:54 +0000, Tim Waugh twaugh@redhat.com wrote:
On Tue, Nov 23, 2004 at 10:28:19PM +0000, Adam Mercer wrote:
Just installed FC3 and I am having some problems setting up my printer, a Lexmark Optra E312. On running system-config-printer, I click on New, a little box pops up saying "Loading Printer Information Please Wait..." and then disappears. Then the egg timer mouse cursors just sits there and the setup program does nothing.
Running system-config-printer from the command line I get the following error
[ram@skymoo ~]$ system-config-printer sh: line 1: 5375 Segmentation fault perl -e 'ioctl(STDIN,0x84005001,$result);print $result' 2>/dev/null </dev/usb/lp0
What does 'dmesg' show? Looks like the kernel oopsed to me.
Hi
This is going back about a month, but I've started having the same problem again.
When I get the error from system-config-printer, the only messages in dmesg are regarding hits from my firewall.
Any idea where else to look?
Cheers
Adam
On Tue, Dec 21, 2004 at 09:48:56PM +0000, Adam Mercer wrote:
[ram@skymoo ~]$ system-config-printer sh: line 1: 5375 Segmentation fault perl -e 'ioctl(STDIN,0x84005001,$result);print $result' 2>/dev/null </dev/usb/lp0
What does 'dmesg' show? Looks like the kernel oopsed to me.
Hi
This is going back about a month, but I've started having the same problem again.
When I get the error from system-config-printer, the only messages in dmesg are regarding hits from my firewall.
Well, does that command also fail when you run it directly as root?:
perl -e 'ioctl(STDIN,0x84005001,$result);print $result' </dev/usb/lp0
Tim. */
On Wed, 22 Dec 2004 09:08:38 +0000, Tim Waugh twaugh@redhat.com wrote:
Tim
Well, does that command also fail when you run it directly as root?:
perl -e 'ioctl(STDIN,0x84005001,$result);print $result' </dev/usb/lp0
[root@skymoo ~]# perl -e 'ioctl(STDIN,0x84005001,$result);print $result' </dev/usb/lp0 Segmentation fault
Yes, this is with kernel-2.6.9-1.681_FC3, the same also happens with a home brew 2.6.9-ac16
Cheers
Adam
On Wed, Dec 22, 2004 at 06:53:35PM +0000, Adam Mercer wrote:
On Wed, 22 Dec 2004 09:08:38 +0000, Tim Waugh twaugh@redhat.com wrote:
Tim
Well, does that command also fail when you run it directly as root?:
perl -e 'ioctl(STDIN,0x84005001,$result);print $result' </dev/usb/lp0
[root@skymoo ~]# perl -e 'ioctl(STDIN,0x84005001,$result);print $result' </dev/usb/lp0 Segmentation fault
Yes, this is with kernel-2.6.9-1.681_FC3, the same also happens with a home brew 2.6.9-ac16
Well, that really looks like a kernel oops. Sure there's not one in dmesg output? I don't really know what else would cause that.
You could try 'ulimit -c unlimited' and run gdb on /usr/bin/perl and the resulting core file; that might give more clues.
Tim. */
On Thu, 23 Dec 2004 11:20:28 +0000, Tim Waugh twaugh@redhat.com wrote:
Well, that really looks like a kernel oops. Sure there's not one in dmesg output? I don't really know what else would cause that.
No, there is no message from the kernel at all. The only messages regarding this is
ohci_hcd 0000:00:02.1: wakeup usb 3-2: new full speed USB device using address 2 drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 2 if 0 alt 0 proto 2 vid 0x043D pid 0x000C usbcore: registered new driver usblp drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
when I switch the printer on
You could try 'ulimit -c unlimited' and run gdb on /usr/bin/perl and the resulting core file; that might give more clues.
[root@skymoo ~]# gdb /usr/bin/perl core.7388 GNU gdb Red Hat Linux (6.1post-1.20040607.43rh) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux-gnu"...(no debugging symbols found)...Using host libthread_db library "/lib/tls/libthread_db.so.1".
Reading symbols from shared object read from target memory...(no debugging symbols found)...done. Loaded system supplied DSO at 0xffffe000 Core was generated by `perl -e ioctl(STDIN,0x84005001,$result);print $result'. Program terminated with signal 6, Aborted.
warning: svr4_current_sos: Can't read pathname for load map: Input/output error
Reading symbols from /usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE/libperl.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE/libperl.so Reading symbols from /lib/libnsl.so.1...(no debugging symbols found)...done. Loaded symbols for /lib/libnsl.so.1 Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /lib/tls/libm.so.6...(no debugging symbols found)...done. Loaded symbols for /lib/tls/libm.so.6 Reading symbols from /lib/libcrypt.so.1...(no debugging symbols found)...done. Loaded symbols for /lib/libcrypt.so.1 Reading symbols from /lib/libutil.so.1...(no debugging symbols found)...done. Loaded symbols for /lib/libutil.so.1 Reading symbols from /lib/tls/libpthread.so.0...(no debugging symbols found)...done. Loaded symbols for /lib/tls/libpthread.so.0 Reading symbols from /lib/tls/libc.so.6...(no debugging symbols found)...done. Loaded symbols for /lib/tls/libc.so.6 Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/ld-linux.so.2 #0 0xffffe410 in __kernel_vsyscall () (gdb)
Cheers
Adam
On Fri, 24 Dec 2004 11:12:27 +0000, Tim Waugh twaugh@redhat.com wrote:
[root@skymoo ~]# gdb /usr/bin/perl core.7388
[...]
#0 0xffffe410 in __kernel_vsyscall () (gdb)
What does 'bt' say at that point?
(gdb) bt #0 0xffffe410 in __kernel_vsyscall () #1 0x46a49955 in raise () from /lib/tls/libc.so.6 #2 0x46a4b319 in abort () from /lib/tls/libc.so.6 #3 0x46a7cf9a in __libc_message () from /lib/tls/libc.so.6 #4 0x46a840c6 in _int_malloc () from /lib/tls/libc.so.6 #5 0x46a85135 in _int_realloc () from /lib/tls/libc.so.6 #6 0x46a862a6 in realloc () from /lib/tls/libc.so.6 #7 0x474c892c in Perl_safesysrealloc () from /usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE/libperl.so #8 0x474e8486 in Perl_sv_grow () from /usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE/libperl.so #9 0x474f6459 in Perl_sv_catpvn_flags () from /usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE/libperl.so #10 0x474f31bd in Perl_sv_vcatpvfn () from /usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE/libperl.so #11 0x474f48dc in Perl_sv_vsetpvfn () from /usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE/libperl.so #12 0x474c7e89 in Perl_vmess () from /usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE/libperl.so #13 0x474c804e in Perl_vdie () from /usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE/libperl.so #14 0x474c8661 in Perl_die () from /usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE/libperl.so ---Type <return> to continue, or q <return> to quit--- #15 0x475221f9 in Perl_pp_ioctl () from /usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE/libperl.so #16 0x474c5e1d in Perl_runops_debug () from /usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE/libperl.so #17 0x47477c41 in perl_run () from /usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE/libperl.so #18 0x080493a2 in main () (gdb)
Cheers
Adam
On Tue, Dec 21, 2004 at 09:48:56PM +0000, Adam Mercer wrote:
On Wed, 24 Nov 2004 12:05:54 +0000, Tim Waugh twaugh@redhat.com wrote:
On Tue, Nov 23, 2004 at 10:28:19PM +0000, Adam Mercer wrote:
Just installed FC3 and I am having some problems setting up my printer, a Lexmark Optra E312. On running system-config-printer, I click on New, a little box pops up saying "Loading Printer Information Please Wait..." and then disappears. Then the egg timer mouse cursors just sits there and the setup program does nothing.
Running system-config-printer from the command line I get the following error
[ram@skymoo ~]$ system-config-printer sh: line 1: 5375 Segmentation fault perl -e 'ioctl(STDIN,0x84005001,$result);print $result' 2>/dev/null </dev/usb/lp0
What does 'dmesg' show? Looks like the kernel oopsed to me.
Hi
This is going back about a month, but I've started having the same problem again.
When I get the error from system-config-printer, the only messages in dmesg are regarding hits from my firewall.
Any idea where else to look?
Cheers
Adam
Being simple minded I would try to run printconf-tui (if that still exists in FC3) and see what happens.
On Wed, 22 Dec 2004 05:56:01 -0600, akonstam@trinity.edu akonstam@trinity.edu wrote:
Being simple minded I would try to run printconf-tui (if that still exists in FC3) and see what happens.
the same.
Cheers
Adam