Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 258060 - media-gfx/sane-backends: avision backend broken (was: media-gfx/xsane segfaults when scanning)
Summary: media-gfx/sane-backends: avision backend broken (was: media-gfx/xsane segfaul...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Patrick Kursawe (RETIRED)
Depends on:
Reported: 2009-02-07 20:12 UTC by Jordan
Modified: 2009-11-22 09:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

Crash log (backtrace,4.09 KB, text/plain)
2009-02-12 13:37 UTC, Jordan

Note You need to log in before you can comment on or make changes to this bug.
Description Jordan 2009-02-07 20:12:08 UTC
I emerged the latest version of sane-backends and xsane (using ~amd64 keyword) and added my user to the scanner group and rebooted. I run xsane from the Applications menu in Gnome and click Scan. The carrige moves along the track to the end and begins to come back. Then XSane crashes the carrige stops. I have to power cycle the scanner to reset it.

Reproducible: Always

Steps to Reproduce:
1. Run XSane
2. Click on Scan
3. Crash

Actual Results:  
XSane crashes

Expected Results:  
Not to crash and provided a picture of what was scanned

Emerge --info:

Portage (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r1, 2.6.28 x86_64)
System uname: Linux-2.6.28-x86_64-Pentium-R-_Dual-Core_CPU_E5200_@_2.50GHz-with-glibc2.2.5
Timestamp of tree: Sat, 07 Feb 2009 02:05:01 +0000
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.2
sys-apps/sandbox:    1.3.2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-march=core2 -O2 -pipe"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/usr/local/portage/layman/berkano /usr/local/portage/layman/yarik-overlay /usr/local/portage/layman/callisto /usr/local/portage/layman/sunrise /usr/local/portage/layman/desktop-effects /usr/local/portage/layman/jokey"
USE="X a52 acpi alsa amd64 aspell bzip2 cairo cdparanoia cdr css cups curl dbus dvd dvdr emerald expat fam fat ffmpeg firefox foomaticdb gif glitz gnome gphoto2 gtk hal ieee1394 java javascript jpeg libburn libnotify mad midi mmx mp3 mpeg msn multilib nls ntfs opengl pam pcre pdf png ppds python reiserfs samba sdl spell sse sse2 ssl svg taglib threads tiff tordns truetype unicode usb xcb xml xorg xvid" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia"

I'm not sure if the seriousness is critical, but critical fits the description. I got the HP Scanjet 5300C (scanner being used) because Sane supports it.
Comment 1 Jordan 2009-02-11 01:06:02 UTC
How would I go about getting information on why it segfaulted?
Comment 2 Jordan 2009-02-12 13:37:54 UTC
Created attachment 181774 [details]
Crash log

I was able to get this when I clicked on "Aquire Preview" instead of scan. Maybe it can be of use.
Comment 3 Jordan 2009-02-12 16:10:15 UTC
XSane segfaults in Ubuntu 8.10 32Bit in VBox. I'm not sure what that would mean though.
Comment 4 Patrick Kursawe (RETIRED) gentoo-dev 2009-02-12 19:05:53 UTC
The first thing you should try (if you did not already) is using another frontend to check whether this is actually xsane related or a backend problem.
Comment 5 Jordan 2009-02-12 20:56:23 UTC
(In reply to comment #4)
> The first thing you should try (if you did not already) is using another
> frontend to check whether this is actually xsane related or a backend problem.

sane-frontends segfaults too. So it's obviously the backend, I'll try downgrading.
Comment 6 Jordan 2009-02-12 21:05:47 UTC
I downgraded to sane-backends-1.0.17, and I was able to scan without segfaulting. I'm going to try sane-backends-1.0.18-r6.

I wish I could edit these comments.
Comment 7 Patrick Kursawe (RETIRED) gentoo-dev 2009-03-02 20:21:35 UTC
(In reply to comment #6)
> I downgraded to sane-backends-1.0.17, and I was able to scan without
> segfaulting. I'm going to try sane-backends-1.0.18-r6.
> I wish I could edit these comments.

You can append one and tell me what happened with .18-r6 :-)
Comment 8 Jordan 2009-03-02 21:25:13 UTC
It would scan then it would start receiving RGB data, then it would crash. I'm not sure if it's a segfault.
Comment 9 Patrick Kursawe (RETIRED) gentoo-dev 2009-03-30 08:40:53 UTC
Assuming you are using the "avision" backend, you can also try what's described here:
Comment 10 Patrick Kursawe (RETIRED) gentoo-dev 2009-03-30 08:45:50 UTC
Yet another interesting piece of information:
(avision backend is considered broken though the sane-project "supported hardware"-page tells the opposite.)
Comment 11 Jordan 2009-03-30 12:42:54 UTC
I'll give that a try.
Comment 12 Patrick Kursawe (RETIRED) gentoo-dev 2009-04-07 18:48:18 UTC
(In reply to comment #11)
> I'll give that a try.

Any news?
Comment 13 Jordan 2009-04-07 22:38:21 UTC
Didn't make any difference. One of those options made the preview look weird.