[sane-devel] old Agfa DuoScan / Floating point exception

Frank Zago frank at zago.net
Sun Apr 16 14:17:09 UTC 2006


Daniel Bauer wrote:

>Am Sonntag, 16. April 2006 13:11 schrieb Frank Zago:
>  
>
>>Hello Daniel,
>>
>>    
>>
>Hi Frank
>thanks for looking at my problem! 
>
>  
>
>>As indicated by the trace you provided, the crash happenned at line 4017
>>in microtek.c:
>>  s->max_scsi_lines = SCSI_BUFF_SIZE / (s->pixel_bpl + s->header_bpl);
>>
>>    
>>
>I now get a first idea of what all those messages mean...
>
>  
>
>>So this is a division by 0. Which probably means that both s->pixel_bpl
>>and s->header_bpl are 0.
>> Looking at the other traces, it looks like your scanner could be 
>>supported. But you'll have to recompile the microtek backend to add more
>>traces to understand why these values are not set. Do you know how to do
>>that ? 
>>    
>>
>
>Unfortunately not. 
>
>  
>
>>Do you know a bit of C ? 
>>    
>>
>
>No, but I'm not afraid of it. I am willing to learn and try, but I guess I'd 
>need quite a lot of guiding thru the necessary steps. So, if you feel up to 
>help me, I'll be glad to take the opportunity, of course...
>
>(I have some programming skills from earlier times (COBOL) and know some 
>script languages (php4, JavaScript), however no object oriented languages, 
>but at least the "basic understandings" are given, I guess.)
>
>  
>


First you have to uninstall sane-backend. Something such as "rpm -e 
--nodeps sane-backends" should do.

Then download the sane-backends from sane-project.org.

Untar in a suitable place, then type the usual "./configure", "make" and 
as root "make install".

You  should then be able to do the same (failing) test again and get the 
same results.

After that we can move to the next stage.

Frank.




More information about the sane-devel mailing list