Bug 261845

Summary: Kopete crash while opening tools->configure
Product: [Unmaintained] kopete Reporter: rohitece06 <rohitkumar.ece06>
Component: Audio/Video PluginAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash CC: fschaefer.oss
Priority: NOR    
Version: 1.0.80   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description rohitece06 2011-01-02 08:35:31 UTC
Application: kopete (1.0.80)
KDE Platform Version: 4.5.4 (KDE 4.5.4)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-24-generic i686
Distribution: Ubuntu 10.10

-- Information about the crash:
- What I was doing when the application crashed:
Skype was also configured along with a gmail account. Everything runs well till I try to open configure menu

The crash can be reproduced every time.

-- Backtrace:
Application: Kopete (kopete), signal: Segmentation fault
[Current thread is 1 (Thread 0xb7875710 (LWP 20843))]

Thread 4 (Thread 0xb4579b70 (LWP 20844)):
#0  0x01286e36 in clock_gettime () from /lib/librt.so.1
#1  0x04ca050b in do_gettime () at tools/qelapsedtimer_unix.cpp:105
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:119
#3  0x04d776e5 in QTimerInfoList::updateCurrentTime (this=0xb3c004dc) at kernel/qeventdispatcher_unix.cpp:339
#4  0x04d7772a in QTimerInfoList::timerWait (this=0xb3c004dc, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#5  0x04d757a8 in timerSourcePrepareHelper (src=<value optimized out>, timeout=0xb45790bc) at kernel/qeventdispatcher_glib.cpp:136
#6  0x04d7583d in timerSourcePrepare (source=0x0, timeout=0x128aff4) at kernel/qeventdispatcher_glib.cpp:169
#7  0x022a0e6a in g_main_context_prepare () from /lib/libglib-2.0.so.0
#8  0x022a1279 in ?? () from /lib/libglib-2.0.so.0
#9  0x022a1848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#10 0x04d7559f in QEventDispatcherGlib::processEvents (this=0x9655510, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#11 0x04d45609 in QEventLoop::processEvents (this=0xb4579290, flags=) at kernel/qeventloop.cpp:149
#12 0x04d45a8a in QEventLoop::exec (this=0xb4579290, flags=...) at kernel/qeventloop.cpp:201
#13 0x04c41b7e in QThread::exec (this=0x93c4e78) at thread/qthread.cpp:490
#14 0x04d2435b in QInotifyFileSystemWatcherEngine::run (this=0x93c4e78) at io/qfilesystemwatcher_inotify.cpp:248
#15 0x04c44df9 in QThreadPrivate::start (arg=0x93c4e78) at thread/qthread_unix.cpp:266
#16 0x0039ecc9 in start_thread () from /lib/libpthread.so.0
#17 0x00c4569e in clone () from /lib/libc.so.6

