[sane-devel] Double-free following scan on ubuntu hardy 8.04 with epjitsu fi-60f

2008-04-29 Thread Jochen Eisinger
Hi,

Julien BLACHE wrote:
 Gah, that damn crash reporter is getting in the way. Can you try to
 get rid of it?

You have to set the env variable MALLOC_CHECK_ to 0, i.e., in bash

export MALLOC_CHECK_=0

or in tcsh

setenv MALLOC_CHECK_ 0

then you will get a proper backtrace with gdb..

http://www.gnu.org/software/libtool/manual/libc/Heap-Consistency-Checking.html

If possible, use valgrind -v scanimage -d epjitsu to generate the
backtrace, it will be more informative.

regards
-- jochen



[sane-devel] Double-free following scan on ubuntu hardy 8.04 with epjitsu fi-60f

2008-04-29 Thread Jochen Eisinger
Hi,

I guess the bug is that in sane_close the scanner_devList entry
corresponding to the open handle is destroyed, and later in sane_exit
all scanner_devList entries are destroyed again.

I guess in sane_close, the entry should be be destroyed, but only marked
as free or so.

regards
-- jochen




[sane-devel] v4l device and colors

2008-04-29 Thread Ludwik
Hi,

Maybe somebody will be able to help be, because I'm going insane here ;)

I'm trying to build a music sequencer that would use color input form
the camera to generate music (something similar to Bubblegum
Sequencer). Sane looks like a best way to integrate my video4linux
webcam input with my python program. The problem is that when Sane
(both in form of the python library and xsane standalone program) show
the camera input it's totally blueish - almost blackblue (something
like blackwhite, but with blue in place of white). All the other
video4linux programs show the real colors. Sane is also using
video4linux, so I have hard time understanding why suddenly everything
goes blue...  Any ideas?

Ludwik Trammer
Warsaw, Poland



[sane-devel] [PATCH] PIXMA Imageclass update

2008-04-29 Thread Dennis Lou
I/O and code cleanup, plus a plea for USB ID's,.

-Dennis




  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
-- next part --
A non-text attachment was scrubbed...
Name: imageclass.diffs
Type: application/octet-stream
Size: 8961 bytes
Desc: not available
Url : 
http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20080428/d5f08503/attachment-0001.obj
 


[sane-devel] v4l device and colors

2008-04-29 Thread Gerard Klaver
On Tue, 2008-04-29 at 00:27 +0200, Ludwik wrote:
 Hi,
 
 Maybe somebody will be able to help be, because I'm going insane here ;)
 
 I'm trying to build a music sequencer that would use color input form
 the camera to generate music (something similar to Bubblegum
 Sequencer). Sane looks like a best way to integrate my video4linux
 webcam input with my python program. The problem is that when Sane
 (both in form of the python library and xsane standalone program) show
 the camera input it's totally blueish - almost blackblue (something
 like blackwhite, but with blue in place of white). All the other
 video4linux programs show the real colors. Sane is also using
 video4linux, so I have hard time understanding why suddenly everything
 goes blue...  Any ideas?
 
 Ludwik Trammer
 Warsaw, Poland
 

I expect some RGB to BGR step is needed, did you try xcam already (does
have a RGB to BGR button)?
-- 

m.vr.gr.
Gerard Klaver




[sane-devel] Double-free following scan on ubuntu hardy 8.04 with epjitsu fi-60f

2008-04-29 Thread Chris Lale
Jeff Kowalczyk wrote:
 On Mon, 28 Apr 2008 21:01:08 -0400, m. allan noah wrote:
 
 well, i've just committed a patch to fix this, but please test, as i
 never saw the error message in the first place...
 
 Does anyone have a good procedure for patching and rebuilding
 released ubuntu .debs to test upstream changes? Or a way to build new debs
 from sane snapshots at a particular revision? The originally reported
 platform (Ubuntu) is not my familiar source-based system (Gentoo).
 
 

This is how you could do it in Debian [1].

Basic method for a package somepackage version 0.7.1-1 is as follows. (This
does not change the version number, but that is explained in the 
documentation.):

0.
Get the source package.

1. put
somepackage_0.7.1-1.diff.gz
somepackage_0.7.1.orig.tar.gz
somepackage_0.7.1-1.dsc
in a directory.

2.  Run
dpkg-source -x somepackage_0.7.1-1.dsc to recreate build directory.

3. cd to
somepackage-0.7.1
Do what you need.

4. Run
dpkg-buildpackage -rfakeroot
Completes with message
dpkg-buildpackage: full upload (original source is included)

5. Run checks:
lintian somepackage_0.7.1-1_i386.changes
and
linda somepackage_0.7.1-1_i386.changes
Both should complete with no errors reported.

debc somepackage_0.7.1-1_i386.changes | less
On inspection, files contained in package should look OK.

# debi somepackage_0.7.1-1_i386.changes
should install package OK.

# dpkg --purge somepackage
removes package.


[1] http://www.us.debian.org/doc/maint-guide/

Hope that helps.

-- 
Chris.



