Bug 453162 - Skanlite crash when scanning one or several selections
Summary: Skanlite crash when scanning one or several selections
Status: RESOLVED UPSTREAM
Alias: None
Product: Skanlite
Classification: Applications
Component: general (show other bugs)
Version: 22.04.0
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Kåre Särs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2022-04-28 19:39 UTC by mathieu.quievy
Modified: 2022-05-17 10:59 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mathieu.quievy 2022-04-28 19:39:20 UTC
Application: skanlite (22.04.0)

Qt Version: 5.15.3
Frameworks Version: 5.93.0
Operating System: Linux 5.13.0-40-generic x86_64
Windowing System: X11
Distribution: KDE neon User - 5.24
DrKonqi: 5.24.4 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:
One-or-two-selections-300dpi-colors:
  1. I clicked "Scan"
  2. The scanner makes its first slow move to actually catch the selection.
  3. It makes its second faster move to go back to its initial postion...
  4. ... and skanlite used to show the scan result during this second move but crashes at this moment.

One-selection-75dpi-colors:
  1. Idem.
  2. Idem.
  3. Idem...
  4. ...and skanlite doesn't crash but is stuck at 0% when loading the scan result

No-selection-300dpi-colors goes fine.

The crash can be reproduced every time.

-- Backtrace:
Application: Skanlite (skanlite), signal: Aborted

[New LWP 1872]
[New LWP 1873]
[New LWP 1875]
[New LWP 1876]
[New LWP 1884]
[New LWP 1932]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007fbe4fb109cf in __GI___poll (fds=0x55ffec0174c0, nfds=1, timeout=281) at ../sysdeps/unix/sysv/linux/poll.c:29
__preamble__
[Current thread is 1 (Thread 0x7fbe4bd950c0 (LWP 1871))]

