https://bugs.kde.org/show_bug.cgi?id=516552

            Bug ID: 516552
           Summary: Trying to open camera device crashes Skanpage in
                    KSaneCore::Option::setValue()
    Classification: Applications
           Product: Skanpage
      Version First unspecified
       Reported In:
          Platform: Flatpak
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

STEPS TO REPRODUCE
1. Launch the app with no scanner connected, but a webcam present
2. Click hamburger menu > Configure Skanpage
3. Click "Show scanners, cameras, and other virtual devices" and close the
window
4. Click "Reload devices list" button
5. Select a camera and click "Open Selected Device" button


OBSERVED RESULT
App crashes:

#0  KSaneCore::Option::setValue (this=0x0, value=...)
    at /usr/include/c++/15.2.0/bits/unique_ptr.h:193
#1  0x00007f9b4a7d1332 in KSaneCore::Interface::setOptionsMap
(this=this@entry=0x55df7ae21620, 
    options=...) at /run/build/libksanecore/src/interface.cpp:469
#2  0x000055df54c5501c in Skanpage::loadScannerOptions
(this=this@entry=0x7ffdcd3b15a0)
    at /run/build/skanpage/src/Skanpage.cpp:385
#3  0x000055df54c557b0 in Skanpage::finishOpeningDevice
(this=this@entry=0x7ffdcd3b15a0, 
    deviceName=..., deviceVendor=..., deviceModel=...) at
/run/build/skanpage/src/Skanpage.cpp:465
#4  0x000055df54c566af in Skanpage::openDevice (this=0x7ffdcd3b15a0,
deviceName=..., 
    deviceVendor=..., deviceModel=...) at
/run/build/skanpage/src/Skanpage.cpp:415
#5  0x000055df54c58462 in Skanpage::qt_static_metacall (_o=<optimized out>,
_c=<optimized out>, 
    _id=<optimized out>, _a=0x7ffdcd3adf68)
    at
/run/build/skanpage/_flatpak_build/src/skanpage_autogen/include/moc_Skanpage.cpp:360
#6  0x000055df54c58b07 in Skanpage::qt_metacall (this=0x7ffdcd3b15a0,
_c=<optimized out>, _id=25, 
    _a=0x7ffdcd3adf68)
    at
/run/build/skanpage/_flatpak_build/src/skanpage_autogen/include/moc_Skanpage.cpp:484
#7  0x00007f9b4760b412 in ?? () from /usr/lib/x86_64-linux-gnu/libQt6Qml.so.6
#8  0x00007f9b4749568e in QV4::QObjectMethod::callPrecise(QQmlObjectOrGadget
const&, QQmlPropertyData const&, QV4::ExecutionEngine*, QV4::CallData*,
QMetaObject::Call) ()
   from /usr/lib/x86_64-linux-gnu/libQt6Qml.so.6
#9  0x00007f9b47497df1 in QV4::QObjectMethod::callInternal(QV4::Value const*,
QV4::Value const*, int) const () from /usr/lib/x86_64-linux-gnu/libQt6Qml.so.6
#10 0x00007f9b475083ba in ?? () from /usr/lib/x86_64-linux-gnu/libQt6Qml.so.6
#11 0x00007f9b4750d13f in ?? () from /usr/lib/x86_64-linux-gnu/libQt6Qml.so.6
#12 0x00007f9b4742fa30 in ?? () from /usr/lib/x86_64-linux-gnu/libQt6Qml.so.6
#13 0x00007f9b4742fe77 in QV4::Function::call(QObject*, void**, QMetaType
const*, int, QV4::ExecutionContext*) () from
/usr/lib/x86_64-linux-gnu/libQt6Qml.so.6
#14 0x00007f9b475c13b0 in QQmlJavaScriptExpression::evaluate(void**, QMetaType
const*, int) ()
   from /usr/lib/x86_64-linux-gnu/libQt6Qml.so.6
#15 0x00007f9b47555d73 in QQmlBoundSignalExpression::evaluate(void**) ()
   from /usr/lib/x86_64-linux-gnu/libQt6Qml.so.6