Thread 3 (Thread 0xb2d68b70 (LWP 20848)):
#0  0x01286e36 in clock_gettime () from /lib/librt.so.1
#1  0x04ca050b in do_gettime () at tools/qelapsedtimer_unix.cpp:105
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:119
#3  0x04d776e5 in QTimerInfoList::updateCurrentTime (this=0x97577bc) at kernel/qeventdispatcher_unix.cpp:339
#4  0x04d7772a in QTimerInfoList::timerWait (this=0x97577bc, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#5  0x04d757a8 in timerSourcePrepareHelper (src=<value optimized out>, timeout=0xb2d680cc) at kernel/qeventdispatcher_glib.cpp:136
#6  0x04d7583d in timerSourcePrepare (source=0x0, timeout=0x128aff4) at kernel/qeventdispatcher_glib.cpp:169
#7  0x022a0e6a in g_main_context_prepare () from /lib/libglib-2.0.so.0
#8  0x022a1279 in ?? () from /lib/libglib-2.0.so.0
#9  0x022a1848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#10 0x04d7559f in QEventDispatcherGlib::processEvents (this=0x96be388, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#11 0x04d45609 in QEventLoop::processEvents (this=0x97584f0, flags=) at kernel/qeventloop.cpp:149
#12 0x04d45a8a in QEventLoop::exec (this=0x97584f0, flags=...) at kernel/qeventloop.cpp:201
#13 0x023b4dda in QCA::SyncThread::run() () from /usr/lib/libqca.so.2
#14 0x04c44df9 in QThreadPrivate::start (arg=0x96d5cb0) at thread/qthread_unix.cpp:266
#15 0x0039ecc9 in start_thread () from /lib/libpthread.so.0
#16 0x00c4569e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xb2567b70 (LWP 20849)):
#0  0x01286e36 in clock_gettime () from /lib/librt.so.1
#1  0x04ca050b in do_gettime () at tools/qelapsedtimer_unix.cpp:105
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:119
#3  0x04d776e5 in QTimerInfoList::updateCurrentTime (this=0x99e3ccc) at kernel/qeventdispatcher_unix.cpp:339
#4  0x04d756a5 in timerSourceCheckHelper (src=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:150
#5  0x022a0b39 in g_main_context_check () from /lib/libglib-2.0.so.0
#6  0x022a145e in ?? () from /lib/libglib-2.0.so.0
#7  0x022a1848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#8  0x04d7559f in QEventDispatcherGlib::processEvents (this=0x9709648, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#9  0x04d45609 in QEventLoop::processEvents (this=0x9754fd8, flags=) at kernel/qeventloop.cpp:149
#10 0x04d45a8a in QEventLoop::exec (this=0x9754fd8, flags=...) at kernel/qeventloop.cpp:201
#11 0x02a5115b in XMPP::SyncThread::run (this=0x9a1ce28) at ../../../../../kopete/protocols/jabber/libiris/iris/irisnet/corelib/netinterface.cpp:151
#12 0x04c44df9 in QThreadPrivate::start (arg=0x9a1ce28) at thread/qthread_unix.cpp:266
#13 0x0039ecc9 in start_thread () from /lib/libpthread.so.0
#14 0x00c4569e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb7875710 (LWP 20843)):
[KCrash Handler]
#7  0x00c89f77 in ?? () from /lib/libc.so.6
#8  0x00b2a2ce in QVector<unsigned char>::realloc (this=0x9bf5348, asize=-141039232, aalloc=-141039224) at /usr/include/bits/string3.h:52
#9  0x00b2a400 in QVector<unsigned char>::resize (this=0x9bf5348, asize=-141039232) at /usr/include/qt4/QtCore/qvector.h:331
#10 0x00b2617a in Kopete::AV::VideoDevice::setSize (this=0x9bf5168, newwidth=16, newheight=<value optimized out>) at ../../../../kopete/libkopete/avdevice/videodevice.cpp:899
#11 0x00b2e722 in Kopete::AV::VideoDevicePool::setSize (this=0x9be9590, newwidth=320, newheight=240) at ../../../../kopete/libkopete/avdevice/videodevicepool.cpp:181
#12 0x0789ca4b in AVDeviceConfig::startCapturing (this=0x9bd03b8) at ../../../../../kopete/kopete/config/avdevice/avdeviceconfig.cpp:360
#13 0x0789fae0 in AVDeviceConfig::AVDeviceConfig (this=0x9bd03b8, parent=0x96dc0e8, args=...) at ../../../../../kopete/kopete/config/avdevice/avdeviceconfig.cpp:73
#14 0x078a292d in KPluginFactory::createInstance<AVDeviceConfig, QWidget> (parentWidget=0x0, parent=0x96dc0e8, args=...) at /usr/include/kpluginfactory.h:461
#15 0x00a98c90 in KPluginFactory::create (this=0x9bcd4c0, iface=0x1218d00 "KCModule", parentWidget=0x0, parent=0x96dc0e8, args=..., keyword=...) at ../../kdecore/util/kpluginfactory.cpp:191
#16 0x06a41ae8 in create<KCModule> (mod=..., report=KCModuleLoader::Inline, parent=0x96dc0e8, args=...) at ../../kdecore/util/kpluginfactory.h:515
#17 createInstance<KCModule> (mod=..., report=KCModuleLoader::Inline, parent=0x96dc0e8, args=...) at ../../kdecore/services/kservice.h:532
#18 createInstance<KCModule> (mod=..., report=KCModuleLoader::Inline, parent=0x96dc0e8, args=...) at ../../kdecore/services/kservice.h:509
#19 createInstance<KCModule> (mod=..., report=KCModuleLoader::Inline, parent=0x96dc0e8, args=...) at ../../kdecore/services/kservice.h:552
#20 KCModuleLoader::loadModule (mod=..., report=KCModuleLoader::Inline, parent=0x96dc0e8, args=...) at ../../kutils/kcmoduleloader.cpp:89
#21 0x06a471fd in KCModuleProxyPrivate::loadModule (this=0x9bbd6b8) at ../../kutils/kcmoduleproxy.cpp:106
#22 0x06a47ef3 in KCModuleProxy::realModule (this=0x96dc0e8) at ../../kutils/kcmoduleproxy.cpp:83
#23 0x06a47f92 in KCModuleProxy::useRootOnlyMessage (this=0x96dc0e8) at ../../kutils/kcmoduleproxy.cpp:315
#24 0x06a43f78 in KCMultiDialog::addModule (this=0x9a6d658, moduleInfo=..., parentItem=0x0, args=...) at ../../kutils/kcmultidialog.cpp:339
#25 0x06a5db3c in KSettings::DialogPrivate::createDialogFromServices (this=0x9b33b68) at ../../kutils/ksettings/dialog.cpp:358
#26 0x06a5ed06 in KSettings::Dialog::showEvent (this=0x9a6d658) at ../../kutils/ksettings/dialog.cpp:127
#27 0x06c95c72 in QWidget::event (this=0x9a6d658, event=0xbfe736e0) at kernel/qwidget.cpp:8394
#28 0x06c37fdc in QApplicationPrivate::notify_helper (this=0x92a3480, receiver=0x9a6d658, e=0xbfe736e0) at kernel/qapplication.cpp:4396
#29 0x06c3e0e9 in QApplication::notify (this=0xbfe74a94, receiver=0x9a6d658, e=0xbfe736e0) at kernel/qapplication.cpp:4361
#30 0x0106405a in KApplication::notify (this=0xbfe74a94, receiver=0x9a6d658, event=0xbfe736e0) at ../../kdeui/kernel/kapplication.cpp:310
#31 0x04d46b3b in QCoreApplication::notifyInternal (this=0xbfe74a94, receiver=0x9a6d658, event=0xbfe736e0) at kernel/qcoreapplication.cpp:732
#32 0x06c9a655 in sendEvent (this=0x9b34ed8) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#33 QWidgetPrivate::show_helper (this=0x9b34ed8) at kernel/qwidget.cpp:7367
#34 0x06c9be9b in QWidget::setVisible (this=0x9a6d658, visible=true) at kernel/qwidget.cpp:7589
#35 0x071a33c7 in QDialog::setVisible (this=0x9a6d658, visible=true) at dialogs/qdialog.cpp:739
#36 0x007bd316 in show (this=0x93bc4a0) at /usr/include/qt4/QtGui/qwidget.h:487
#37 KopetePreferencesAction::slotShowPreferences (this=0x93bc4a0) at ../../../kopete/libkopete/ui/kopetestdaction.cpp:60
#38 0x007bd3d1 in KopetePreferencesAction::qt_metacall (this=0x93bc4a0, _c=QMetaObject::InvokeMetaMethod, _id=25, _a=0xbfe73938) at ./kopetestdaction.moc:72
#39 0x04d4c8ca in QMetaObject::metacall (object=0x93bc4a0, cl=4153928072, idx=25, argv=0xbfe73938) at kernel/qmetaobject.cpp:237
#40 0x04d5f6ad in QMetaObject::activate (sender=0x93bc4a0, m=0x75b6370, local_signal_index=1, argv=0x4e7a4b4) at kernel/qobject.cpp:3280
#41 0x06c2ff99 in QAction::triggered (this=0x93bc4a0, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#42 0x06c318dc in QAction::activate (this=0x93bc4a0, event=QAction::Trigger) at kernel/qaction.cpp:1256
#43 0x070fd7ef in QMenuPrivate::activateCausedStack (this=0x9513b40, causedStack=..., action=0x93bc4a0, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:993
#44 0x07103a4b in QMenuPrivate::activateAction (this=0x9513b40, action=0x93bc4a0, action_e=QAction::Trigger, self=<value optimized out>) at widgets/qmenu.cpp:1085
#45 0x071045e0 in QMenu::mouseReleaseEvent (this=0x93e9898, e=0xbfe741e0) at widgets/qmenu.cpp:2301
#46 0x0115fb75 in KMenu::mouseReleaseEvent (this=0x93e9898, e=0xbfe741e0) at ../../kdeui/widgets/kmenu.cpp:471
#47 0x06c95e08 in QWidget::event (this=0x93e9898, event=0xbfe741e0) at kernel/qwidget.cpp:8187
#48 0x0710602f in QMenu::event (this=0x93e9898, e=0xbfe741e0) at widgets/qmenu.cpp:2410
#49 0x06c37fdc in QApplicationPrivate::notify_helper (this=0x92a3480, receiver=0x93e9898, e=0xbfe741e0) at kernel/qapplication.cpp:4396
#50 0x06c3ec2e in QApplication::notify (this=0xbfe74a94, receiver=0x93e9898, e=0xbfe741e0) at kernel/qapplication.cpp:3959
#51 0x0106405a in KApplication::notify (this=0xbfe74a94, receiver=0x93e9898, event=0xbfe741e0) at ../../kdeui/kernel/kapplication.cpp:310
#52 0x04d46b3b in QCoreApplication::notifyInternal (this=0xbfe74a94, receiver=0x93e9898, event=0xbfe741e0) at kernel/qcoreapplication.cpp:732
#53 0x06c3d094 in sendEvent (receiver=0x93e9898, event=0xbfe741e0, alienWidget=0x0, nativeWidget=0x93e9898, buttonDown=0x75d23c0, lastMouseReceiver=..., spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#54 QApplicationPrivate::sendMouseEvent (receiver=0x93e9898, event=0xbfe741e0, alienWidget=0x0, nativeWidget=0x93e9898, buttonDown=0x75d23c0, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3058
#55 0x06ccc261 in QETWidget::translateMouseEvent (this=0x93e9898, event=0xbfe746fc) at kernel/qapplication_x11.cpp:4337
#56 0x06ccb151 in QApplication::x11ProcessEvent (this=0xbfe74a94, event=0xbfe746fc) at kernel/qapplication_x11.cpp:3414
#57 0x06cfa36a in x11EventSourceDispatch (s=0x92a67a8, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#58 0x0229d855 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#59 0x022a1668 in ?? () from /lib/libglib-2.0.so.0
#60 0x022a1848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#61 0x04d75565 in QEventDispatcherGlib::processEvents (this=0x92796d8, flags=...) at kernel/qeventdispatcher_glib.cpp:415
#62 0x06cf9be5 in QGuiEventDispatcherGlib::processEvents (this=0x92796d8, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#63 0x04d45609 in QEventLoop::processEvents (this=0xbfe749f4, flags=) at kernel/qeventloop.cpp:149
#64 0x04d45a8a in QEventLoop::exec (this=0xbfe749f4, flags=...) at kernel/qeventloop.cpp:201
#65 0x04d4a00f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#66 0x06c36e07 in QApplication::exec () at kernel/qapplication.cpp:3672
#67 0x080587be in main (argc=1, argv=0xbfe74ed4) at ../../../kopete/kopete/main.cpp:105

Reported using DrKonqi
Comment 1 Frank Schaefer 2011-01-03 22:47:35 UTC
Thanks for reporting this.

Notes:
VideoDevice: struct imagebuffer: QVector <uchar> data.
Code in setSize() looks scary, should be rewritten completely.
Comment 2 Frank Schaefer 2011-01-04 18:48:05 UTC
SVN commit 1211705 by fschaefer:

Fix some issues in VideoDevice::setSize(...)

- fix image buffer size calculation
- fix handling of image width and hight values
- fix function exit paths

CCBUG: 261845


 M  +17 -11    videodevice.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1211705
Comment 3 Frank Schaefer 2011-01-04 18:54:17 UTC
SVN commit 1211708 by fschaefer:

Fix some issues in VideoDevice::setSize(...)

- fix image buffer size calculation
- fix handling of image width and hight values
- fix function exit paths

Backport of r1211705
CCBUG: 261845


 M  +17 -11    videodevice.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1211708
Comment 4 Andrew Crouthamel 2018-10-30 00:00:59 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 5 Bug Janitor Service 2018-11-14 11:27:57 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 6 Bug Janitor Service 2018-11-29 04:49:08 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!