[sane-devel] HP 5590 not working in 1.0.19

2008-04-29 Thread Ilia Sotnikov
On Tue, Apr 29, 2008 at 3:06 AM, Albert Cervera i Areny
albert at nan-tic.com wrote:
...
  I simply used 'scanadf -v'. Now I realize that there are much more options.
  Using scanadf -v --mode Color --source ADF --resolution 300 uses papers
  from ADF correctly. Sorry about the noise. However, I don't think the error
  in the simple scanadf -v case is normal...


By default, the backend uses flatbed as the source. Thus if you start
'scanadf' in the way you did before, you should get endless scanning
as scanadf will try until 'No documents in feeder' error (or any
other) will occur. The 'No documents...' error won't be returned when
using flatbed, which is obvious.

Anyway, I agree, the error shouldn't be there. May I ask you to
collect the debug information but with SANE_DEBUG_HP5590=50 set? The
debug information will contain more details, including scanner
firmware version. I suspect that it could be different from mine.

Thanks in advance,
-- 
 Ilia Sotnikov



[sane-devel] hp4570c driver from modified hp5590 backend almost working

2008-04-29 Thread Ilia Sotnikov
2008/4/29 Markham thomas markham.thomas at gmail.com:
 Hi,
I'm modifying the hp5590 backend to support the HP scanjet 4570c.  I
 think i've finally figured out how to debug using gdb so I'm making progress
 now.  I still need to figure out why the DPI is reported incorrectly, but im
 making progress.

Yes, you are ;) What makes you think that DPI is incorrect?

 extracted output showing It's communicating:
 hp5590] init_resp-id: SILITEKIElwood
 [hp5590] init_resp-dpi_x: 24585
 [hp5590] init_resp-dpi_y: 24585
 [hp5590] HP4570 flags (0x08)
 [hp5590] HP4570 flags: ADF no, TMA no, LCD yes
  [hp5590] HP4570 firmware version: e.026
 [hp5590] HP4570 max resolution X: 2400 DPI
 [hp5590] HP4570 max resolution Y: 2400 DPI
 [hp5590] HP4570 max pixels X: 20400
 [hp5590] HP4570 max pixels Y: 28128
 [hp5590] HP4570 max size X: 8.500 inches
  [hp5590] HP4570 max size Y: 11.720 inches
 [hp5590] HP4570 normal motor param: 100, max motor param: 1000
 [hp5590] hp5590_get_status
 [hp5590] hp5590_init_scanner: scanner status OK

-- 
 Ilia Sotnikov



[sane-devel] Front end that respects SANE_INFO_RELOAD_PARAMS and SANE_INFO_INEXACT?

2008-04-29 Thread Étienne Bersac
Hi,

GNOME Scan do it.

?tienne.




[sane-devel] v4l device and colors

2008-04-29 Thread Ludwik
  I expect some RGB to BGR step is needed, did you try xcam already (does
  have a RGB to BGR button)?

This helped, thank you :)

Ludwik



[sane-devel] hp4570c driver from modified hp5590 backend almost working

2008-04-29 Thread Markham thomas
Hi Ilia,
Those changes are not the only ones required... It was still failing.  I
have a patch file I will post here once I test the modes.   Let me test all
the modes (I only tested full color preview and scan).  I also haven't
tested the ADF connected to it.   I may not get to testing it until later
today,  I have to dig out the ADF feeder.
 I do have a question for you:  I called the 4570 a:

Workgroup scanner

But im not sure if it should be that or a document scanner (per your entries
in the hp5590 driver for other scanners).  Any idea which it would be?
-- next part --
An HTML attachment was scrubbed...
URL: 
http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20080429/5fdff2dc/attachment.htm
 


[sane-devel] Success in modifying hp5590 backend to support hp4570: driver works!

2008-04-29 Thread Markham thomas
In regards to the issue with dpi.  That was too early in my debugging
phase...  I mis-read the dpi_x value and was thinking it should be 300 dpi
for that entry..  turns out it a correct value.

There was another change from my earlier posts that was needed to get it the
driver working.   I will test other modes and the ADF to verify it all..  So
far I've tested full color scan and line art.

-- Markham
-- next part --
An HTML attachment was scrubbed...
URL: 
http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20080429/40271d8a/attachment.htm
 


[sane-devel] hp4570c driver from modified hp5590 backend almost working

2008-04-29 Thread Julian H. Stacey
Markham thomas wrote:
  I do have a question for you:  I called the 4570 a:
 Workgroup scanner
 
 But im not sure if it should be that or a document scanner (per your entries
 in the hp5590 driver for other scanners).  Any idea which it would be?

BTW For whoever compiles model lists: The Hewlett Packard Network
ScanJet 5 which has an inbuilt ADF  inbuilt complete computer,
has long been supported by Linux  FreeBSD, Ref my
http://www.berklix.com/scanjet/ ( http://www.berklix.com/scanjet/#other )

Julian
-- 
Julian Stacey: BSDUnixLinux C Prog Admin SysEng Consult Munich www.berklix.com
Mail just Ascii plain text.  HTML  Base64 text are spam.



