atp870u SCSI module and Acer Flatbed Scanner: out of memory

Bug #69536 reported by Leander Kirstein-Heine
10
Affects Status Importance Assigned to Milestone
Linux
Fix Released
High
linux (Ubuntu)
Won't Fix
Undecided
Unassigned
linux-source-2.6.17 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Since years I'm using a Guillemot Maxi Scan A4 scanner (it's an Acer flatbed_9) with an Artop Electronic Corp AEC6712D SCSI interface. After the update to Ubuntu 6.10 it doesn't work anymore.

scanimage says: "scanimage: sane_start: Out of memory"

SANE_DEBUG_SNAPSCAN=255 scanimage says:
[sanei_debug] Setting debug level of snapscan to 255.
[snapscan] sane_snapscan_init
[snapscan] sane_snapscan_init: Snapscan backend version 1.4.53
[snapscan] add_scsi_device(/dev/sg0)
[snapscan] add_scsi_device: Detected (kind of) a SCSI device
[snapscan] snapscani_check_device()
[snapscan] mini_inquiry
[snapscan] snapscan_cmd
[snapscan] snapscani_check_device: Is vendor "Color" model "FlatbedScanner_9" a supported scanner?
[snapscan] snapscani_get_model_id(FlatbedScanner_9, 5, 1)
[snapscan] snapscani_check_device: Autodetected driver: Acer620
[snapscan] snapscani_init_device_structure()
[snapscan] sane_snapscan_get_devices (0xbfd7ef08, 0)
[snapscan] sane_snapscan_open (/dev/sg0, 0xbfd7ef04)
[snapscan] find_device
[snapscan] sane_snapscan_open: Allocating 131072 bytes as scanner buffer.
[snapscan] sane_snapscan_open: allocated scanner structure at 0x8084928
[snapscan] open_scanner
[snapscan] sane_snapscan_open: waiting for scanner to warm up.
[snapscan] wait_scanner_ready
[snapscan] test_unit_ready
[snapscan] snapscan_cmd
[snapscan] sane_snapscan_open: performing scanner self test.
[snapscan] sane_snapscan_open: self test passed.
[snapscan] inquiry
[snapscan] snapscan_cmd
[snapscan] inquiry: exposure time: 5.5 ms
[snapscan] inquiry: ms per line: 698.500000
[snapscan] inquiry: G2R_DIFF: 0
[snapscan] inquiry: B2R_DIFF: 0
[snapscan] inquiry: Chroma offsets=0; Red=0, Green:=0, Blue=0
[snapscan] inquiry: hardware config = 0x9d
[snapscan] inquiry: bits per pixel = 10
[snapscan] inquiry: pixels per scan line = 2551
[snapscan] inquiry: bytes per scan line = 2551
[snapscan] inquiry: number of scan lines = 3496
[snapscan] inquiry: effective buffer size = 130101 bytes, 37 lines
[snapscan] inquiry: expected total scan data: 8918296 bytes
[snapscan] close_scanner
[snapscan] alloc_gamma_tables: using 4*1024 bytes for gamma table
[snapscan] sane_snapscan_control_option (0x8084928, 0, 0, 0xbfd7f034, (nil))
[snapscan] sane_snapscan_control_option (0x8084928, 0, 0, 0xbfd7ef28, (nil))
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 0)
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 1)
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 2)
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 3)
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 4)
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 5)
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 6)
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 7)
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 8)
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 9)
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 10)
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 11)
[snapscan] sane_snapscan_control_option (0x8084928, 11, 0, 0x8051498, (nil))
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 12)
[snapscan] sane_snapscan_control_option (0x8084928, 12, 0, 0x805149c, (nil))
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 13)
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 14)
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 15)
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 16)
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 17)
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 18)
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 19)
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 20)
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 21)
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 22)
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 23)
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 24)
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 25)
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 26)
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 27)
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 28)
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 29)
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 30)
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 31)
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 32)
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 33)
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 34)
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 35)
[snapscan] sane_snapscan_control_option (0x8084928, 9, 0, 0xbfd7ef24, (nil))
[snapscan] sane_snapscan_control_option (0x8084928, 10, 0, 0xbfd7ef24, (nil))
[snapscan] sane_snapscan_control_option (0x8084928, 9, 0, 0xbfd7f028, (nil))
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 11)
[snapscan] sane_snapscan_control_option (0x8084928, 11, 1, 0xbfd7f02c, 0xbfd7ef28)
[snapscan] sane_snapscan_control_option: option br-x set to value [snapscan] other than an integer or boolean.
[snapscan] sane_snapscan_control_option (0x8084928, 10, 0, 0xbfd7f028, (nil))
[snapscan] sane_snapscan_get_option_descriptor (0x8084928, 12)
[snapscan] sane_snapscan_control_option (0x8084928, 12, 1, 0xbfd7f02c, 0xbfd7ef28)
[snapscan] sane_snapscan_control_option: option br-y set to value [snapscan] other than an integer or boolean.
[snapscan] sane_snapscan_start (0x8084928)
[snapscan] open_scanner
[snapscan] wait_scanner_ready
[snapscan] test_unit_ready
[snapscan] snapscan_cmd
[snapscan] reserve_unit
[snapscan] snapscan_cmd
[snapscan] set_window
[snapscan] set_window Resolution: 300
[snapscan] set_window Width: 5102
[snapscan] set_window Length: 7015
[snapscan] set_window Mode: 0
[snapscan] set_window: bits-per-pixel set to 8
[snapscan] set_window: operation mode set to 0xc0
[snapscan] snapscan_cmd
[snapscan] inquiry
[snapscan] snapscan_cmd
[snapscan] inquiry: exposure time: 3.2 ms
[snapscan] inquiry: ms per line: 406.399994
[snapscan] inquiry: G2R_DIFF: 130
[snapscan] inquiry: B2R_DIFF: 132
[snapscan] inquiry: Chroma offsets=4; Red=4, Green:=2, Blue=0
[snapscan] inquiry: hardware config = 0x9d
[snapscan] inquiry: bits per pixel = 10
[snapscan] inquiry: pixels per scan line = 2551
[snapscan] inquiry: bytes per scan line = 7653
[snapscan] inquiry: number of scan lines = 3492
[snapscan] inquiry: effective buffer size = 130101 bytes, 37 lines
[snapscan] inquiry: expected total scan data: 26754888 bytes
[snapscan] download_gamma_tables
[snapscan] download_gamma_tables: Sending gamma table for 10 bpp
[snapscan] send
[snapscan] snapscan_cmd
[snapscan] send
[snapscan] snapscan_cmd
[snapscan] send
[snapscan] snapscan_cmd
[snapscan] measure_transfer_rate: have ring buffer
[snapscan] scsi_read
[snapscan] snapscan_cmd
[snapscan] scsi_read: snapscan_cmd command failed: Out of memory
[snapscan] measure_transfer_rate: scsi_read command failed: Out of memory
[snapscan] sane_snapscan_start: measure_transfer_rate command failed: Out of memory
scanimage: sane_start: Out of memory
[snapscan] sane_snapscan_cancel
[snapscan] release_unit
[snapscan] snapscan_cmd
[snapscan] close_scanner
[snapscan] sane_snapscan_close (0x8084928)
[snapscan] close_scanner
[snapscan] sane_snapscan_exit

