Core Dump with scanimage for Canoscan 120 on Mageia 6

Posted:
Aug 7th, '17, 05:43
by msjs08
I've had trouble getting a Canoscan LIDE 120 working on Mageia 6. I had been using it from the commandline in Mageia 5.
Xsane could only see my webcam and not the scanner. I disabled the webcam as root using
- Code: Select all
modprobe -r uvcvideo
The scanner still did not show.
Initially,
- Code: Select all
sane-find-scanner
gave me at list of usb devices it could not read like
- Code: Select all
could not open USB device 0x1d6b/0x0002 at 001:001: Access denied (insufficient permissions)
As root
- Code: Select all
sane-find-scanner
found my scanner so I issued
- Code: Select all
usermod -a -G scanner msjs08
to add me to the scanner group. I logged out and in again and normal user now could read the devices.
- Code: Select all
scanimage -L
gives
- Code: Select all
device `genesys:libusb:001:007' is a Canon LiDE 120 flatbed scanner
As a normal user
- Code: Select all
scanimage --format=jpeg >'0001.jpg'
gave me
- Code: Select all
Floating point exception (core dumped)
so I tried as root. Same problem.
As a normal user
- Code: Select all
scanimage -T
core dumps as does
- Code: Select all
scanimage -v
Can anyone suggest what to do next?
Re: Core Dump with scanimage for Canoscan 120 on Mageia 6

Posted:
Aug 7th, '17, 10:33
by wintpe
try install if its not already there strace.
and run
strace -f scanimage --format=jpeg >'0001.jpg'
there will be reams of info output on the screen so try to post only the relevant section leading to the core dump
I cant give you an example of where it will start, so you will have to use some intuition but work back from the core dump and there might be some info on where it all started to go wrong.
from that someone here may then be able to identify what might be the best next thing to try.
regards peter
Re: Core Dump with scanimage for Canoscan 120 on Mageia 6

Posted:
Aug 7th, '17, 14:20
by msjs08
Thanks for your help.
Took a long time to run but I've got the last 150 lines.
Re: Core Dump with scanimage for Canoscan 120 on Mageia 6

Posted:
Aug 7th, '17, 19:17
by doktor5000
Your scanner is actually a Canoscan Lide 120, right?
This may happen if there are issues with the USB port providing insufficient power, see
https://bugs.launchpad.net/ubuntu/+sour ... ug/1385607Or maybe the lock switch got accidentally enabled, but that would usually only lead to black scans, see
https://support.usa.canon.com/kb/index? ... =ART151075Also for strace it's usually necessary to add -o output.txt to let strace write all the output into an output file, as the 150 lines you captured are probably not sufficient.
Re: Core Dump with scanimage for Canoscan 120 on Mageia 6

Posted:
Aug 8th, '17, 01:52
by msjs08
Thanks
Yes it is a 120. It says so on the device and it is detected as such.
I'm aware of the low power output issue but it worked fine on the same laptop on Mageia 5.
No, the lock is in the open position
Peter suggested I not send the whole lot, so I looked backwards to where things changed. I included 6 or so of the similar lines that had occurred previously and then everything from where it changed.
Re: Core Dump with scanimage for Canoscan 120 on Mageia 6

Posted:
Aug 8th, '17, 11:22
by wintpe
As doctor said theres not enough, my suggestion was to focus on the area where the error is occurring, and
in some ways I think you may have some of that, but perhaps there's a little more that will help, perhaps there's nothing more usful in there
back to what Doctor mentioned about power, could be correct, even if it was working under mageia 5.
it could be its just on its limits.
there are many
#
ioctl(11, USBDEVFS_REAPURBNDELAY, 0x7ffe02c9b698) = -1 EAGAIN (Resource temporarily unavailable)
which is the hardware read/write of the usb device
entries in the above suggesting its failing to communicate with the scanner intermittently
it clearly opens /root/.sane/canon-lide-120.cal
stats it
then writes to it, a fare amount of data.
before finally closing the file.
it then shuts down the usb device, and during the unmapping of the device from memory tries and tries several times before giving up and core dumping.
so this does suggest a device that keeps going offline, intermittently and it could be that its power is on the limits.
id suggest trying with a powered usb hub.
ive learned from experience that when buying usb things that are potentially hungry on power to make sure they are independently powered.
my scanner is, and so are any of the usb harddisks.
regards peter
Re: Core Dump with scanimage for Canoscan 120 on Mageia 6

Posted:
Aug 8th, '17, 19:05
by doktor5000
Or maybe the kernel enabled powersaving for the USB ports ...
See e.g.
https://unix.stackexchange.com/question ... 0-or-above