XSANE on 12.3 opens and than closes or crashes

I just installed xsane on 12.3 and when I go to run the program it will detect the scanner and then windows start to open and display and when all widows are displayed it will close immediately or crash with no error message.

Not sure what the issues is. I have the scanner installed and was test successfully under the HP test option.

if anyone has any suggestion it would be appreciated.

Thanks,

You could rename the file /home/yourusername/.sane to /home/yourusername/.sanebackup, then delete the installed applications sane and xsane and then re-install both programs again. And then run them and see if it works better. The idea there being to remove the application configuration or a bad install as a possible cause.

I have 12.3 on a test partition, and while I am not using that test partition now, I recall installing xsane and it working ok with my HP C309a All-In-One Premium network printer.

Are you certain you have the correct driver installed for your scanner ? You note you ‘tested’ successfully with some 'HP test option , but was that a scanner test option or a printer print function test option ?

A further note - often when a program crash, it will leave a reason for its crash … One way to obtain this is to launch xsane in a terminal and look for any error messages when it crashes. Also in addition look in side /var/log/messages for any errors associated with a program crash.

Thanks for getting back to me so quick. What i did was delete the pr9inter/scanner and removed xsane and started over.

The all-in-one device is an hp officejet 4500. it is an IP printer. when i added it was under printers in yast. I selected add
then selected run hp-setup. Selected network and advanced options -> manual discovery -> entered the ip 192.168.1.10 -> next. It
the printer and returned the device information, selected next -> add printer. It returned then edited the printer and selected default
“letter” -> ok. Then selected “print test page” and nothing printed.

I checked the /var/log/messages and the following error was found:


2013-03-23T18:52:19.339229-05:00 linux-2ozr cupsd[3376]: No limit for Validate-Job defined in policy allowallforanybody and no suitable template found.
2013-03-23T18:52:19.339251-05:00 linux-2ozr cupsd[3376]: No limit for Cancel-Jobs defined in policy allowallforanybody and no suitable template found.
2013-03-23T18:52:19.339255-05:00 linux-2ozr cupsd[3376]: No limit for Cancel-My-Jobs defined in policy allowallforanybody and no suitable template found.
2013-03-23T18:52:19.339259-05:00 linux-2ozr cupsd[3376]: No limit for Close-Job defined in policy allowallforanybody and no suitable template found.
2013-03-23T18:52:19.339263-05:00 linux-2ozr cupsd[3376]: No limit for CUPS-Get-Document defined in policy allowallforanybody and no suitable template found.
2013-03-23T18:52:19.339311-05:00 linux-2ozr cupsd[3376]: No JobPrivateAccess defined in policy allowallforanybody - using defaults.
2013-03-23T18:52:19.339329-05:00 linux-2ozr cupsd[3376]: No JobPrivateValues defined in policy allowallforanybody - using defaults.
2013-03-23T18:52:19.339335-05:00 linux-2ozr cupsd[3376]: No SubscriptionPrivateAccess defined in policy allowallforanybody - using defaults.
2013-03-23T18:52:19.339341-05:00 linux-2ozr cupsd[3376]: No SubscriptionPrivateValues defined in policy allowallforanybody - using defaults.
2013-03-23T18:52:30.538239-05:00 linux-2ozr kernel:   170.173634] lp: driver loaded but no devices found
2013-03-23T18:52:30.563239-05:00 linux-2ozr kernel:   170.198020] ppdev: user-space parallel port driver
2013-03-23T18:56:59.904426-05:00 linux-2ozr hp-setup: hp-setup[28061]: warning: No PPD found for model officejet_4500_g510n-z using new algorithm. Trying old algorithm...
2013-03-23T18:58:59.463759-05:00 linux-2ozr systemd[1]: Started CUPS Printing Service.
2013-03-23T18:59:00.425103-05:00 linux-2ozr hpijs[29011]: prnt/hpijs/hpijs.cpp 269: unable to set device=HP Color LaserJet 2600n, err=48
2013-03-23T18:59:00.425130-05:00 linux-2ozr hpijs[29011]: prnt/hpijs/hpijs.cpp 290: unable to set device=HP Color LaserJet 2600n, err=48
2013-03-23T18:59:00.435234-05:00 linux-2ozr hpijs[29011]: prnt/hpijs/hpijs.cpp 697: unable to read client data err=-2
2013-03-23T18:59:00.436353-05:00 linux-2ozr hp[29001]: prnt/backend/hp.c 839: ERROR: null print job total=0
2013-03-23T18:59:01.439647-05:00 linux-2ozr systemd[1]: Started CUPS Printing Service.
2013-03-23T19:01:21.910383-05:00 linux-2ozr systemd[1]: Started CUPS Printing Service.
2013-03-23T19:01:22.147043-05:00 linux-2ozr hpijs[29599]: prnt/hpijs/hpijs.cpp 269: unable to set device=HP Color LaserJet 2600n, err=48
2013-03-23T19:01:22.147068-05:00 linux-2ozr hpijs[29599]: prnt/hpijs/hpijs.cpp 290: unable to set device=HP Color LaserJet 2600n, err=48
2013-03-23T19:01:22.158960-05:00 linux-2ozr hpijs[29599]: prnt/hpijs/hpijs.cpp 697: unable to read client data err=-2
2013-03-23T19:01:22.160624-05:00 linux-2ozr hp[29592]: prnt/backend/hp.c 839: ERROR: null print job total=0
2013-03-23T19:01:23.163819-05:00 linux-2ozr systemd[1]: Started CUPS Printing Service.