Further informations:

lspci: 00:0c.0 SCSI storage controller: Artop Electronic Corp AEC6712D SCSI (rev 02)

scanimage -L
device `snapscan:/dev/sg0' is a Acer FlatbedScanner_9 flatbed scanner

Kernel:
2.6.17-10-generic #2 SMP

modinfo atp870u:
filename: /lib/modules/2.6.17-10-generic/kernel/drivers/scsi/atp870u.ko
license: GPL
vermagic: 2.6.17-10-generic SMP mod_unload 586 REGPARM gcc-4.1
depends: scsi_mod
alias: pci:v00001191d0000808Asv*sd*bc*sc*i*
alias: pci:v00001191d00008080sv*sd*bc*sc*i*
alias: pci:v00001191d00008081sv*sd*bc*sc*i*
alias: pci:v00001191d00008002sv*sd*bc*sc*i*
alias: pci:v00001191d00008010sv*sd*bc*sc*i*
alias: pci:v00001191d00008020sv*sd*bc*sc*i*
alias: pci:v00001191d00008030sv*sd*bc*sc*i*
alias: pci:v00001191d00008040sv*sd*bc*sc*i*
alias: pci:v00001191d00008050sv*sd*bc*sc*i*
alias: pci:v00001191d00008060sv*sd*bc*sc*i*
srcversion: A8C3B5DB558B281A773F29B

Revision history for this message
Leander Kirstein-Heine (lkh) wrote :

I guess it's not a sane problem but a problem with the kernel module. Downgrade to an older kernel or change the scsi card will fix the problem. This problem was also reported for Gentoo with the 2.6.17 kernel.

Revision history for this message
Dafatfab (fabien-ja) wrote :

I confirm this bug with the same hardware (SCSI card + Scanner).
Must we report this bug to the kernel bugtrack ?

Revision history for this message
Dafatfab (fabien-ja) wrote :

I've reported this bug to the Bugzilla kernel list.
See : http://bugzilla.kernel.org/show_bug.cgi?id=7536

Changed in linux:
status: Unknown → Confirmed
Changed in linux:
status: Confirmed → Fix Released
Revision history for this message
Matthew Woerly (nattgew) wrote :

The upstream bug was marked as Fix Released. Therefore, can you confirm if this bug is still present in the latest kernel in Hardy?

Revision history for this message
Sergio Zanchetta (primes2h) wrote :

The 18 month support period for Edgy Eft 6.10 has reached it's end of life. As a result, we are closing the linux-source-2.6.17 Edgy Eft kernel task.

Changed in linux-source-2.6.17:
status: New → Invalid
Revision history for this message
Sergio Zanchetta (primes2h) wrote :

Hardy Heron 8.04 was recently released. It would be helpful if you could test the new release and verify if this is still an issue - http://www.ubuntu.com/getubuntu/download . You should be able to test your bug using the LiveCD. Please let us know your results. Thanks.

Changed in linux:
status: New → Incomplete
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

The Ubuntu Kernel Team is planning to move to the 2.6.27 kernel for the upcoming Intrepid Ibex 8.10 release. As a result, the kernel team would appreciate it if you could please test this newer 2.6.27 Ubuntu kernel. There are one of two ways you should be able to test:

1) If you are comfortable installing packages on your own, the linux-image-2.6.27-* package is currently available for you to install and test.

--or--

2) The upcoming Alpha5 for Intrepid Ibex 8.10 will contain this newer 2.6.27 Ubuntu kernel. Alpha5 is set to be released Thursday Sept 4. Please watch http://www.ubuntu.com/testing for Alpha5 to be announced. You should then be able to test via a LiveCD.

Please let us know immediately if this newer 2.6.27 kernel resolves the bug reported here or if the issue remains. More importantly, please open a new bug report for each new bug/regression introduced by the 2.6.27 kernel and tag the bug report with 'linux-2.6.27'. Also, please specifically note if the issue does or does not appear in the 2.6.26 kernel. Thanks again, we really appreicate your help and feedback.

Revision history for this message
Markus Korn (thekorn) wrote :

Unfortunately this bug report is being closed because we received no response to the last inquiry for information. However, the Intrepid Ibex 8.10 Beta release was most recently announced - http://www.ubuntu.com/testing/intrepid/beta . If you are able to confirm this is still an issue with this most recent release please feel free to reopen this report. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New".

Thanks,
Markus

Changed in linux:
status: Incomplete → Won't Fix
Changed in linux:
importance: Unknown → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.