[sane-devel] XSane-0.98 Microtek2 OS/2 Problem

Oliver Rauch Oliver.Rauch at Rauch-Domain.DE
Fri Nov 25 10:45:05 UTC 2005


Hello Franz,

As a workaround you can define BUGGY_GDK_INPUT_EXCEPTION while
compilation then sane_get_select_fd / gdk_input_add are not used by
xsane.

Oliver

Am Fre, 2005-11-25 um 00.51 schrieb Franz Bakan:
> Hi,
> 
> I have a bugreport from a user, based on recent CVS version of SANE
> and the just released XSane0.98. Scanner is 'Microtek Scanmaker 330'
> 
> 1. 'scanimage -d microtek2:b2t6l0 > test.pnm'  works.
>   (microtek2.conf needs 'b2t6l0' entry, the default 'scsi * * Scanner' is not enough)
> 2. XSane works with testbackend.
> 3. XSane fails with microtek2 backend.
> 
> Debug-logs reports:
> ...
> [sanei_scsi] sanei_scsi_cmd: Reading PSRBlock->u.cmd.data_len= 16
> [microtek2] scsi_read_image_info: ppl=560, bpl=560, lines=771, remain=431760
> [microtek2] prepare_buffers: ms=0x0x29ebc80
> [microtek2] sane_start: ms->buf.src_buf=0x29f1520, malloc'd 36960 bytes
> [microtek2] calculate_sane_params: ms=0x29ebc80
> [microtek2] scsi_wait_for_image: ms=0x29ebc80
> [microtek2] scsi_read_image_status: ms=0x29ebc80
> [microtek2] scsi_read_image_status: use old image status 
> [sanei_scsi] sanei_scsi_cmd: Writing PSRBlock->u.cmd.data_len= 0
> [sanei_thread] _beginthread() created thread 2
> [dll] sane_get_parameters(handle=0x29e2a08,params=0x4c4fafc)
> [microtek2] sane_get_parameters: handle=0x29ebc80, params=0x4c4fafc
> [microtek2] sane_get_parameters: format=0, last_frame=1, lines=771
> [microtek2] sane_get_parameters: depth=8, ppl=560, bpl=560
> [dll] sane_set_io_mode(handle=0x29e2a08,nonblocking=1)
> [microtek2] sane_set_io_mode: handle=0x29ebc80, nonblocking=1
> [dll] sane_get_select_fd(handle=0x29e2a08,fdp=0x289e14c)
> [microtek2] sane_get_select_fd: ms=0x29ebc80
> 
> (xsane:85): GLib-WARNING **: giounix.c:407Error while getting flags for FD: Bad file number (9)
> 
> 
> (xsane:85): GLib-WARNING **: poll(2) failed due to: Bad file number.
> 
> (xsane:85): GLib-WARNING **: poll(2) failed due to: Bad file number.
> 
> (xsane:85): GLib-WARNING **: poll(2) failed due to: Bad file number.
> ...
> #This warning is repeated several hundred times
> ...
> 
> (xsane:85): GLib-WARNING **: poll(2) failed due to: Bad file number.
> 
> (xsane:85): GLib-WARNING **: poll(2) failed due to: Bad file number.
> [sanei_thread] thread started, calling func() now...
> [microtek2] reader_process: ms=0x29ebc80
> 
> (xsane:85): GLib-WARNING **: poll(2) failed due to: Bad file number.
> ...
> #This warning is repeated several hundred times
> ...
> (xsane:85): GLib-WARNING **: poll(2) failed due to: Bad file number.
> [microtek2] reader_process: transferlength=36960, lines=66, linelength=560, real_bpl=560, 
> srcbuf=0x29f1520
> [microtek2] scsi_read_image:  ms=0x29ebc80, buffer=0x29f1520
> [microtek2] scsi_read_image: transferlength=36960
> [sanei_scsi] sanei_scsi_cmd: Reading PSRBlock->u.cmd.data_len= 36960
> 
> (xsane:85): GLib-WARNING **: poll(2) failed due to: Bad file number.
> 
> 
> (xsane:85): GLib-WARNING **: poll(2) failed due to: Bad file number.
> 
> (xsane:85): GLib-WARNING **: poll(2) failed due to: Bad file number.
> [microtek2] gray_proc_data: lines=66, bpl=560, ppl=560, depth=8
> [microtek2] gray_copy_pixels: pixels=560, from=0x29f1520, fp=0x18ba8094, depth=8
> [microtek2] gray_copy_pixels: pixels=560, from=0x29f1750, fp=0x18ba8094, depth=8
> [microtek2] gray_copy_pixels: pixels=560, from=0x29f1980, fp=0x18ba8094, depth=8
> [microtek2] gray_copy_pixels: pixels=560, from=0x29f1bb0, fp=0x18ba8094, depth=8
> [microtek2] gray_copy_pixels: pixels=560, from=0x29f1de0, fp=0x18ba8094, depth=8
> [microtek2] gray_copy_pixels: pixels=560, from=0x29f2010, fp=0x18ba8094, depth=8
> [microtek2] gray_copy_pixels: pixels=560, from=0x29f2240, fp=0x18ba8094, depth=8
> [microtek2] gray_copy_pixels: pixels=560, from=0x29f2470, fp=0x18ba8094, depth=8
> [microtek2] gray_copy_pixels: pixels=560, from=0x29f26a0, fp=0x18ba8094, depth=8
> [microtek2] gray_copy_pixels: pixels=560, from=0x29f28d0, fp=0x18ba8094, depth=8
> [microtek2] gray_copy_pixels: pixels=560, from=0x29f2b00, fp=0x18ba8094, depth=8
> [microtek2] gray_copy_pixels: pixels=560, from=0x29f2d30, fp=0x18ba8094, depth=8
> [microtek2] gray_copy_pixels: pixels=560, from=0x29f2f60, fp=0x18ba8094, depth=8
> [microtek2] gray_copy_pixels: pixels=560, from=0x29f3190, fp=0x18ba8094, depth=8
> [microtek2] gray_copy_pixels: pixels=560, from=0x29f33c0, fp=0x18ba8094, depth=8
> 
> (xsane:85): GLib-WARNING **: poll(2) failed due to: Bad file number.
> ...
> #This warning is repeated several thousend times until user aborts XSane.
> 
> 
> libsane.dll is compiled with gcc335, XSane is compiled with gcc321.
> 
> BTW: XSane-0.98 works perfect with my Epson 9500 on OS/2.
> 
> Any hints?
> 
> Franz
> 
> 




More information about the sane-devel mailing list