I go back into the printer and i switch from the driver “Current Driver: HP Officejet 4500 g510n-z hpijs, 3.12.11” to
“Current Driver: HP Officejet 4500 g510n-z hpijs, 3.12.11” select ok and the config updates and when complete do a print test page
and it prints.

I than go to scanner and the printer shows but no scanner configured. Select edit, I select the following driver "Hewlett-Packard Officejet 4500 g510n-z :
(Package hplip) Driver hpaio should provide good functionality. (USB-ID 0x03f0:0x2e12) ", → next. selct → other → test, i get testing
hpaio, tested successfully. select ok and exit.


2013-03-23T19:02:20.660501-05:00 linux-2ozr hp-probe: hp-probe[29995]: warning: hp-probe should not be run as root/superuser.
2013-03-23T19:02:20.661446-05:00 linux-2ozr hp-probe: hp-probe[29995]: warning: No devices found on the 'usb' bus. If this isn't the result you are expecting,
2013-03-23T19:02:20.661805-05:00 linux-2ozr hp-probe: hp-probe[29995]: warning: check to make sure your devices are properly connected and powered on.
2013-03-23T19:02:21.677565-05:00 linux-2ozr hp-probe: hp-probe[30006]: warning: hp-probe should not be run as root/superuser.
2013-03-23T19:02:41.798806-05:00 linux-2ozr hp-setup: hp-setup[30085]: error: No devices found on bus: net
2013-03-23T19:02:55.009969-05:00 linux-2ozr hp-setup: hp-setup[30085]: warning: No PPD found for model officejet_4500_g510n-z using new algorithm. Trying old algorithm...
2013-03-23T19:02:58.522512-05:00 linux-2ozr hp-probe: hp-probe[30202]: warning: hp-probe should not be run as root/superuser.
2013-03-23T19:02:58.523389-05:00 linux-2ozr hp-probe: hp-probe[30202]: warning: No devices found on the 'usb' bus. If this isn't the result you are expecting,
2013-03-23T19:02:58.523750-05:00 linux-2ozr hp-probe: hp-probe[30202]: warning: check to make sure your devices are properly connected and powered on.
2013-03-23T19:02:59.550386-05:00 linux-2ozr hp-probe: hp-probe[30213]: warning: hp-probe should not be run as root/superuser.
2013-03-23T19:03:17.084318-05:00 linux-2ozr hp-probe: hp-probe[30387]: warning: hp-probe should not be run as root/superuser.
2013-03-23T19:03:17.085362-05:00 linux-2ozr hp-probe: hp-probe[30387]: warning: No devices found on the 'usb' bus. If this isn't the result you are expecting,
2013-03-23T19:03:17.085723-05:00 linux-2ozr hp-probe: hp-probe[30387]: warning: check to make sure your devices are properly connected and powered on.
2013-03-23T19:03:18.115002-05:00 linux-2ozr hp-probe: hp-probe[30398]: warning: hp-probe should not be run as root/superuser.
2013-03-23T19:04:40.364517-05:00 linux-2ozr systemd[1]: Starting Cleanup of Temporary Directories...
2013-03-23T19:04:40.597379-05:00 linux-2ozr systemd-tmpfiles[22804]: stat(/run/user/1000/gvfs) failed: Permission denied
2013-03-23T19:04:40.765425-05:00 linux-2ozr systemd[1]: Started Cleanup of Temporary Directories.
2013-03-23T19:06:18.514413-05:00 linux-2ozr systemd[1]: Started CUPS Printing Service.
2013-03-23T19:06:48.679376-05:00 linux-2ozr systemd[1]: Started CUPS Printing Service.
2013-03-23T19:07:13.555885-05:00 linux-2ozr hp-probe: hp-probe[23591]: warning: hp-probe should not be run as root/superuser.
2013-03-23T19:07:13.556820-05:00 linux-2ozr hp-probe: hp-probe[23591]: warning: No devices found on the 'usb' bus. If this isn't the result you are expecting,
2013-03-23T19:07:13.557187-05:00 linux-2ozr hp-probe: hp-probe[23591]: warning: check to make sure your devices are properly connected and powered on.
2013-03-23T19:07:14.582315-05:00 linux-2ozr hp-probe: hp-probe[23602]: warning: hp-probe should not be run as root/superuser.

i now install xsane and select from menu to run opens and then closes. var./log/messages as the following:


