Bug 454531 - Skanlite crashed when I chose "color" to be "scan mode".
Summary: Skanlite crashed when I chose "color" to be "scan mode".
Status: REPORTED
Alias: None
Product: Skanlite
Classification: Applications
Component: general (show other bugs)
Version: 22.04.1
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Kåre Särs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2022-05-28 11:32 UTC by Roke Julian Lockhart Beedell
Modified: 2022-06-20 19:52 UTC (History)
1 user (show)

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


Attachments
New crash information added by DrKonqi (3.68 KB, text/plain)
2022-06-15 19:29 UTC, Roke Julian Lockhart Beedell
Details
New crash information added by DrKonqi (3.68 KB, text/plain)
2022-06-15 19:30 UTC, Roke Julian Lockhart Beedell
Details
New crash information added by DrKonqi (4.64 KB, text/plain)
2022-06-20 19:52 UTC, Roke Julian Lockhart Beedell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roke Julian Lockhart Beedell 2022-05-28 11:32:59 UTC
Application: skanlite (22.04.1)

Qt Version: 5.15.4
Frameworks Version: 5.94.0
Operating System: Linux 5.19.0-0.rc0.20220526gitbabf0bb978e3.4.fc37.x86_64 x86_64
Windowing System: X11
Distribution: Fedora Linux 37 (Rawhide Prerelease)
DrKonqi: 5.24.5 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:
Skanlite crashed when I chose "color" to be "scan mode". It additionally crashed subsequently when I pressed "Preview", although that time I was able to choose the aforementioned.

The crash does not seem to be reproducible.

-- Backtrace:
Application: Skanlite (skanlite), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f7e81131645 in sane_epson2_control_option () from /usr/lib64/sane/libsane-epson2.so.1
#5  0x00007f7e8a5deadd in KSaneIface::KSaneBaseOption::writeData(void*) () from /lib64/libKF5Sane.so.5
#6  0x00007f7e8a5dfa6e in KSaneIface::KSaneListOption::setValue(QVariant const&) () from /lib64/libKF5Sane.so.5
#7  0x00007f7e88e48216 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#8  0x00007f7e8a5b73b8 in KSaneIface::LabeledCombo::emitChangedValue(int) () from /lib64/libKF5Sane.so.5
#9  0x00007f7e88e48216 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#10 0x00007f7e899d67f5 in QComboBox::activated(int) () from /lib64/libQt5Widgets.so.5
#11 0x00007f7e899d8072 in QComboBoxPrivate::emitActivated(QModelIndex const&) () from /lib64/libQt5Widgets.so.5
#12 0x00007f7e88e4839f in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#13 0x00007f7e899d6ba6 in QComboBoxPrivateContainer::itemSelected(QModelIndex const&) () from /lib64/libQt5Widgets.so.5
#14 0x00007f7e899d74ee in QComboBoxPrivateContainer::eventFilter(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#15 0x00007f7e88e14a01 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#16 0x00007f7e898cfc32 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#17 0x00007f7e898d82c2 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#18 0x00007f7e88e14c38 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#19 0x00007f7e898d63c2 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () from /lib64/libQt5Widgets.so.5
#20 0x00007f7e8992bf15 in QWidgetWindow::handleMouseEvent(QMouseEvent*) () from /lib64/libQt5Widgets.so.5
#21 0x00007f7e8992ee80 in QWidgetWindow::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#22 0x00007f7e898cfc42 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#23 0x00007f7e88e14c38 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#24 0x00007f7e89250d95 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /lib64/libQt5Gui.so.5
#25 0x00007f7e8922ff7c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Gui.so.5
#26 0x00007f7e845c7b7e in xcbSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5XcbQpa.so.5
#27 0x00007f7e87560f9f in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#28 0x00007f7e875b62a8 in g_main_context_iterate.constprop () from /lib64/libglib-2.0.so.0
#29 0x00007f7e8755e930 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#30 0x00007f7e88e658da in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#31 0x00007f7e88e1369a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#32 0x00007f7e88e1b742 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#33 0x00005560272514be in main ()
[Inferior 1 (process 2085) detached]

Reported using DrKonqi
Comment 1 Roke Julian Lockhart Beedell 2022-06-15 19:29:57 UTC
Created attachment 149756 [details]
New crash information added by DrKonqi

