|
List Info
Thread: Out of Memory error when scanning at high DPI
|
|
| Out of Memory error when scanning at
high DPI |

|
2006-11-16 14:13:46 |
|
Hi, I have an Epson Perfection Photo 4990 (GT-X800) scanner connected by USB to my PC (Athlon 64 3200 1GB ram 5GB swap, FC5).
scanimage --version : scanimage (sane-backends) 1.0.18
; backend version 1.0.18
Scanimage -L : device `epson:libusb:002:009' is a Epson GT-X800 flatbed scanner
I can scan fine at 1200dpi (16-bit colour) or 2400 (8-bit colour) but when I try to scan at anything higher I get an Out of Memory error. It is my understanding that scanning at 4800dpi should be possible with this scanner. Any suggestions?
Thanks,
Mark
|
| Out of Memory error when scanning at
high DPI |

|
2006-11-16 21:32:02 |
On Thu November 16 2006 06:13, Mark Richards wrote:
> Hi,
> I have an Epson Perfection Photo 4990 (GT-X800) scanner
connected by USB to
> my PC (Athlon 64 3200 1GB ram 5GB swap, FC5).
>
> scanimage --version : scanimage (sane-backends) 1.0.18;
backend version
> 1.0.18
>
> Scanimage -L : device `epson:libusb:002:009' is a Epson
GT-X800 flatbed
> scanner
>
> I can scan fine at 1200dpi (16-bit colour) or 2400
(8-bit colour) but when
> I try to scan at anything higher I get an Out of Memory
error. It is my
> understanding that scanning at 4800dpi should be
possible with this
> scanner. Any suggestions?
>
> Thanks,
>
> Mark
Sorry about that my screen cut off the first two lines of
your message.
--
Russ
--
sane-devel mailing list: sane-devel lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
to sane-devel-request lists.alioth.debian.org
|
|
| Out of Memory error when scanning at
high DPI |

|
2006-11-16 21:26:38 |
On Thu November 16 2006 06:13, Mark Richards wrote:
> Hi,
> I have an Epson Perfection Photo 4990 (GT-X800) scanner
connected by USB to
> my PC (Athlon 64 3200 1GB ram 5GB swap, FC5).
>
> scanimage --version : scanimage (sane-backends) 1.0.18;
backend version
> 1.0.18
>
> Scanimage -L : device `epson:libusb:002:009' is a Epson
GT-X800 flatbed
> scanner
>
> I can scan fine at 1200dpi (16-bit colour) or 2400
(8-bit colour) but when
> I try to scan at anything higher I get an Out of Memory
error. It is my
> understanding that scanning at 4800dpi should be
possible with this
> scanner. Any suggestions?
>
> Thanks,
>
> Mark
Out of Memory usually means your computer does not have
enough memory. You
don't state how much you have?
--
Russ
--
sane-devel mailing list: sane-devel lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
to sane-devel-request lists.alioth.debian.org
|
|
| Out of Memory error when scanning at
high DPI |

|
2006-11-16 21:40:39 |
On Thu, 2006-11-16 at 09:13 -0500, Mark Richards wrote:
> Hi,
> I have an Epson Perfection Photo 4990 (GT-X800) scanner
connected by
> USB to my PC (Athlon 64 3200 1GB ram 5GB swap, FC5).
>
> scanimage --version : scanimage (sane-backends) 1.0.18
; backend
> version 1.0.18
>
> Scanimage -L : device `epson:libusb:002:009' is a Epson
GT-X800
> flatbed scanner
>
> I can scan fine at 1200dpi (16-bit colour) or 2400
(8-bit colour) but
> when I try to scan at anything higher I get an Out of
Memory error.
> It is my understanding that scanning at 4800dpi should
be possible
> with this scanner. Any suggestions?
>
> Thanks,
>
> Mark
>
With export SANE_DEBUG_EPSON=255
and then start scanimage, check the logs for some info,
For a A4 300dpi (24 bits, 8 bits per color) scan you get
about 25Mbyte
of data, for 600dpi about 100Mbyte, for 1200dpi about 400
Mbyte, for
2400dpi about 1600Mbyte.
--
--------
m.vr.gr.
Gerard Klaver
--
sane-devel mailing list: sane-devel lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
to sane-devel-request lists.alioth.debian.org
|
|
| Out of Memory error when scanning at
high DPI |