[sane-devel] hp4570c driver from modified hp5590 backend almost working

2008-04-29 Thread Ilia Sotnikov
On 4/29/08, Markham thomas markham.thomas at gmail.com wrote:
 Hi Ilia,
 Those changes are not the only ones required... It was still failing.  I
 have a patch file I will post here once I test the modes.   Let me test all
 the modes (I only tested full color preview and scan).  I also haven't
 tested the ADF connected to it.   I may not get to testing it until later
 today,  I have to dig out the ADF feeder.

As far as I saw on the HP site HP 4570c doesn't have the ADF unit, HP
5550c (similar model) has. Anyway, the whole product family -
4570/5550/5590/7650 seems to be different only in mechanics and
available accessories. I could even suppose that we could add HP
4500/5500 to the list. 4500/5550 have ADF, 4570/5550 - APF.

  I do have a question for you:  I called the 4570 a:

 Workgroup scanner

 But im not sure if it should be that or a document scanner (per your entries
 in the hp5590 driver for other scanners).  Any idea which it would be?

This name I've got from HP site, so it's their positioning. You could
choose any name which is meaningful for the scanner. The names and
corresponding core is informational and could even be removed.

-- 
 Ilia Sotnikov



[sane-devel] hp4570c driver from modified hp5590 backend almost working

2008-04-29 Thread Markham thomas
I was incorrect on the 4570 having a ADF unit,  after pulling hardware out
of the closet I see its a 35mm slide unit that I had gathering dust.
I'll hook that up and see if it changes any of driver responses.
It also sounds like I should rename it to a document scanner to be a more
accurate description.
- Markham
-- next part --
An HTML attachment was scrubbed...
URL: 
http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20080429/eff66c3a/attachment.htm
 


[sane-devel] hp4570c driver from modified hp5590 backend almost working

2008-04-29 Thread Markham thomas
With the TMA slide adaptor on the Scanjet 4570c does not work properly when
: scan source = TMA negatives
-- [hp5590] Top X (0) + pixels X (4292) exceedes max X 169
xscanimage reports:   Failed to start scanner:  Invalid argument

In fact with the TMA adaptor in place even choosing: scan source = flatbed
after you did a source=TMA
causes the carriage to ram into the stop.  You have to power cycle the
scanner to be able to get a source=TMA to properly work.
So avoid source=TMA,  choosing source=flatbed even with the TMA adaptor
plugged in will work fine.

Evidently there is some problem with the source = TMA.

source=flatbed
line art, color, and gray  = working
resolution 100 to 2400 = working

source=TMA negatives or TMA slide
fails in all modes, ramming the carriage against the stop

I will use VMware + wireshark again to monitor my WinXP virtual session and
see what protocol is being exchanged when source = TMA.  It maybe that I can
fix the driver, but I suspect it will be more extensive changes.   Let me
look at what it takes to fix it.  If it gets too involved I will submit the
current patch with the caveat source=TMA fails, and work on fixing support
for TMA later.
-- Markham
-- next part --
An HTML attachment was scrubbed...
URL: 
http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20080429/f64f63ff/attachment.htm
 


[sane-devel] hp4570c driver from modified hp5590 backend almost working

2008-04-29 Thread Ilia Sotnikov
On 4/29/08, Markham thomas markham.thomas at gmail.com wrote:
 With the TMA slide adaptor on the Scanjet 4570c does not work properly when
 : scan source = TMA negatives
 -- [hp5590] Top X (0) + pixels X (4292) exceedes max X 169
 xscanimage reports:   Failed to start scanner:  Invalid argument

 In fact with the TMA adaptor in place even choosing: scan source = flatbed
 after you did a source=TMA
 causes the carriage to ram into the stop.  You have to power cycle the
 scanner to be able to get a source=TMA to properly work.
 So avoid source=TMA,  choosing source=flatbed even with the TMA adaptor
 plugged in will work fine.


 Evidently there is some problem with the source = TMA.

Hmmm, I've done little to no testing for TMA to be honest. One
solution is to disable TMA completely until fixed, 2nd - get it
working. Latter requires more work, former is more reliable. What
makes me suspicious is that HP site mentions the model together with
APF (Automatic Picture Feeder), not TMA. Could you shed some light on
whether it requires to feed the film manually (thus it is TMA) or
automatically (thus it is APF)?


 source=flatbed
 line art, color, and gray  = working
 resolution 100 to 2400 = working

Looks promising.


 I will use VMware + wireshark again to monitor my WinXP virtual session and
 see what protocol is being exchanged when source = TMA.  It maybe that I can

The same as with another sources, just some parameters are different.

-- 
 Ilia Sotnikov



[sane-devel] canon mx300 scans OK for me

2008-04-29 Thread Doug Morgan
Hello,

The web page for supported hardware says the canon MX300 is untested.  I 
just installed the CVS version of sane under ubuntu 7.10 and my MX300 
now seems to work fine with xsane.  Are there any particular tests that 
you would like run?

Doug