Bug 348696 - Skanlite crashes when starting scan
Summary: Skanlite crashes when starting scan
Status: RESOLVED WORKSFORME
Alias: None
Product: Skanlite
Classification: Applications
Component: general (other bugs)
Version First Reported In: 1.1
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Kåre Särs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-04 11:56 UTC by Henri K
Modified: 2018-11-30 04:06 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Output of command: SANE_DEBUG_GENESYS=8 skanlite (61.49 KB, text/x-log)
2015-06-05 12:25 UTC, Henri K
Details
Output of command: SANE_DEBUG_GENESYS=16 skanlite (66.78 KB, text/x-log)
2015-06-08 13:52 UTC, Henri K
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Henri K 2015-06-04 11:56:45 UTC
Skanlite crashes when I click "preview" or "scan". It has worked before, like few months ago. My scanner is Canon LiDE 110. Following error message is given:

KCrash: Application 'skanlite' crashing...
KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi from kdeinit
KCrash: Connect sock_file=/home/[user]/.kde4/socket-linux-nxyf/kdeinit4__0
QSocketNotifier: Invalid socket 7 and type 'Read', disabling...
QSocketNotifier: Invalid socket 11 and type 'Read', disabling...
QSocketNotifier: Invalid socket 23 and type 'Read', disabling...
QSocketNotifier: Invalid socket 27 and type 'Read', disabling...
QSocketNotifier: Invalid socket 28 and type 'Read', disabling...
skanlite: Fatal IO error: client killed
Unable to start Dr. Konqi

Reproducible: Always




Using openSUSE 13.2, Kde Plasma 4.14.6, Kernel 4.0.4-4. I don't know if this is related, but Xsane crashes also when trying to scan with error message:
"[1]    4852 floating point exception  xsane"
Also that has worked before.
Comment 1 Kåre Särs 2015-06-04 13:08:11 UTC
Thanks for the report!

I guess that you have updated the sane backend during that time?

Try running Skanlite with debug output:

SANE_DEBUG_GENESYS=16 skanlite

You can experiment a bit with the debug level to get different amount of output.
Then attach the output here.

The most probable reason is a bug in the backend as you get the same error with xsane, but the debug output helps to find the problem and can be then directed to the sane project

/Kåre
Comment 2 Henri K 2015-06-05 12:25:57 UTC
Created attachment 93019 [details]
Output of command: SANE_DEBUG_GENESYS=8 skanlite

There's the output for debug level 8.
Comment 3 Kåre Särs 2015-06-05 12:59:29 UTC
Thanks,

Try increasing the debug level a bit because I did not find anything that looked suspicious.

It seems also that you have a problem with KCrash ("Unable to start Dr. Konqi"). With KCrash we would get a backtrace....

You could also install the debug packages for libsane, skanlite and libksane and start skanlite with gdb.
Comment 4 Henri K 2015-06-08 13:52:10 UTC
Created attachment 93075 [details]
Output of command: SANE_DEBUG_GENESYS=16 skanlite

There's outputs. Installed debuginfos for skanlite, libksane and sane-backends. Couldn't find one for libsane in openSUSE's repository. I run these commands in openSUSE Tumbleweed, skanlite-1.1-3.2.x86_64, Kde Plasma 5.3.1, Kernel 4.0.4-3-desktop.

[~] >gdb skanlite
GNU gdb (GDB; openSUSE Factory) 7.9
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-suse-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://bugs.opensuse.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...

warning: /etc/gdbinit.d/gdb-heap.py: Tiedostoa tai hakemistoa ei ole
Reading symbols from skanlite...Reading symbols from /usr/lib/debug/usr/bin/skanlite.debug...done.
done.
(gdb) run
Starting program: /usr/bin/skanlite
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffe4cf7700 (LWP 14923)]
[Thread 0x7fffe4cf7700 (LWP 14923) exited]
[New Thread 0x7fffde643700 (LWP 14930)]
[New Thread 0x7fffe4cf7700 (LWP 14926)]
[New Thread 0x7fffdffff700 (LWP 14924)]
[New Thread 0x7fffe54f8700 (LWP 14921)]

Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread 0x7fffde643700 (LWP 14930)]
0x00007fffe42be9d7 in gl124_led_calibration (dev=0x7fffd8003e60) at genesys_gl124.c:3143
3143    genesys_gl124.c: Tiedostoa tai hakemistoa ei ole.   #Means file or directory not found.
Missing separate debuginfos [...] # List: http://paste.opensuse.org/43670299
Comment 5 Kåre Särs 2015-06-08 19:56:54 UTC
Thanks!

sane-backends = libsane on Kubuntu, so you installed the correct packages :)

That indeed confirms my suspicion that it is the backend.

Can you file a bug report at http://www.sane-project.org/bugs.html as you have the hardware ;)

What to mention:
1) Canon LiDE 110
2) openSUSE 13.2 RPMs
3) Log
[genesys] SANE Genesys backend version 1.0 build 2411 from sane-backends 1.0.24
[genesys] SANE Genesys backend built with libusb-1.0
4) Crash dump:
Program received signal SIGFPE, Arithmetic exception. [Switching to Thread 0x7fffde643700 (LWP 14930)] 0x00007fffe42be9d7 in gl124_led_calibration (dev=0x7fffd8003e60) at genesys_gl124.c:3143 3143 genesys_gl124.c: Tiedostoa tai hakemistoa ei ole. #Means file or directory not found. 
5) Link to this bug

It would be helpful to try the latest sane version of sabe-backends. On (K)ubuntu there is a special repository (PPA) with the latest sabe-backends (weekly or close to it). Maybe there is something similar for openSUSE... The fall-back would be to try to compile it your self.

Terveisiä Mustasaaresta :)
/Kåre
Comment 6 Henri K 2015-06-09 16:10:52 UTC
(In reply to Kåre Särs from comment #5)
> Can you file a bug report at http://www.sane-project.org/bugs.html as you have the hardware ;)

Ok, will do. Thanks.
Comment 7 Andrew Crouthamel 2018-10-31 04:04:17 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Bug Janitor Service 2018-11-15 10:53:44 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 9 Bug Janitor Service 2018-11-30 04:06:09 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!