|
2006-11-16 23:48:17 |
Gerard Klaver <gerard gkall.hobby.nl> writes:
> On Thu, 2006-11-16 at 09:13 -0500, Mark Richards wrote:
>> Hi,
>> I have an Epson Perfection Photo 4990 (GT-X800)
scanner connected by
>> USB to my PC (Athlon 64 3200 1GB ram 5GB swap,
FC5).
>>
>> scanimage --version : scanimage (sane-backends)
1.0.18 ; backend
>> version 1.0.18
>>
>> Scanimage -L : device `epson:libusb:002:009' is a
Epson GT-X800
>> flatbed scanner
>>
>> I can scan fine at 1200dpi (16-bit colour) or 2400
(8-bit colour) but
>> when I try to scan at anything higher I get an Out
of Memory error.
>> It is my understanding that scanning at 4800dpi
should be possible
>> with this scanner. Any suggestions?
>>
>> Thanks,
>>
>> Mark
>>
> With export SANE_DEBUG_EPSON=255
You don't really want to do that at 4800dpi . It
outputs a single
line for every sample. Use 25 instead of 255 for more
useful output
and mail me a (compressed) debug log.
> and then start scanimage, check the logs for some info,
>
> For a A4 300dpi (24 bits, 8 bits per color) scan you
get about 25Mbyte
> of data, for 600dpi about 100Mbyte, for 1200dpi about
400 Mbyte, for
> 2400dpi about 1600Mbyte.
Mark mentions 1GB RAM ... if the frontend attempts to keep
the whole
scanned image in memory than at 4800dpi, 24bits he may be
hitting the
limit.
Whereabouts does the out of memory occur? Somewhere right
at or near
you start the scan or after you are more than halfway
through the
scan?
Hope this helps,
--
Olaf Meeuwissen EPSON AVASYS
Corporation, SE1
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 mailing list: sane-devel lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
to sane-devel-request lists.alioth.debian.org
|
|
| Out of Memory error when scanning at
high DPI |

|
2006-11-17 02:18:31 |
Hi guys,
Thanks for the quick reply. Attached is the output of
attempting to scan a
4x6 photo a few times at different settings
(SANE_DEBUG_EPSON=25). Note that
the out of memory error happens the instant I press the scan
button, not
part-way through a scan or anything. The scanner doesn't
even twitch. It
previews fine and scans at lower dpi/colour-depth though.
Thanks for the help,
Mark
On Thursday 16 November 2006 18:48, Olaf Meeuwissen wrote:
> Gerard Klaver <gerard gkall.hobby.nl> writes:
> > On Thu, 2006-11-16 at 09:13 -0500, Mark Richards
wrote:
> >> Hi,
> >> I have an Epson Perfection Photo 4990
(GT-X800) scanner connected by
> >> USB to my PC (Athlon 64 3200 1GB ram 5GB swap,
FC5).
> >>
> >> scanimage --version : scanimage
(sane-backends) 1.0.18 ; backend
> >> version 1.0.18
> >>
> >> Scanimage -L : device `epson:libusb:002:009'
is a Epson GT-X800
> >> flatbed scanner
> >>
> >> I can scan fine at 1200dpi (16-bit colour) or
2400 (8-bit colour) but
> >> when I try to scan at anything higher I get an
Out of Memory error.
> >> It is my understanding that scanning at
4800dpi should be possible
> >> with this scanner. Any suggestions?
> >>
> >> Thanks,
> >>
> >> Mark
> >
> > With export SANE_DEBUG_EPSON=255
>
> You don't really want to do that at 4800dpi . It
outputs a single
> line for every sample. Use 25 instead of 255 for more
useful output
> and mail me a (compressed) debug log.
>
> > and then start scanimage, check the logs for some
info,
> >
> > For a A4 300dpi (24 bits, 8 bits per color) scan
you get about 25Mbyte
> > of data, for 600dpi about 100Mbyte, for 1200dpi
about 400 Mbyte, for
> > 2400dpi about 1600Mbyte.
>
> Mark mentions 1GB RAM ... if the frontend attempts to
keep the whole
> scanned image in memory than at 4800dpi, 24bits he may
be hitting the
> limit.
>
> Whereabouts does the out of memory occur? Somewhere
right at or near
> you start the scan or after you are more than halfway
through the
> scan?
>
> Hope this helps,
--
sane-devel mailing list: sane-devel lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
to sane-devel-request lists.alioth.debian.org |
|
| Out of Memory error when scanning at
high DPI |