#16 0x00007f9b47556810 in ?? () from /usr/lib/x86_64-linux-gnu/libQt6Qml.so.6
#17 0x00007f9b475f2351 in QQmlNotifier::emitNotify(QQmlNotifierEndpoint*,
void**) ()
   from /usr/lib/x86_64-linux-gnu/libQt6Qml.so.6
#18 0x00007f9b46c19230 in ?? () from /usr/lib/x86_64-linux-gnu/libQt6Core.so.6
#19 0x00007f9b3bafa6ba in QQuickAbstractButtonPrivate::handleRelease(QPointF
const&, unsigned long) () from
/usr/lib/x86_64-linux-gnu/libQt6QuickTemplates2.so.6
#20 0x00007f9b3bb15b75 in QQuickControl::mouseReleaseEvent(QMouseEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt6QuickTemplates2.so.6
#21 0x00007f9b496403bd in QQuickItemPrivate::deliverPointerEvent(QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt6Quick.so.6
#22 0x00007f9b4964055b in QQuickItem::event(QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt6Quick.so.6
#23 0x00007f9b487a6fdf in QApplicationPrivate::notify_helper(QObject*, QEvent*)
()
   from /usr/lib/x86_64-linux-gnu/libQt6Widgets.so.6
#24 0x00007f9b46badde8 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
()
   from /usr/lib/x86_64-linux-gnu/libQt6Core.so.6
#25 0x00007f9b4983c000 in
QQuickDeliveryAgentPrivate::deliverMatchingPointsToItem(QQuickItem*, bool,
QPointerEvent*, bool) () from /usr/lib/x86_64-linux-gnu/libQt6Quick.so.6
#26 0x00007f9b4983d1ca in
QQuickDeliveryAgentPrivate::deliverUpdatedPoints(QPointerEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt6Quick.so.6
#27 0x00007f9b4983df75 in
QQuickDeliveryAgentPrivate::deliverPointerEvent(QPointerEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt6Quick.so.6
#28 0x00007f9b4983f958 in
QQuickDeliveryAgentPrivate::handleMouseEvent(QMouseEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt6Quick.so.6
#29 0x00007f9b49841873 in QQuickDeliveryAgent::event(QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt6Quick.so.6
#30 0x00007f9b496ff0b5 in QQuickWindow::event(QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt6Quick.so.6
#31 0x00007f9b487a6fdf in QApplicationPrivate::notify_helper(QObject*, QEvent*)
()
--Type <RET> for more, q to quit, c to continue without paging--c
   from /usr/lib/x86_64-linux-gnu/libQt6Widgets.so.6
#32 0x00007f9b46badde8 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
()
   from /usr/lib/x86_64-linux-gnu/libQt6Core.so.6
#33 0x00007f9b47c0e5bb in
QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*)
() from /usr/lib/x86_64-linux-gnu/libQt6Gui.so.6
#34 0x00007f9b47c78a4c in
QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>)
() from /usr/lib/x86_64-linux-gnu/libQt6Gui.so.6
#35 0x00007f9b48217934 in ?? () from /usr/lib/x86_64-linux-gnu/libQt6Gui.so.6
#36 0x00007f9b458bf18e in g_main_dispatch () from
/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#37 0x00007f9b458c01bf in g_main_context_iterate_unlocked.isra ()
   from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#38 0x00007f9b458c0323 in g_main_context_iteration ()
   from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#39 0x00007f9b46ee692d in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
from /usr/lib/x86_64-linux-gnu/libQt6Core.so.6
#40 0x00007f9b46bbade3 in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt6Core.so.6
#41 0x00007f9b46bb66a9 in QCoreApplication::exec() ()
   from /usr/lib/x86_64-linux-gnu/libQt6Core.so.6
#42 0x000055df54c25a8d in main (argc=<optimized out>, argv=<optimized out>)
    at /run/build/skanpage/src/main.cpp:119


EXPECTED RESULT
No crash


SOFTWARE/OS VERSIONS
>From KDE nightly flatpak repo

Operating System: KDE Linux 2026-02-22
KDE Plasma Version: 6.6.80
KDE Frameworks Version: 6.24.0
Qt Version: 6.10.2
Kernel Version: 6.18.9-zen1-2-zen (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7840U w/ Radeon™ 780M Graphics
Memory: 17 GB of RAM (16.0 GB usable)
Graphics Processor: AMD Radeon 780M Graphics

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to