Julien BLACHE wrote: > Jelle de Jong <jelledej...@powercraft.nl> wrote: > > Hi, > >> I hope the logs speaks for it selfs, if not please ask for more information. > > I think it's a hpaio bug. It's symptomatic of a backend that writes to > fd 0 while saned is run through (x)inetd. > > It's already been reported to the hplip folks, but they didn't care > enough to try to reproduce and fix the problem. See #495005. > > It's either that, or the backend doing something against the > standard. As I don't have any hplip-supported hardware, there's > nothing I can do. Somebody with access to the hardware needs to > reproduce, track down and fix the bug. > > JB. >
You are right! It has something to do with the saned is run through (x)inetd. This is bad, since I use this as enterprise setup by my customers So I logged into the server that is making a network printer and scanner of the device and did the below as root: # scanimage -L device `net:192.168.1.1:hpaio:/usb/Officejet_J5700_series?serial=CN7BOCF3HP04TC' is a Hewlett-Packard Officejet_J5700_series all-in-one device `hpaio:/usb/Officejet_J5700_series?serial=CN7BOCF3HP04TC' is a Hewlett-Packard Officejet_J5700_series all-in-one r...@ashley:/var/log# scanimage --help Usage: scanimage [OPTION]... Start image acquisition on a scanner device and write PNM image data to standard output. Parameters are separated by a blank from single-character options (e.g. -d epson) and by a "=" from multi-character options (e.g. --device-name=epson). -d, --device-name=DEVICE use a given scanner device (e.g. hp:/dev/scanner) --format=pnm|tiff file format of output file -i, --icc-profile=PROFILE include this ICC profile into TIFF file -L, --list-devices show available scanner devices -f, --formatted-device-list=FORMAT similar to -L, but the FORMAT of the output can be specified: %d (device name), %v (vendor), %m (model), %t (type), and %i (index number) -b, --batch[=FORMAT] working in batch mode, FORMAT is `out%d.pnm' or `out%d.tif' by default depending on --format --batch-start=# page number to start naming files with --batch-count=# how many pages to scan in batch mode --batch-increment=# increase number in filename by an amount of # --batch-double increment page number by two for 2sided originals being scanned in a single sided scanner --batch-prompt ask for pressing a key before scanning a page --accept-md5-only only accept authorization requests using md5 -p, --progress print progress messages -n, --dont-scan only set options, don't actually scan -T, --test test backend thoroughly -h, --help display this help message and exit -v, --verbose give even more status messages -B, --buffer-size change default input buffersize -V, --version print version information [sanei_wire] sanei_w_array: DECODE: maximum amount of allocated memory exceeded (limit: 1048576, new allocation: 825636153, total: 826684729 bytes) scanimage: open of device net:192.168.1.1:hpaio:/usb/Officejet_J5700_series?serial=CN7BOCF3HP04TC failed: Error during device I/O Type ``scanimage --help -d DEVICE'' to get list of all options for DEVICE. [sanei_wire] sanei_w_array: DECODE: maximum amount of allocated memory exceeded (limit: 1048576, new allocation: 14682911648, total: 14683960224 bytes) List of available devices: hpaio:/usb/Officejet_J5700_series?serial=CN7BOCF3HP04TC After that I restarted /etc/init.d/xinetd restart and let somebody on the other side restart the printer and after that scanadf --help did not show an error anymore. However! After trying to run the simple below command as root on the server: # scanimage [sanei_wire] sanei_w_array: DECODE: maximum amount of allocated memory exceeded (limit: 1048576, new allocation: 893001825, total: 894050401 bytes) Segmentation fault after this it takes a few minutes before the printer recovers and is able to shutdown to reconnect it again. The hole processes froze again with the same errors, and the device does not scan anymore! printing still works. # just to be sure showing this: cat /etc/xinetd.d/saned # default: off # description: The sane server accepts requests # for network access to a local scanner via the # network. service sane-port { port = 6566 socket_type = stream wait = no user = saned group = saned groups = yes server = /usr/sbin/saned } taking the power of the scanner and reconnecting it to the server: r...@ashley:~# scanimage -d hpaio:/usb/Officejet_J5700_series?serial=CN7BOCF3HP04TC > test.bmp process 20186: arguments to dbus_connection_send() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 3099. This is normally a bug in some application using the D-Bus library. process 20186: arguments to dbus_connection_send() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 3099. This is normally a bug in some application using the D-Bus library. r...@ashley:~# ls -hal test.bmp -rw-rw---- 1 root root 2.1M 2009-02-24 23:51 test.bmp r...@ashley:~# so that still kind of works! scanimage -d net:192.168.1.1:hpaio:/usb/Officejet_J5700_series?serial=CN7BOCF3HP04TC > test0.bmp [sanei_wire] sanei_w_array: DECODE: maximum amount of allocated memory exceeded (limit: 1048576, new allocation: 859447393, total: 860495969 bytes) Segmentation fault r...@ashley:~# And here we go! simple command taking the complete scanner down! Help! This is an really really painful issue for me I need the network scanner for work. I will sent this bug report to sane-devel at lists.alioth.debian.org Thanks in advance, for any support and help. Best regards, Jelle de Jong -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org