Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: XSANE on 12.3 opens and than closes or crashes

  1. #1

    Default 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,

  2. #2
    Join Date
    Mar 2008
    Location
    Phuket, Thailand
    Posts
    26,570
    Blog Entries
    38

    Default Re: XSANE on 12.3 opens and than closes or crashes

    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 ?

  3. #3
    Join Date
    Mar 2008
    Location
    Phuket, Thailand
    Posts
    26,570
    Blog Entries
    38

    Default Re: XSANE on 12.3 opens and than closes or crashes

    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.

  4. #4

    Default Re: XSANE on 12.3 opens and than closes or crashes

    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:
    Code:
    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.
    Code:
    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:
    Code:
    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:
    Code:
    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
    Last edited by oldcpu; 24-Mar-2013 at 01:56. Reason: Added [ code ] and [ /code ] tags to make text easier to read

  5. #5
    Join Date
    Mar 2008
    Location
    Phuket, Thailand
    Posts
    26,570
    Blog Entries
    38

    Default Re: XSANE on 12.3 opens and than closes or crashes

    Quote Originally Posted by kellykare View Post
    I checked the /var/log/messages and the following error was found:
    Code:
    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...
    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.
    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 .


    Quote Originally Posted by kellykare View Post
    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.
    as that the only scanner option for your HP Officejet 4500 ?

    Quote Originally Posted by kellykare View Post
    Code:
    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.
    
    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 ?

    Quote Originally Posted by kellykare View Post
    I open a terminal window as suggested
    "as suggested" .... As I suggested, did you remove or delete /home/kelly/.sane first ?

    Quote Originally Posted by kellykare View Post
    and run xsane and i get the following error message:
    Code:
    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:~>
    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 ?

    Quote Originally Posted by kellykare View Post
    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.
    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 ?

  6. #6
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,578
    Blog Entries
    1

    Default Re: XSANE on 12.3 opens and than closes or crashes

    Code:
    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?

  7. #7

    Default Re: XSANE on 12.3 opens and than closes or crashes

    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.
    People who do not break things first will never learn to create anything

  8. #8

    Default Re: XSANE on 12.3 opens and than closes or crashes

    Quote Originally Posted by conram View Post
    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.
    People who do not break things first will never learn to create anything

  9. #9

    Default Re: XSANE on 12.3 opens and than closes or crashes

    Quote Originally Posted by deano_ferrari View Post
    Code:
    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?
    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.

  10. #10
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,578
    Blog Entries
    1

    Default Re: XSANE on 12.3 opens and than closes or crashes

    Quote Originally Posted by kellykare View Post
    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.
    As conram mentioned, this is not a new issue - several old bug reports concerning this eg:

    https://bugs.launchpad.net/ubuntu/+s...ne/+bug/446373

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •