Bug 157683 - Adding avatar crashes kopete
Summary: Adding avatar crashes kopete
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Applications
Component: libkopete (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-11 20:49 UTC by benedict
Modified: 2008-02-11 22:24 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 benedict 2008-02-11 20:49:57 UTC
Version:           unknown (using 4.00.61 (KDE 4.0.61 >= 20080207), Gentoo)
Compiler:          x86_64-pc-linux-gnu-gcc
OS:                Linux (x86_64) release 2.6.22-gentoo-r9

I am not sure whether this error to libkopete, or whether it is a kdelibs problem, sorry if I put it in the wrong place. 
 
The image, resulting a crash in kopete were viewed konqueror,  Gwenview and Okular without any problems.


Application: Kopete (kopete), signal SIGABRT
Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 0x2b4319e34c60 (LWP 27323)]
[New Thread 0x40800950 (LWP 27364)]
[KCrash handler]
#5  0x00002b43187453c5 in *__GI_raise (sig=<value optimized out>)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#6  0x00002b431874673e in *__GI_abort () at abort.c:88
#7  0x00002b43104501d5 in qt_message_output (msgType=QtFatalMsg, 
    buf=<value optimized out>) at global/qglobal.cpp:2160
#8  0x00002b4310450307 in qFatal (msg=<value optimized out>)
    at global/qglobal.cpp:2392
#9  0x00002b4311763800 in KPixmapRegionSelectorWidget::setPixmap (
    this=0x1386930, pixmap=@0x7fff9a8af0d0)
    at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs-9999.4/kdeui/widgets/kpixmapregionselectorwidget.cpp:115
#10 0x00002b431166ccf7 in KPixmapRegionSelectorDialog::getSelectedImage (
    pixmap=@0x6abb, aspectRatioWidth=96, aspectRatioHeight=96, 
    parent=<value optimized out>)
    at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs-9999.4/kdeui/dialogs/kpixmapregionselectordialog.cpp:137
#11 0x00002b431304b2ed in Kopete::UI::AvatarSelectorWidget::buttonAddAvatarClicked (this=0x19cb910)
    at /var/tmp/portage/kde-base/kdenetwork-9999.4/work/kdenetwork-9999.4/kopete/libkopete/ui/avatarselectorwidget.cpp:186
#12 0x00002b431304b540 in Kopete::UI::AvatarSelectorWidget::qt_metacall (
    this=0x19cb910, _c=QMetaObject::InvokeMetaMethod, _id=0, 
    _a=0x7fff9a8af780)
    at /var/tmp/portage/kde-base/kdenetwork-9999.4/work/kdenetwork_build/kopete/libkopete/avatarselectorwidget.moc:76
#13 0x00002b4310523b9b in QMetaObject::activate (sender=0x11dc8f0, 
    from_signal_index=29, to_signal_index=30, argv=0xffffffffffffffff)
    at kernel/qobject.cpp:3081
#14 0x00002b43125672e7 in QAbstractButton::clicked (this=0x6abb, _t1=false)
    at .moc/debug-shared/moc_qabstractbutton.cpp:180
#15 0x00002b4312330a4b in QAbstractButtonPrivate::emitClicked (this=0x1a480c0)
    at widgets/qabstractbutton.cpp:531
#16 0x00002b4312331e15 in QAbstractButtonPrivate::click (this=0x1a480c0)
    at widgets/qabstractbutton.cpp:524
#17 0x00002b431233203d in QAbstractButton::mouseReleaseEvent (this=0x11dc8f0, 
    e=0x7fff9a8b0060) at widgets/qabstractbutton.cpp:1101
#18 0x00002b43120900d7 in QWidget::event (this=0x11dc8f0, 
    event=0x7fff9a8b0060) at kernel/qwidget.cpp:6138
#19 0x00002b43123312bf in QAbstractButton::event (this=0x11dc8f0, e=0x6abb)
    at widgets/qabstractbutton.cpp:1063
#20 0x00002b43123c3037 in QPushButton::event (this=0x11dc8f0, 
    e=0x7fff9a8b0060) at widgets/qpushbutton.cpp:665
#21 0x00002b431204551a in QApplicationPrivate::notify_helper (this=0x1a480c0, 
    receiver=0x11dc8f0, e=0x7fff9a8b0060) at kernel/qapplication.cpp:3556
#22 0x00002b4312046c2b in QApplication::notify (this=0x7fff9a8b20c0, 
    receiver=0x11dc8f0, e=0x7fff9a8b0060) at kernel/qapplication.cpp:3255
#23 0x00002b43116bfed3 in KApplication::notify (this=0x7fff9a8b20c0, 
    receiver=0x11dc8f0, event=0x7fff9a8b0060)
    at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs-9999.4/kdeui/kernel/kapplication.cpp:311
#24 0x00002b4310511780 in QCoreApplication::notifyInternal (
    this=0x7fff9a8b20c0, receiver=0x11dc8f0, event=0x7fff9a8b0060)
    at kernel/qcoreapplication.cpp:530
#25 0x00002b43120a0bdf in QETWidget::translateMouseEvent (this=0x11dc8f0, 
    event=<value optimized out>)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:203
#26 0x00002b431209f7ba in QApplication::x11ProcessEvent (this=0x1a5, 
    event=0x7fff9a8b0670) at kernel/qapplication_x11.cpp:3020
#27 0x00002b43120c27e2 in QEventDispatcherX11::processEvents (this=0x6b4210, 
    flags=@0x7fff9a8b0840) at kernel/qeventdispatcher_x11.cpp:125
#28 0x00002b4310510da8 in QEventLoop::processEvents (
    this=<value optimized out>, flags=<value optimized out>)
    at kernel/qeventloop.cpp:140
#29 0x00002b4310510ebd in QEventLoop::exec (this=0x7fff9a8b08c0, 
    flags=@0x7fff9a8b08e0) at kernel/qeventloop.cpp:186
#30 0x00002b431242bb0b in QDialog::exec (this=0x7fff9a8b0930)
    at dialogs/qdialog.cpp:433
#31 0x00002b431304a772 in Kopete::UI::AvatarDialog::getAvatar (
    parent=<value optimized out>, currentAvatar=@0x76d900, ok=0x7fff9a8b09bf)
    at /var/tmp/portage/kde-base/kdenetwork-9999.4/work/kdenetwork-9999.4/kopete/libkopete/ui/avatardialog.cpp:72
#32 0x00002b431372d928 in IdentityStatusWidget::slotPhotoClicked (
    this=0x7cc630)
    at /var/tmp/portage/kde-base/kdenetwork-9999.4/work/kdenetwork-9999.4/kopete/kopete/identity/identitystatuswidget.cpp:289
#33 0x00002b431372db9b in IdentityStatusWidget::qt_metacall (this=0x7cc630, 
    _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0x7fff9a8b0f00)
    at /var/tmp/portage/kde-base/kdenetwork-9999.4/work/kdenetwork_build/kopete/kopete/identity/identitystatuswidget.moc:78
#34 0x00002b4310523b9b in QMetaObject::activate (sender=0x7a4b60, 
    from_signal_index=29, to_signal_index=30, argv=0xffffffffffffffff)
    at kernel/qobject.cpp:3081
#35 0x00002b43125672e7 in QAbstractButton::clicked (this=0x6abb, _t1=false)
    at .moc/debug-shared/moc_qabstractbutton.cpp:180
#36 0x00002b4312330a4b in QAbstractButtonPrivate::emitClicked (this=0x6a1450)
    at widgets/qabstractbutton.cpp:531
#37 0x00002b4312331e15 in QAbstractButtonPrivate::click (this=0x6a1450)
    at widgets/qabstractbutton.cpp:524
#38 0x00002b431233203d in QAbstractButton::mouseReleaseEvent (this=0x7a4b60, 
    e=0x7fff9a8b17e0) at widgets/qabstractbutton.cpp:1101
