xsane-0.86-r1 ebuild fails with a Segmentation fault. my gcc compiler options are : CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -O3 -fomit-frame-pointer -pipe" CXXFLAGS="-march=i686 -O3 -fomit-frame-pointer -pipe" Although i have also tried to recompile 'xsane' and 'sane-backends' with just: CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -O1 -pipe" CXXFLAGS="-march=i686 -O1 -pipe" However even with these options i got the same Segmentaion fault when trying to run xsane. My scanner definitly works, as i am able to scan by useing: "scanimage >> output.pnm" And also the 'xsane:device selection' manages to locate my scanner at '/dev/usbscanner' however then when i click 'ok' xsane then segfaults. The scanner i am using is the Acer-640U(USB) which according to http://snapscan.sourceforge.net/ should work fine. ps. I am planning on submitting a scanner and camera howto document to the gentoo project once i have workout out all the bugs. Thanks Alex "ghetto" Combas
It is probably an upstream bug, or somehow the installation is incorrect... I had a friend try it with a SCSI scanner and it worked fine. I'll leave it open for a few days, and see if there are any other comments.
OK thanks, Let me know if there is anything else that you need to know. I would really like to figure out whats going on here.
I also get a Segmentation fault when running xsane with the snapscan backend. I did not test other real scanners, but the test backend appearently works just fine with xsane. I am able to use scanimage and xscanimage with my snapscan e20 and they work just fine. I know my scanner works with xsane because I used it on Mandrake before I switched to gentoo. Since I use gcc-3.1.1 I thought this bug might be related to newer compiler versions...? Which version do you use? Btw: I tried compiling some other versions of the sane-backends and xsane on my own after experiencing the problem, but that didn't help either. I also tried using saned, but after connecting to sane and requesting the scanner, xsane segfaults as well... I think this really strange, because I have a working backend and a (mostly) working xsane (works with test backend) but they won't work together. I hope this information will be useful. Manfred
xsane 0.87 is out maybe that will fix the problem
xsane 0.88 is out.. I'll commit it right about now.
problem persists please reopen
Please reopen... If segfaults for me too with xsane-0.95. No matter if I use snapscan or v4l backends; it seems to segfault when showing the preview window: (gdb) bt #0 0x0806ac3b in preview_create_batch_icon () #1 0x0806c4e1 in preview_new () #2 0x080b211d in xsane_panel_build () #3 0x080b23b8 in xsane_panel_build () #4 0x405f5091 in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0 (gdb) I'll try to find out and debug further...
This time I ACTUALLY READ the message telling about deleting xsane.rc after upgrading. I had an xsane.rc in my home directory lingering from an old Mandrake installation... so... I removed it and xsane works OK. So... please forget the previous comment.
*** Bug 170465 has been marked as a duplicate of this bug. ***