|
2006-11-17 03:45:11 |
Mark Richards <mark.richards gmail.com> writes:
> Hi guys,
> Thanks for the quick reply. Attached is the output of
attempting to scan a
> 4x6 photo a few times at different settings
(SANE_DEBUG_EPSON=25). Note that
> the out of memory error happens the instant I press the
scan button, not
> part-way through a scan or anything. The scanner
doesn't even twitch. It
> previews fine and scans at lower dpi/colour-depth
though.
# OK, I see.
# Somebody sure contributed an ugly hack just to get 4800dpi
on the
# 4990 to work ;-{ The epson backend only uses ESC based
commands,
# which implies that that you can't even set 4800dpi and
even less
# so the scan area you are using and have the device behave.
The
# hack that went in probably shouldn't have ...
Anyway, you can not scan wider than about 3.4 inches without
avoiding
this behaviour in sane-backends-1.0.18 on Linux.
If you don't mind experimenting, you could try with a larger
value for
MAX_DATA in sanei/sanei_scsi.c but I have absolutely no idea
what will
happen. In the best case things will "work", in
the worst your
scanner breaks.
Hope this helps,
> Thanks for the help,
>
> Mark
>
> On Thursday 16 November 2006 18:48, Olaf Meeuwissen
wrote:
>> Gerard Klaver <gerard gkall.hobby.nl> writes:
>> > On Thu, 2006-11-16 at 09:13 -0500, Mark
Richards wrote:
>> >> Hi,
>> >> I have an Epson Perfection Photo 4990
(GT-X800) scanner connected by
>> >> USB to my PC (Athlon 64 3200 1GB ram 5GB
swap, FC5).
>> >>
>> >> scanimage --version : scanimage
(sane-backends) 1.0.18 ; backend
>> >> version 1.0.18
>> >>
>> >> Scanimage -L : device
`epson:libusb:002:009' is a Epson GT-X800
>> >> flatbed scanner
>> >>
>> >> I can scan fine at 1200dpi (16-bit colour)
or 2400 (8-bit colour) but
>> >> when I try to scan at anything higher I
get an Out of Memory error.
>> >> It is my understanding that scanning at
4800dpi should be possible
>> >> with this scanner. Any suggestions?
>> >>
>> >> Thanks,
>> >>
>> >> Mark
>> >
>> > With export SANE_DEBUG_EPSON=255
>>
>> You don't really want to do that at 4800dpi . It
outputs a single
>> line for every sample. Use 25 instead of 255 for
more useful output
>> and mail me a (compressed) debug log.
>>
>> > and then start scanimage, check the logs for
some info,
>> >
>> > For a A4 300dpi (24 bits, 8 bits per color)
scan you get about 25Mbyte
>> > of data, for 600dpi about 100Mbyte, for
1200dpi about 400 Mbyte, for
>> > 2400dpi about 1600Mbyte.
>>
>> Mark mentions 1GB RAM ... if the frontend attempts
to keep the whole
>> scanned image in memory than at 4800dpi, 24bits he
may be hitting the
>> limit.
>>
>> Whereabouts does the out of memory occur?
Somewhere right at or near
>> you start the scan or after you are more than
halfway through the
>> scan?
>>
>> Hope this helps,
>
--
Olaf Meeuwissen EPSON AVASYS
Corporation, SE1
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 mailing list: sane-devel lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
to sane-devel-request lists.alioth.debian.org
|
|
| Out of Memory error when scanning at
high DPI |

|
2006-11-17 16:29:02 |
Thanks again for the prompt response. I have one question:
when you say
"your scanner breaks", do you mean that my
physical scanner would be damaged?
Or do you mean that the sane backend would be broken and I'd
have to revert
the change? I'm willing to help get this driver working but
I'm not in a
position to risk damage to the scanner, unfortunately.
I have access to Windows XP, so if that can be of use for
reverse-engineering
the windows driver, I will help that way too. Only problem
is I don't have a
dev environment in Windows so compiling software will be an
issue.
Thanks,
Mark
On Thursday 16 November 2006 22:45, Olaf Meeuwissen wrote:
> Mark Richards <mark.richards gmail.com> writes:
> > Hi guys,
> > Thanks for the quick reply. Attached is the
output of attempting to
> > scan a 4x6 photo a few times at different settings
(SANE_DEBUG_EPSON=25).
> > Note that the out of memory error happens the
instant I press the scan
> > button, not part-way through a scan or anything.
The scanner doesn't
> > even twitch. It previews fine and scans at lower
dpi/colour-depth
> > though.
>
> # OK, I see.
> # Somebody sure contributed an ugly hack just to get
4800dpi on the
> # 4990 to work ;-{ The epson backend only uses ESC
based commands,
> # which implies that that you can't even set 4800dpi
and even less
> # so the scan area you are using and have the device
behave. The
> # hack that went in probably shouldn't have ...
>
> Anyway, you can not scan wider than about 3.4 inches
without avoiding
> this behaviour in sane-backends-1.0.18 on Linux.
>
> If you don't mind experimenting, you could try with a
larger value for
> MAX_DATA in sanei/sanei_scsi.c but I have absolutely no
idea what will
> happen. In the best case things will "work",
in the worst your
> scanner breaks.
>
> Hope this helps,
>
> > Thanks for the help,
> >
> > Mark
> >
> > On Thursday 16 November 2006 18:48, Olaf
Meeuwissen wrote:
> >> Gerard Klaver <gerard gkall.hobby.nl> writes:
> >> > On Thu, 2006-11-16 at 09:13 -0500, Mark
Richards wrote:
> >> >> Hi,
> >> >> I have an Epson Perfection Photo 4990
(GT-X800) scanner connected by
> >> >> USB to my PC (Athlon 64 3200 1GB ram
5GB swap, FC5).
> >> >>
> >> >> scanimage --version : scanimage
(sane-backends) 1.0.18 ; backend
> >> >> version 1.0.18
> >> >>
> >> >> Scanimage -L : device
`epson:libusb:002:009' is a Epson GT-X800
> >> >> flatbed scanner
> >> >>
> >> >> I can scan fine at 1200dpi (16-bit
colour) or 2400 (8-bit colour) but
> >> >> when I try to scan at anything higher
I get an Out of Memory error.
> >> >> It is my understanding that scanning
at 4800dpi should be possible
> >> >> with this scanner. Any suggestions?
> >> >>
> >> >> Thanks,
> >> >>
> >> >> Mark
> >> >
> >> > With export SANE_DEBUG_EPSON=255
> >>
> >> You don't really want to do that at 4800dpi
.
It outputs a single
> >> line for every sample. Use 25 instead of 255
for more useful output
> >> and mail me a (compressed) debug log.
> >>
> >> > and then start scanimage, check the logs
for some info,
> >> >
> >> > For a A4 300dpi (24 bits, 8 bits per
color) scan you get about 25Mbyte
> >> > of data, for 600dpi about 100Mbyte, for
1200dpi about 400 Mbyte, for
> >> > 2400dpi about 1600Mbyte.
> >>
> >> Mark mentions 1GB RAM ... if the frontend
attempts to keep the whole
> >> scanned image in memory than at 4800dpi,
24bits he may be hitting the
> >> limit.
> >>
> >> Whereabouts does the out of memory occur?
Somewhere right at or near
> >> you start the scan or after you are more than
halfway through the
> >> scan?
> >>
> >> Hope this helps,
--
sane-devel mailing list: sane-devel lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
to sane-devel-request lists.alioth.debian.org |
|
| Out of Memory error when scanning at
high DPI |