#39 0x00002b43123f3f8a in QToolButton::mouseReleaseEvent (this=0x6abb, 
    e=0x6abb) at widgets/qtoolbutton.cpp:656
#40 0x00002b43120900d7 in QWidget::event (this=0x7a4b60, event=0x7fff9a8b17e0)
    at kernel/qwidget.cpp:6138
#41 0x00002b43123312bf in QAbstractButton::event (this=0x7a4b60, e=0x6abb)
    at widgets/qabstractbutton.cpp:1063
#42 0x00002b43123f3a49 in QToolButton::event (this=0x6abb, e=0x6abb)
    at widgets/qtoolbutton.cpp:1073
#43 0x00002b431204551a in QApplicationPrivate::notify_helper (this=0x6a1450, 
    receiver=0x7a4b60, e=0x7fff9a8b17e0) at kernel/qapplication.cpp:3556
#44 0x00002b4312046c2b in QApplication::notify (this=0x7fff9a8b20c0, 
    receiver=0x7a4b60, e=0x7fff9a8b17e0) at kernel/qapplication.cpp:3255
#45 0x00002b43116bfed3 in KApplication::notify (this=0x7fff9a8b20c0, 
    receiver=0x7a4b60, event=0x7fff9a8b17e0)
    at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs-9999.4/kdeui/kernel/kapplication.cpp:311
#46 0x00002b4310511780 in QCoreApplication::notifyInternal (
    this=0x7fff9a8b20c0, receiver=0x7a4b60, event=0x7fff9a8b17e0)
    at kernel/qcoreapplication.cpp:530
#47 0x00002b43120a0bdf in QETWidget::translateMouseEvent (this=0x7a4b60, 
    event=<value optimized out>)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:203
#48 0x00002b431209f7ba in QApplication::x11ProcessEvent (this=0x1a5, 
    event=0x7fff9a8b1df0) at kernel/qapplication_x11.cpp:3020
#49 0x00002b43120c27e2 in QEventDispatcherX11::processEvents (this=0x6b4210, 
    flags=@0x7fff9a8b1fc0) at kernel/qeventdispatcher_x11.cpp:125
#50 0x00002b4310510da8 in QEventLoop::processEvents (
    this=<value optimized out>, flags=<value optimized out>)
    at kernel/qeventloop.cpp:140
#51 0x00002b4310510ebd in QEventLoop::exec (this=0x7fff9a8b2030, 
    flags=@0x7fff9a8b2040) at kernel/qeventloop.cpp:186
#52 0x00002b4310512f1e in QCoreApplication::exec ()
    at kernel/qcoreapplication.cpp:759
#53 0x0000000000444261 in main (argc=3, argv=0x7fff9a8b2e98)
    at /var/tmp/portage/kde-base/kdenetwork-9999.4/work/kdenetwork-9999.4/kopete/kopete/main.cpp:102
#54 0x00002b4318732b74 in __libc_start_main (main=0x442800 <main>, argc=3, 
    ubp_av=0x7fff9a8b2e98, init=<value optimized out>, 
    fini=<value optimized out>, rtld_fini=<value optimized out>, 
    stack_end=0x7fff9a8b2e88) at libc-start.c:229
#55 0x0000000000423849 in _start ()
#0  0x00002b43187a77e1 in nanosleep () from /lib64/libc.so.6
Comment 1 Roman Jarosz 2008-02-11 22:22:37 UTC
SVN commit 773834 by rjarosz:

Fix bug 157683: Adding avatar crashes kopete
We have to check if avatar isn't null.

BUG: 157683



 M  +5 -1      avatarselectorwidget.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=773834
Comment 2 Roman Jarosz 2008-02-11 22:24:03 UTC
SVN commit 773836 by rjarosz:

Backport fix for bug 157683: Adding avatar crashes kopete
We have to check if avatar isn't null.

CCBUG: 157683



 M  +5 -1      avatarselectorwidget.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=773836