Bug 222583 - Scangui crashed while trying to get picture from web camera
Summary: Scangui crashed while trying to get picture from web camera
Status: RESOLVED FIXED
Alias: None
Product: libksane
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Kåre Särs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-13 21:05 UTC by GK
Modified: 2010-01-13 22:14 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description GK 2010-01-13 21:05:23 UTC
Application that crashed: scangui
Version of the application: 1.0.0
KDE Version: 4.3.4 (KDE 4.3.4)
Qt Version: 4.5.2
Operating System: Linux 2.6.31-18-generic i686
Distribution: Ubuntu 9.10

What I was doing when the application crashed:
Scangui, version 1.0.0 crashes when the buttob aquire picture from integrated in the laptop web camera. The laptop is DELL inspiron 1525.

 -- Backtrace:
Application: Acquire images (scangui), signal: Segmentation fault
[Current thread is 1 (Thread 0xb7711700 (LWP 4120))]

Thread 2 (Thread 0xb57ffb70 (LWP 4127)):
#0  0x009f0422 in __kernel_vsyscall ()
#1  0x04ef3c96 in poll () from /lib/tls/i686/cmov/libc.so.6
#2  0x0606b2de in ?? () from /usr/lib/libavahi-common.so.3
#3  0x06069a3d in avahi_simple_poll_run () from /usr/lib/libavahi-common.so.3
#4  0x0606a2d0 in avahi_simple_poll_iterate () from /usr/lib/libavahi-common.so.3
#5  0x0606a320 in avahi_simple_poll_loop () from /usr/lib/libavahi-common.so.3
#6  0x0606b0cb in ?? () from /usr/lib/libavahi-common.so.3
#7  0x008e380e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#8  0x04f018de in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb7711700 (LWP 4120)):
[KCrash Handler]
#6  0x00ec1871 in ?? () from /usr/lib/libksane.so.0
#7  0x00ec1cbe in ?? () from /usr/lib/libksane.so.0
#8  0x00b46263 in QMetaObject::activate (sender=0x82cb7c0, from_signal_index=29, to_signal_index=30, argv=0xbf88f608) at kernel/qobject.cpp:3113
#9  0x00b466d8 in QMetaObject::activate (sender=0x82cb7c0, m=0x7a930a4, from_local_signal_index=2, to_local_signal_index=3, argv=0xbf88f608) at kernel/qobject.cpp:3207
#10 0x078accc1 in QAbstractButton::clicked (this=0x82cb7c0, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:200
#11 0x075d5549 in QAbstractButtonPrivate::emitClicked (this=0x82cb7e0) at widgets/qabstractbutton.cpp:543
#12 0x075d71a4 in QAbstractButtonPrivate::click (this=0x82cb7e0) at widgets/qabstractbutton.cpp:536
#13 0x075d7431 in QAbstractButton::mouseReleaseEvent (this=0x82cb7c0, e=0xbf88fc00) at widgets/qabstractbutton.cpp:1115
#14 0x07275012 in QWidget::event (this=0x82cb7c0, event=0xbf88fc00) at kernel/qwidget.cpp:7549
#15 0x075d53ee in QAbstractButton::event (this=0x82cb7c0, e=0x0) at widgets/qabstractbutton.cpp:1077
#16 0x0767f66d in QPushButton::event (this=0x82cb7c0, e=0xbf88fc00) at widgets/qpushbutton.cpp:662
#17 0x0721ff54 in QApplicationPrivate::notify_helper (this=0x8179df0, receiver=0x82cb7c0, e=0xbf88fc00) at kernel/qapplication.cpp:4056
#18 0x07228033 in QApplication::notify (this=0xbf8915cc, receiver=0x82cb7c0, e=0xbf88fc00) at kernel/qapplication.cpp:3758
#19 0x011b41aa in KApplication::notify (this=0xbf8915cc, receiver=0x82cb7c0, event=0xbf88fc00) at ../../kdeui/kernel/kapplication.cpp:302
#20 0x00b306cb in QCoreApplication::notifyInternal (this=0xbf8915cc, receiver=0x82cb7c0, event=0xbf88fc00) at kernel/qcoreapplication.cpp:610
#21 0x07226f6e in QCoreApplication::sendSpontaneousEvent (receiver=0x82cb7c0, event=0xbf88fc00, alienWidget=0x82cb7c0, nativeWidget=0x82a7648, buttonDown=0x7a9aaa0, lastMouseReceiver=...)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#22 QApplicationPrivate::sendMouseEvent (receiver=0x82cb7c0, event=0xbf88fc00, alienWidget=0x82cb7c0, nativeWidget=0x82a7648, buttonDown=0x7a9aaa0, lastMouseReceiver=...)
    at kernel/qapplication.cpp:2924
#23 0x072957c0 in QETWidget::translateMouseEvent (this=0x82a7648, event=0xbf89124c) at kernel/qapplication_x11.cpp:4409
#24 0x07294c4b in QApplication::x11ProcessEvent (this=0xbf8915cc, event=0xbf89124c) at kernel/qapplication_x11.cpp:3428
#25 0x072c1502 in x11EventSourceDispatch (s=0x817d068, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#26 0x02fa8e88 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#27 0x02fac730 in ?? () from /lib/libglib-2.0.so.0
#28 0x02fac863 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#29 0x00b5b02c in QEventDispatcherGlib::processEvents (this=0x8162e60, flags=...) at kernel/qeventdispatcher_glib.cpp:327
#30 0x072c0be5 in QGuiEventDispatcherGlib::processEvents (this=0x8162e60, flags=...) at kernel/qguieventdispatcher_glib.cpp:202
#31 0x00b2ec79 in QEventLoop::processEvents (this=0xbf891544, flags=) at kernel/qeventloop.cpp:149
#32 0x00b2f0ca in QEventLoop::exec (this=0xbf891544, flags=...) at kernel/qeventloop.cpp:201
#33 0x00b3153f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#34 0x0721fdd7 in QApplication::exec () at kernel/qapplication.cpp:3525
#35 0x0804d73d in _start ()

Reported using DrKonqi
Comment 1 Kåre Särs 2010-01-13 22:14:36 UTC
Thanks, 

this report is actually the second for the same bug (fixed).

The reason here is that the webcam backend does not have a resolution option and the pointer validity check was missing.