Thread 7 (Thread 0x7fbe31046700 (LWP 1932)):
[KCrash Handler]
#4  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#5  0x00007fbe4fa20859 in __GI_abort () at abort.c:79
#6  0x00007fbe4fa8b29e in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7fbe4fbb5298 "%s\n") at ../sysdeps/posix/libc_fatal.c:155
#7  0x00007fbe4fa9332c in malloc_printerr (str=str@entry=0x7fbe4fbb34d9 "free(): invalid size") at malloc.c:5347
#8  0x00007fbe4fa94b6c in _int_free (av=<optimized out>, p=0x7fbe2031a160, have_lock=0) at malloc.c:4177
#9  0x00007fbe43c7efed in free_pool (cinfo=0x7fbe31045890, pool_id=<optimized out>) at ./jmemmgr.c:1036
#10 0x00007fbe43c6206c in jpeg_abort (cinfo=cinfo@entry=0x7fbe31045890) at ./jcomapi.c:44
#11 0x00007fbe43c662e1 in jpeg_finish_decompress (cinfo=cinfo@entry=0x7fbe31045890) at ./jdapimin.c:405
#12 0x00007fbe1b862bf8 in get_JPEG_data (scanner=0x55ffebff0210, width=width@entry=0x7fbe31045b7c, height=height@entry=0x7fbe31045b80, bps=bps@entry=0x7fbe31045b84) at escl/escl_jpeg.c:238
#13 0x00007fbe1b860147 in sane_escl_start (h=0x55ffec04f010) at escl/escl.c:747
#14 0x00007fbe51990f1a in KSaneIface::KSaneScanThread::run (this=0x55ffec1a99c0) at ./src/ksanescanthread.cpp:85
#15 0x00007fbe4fea0623 in QThreadPrivate::start (arg=0x55ffec1a99c0) at thread/qthread_unix.cpp:331
#16 0x00007fbe4f0f6609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#17 0x00007fbe4fb1d163 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7fbe1aa52700 (LWP 1884)):
#0  0x00007fbe4fb109cf in __GI___poll (fds=0x7fbe14000b60, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fbe3003f09e in ?? () from /lib/x86_64-linux-gnu/libavahi-common.so.3
#2  0x00007fbe3003ec11 in avahi_simple_poll_run () from /lib/x86_64-linux-gnu/libavahi-common.so.3
#3  0x00007fbe3003edf0 in avahi_simple_poll_iterate () from /lib/x86_64-linux-gnu/libavahi-common.so.3
#4  0x00007fbe3003f025 in avahi_simple_poll_loop () from /lib/x86_64-linux-gnu/libavahi-common.so.3
#5  0x00007fbe3003f0fb in ?? () from /lib/x86_64-linux-gnu/libavahi-common.so.3
#6  0x00007fbe4f0f6609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#7  0x00007fbe4fb1d163 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7fbe32849700 (LWP 1876)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55ffec0d0a48) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55ffec0d09f8, cond=0x55ffec0d0a20) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55ffec0d0a20, mutex=0x55ffec0d09f8) at pthread_cond_wait.c:638
#3  0x00007fbe40a815eb in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#4  0x00007fbe40a811eb in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#5  0x00007fbe4f0f6609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fbe4fb1d163 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fbe42efe700 (LWP 1875)):
#0  0x00007fbe4fb109cf in __GI___poll (fds=0x7fbe42efdc40, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fbe4e6801a2 in ?? () from /lib/x86_64-linux-gnu/libusb-1.0.so.0
#2  0x00007fbe4f0f6609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#3  0x00007fbe4fb1d163 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fbe49652700 (LWP 1873)):
#0  0x00007fbe4e6dccd0 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fbe4e6dd312 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fbe4e6dd4a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fbe500e165b in QEventDispatcherGlib::processEvents (this=0x7fbe3c000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007fbe5008587b in QEventLoop::exec (this=this@entry=0x7fbe49651bb0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007fbe4fe9f442 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007fbe51237f4b in ?? () from /lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007fbe4fea0623 in QThreadPrivate::start (arg=0x7fbe512bbd80) at thread/qthread_unix.cpp:331
#8  0x00007fbe4f0f6609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007fbe4fb1d163 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fbe4af9b700 (LWP 1872)):
#0  0x00007fbe4fb109cf in __GI___poll (fds=0x7fbe4af9aae8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fbe4dfc8c1a in ?? () from /lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fbe4dfca90a in xcb_wait_for_event () from /lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fbe4b6e51a8 in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007fbe4fea0623 in QThreadPrivate::start (arg=0x55ffebcddb90) at thread/qthread_unix.cpp:331
#5  0x00007fbe4f0f6609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fbe4fb1d163 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fbe4bd950c0 (LWP 1871)):
#0  0x00007fbe4fb109cf in __GI___poll (fds=0x55ffec0174c0, nfds=1, timeout=281) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fbe4e6dd36e in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fbe4e6dd4a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fbe500e165b in QEventDispatcherGlib::processEvents (this=0x55ffebdad030, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007fbe5008587b in QEventLoop::exec (this=this@entry=0x7ffc7102f6e0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007fbe5008da24 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x000055ffeb68e53a in main (argc=<optimized out>, argv=<optimized out>) at ./src/main.cpp:91
[Inferior 1 (process 1871) detached]

Possible duplicates by query: bug 451932, bug 449266, bug 419428, bug 374173, bug 347564.

Reported using DrKonqi
Comment 1 Kåre Särs 2022-05-01 05:10:32 UTC
Thanks for the report.

This looks very much like a bug in the sane escl backend from the backtrace. Do you get the same crash with xsane?


Br,
  Kåre
Comment 2 Bug Janitor Service 2022-05-16 04:35:19 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 3 mathieu.quievy 2022-05-16 12:55:10 UTC
(In reply to Kåre Särs from comment #1)
> Thanks for the report.
> 
> This looks very much like a bug in the sane escl backend from the backtrace.
> Do you get the same crash with xsane?
> 
> 
> Br,
>   Kåre

It looks like you're absolutely right.
XSane crashes if I try a color preview.

Thanks for the clue.

Regards.
Comment 4 Kåre Särs 2022-05-17 10:59:12 UTC
Thanks for checking this!

 Regards,
 Kåre