skanlite (22.04.1) using Qt 5.15.4

I attempted to switch the "Scan mode" to "Color".

-- Backtrace (Reduced):
#4  0x00007f14d9912645 in sane_epson2_control_option () from /usr/lib64/sane/libsane-epson2.so.1
#5  0x00007f14e6d77add in KSaneIface::KSaneBaseOption::writeData(void*) () from /lib64/libKF5Sane.so.5
#6  0x00007f14e6d78a6e in KSaneIface::KSaneListOption::setValue(QVariant const&) () from /lib64/libKF5Sane.so.5
#7  0x00007f14e55e1216 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#8  0x00007f14e6d503b8 in KSaneIface::LabeledCombo::emitChangedValue(int) () from /lib64/libKF5Sane.so.5
Comment 2 Roke Julian Lockhart Beedell 2022-06-15 19:30:04 UTC
Created attachment 149757 [details]
New crash information added by DrKonqi

skanlite (22.04.1) using Qt 5.15.4

I attempted to switch the "Scan mode" to "Color".

-- Backtrace (Reduced):
#4  0x00007f87e22786a0 in sane_epson2_control_option () from /usr/lib64/sane/libsane-epson2.so.1
#5  0x00007f87ef6ddadd in KSaneIface::KSaneBaseOption::writeData(void*) () from /lib64/libKF5Sane.so.5
#6  0x00007f87ef6dea6e in KSaneIface::KSaneListOption::setValue(QVariant const&) () from /lib64/libKF5Sane.so.5
#7  0x00007f87edf47216 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#8  0x00007f87ef6b63b8 in KSaneIface::LabeledCombo::emitChangedValue(int) () from /lib64/libKF5Sane.so.5
Comment 3 Kåre Särs 2022-06-16 17:01:08 UTC
Thanks for the report!

Sorry for not answering earlier. I somehow have missed this report. :(

It looks like it is crashing in the epson2 backend, but we need the debug symbols to be able to see exactly, where in there, it crashes.

Can you install the debug package for the sane-backends (maybe sane-backends-libs-debuginfo? guessing as I do not have Fedora installed)

Thanks,
  Kåre
Comment 4 Roke Julian Lockhart Beedell 2022-06-16 19:54:28 UTC
If what "http://reddit.com/comments/vdquh2/comment/icm40wf" explains is what "http://bugs.kde.org/show_bug.cgi?id=454531#c3" refers to, I shall hopefully be able to provide a useful crash-dump when the problem next occurs.
Comment 5 Roke Julian Lockhart Beedell 2022-06-20 19:52:16 UTC
Created attachment 149963 [details]
New crash information added by DrKonqi

skanlite (22.04.1) using Qt 5.15.4

I know what causes the problem, finally, although this explanation is very high-level. If I have connected Skanlite to my computer, but I cease operation of Skanlite and subsequently cease operation of its OS, when I reinitialize my computer and invoke Skanlite, when I instruct Skanlite to interact with the printer, it is unable to, because it does not know that the printer is available. This is demonstrated by how if I do not attempt to choose a different "Scan mode" and instead invoke the button whose label is "Reselect scanner device", my printer does not appear until I invoke the button that is within the consequently apparent window whose label is "Reload devices list".

-- Backtrace (Reduced):
#4  0x00007f476434f645 in setvalue (info=0x7ffe72d392a4, value=<optimized out>, option=<optimized out>, handle=0x55969aa66d50) at /usr/src/debug/sane-backends-1.1.1-5.fc37.x86_64/backend/epson2.c:1923
#5  sane_epson2_control_option (handle=0x55969aa66d50, option=<optimized out>, action=<optimized out>, value=<optimized out>, info=0x7ffe72d392a4) at /usr/src/debug/sane-backends-1.1.1-5.fc37.x86_64/backend/epson2.c:2034
#6  0x00007f476d7b5add in KSaneIface::KSaneBaseOption::writeData(void*) () from /lib64/libKF5Sane.so.5
#7  0x00007f476d7b6a6e in KSaneIface::KSaneListOption::setValue(QVariant const&) () from /lib64/libKF5Sane.so.5
#8  0x00007f476c01f216 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5