2013-03-23T19:17:04.649239-05:00 linux-2ozr xsane: io/hpmud/hpmud.c 346: device_cleanup: device uri=hp:/net/Officejet_4500_G510n-z?ip=192.168.1.10
2013-03-23T19:17:04.649266-05:00 linux-2ozr xsane: io/hpmud/hpmud.c 358: device_cleanup: close device dd=1...
2013-03-23T19:17:04.649270-05:00 linux-2ozr xsane: io/hpmud/hpmud.c 360: device_cleanup: done closing device dd=1

I open a terminal window as suggested and run xsane and i get the following error message:


kelly@linux-2ozr:~> xsane
Xlib:  extension "RANDR" missing on display ":0".
The program 'xsane' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 20321 error_code 8 request_code 141 minor_code 5)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
bkelly@linux-2ozr:~> 

My monitor configuration is a dual-head setup using a radean grahixc card HD 6400. I used AMD drive and used aticonfig to setup and works good.

Let me know what you think.

Thanks again

ok … so the 1st error in /var/log/messages appears solved. I assume that error is no longer then when your PC boots, hence for now I’ll discard the above .

as that the only scanner option for your HP Officejet 4500 ?

Do you have an explanation for the 1st and last line of that error highlighted in red ? Were you running hp-probe ? or was that YaST ?

If that appeared after you configured the scanner, then it appears to me, that according to that, it can not find your HP printer’s scanning function ? I assume a USB printer ? Have you tried a different USB port ?

“as suggested” … As I suggested, did you remove or delete /home/kelly/.sane first ?

You could try surfing on those errors in red to see if they shed any light on this.

One possibility I read in surfing was this: Scared to fly? But I love rocket science!: Xlib: extension “RANDR” missing on display “:0” error where perhaps you could check if gtk2-engines-2.20.2-7.1.2.x86_64 and gtk2-engines-32bit-2.20.2-7.1.2.x86_64 are installed ?

Same link as above suggests to disable xinerama and the error will go away. Do you have xinerama enabled with your dual head setup ? With xinerama disabled can you scan ?

kelly@linux-2ozr:~> xsane
Xlib:  extension "RANDR" missing on display ":0".
The program 'xsane' received an X Window System error.

Just a guess: Are you using the proprietary nvidia driver with Xinerama enabled by chance? (I’ve read of this behaviour previously.)

Have you tried using ‘skanlite’ or ‘simple-scan’ as alternative scanner applications?

Hi,

I had this problem in tumbleweed but was fix by an update.
It seems that it happens when using dual monitors with xinerama.

I just installed my scanner and it works with skanlite and simplescan
but not with xsane and my setup is dual monitor with xinerama in openSUSE 12.3
I will try the option separate monitor and repost if it will make any difference.

Update:
I just verified it with the monitor setup.
When in separate xscreens with xinerama enabled xsane attempt to scan and then crash.
When using separate xscrens with xinerama disabled xsane works.
This is using nvidia graphic card.
This is not new news it had been a problem for a while with nvidia.

I can use the other two you suggest and they work, but not never the capability as xsane. I do have the xinerama option set to “on”. If set to “off” xsane works just fine.

Now with the dual-head monitor setup without the xinerana option set to “on”. You are not able to spread work across two screens which for me is not an option. The work space is more important than scanning at this time.

In reply to old cpu; the printer is an IP printer. I checked to see if i had the gtk2 egine loaded an dthey are not installed, and I also read the link, but not able to locate the drive that was talked about. I also checked to see if the following drivers were installed gtk2-engines-2.20.2-7.1.2.x86_64 and gtk2-engines-32bit-2.20.2-7.1.2.x86_64 and they are not even listed in software manager.

As conram mentioned, this is not a new issue - several old bug reports concerning this eg:

The SANE developers blame the nVidia driver., so I can’t see it being rectified anytime soon.

[sane-devel] ‘xsane’ received an X Window System error](http://lists.alioth.debian.org/pipermail/sane-devel/2009-December/025644.html)

Hmmm … this could be my fault there. I use openSUSE-12.1 desktop and I was looking at the packages on 12.1 and speculating the same in use on 12.3. So after reading your reply, I booted an openSUSE-12.3 session (on my laptop where xsane works fine on my HP printer/scanner) and the only gtk-engine app I have is gtk-engine-oxygen which I believe irrelavant. My apologies for this misleading speculation.

This does appear to be xinerama related.

Dude, no apologies required or needed. As an IT guy myself of 30 years of running data centers I understand we all do our best to help. Your help along with others is greatly appreciated. You cannot remember everything.

The multiple monitors ability is key and at this time for me for to be able to work from home effectively and I will leave xinerama “on”. What I did was install virtualbox and installed another instance of 12.3 and left the default xorg.conf as is and I am scanning just fine. Not perfect but it will get me what I need.

Thanks again for all the help and same to the others that replied.

What I did was install virtualbox and installed another instance of 12.3 and left the default xorg.conf as is and I am scanning just fine. Not perfect but it will get me what I need.

Nice workaround. :slight_smile:

The new nvidia driver 325.15 with base mosaic enabled works with xsane.
I am using three monitors, two on xscreen 0 and one on xscreen 1.