|
2006-11-20 01:11:43 |
Mark Richards <mark.richards gmail.com> writes:
> Thanks again for the prompt response. I have one
question: when you
> say "your scanner breaks", do you mean that
my physical scanner
> would be damaged? Or do you mean that the sane backend
would be
> broken and I'd have to revert the change? I'm willing
to help get
> this driver working but I'm not in a position to risk
damage to the
> scanner, unfortunately.
> [snip]
Although the risk is probably quite small, I mean physically
break.
# I can't afford telling you do this, try that and then have
you
# complain when your scanner gets damaged, now can I?
Hope this helps,
--
Olaf Meeuwissen EPSON AVASYS
Corporation, SE1
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 mailing list: sane-devel lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
to sane-devel-request lists.alioth.debian.org
|
|
| Out of Memory error when scanning at
high DPI |

|
2006-11-20 18:44:02 |
On Fri, 17 Nov 2006 12:45:11 +0900
Olaf Meeuwissen <olaf.meeuwissen avasys.jp> wrote:
> # OK, I see.
> # Somebody sure contributed an ugly hack just to get
4800dpi on the
> # 4990 to work ;-{ The epson backend only uses ESC
based commands,
> # which implies that that you can't even set 4800dpi
and even less
> # so the scan area you are using and have the device
behave. The
> # hack that went in probably shouldn't have ...
Hi Olaf,
you mean that it could be done with FS commands?
--
Best regards,
Alessandro Zummo,
Tower Technologies - Turin, Italy
http://www.towertech.it
--
sane-devel mailing list: sane-devel lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
to sane-devel-request lists.alioth.debian.org
|
|
| Out of Memory error when scanning at
high DPI |

