[sane-devel] SuSE 10.0 gets Out of memory for Epson 4870 (GT-X700)
Henning Meier-Geinitz henn...@meier-geinitz.de writes: Hi, On Sat, Oct 22, 2005 at 01:33:37PM -0400, Karl Heinz Kremer wrote: The error message comes from the scanner, and not Sane or XSane (or Are you sure (well, it's your backend :-)? [epson] out of memory (line 4860) This is the code which results in the error (in sane_start): if (lcount == 0) { DBG (1, out of memory (line %d)\n, __LINE__); return SANE_STATUS_NO_MEM; } As far as I can see, lcount is set here: lcount = sanei_scsi_max_request_size / s-params.bytes_per_line; So lcount would be 0 if sanei_scsi_max_request_size were smaller than (in this case) 41712. Maybe there is a problem with this kernel buffer size? I ran into this as well when looking into a bug with iscan. The default value for sanei_scsi_max_request_size is 32768 so that scanning at highish resolutions will easily overflow this (~10900 pixels on a single scanline for 8bit RGB). What strikes me as odd is the fact that this code is also used for _USB_ scanners! I can understand the lcount stuff, but I don't understand why it would use a SCSI related maximum for _all_ scanner types? Karl, care to shed any light on this? -- Olaf Meeuwissen EPSON AVASYS Corporation, LAN FSF Associate Member #1962 sign up at http://member.fsf.org/ GnuPG key: 6BE37D90/AB6B 0D1F 99E7 1BF5 EB97 976A 16C7 F27D 6BE3 7D90 Penguin's lib! -- I hack, therefore I am -- LPIC-2
[sane-devel] SuSE 10.0 gets Out of memory for Epson 4870 (GT-X700)
Hi, Are you sure you have swap memory enabled ? These problems often occur on systems without swap enabled. Check with free : if the Swap: line reports zero you have a problem ;-) dut8b:~ 252 % free total used free sharedbuffers cached Mem:904628 747696 156932 0 83808 424348 -/+ buffers/cache: 239540 665088 Swap: 1036184 321041004080 Fix : - Check with fdisk -l /dev/hda (or hdb ...) if you already have a swapspace (let's say it is hda4 for now). - Then check with swapon /dev/hda4 if you can enable it. - If you get a message like invalid swap signature try to use mkswap /dev/hda4 on that partition and retry. - If free reports swap then check if it is already set in the /etc/fstab : /dev/hda4 noneswap defaults 0 0 Success, Kees On Saturday 22 October 2005 14:55, Roger Price wrote: Dear List, For a year my Epson Perfection 4870 Photo ran well with sane 1.0.14 and xsane 0.94 on SuSE Linux 8.1. I recently upgraded to SuSE Linux OSS 10.0 with sane 1.0.15, xsane 0.97. I use the epson backend. The kernel is 2.6.13. The scanner is USB connected and recognized as a GT-X700. The PC has 512 Mbytes of memory. sane-find-scanner reports USB scanner (vendor=0x04b8 [EPSON], product=0x0128 [EPSON Scanner]) at libusb:001:003 At first the upgraded installation ran well: I managed to scan 20 postcards at 1200 dpi before getting the message Failed to start scanner: Out of memory. Restarting sane did not solve the problem. Neither did logging out of the user account and logging in again. I ran shutdown -r now as root and tried again. This time I managed to scan 8 postcards at 1200 dpi before getting the message Failed to start scanner: Out of memory. I repeated shutdown -r now and tried again, but now I cannot even scan the first postcard. I set export SANE_DEBUG_EPSON=255 and obtained the following trace from the moment at which I clicked on Scan to the moment the Out of memory window appeared: [epson] sane_get_parameters() [epson] Preview = 0 [epson] Resolution = 1200 [epson] get para 0x81b8c98 0x81b9388 tlx 11.270081 tly 3.646194 brx 158.444199 bry 96.458710 [mm] [epson] params.format = 1 [epson] params.last_frame = 1 [epson] params.bytes_per_line = 41712 [epson] params.pixels_per_line = 6952 [epson] params.lines = 4385 [epson] params.depth = 16 [epson] sane_start() [epson] open_scanner() [epson] scanner is already open: fd = 0 [epson] sane_start: Setting data format to 16 bits [epson] send buf, size = 2 [epson] buf[0] 1b . [epson] buf[1] 44 D [epson] receive buf, expected = 1, got = 1 [epson] buf[0] 06 . [epson] send buf, size = 1 ...many similar send-receive messages... [epson] sane_start: set_color_correction( s, 0x80 ) ...many more send-receive messages... [epson] receive buf, expected = 1, got = 1 [epson] buf[0] 06 . [epson] sane_get_parameters() [epson] Preview = 0 [epson] Resolution = 1200 [epson] get para 0x81b8c98 0x81b9388 tlx 11.270081 tly 3.646194 brx 158.444199 bry 96.458710 [mm] [epson] params.format = 1 [epson] params.last_frame = 1 [epson] params.bytes_per_line = 41712 [epson] params.pixels_per_line = 6952 [epson] params.lines = 4385 [epson] params.depth = 16 [epson] set_scan_area: 0x81b8c98 532 172 6952 4385 [epson] send buf, size = 2 [epson] buf[0] 1b . [epson] buf[1] 41 A [epson] receive buf, expected = 1, got = 1 [epson] buf[0] 06 . [epson] send buf, size = 8 [epson] buf[0] 14 . [epson] buf[1] 02 . [epson] buf[2] ac . [epson] buf[3] 00 . [epson] buf[4] 28 ( [epson] buf[5] 1b . [epson] buf[6] 21 ! [epson] buf[7] 11 . [epson] receive buf, expected = 1, got = 1 [epson] buf[0] 06 . [epson] out of memory (line 4860) [epson] sane_get_parameters() [epson] Preview = 0 [epson] Resolution = 1200 [epson] get para 0x81b8c98 0x81b9388 tlx 11.270081 tly 3.646194 brx 158.444199 bry 96.458710 [mm] [epson] params.format = 1 [epson] params.last_frame = 1 [epson] params.bytes_per_line = 41712 [epson] params.pixels_per_line = 6952 [epson] params.lines = 4385 [epson] params.depth = 16 KDE's Kooka is still able to scan a postcard at 1200 dpi, but I would prefer to use xsane which gives precise control of the gamma. Although the upgrade now includes GIMP (version gimp-2.2.0) which was not present previously, I don't use GIMP, so this is probably not the problem. Any suggestions or hints would be much appreciated. Best Regards, Roger
[sane-devel] SuSE 10.0 gets Out of memory for Epson 4870 (GT-X700)
Hi, On Sat, Oct 22, 2005 at 01:33:37PM -0400, Karl Heinz Kremer wrote: The error message comes from the scanner, and not Sane or XSane (or Are you sure (well, it's your backend :-)? [epson] out of memory (line 4860) This is the code which results in the error (in sane_start): if (lcount == 0) { DBG (1, out of memory (line %d)\n, __LINE__); return SANE_STATUS_NO_MEM; } As far as I can see, lcount is set here: lcount = sanei_scsi_max_request_size / s-params.bytes_per_line; So lcount would be 0 if sanei_scsi_max_request_size were smaller than (in this case) 41712. Maybe there is a problem with this kernel buffer size? Bye, Henning
[sane-devel] SuSE 10.0 gets Out of memory for Epson 4870 (GT-X700)
Dear List, For a year my Epson Perfection 4870 Photo ran well with sane 1.0.14 and xsane 0.94 on SuSE Linux 8.1. I recently upgraded to SuSE Linux OSS 10.0 with sane 1.0.15, xsane 0.97. I use the epson backend. The kernel is 2.6.13. The scanner is USB connected and recognized as a GT-X700. The PC has 512 Mbytes of memory. sane-find-scanner reports USB scanner (vendor=0x04b8 [EPSON], product=0x0128 [EPSON Scanner]) at libusb:001:003 At first the upgraded installation ran well: I managed to scan 20 postcards at 1200 dpi before getting the message Failed to start scanner: Out of memory. Restarting sane did not solve the problem. Neither did logging out of the user account and logging in again. I ran shutdown -r now as root and tried again. This time I managed to scan 8 postcards at 1200 dpi before getting the message Failed to start scanner: Out of memory. I repeated shutdown -r now and tried again, but now I cannot even scan the first postcard. I set export SANE_DEBUG_EPSON=255 and obtained the following trace from the moment at which I clicked on Scan to the moment the Out of memory window appeared: [epson] sane_get_parameters() [epson] Preview = 0 [epson] Resolution = 1200 [epson] get para 0x81b8c98 0x81b9388 tlx 11.270081 tly 3.646194 brx 158.444199 bry 96.458710 [mm] [epson] params.format = 1 [epson] params.last_frame = 1 [epson] params.bytes_per_line = 41712 [epson] params.pixels_per_line = 6952 [epson] params.lines = 4385 [epson] params.depth = 16 [epson] sane_start() [epson] open_scanner() [epson] scanner is already open: fd = 0 [epson] sane_start: Setting data format to 16 bits [epson] send buf, size = 2 [epson] buf[0] 1b . [epson] buf[1] 44 D [epson] receive buf, expected = 1, got = 1 [epson] buf[0] 06 . [epson] send buf, size = 1 ...many similar send-receive messages... [epson] sane_start: set_color_correction( s, 0x80 ) ...many more send-receive messages... [epson] receive buf, expected = 1, got = 1 [epson] buf[0] 06 . [epson] sane_get_parameters() [epson] Preview = 0 [epson] Resolution = 1200 [epson] get para 0x81b8c98 0x81b9388 tlx 11.270081 tly 3.646194 brx 158.444199 bry 96.458710 [mm] [epson] params.format = 1 [epson] params.last_frame = 1 [epson] params.bytes_per_line = 41712 [epson] params.pixels_per_line = 6952 [epson] params.lines = 4385 [epson] params.depth = 16 [epson] set_scan_area: 0x81b8c98 532 172 6952 4385 [epson] send buf, size = 2 [epson] buf[0] 1b . [epson] buf[1] 41 A [epson] receive buf, expected = 1, got = 1 [epson] buf[0] 06 . [epson] send buf, size = 8 [epson] buf[0] 14 . [epson] buf[1] 02 . [epson] buf[2] ac . [epson] buf[3] 00 . [epson] buf[4] 28 ( [epson] buf[5] 1b . [epson] buf[6] 21 ! [epson] buf[7] 11 . [epson] receive buf, expected = 1, got = 1 [epson] buf[0] 06 . [epson] out of memory (line 4860) [epson] sane_get_parameters() [epson] Preview = 0 [epson] Resolution = 1200 [epson] get para 0x81b8c98 0x81b9388 tlx 11.270081 tly 3.646194 brx 158.444199 bry 96.458710 [mm] [epson] params.format = 1 [epson] params.last_frame = 1 [epson] params.bytes_per_line = 41712 [epson] params.pixels_per_line = 6952 [epson] params.lines = 4385 [epson] params.depth = 16 KDE's Kooka is still able to scan a postcard at 1200 dpi, but I would prefer to use xsane which gives precise control of the gamma. Although the upgrade now includes GIMP (version gimp-2.2.0) which was not present previously, I don't use GIMP, so this is probably not the problem. Any suggestions or hints would be much appreciated. Best Regards, Roger
[sane-devel] SuSE 10.0 gets Out of memory for Epson 4870 (GT-X700)
whatever upgraded application or OS layer eats more memory the solution is obvious ... buy more RAM, or increase your swap file size. possibly 2 or 4G on its own partition.
[sane-devel] SuSE 10.0 gets Out of memory for Epson 4870 (GT-X700)
The error message comes from the scanner, and not Sane or XSane (or any other application). Try to make your scan area slightly smaller and see if this allows you to perform the scan. Karl Heinz On Oct 22, 2005, at 8:55 AM, Roger Price wrote: Dear List, For a year my Epson Perfection 4870 Photo ran well with sane 1.0.14 and xsane 0.94 on SuSE Linux 8.1. I recently upgraded to SuSE Linux OSS 10.0 with sane 1.0.15, xsane 0.97. I use the epson backend. The kernel is 2.6.13. The scanner is USB connected and recognized as a GT-X700. The PC has 512 Mbytes of memory. sane-find-scanner reports USB scanner (vendor=0x04b8 [EPSON], product=0x0128 [EPSON Scanner]) at libusb:001:003 At first the upgraded installation ran well: I managed to scan 20 postcards at 1200 dpi before getting the message Failed to start scanner: Out of memory. Restarting sane did not solve the problem. Neither did logging out of the user account and logging in again. I ran shutdown -r now as root and tried again. This time I managed to scan 8 postcards at 1200 dpi before getting the message Failed to start scanner: Out of memory. I repeated shutdown -r now and tried again, but now I cannot even scan the first postcard. I set export SANE_DEBUG_EPSON=255 and obtained the following trace from the moment at which I clicked on Scan to the moment the Out of memory window appeared: [epson] sane_get_parameters() [epson] Preview = 0 [epson] Resolution = 1200 [epson] get para 0x81b8c98 0x81b9388 tlx 11.270081 tly 3.646194 brx 158.444199 bry 96.458710 [mm] [epson] params.format = 1 [epson] params.last_frame = 1 [epson] params.bytes_per_line = 41712 [epson] params.pixels_per_line = 6952 [epson] params.lines = 4385 [epson] params.depth = 16 [epson] sane_start() [epson] open_scanner() [epson] scanner is already open: fd = 0 [epson] sane_start: Setting data format to 16 bits [epson] send buf, size = 2 [epson] buf[0] 1b . [epson] buf[1] 44 D [epson] receive buf, expected = 1, got = 1 [epson] buf[0] 06 . [epson] send buf, size = 1 ...many similar send-receive messages... [epson] sane_start: set_color_correction( s, 0x80 ) ...many more send-receive messages... [epson] receive buf, expected = 1, got = 1 [epson] buf[0] 06 . [epson] sane_get_parameters() [epson] Preview = 0 [epson] Resolution = 1200 [epson] get para 0x81b8c98 0x81b9388 tlx 11.270081 tly 3.646194 brx 158.444199 bry 96.458710 [mm] [epson] params.format = 1 [epson] params.last_frame = 1 [epson] params.bytes_per_line = 41712 [epson] params.pixels_per_line = 6952 [epson] params.lines = 4385 [epson] params.depth = 16 [epson] set_scan_area: 0x81b8c98 532 172 6952 4385 [epson] send buf, size = 2 [epson] buf[0] 1b . [epson] buf[1] 41 A [epson] receive buf, expected = 1, got = 1 [epson] buf[0] 06 . [epson] send buf, size = 8 [epson] buf[0] 14 . [epson] buf[1] 02 . [epson] buf[2] ac . [epson] buf[3] 00 . [epson] buf[4] 28 ( [epson] buf[5] 1b . [epson] buf[6] 21 ! [epson] buf[7] 11 . [epson] receive buf, expected = 1, got = 1 [epson] buf[0] 06 . [epson] out of memory (line 4860) [epson] sane_get_parameters() [epson] Preview = 0 [epson] Resolution = 1200 [epson] get para 0x81b8c98 0x81b9388 tlx 11.270081 tly 3.646194 brx 158.444199 bry 96.458710 [mm] [epson] params.format = 1 [epson] params.last_frame = 1 [epson] params.bytes_per_line = 41712 [epson] params.pixels_per_line = 6952 [epson] params.lines = 4385 [epson] params.depth = 16 KDE's Kooka is still able to scan a postcard at 1200 dpi, but I would prefer to use xsane which gives precise control of the gamma. Although the upgrade now includes GIMP (version gimp-2.2.0) which was not present previously, I don't use GIMP, so this is probably not the problem. Any suggestions or hints would be much appreciated. Best Regards, Roger -- sane-devel mailing list: sane-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject unsubscribe your_password to sane-devel-requ...@lists.alioth.debian.org