|
2006-11-29 23:54:10 |
Alessandro Zummo <azummo-lists towertech.it> writes:
> On Fri, 17 Nov 2006 12:45:11 +0900
> Olaf Meeuwissen <olaf.meeuwissen avasys.jp> wrote:
>
>> # OK, I see.
>> # Somebody sure contributed an ugly hack just to
get 4800dpi on the
>> # 4990 to work ;-{ The epson backend only uses ESC
based commands,
>> # which implies that that you can't even set
4800dpi and even less
>> # so the scan area you are using and have the
device behave. The
>> # hack that went in probably shouldn't have ...
>
> Hi Olaf,
>
> you mean that it could be done with FS commands?
The short answer is yes.
The long answer is that it will mean a fair bit of changes
to the
current epson backend because it wasn't quite designed to
handle FS
commands.
Hope this helps,
--
Olaf Meeuwissen EPSON AVASYS
Corporation, SE1
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 mailing list: sane-devel lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
to sane-devel-request lists.alioth.debian.org
|
|
| Out of Memory error when scanning at
high DPI |

|
2006-11-30 20:06:30 |
On Thu, 30 Nov 2006 08:54:10 +0900
Olaf Meeuwissen <olaf.meeuwissen avasys.jp> wrote:
> >> # 4990 to work ;-{ The epson backend only
uses ESC based commands,
> >> # which implies that that you can't even set
4800dpi and even less
> >> # so the scan area you are using and have the
device behave. The
> >> # hack that went in probably shouldn't have
...
> >
> > Hi Olaf,
> >
> > you mean that it could be done with FS commands?
>
> The short answer is yes.
>
> The long answer is that it will mean a fair bit of
changes to the
> current epson backend because it wasn't quite designed
to handle FS
> commands.
my epson2 backend will probably handle it. I will upload it
to the cvs so you/everyone can take a look. some FS
commands are already implemented.
--
Best regards,
Alessandro Zummo,
Tower Technologies - Turin, Italy
http://www.towertech.it
--
sane-devel mailing list: sane-devel lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
to sane-devel-request lists.alioth.debian.org
|
|
[1-12]
|
|