Bug 313984 - Okular crashed after changing the colour of some highlighted text
Summary: Okular crashed after changing the colour of some highlighted text
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: kdeui (show other bugs)
Version: 4.9.5
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
: 315309 315878 316112 317620 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-01-27 16:29 UTC by laleluna.noctiluca
Modified: 2014-01-06 14:08 UTC (History)
8 users (show)

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


Attachments
the entire output of # valgrind okular (103.35 KB, text/plain)
2013-01-27 22:10 UTC, laleluna.noctiluca
Details
New crash information added by DrKonqi (15.60 KB, text/plain)
2014-01-06 14:08 UTC, Paul
Details

Note You need to log in before you can comment on or make changes to this bug.
Description laleluna.noctiluca 2013-01-27 16:29:58 UTC
Application: okular (0.15.5)
KDE Platform Version: 4.9.5
Qt Version: 4.8.4
Operating System: Linux 3.7.2-204.fc18.i686 i686
Distribution (Platform): Fedora RPMs

-- Information about the crash:
I accidentally changed the highlighting colour of the wrong section in the text to a custom colour. When I wanted to change it back to the default colour yellow, Okular suddenly crashed. I tried to reproduce that error once - successfully.
(I'm using Fedora with Gnome 3, by the way.)

The crash can be reproduced every time.

-- Backtrace:
Application: Okular (okular), signal: Segmentation fault
Using host libthread_db library "/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0xb77a9780 (LWP 4815))]

Thread 2 (Thread 0xad3f9b40 (LWP 6079)):
#0  0x4adfddad in clock_gettime () from /lib/librt.so.1
#1  0x4d357cc6 in qt_gettime() () from /lib/libQtCore.so.4
#2  0x4d44160f in QTimerInfoList::updateCurrentTime() () from /lib/libQtCore.so.4
#3  0x7fffffff in ?? ()
#4  0x4d4419cb in QTimerInfoList::timerWait(timeval&) () from /lib/libQtCore.so.4
#5  0x7fffffff in ?? ()

Thread 1 (Thread 0xb77a9780 (LWP 4815)):
[KCrash Handler]
#6  0x4d402b76 in QPersistentModelIndexData::create(QModelIndex const&) () from /lib/libQtCore.so.4
#7  0x4d402c6f in QPersistentModelIndex::QPersistentModelIndex(QModelIndex const&) () from /lib/libQtCore.so.4
#8  0x4e7b2ece in QAbstractItemView::mouseReleaseEvent(QMouseEvent*) () from /lib/libQtGui.so.4
#9  0x4ecdbe4f in KColorCells::mouseReleaseEvent(QMouseEvent*) () from /lib/libkdeui.so.5
#10 0x4e267455 in QWidget::event(QEvent*) () from /lib/libQtGui.so.4
#11 0x4e67ce46 in QFrame::event(QEvent*) () from /lib/libQtGui.so.4
#12 0x4e70ef54 in QAbstractScrollArea::viewportEvent(QEvent*) () from /lib/libQtGui.so.4
#13 0x4e7b159c in QAbstractItemView::viewportEvent(QEvent*) () from /lib/libQtGui.so.4
#14 0x4e7117e6 in QAbstractScrollAreaFilter::eventFilter(QObject*, QEvent*) () from /lib/libQtGui.so.4
#15 0x4d40e20e in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /lib/libQtCore.so.4
#16 0x4e20d03e in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/libQtGui.so.4
#17 0x4e21260b in QApplication::notify(QObject*, QEvent*) () from /lib/libQtGui.so.4
#18 0x4edb1a82 in KApplication::notify(QObject*, QEvent*) () from /lib/libkdeui.so.5
#19 0x4d40e08e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /lib/libQtCore.so.4
#20 0x4e20def5 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /lib/libQtGui.so.4
#21 0x4e297235 in QETWidget::translateMouseEvent(_XEvent const*) () from /lib/libQtGui.so.4
#22 0x4e295edb in QApplication::x11ProcessEvent(_XEvent*) () from /lib/libQtGui.so.4
#23 0x4e2bfa85 in x11EventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib/libQtGui.so.4
#24 0x4af5216b in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#25 0x4af52510 in g_main_context_iterate.isra.22 () from /lib/libglib-2.0.so.0
#26 0x4af525f2 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#27 0x4d440aef in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/libQtCore.so.4
#28 0x4e2bf70b in QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/libQtGui.so.4
#29 0x4d40cb2d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/libQtCore.so.4
#30 0x4d40ce29 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/libQtCore.so.4
#31 0x4e7543ce in QDialog::exec() () from /lib/libQtGui.so.4
#32 0xb65adbe7 in AnnotationPopup::exec(QPoint const&) () from /usr/lib/kde4/okularpart.so
#33 0xb65ef491 in PageView::mousePressEvent(QMouseEvent*) () from /usr/lib/kde4/okularpart.so
#34 0x4e267437 in QWidget::event(QEvent*) () from /lib/libQtGui.so.4
#35 0x4e67ce46 in QFrame::event(QEvent*) () from /lib/libQtGui.so.4
#36 0x4e70ef54 in QAbstractScrollArea::viewportEvent(QEvent*) () from /lib/libQtGui.so.4
#37 0xb65df55f in PageView::viewportEvent(QEvent*) () from /usr/lib/kde4/okularpart.so
#38 0x4e7117e6 in QAbstractScrollAreaFilter::eventFilter(QObject*, QEvent*) () from /lib/libQtGui.so.4
#39 0x4d40e20e in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /lib/libQtCore.so.4
#40 0x4e20d03e in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/libQtGui.so.4
#41 0x4e21260b in QApplication::notify(QObject*, QEvent*) () from /lib/libQtGui.so.4
#42 0x4edb1a82 in KApplication::notify(QObject*, QEvent*) () from /lib/libkdeui.so.5
#43 0x4d40e08e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /lib/libQtCore.so.4
#44 0x4e20def5 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /lib/libQtGui.so.4
#45 0x4e297235 in QETWidget::translateMouseEvent(_XEvent const*) () from /lib/libQtGui.so.4
#46 0x4e295edb in QApplication::x11ProcessEvent(_XEvent*) () from /lib/libQtGui.so.4
#47 0x4e2bfa85 in x11EventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib/libQtGui.so.4
#48 0x4af5216b in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#49 0x4af52510 in g_main_context_iterate.isra.22 () from /lib/libglib-2.0.so.0
#50 0x4af525f2 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#51 0x4d440ad2 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/libQtCore.so.4
#52 0x4e2bf70b in QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/libQtGui.so.4
#53 0x4d40cb2d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/libQtCore.so.4
#54 0x4d40ce29 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/libQtCore.so.4
#55 0x4d41236b in QCoreApplication::exec() () from /lib/libQtCore.so.4
#56 0x4e20aee5 in QApplication::exec() () from /lib/libQtGui.so.4
#57 0x0804e03e in main ()

Reported using DrKonqi
Comment 1 laleluna.noctiluca 2013-01-27 17:43:24 UTC
This incident seems to be linked to choosing one of the <recent colours>.
Comment 2 Albert Astals Cid 2013-01-27 18:37:17 UTC
I can not reproduce this.

Can you please install the fedora rpm packages with debug symbols for kdelibs and for qt? And then try again? It should give us a better crash backtrace.

Also try running from the terminal to see if anything special is printed there.
Comment 3 laleluna.noctiluca 2013-01-27 19:49:55 UTC
I'm afraid, I don't know where to find said rpm packages. 
According to the Crash Handler there were packages missing for /usr/bin/okular, /lib/libQtGui.so.4, /lib/libQtCore.so.4,/lib/libkdeui.so.5 and /usr/lib/kde4/okularpart.so. What I did was using rpm -qf <...> in order find out the names of the packages which were supposedly missing. But it turned out all those packages had already been installed.
I've never filed a bug report before, so I'm pretty clueless.


This is the output in the terminal:

[martina@eduroam-244-088 ~]$ okular /home/martina/2._Abschnitt_Jaenner_2013.pdf 
 
(okular:2039): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion `GTK_IS_WIDGET (widget)' failed

(okular:2039): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion `GTK_IS_WIDGET (widget)' failed
KCrash: Application 'okular' crashing...
KCrash: Attempting to start /usr/libexec/kde4/drkonqi from kdeinit
sock_file=/home/martina/.kde/socket-eduroam-244-088.wlan.univie.ac.at/kdeinit4__0
Comment 4 Luigi Toscano 2013-01-27 20:15:19 UTC
(In reply to comment #3)
> I'm afraid, I don't know where to find said rpm packages. 
> According to the Crash Handler there were packages missing for
> /usr/bin/okular, /lib/libQtGui.so.4, /lib/libQtCore.so.4,/lib/libkdeui.so.5
> and /usr/lib/kde4/okularpart.so. What I did was using rpm -qf <...> in order
> find out the names of the packages which were supposedly missing. But it
> turned out all those packages had already been installed.

You need to install the packages with the debug information. As you use Fedora, just install yum-utils and then, as root, call:
# debuginfo-install okular

The general guide can be found here:
http://fedoraproject.org/wiki/StackTraces#Installing_debuginfo_RPMs_using_yum
Comment 5 laleluna.noctiluca 2013-01-27 21:26:41 UTC
Thank you!

This is the crash information after the debug packages were installed:

Application: Okular (okular), signal: Segmentation fault
Using host libthread_db library "/lib/libthread_db.so.1".
[KCrash Handler]
#7  0x4e7b2eb2 in QAbstractItemView::mouseReleaseEvent (this=0xa2d6188, event=0xbfa9df24) at itemviews/qabstractitemview.cpp:1789
#8  0x4ecdbe4f in KColorCells::mouseReleaseEvent (this=0xa2d6188, e=0xbfa9df24) at /usr/src/debug/kdelibs-4.9.5/kdeui/colors/kcolordialog.cpp:445
#9  0x4e267455 in QWidget::event (this=0xa2d6188, event=0xbfa9df24) at kernel/qwidget.cpp:8375
#10 0x4e67ce46 in QFrame::event (this=0xa2d6188, e=0xbfa9df24) at widgets/qframe.cpp:557
#11 0x4e70ef54 in QAbstractScrollArea::viewportEvent (this=0xa2d6188, e=0xbfa9df24) at widgets/qabstractscrollarea.cpp:1043
#12 0x4e7b159c in QAbstractItemView::viewportEvent (this=0xa2d6188, event=0xbfa9df24) at itemviews/qabstractitemview.cpp:1644
#13 0x4e7117e6 in viewportEvent (event=0xbfa9df24, this=<optimized out>) at widgets/qabstractscrollarea_p.h:100
#14 QAbstractScrollAreaFilter::eventFilter (this=0xa1ecd08, o=0xa247b20, e=0xbfa9df24) at widgets/qabstractscrollarea_p.h:116
#15 0x4d40e20e in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x97f5d80, receiver=0xa247b20, event=0xbfa9df24) at kernel/qcoreapplication.cpp:1056
#16 0x4e20d03e in QApplicationPrivate::notify_helper (this=0x97f5d80, receiver=0xa247b20, e=0xbfa9df24) at kernel/qapplication.cpp:4558
#17 0x4e21260b in QApplication::notify (this=0x97f5d80, receiver=0xa247b20, e=0xbfa9df24) at kernel/qapplication.cpp:4105
#18 0x4edb1a82 in KApplication::notify (this=0xbfa9f814, receiver=0xa247b20, event=0xbfa9df24) at /usr/src/debug/kdelibs-4.9.5/kdeui/kernel/kapplication.cpp:311
#19 0x4d40e08e in QCoreApplication::notifyInternal (this=0xbfa9f814, receiver=0xa247b20, event=0xbfa9df24) at kernel/qcoreapplication.cpp:946
#20 0x4e20def5 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:231
#21 QApplicationPrivate::sendMouseEvent (receiver=0xa247b20, event=0xbfa9df24, alienWidget=0xa247b20, nativeWidget=0xa17d7d0, buttonDown=0x4eba7274 <qt_button_down>, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3173
#22 0x4e297235 in QETWidget::translateMouseEvent (this=0xa17d7d0, event=0xbfa9e34c) at kernel/qapplication_x11.cpp:4537
#23 0x4e295edb in QApplication::x11ProcessEvent (this=0xbfa9f814, event=0xbfa9e34c) at kernel/qapplication_x11.cpp:3660
#24 0x4e2bfa85 in x11EventSourceDispatch (s=0x97f8b38, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148
#25 0x4af5216b in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#26 0x4af52510 in g_main_context_iterate.isra.22 () from /lib/libglib-2.0.so.0
#27 0x4af525f2 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#28 0x4d440ad2 in QEventDispatcherGlib::processEvents (this=0x97d67f8, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#29 0x4e2bf70b in QGuiEventDispatcherGlib::processEvents (this=0x97d67f8, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#30 0x4d40cb2d in QEventLoop::processEvents (this=this@entry=0xbfa9e648, flags=...) at kernel/qeventloop.cpp:149
#31 0x4d40ce29 in QEventLoop::exec (this=0xbfa9e648, flags=...) at kernel/qeventloop.cpp:204
#32 0x4e7543ce in QDialog::exec (this=0xbfa9e714) at dialogs/qdialog.cpp:554
#33 0xb613dbe7 in AnnotationPopup::exec (this=0xbfa9e8ac, point=...) at /usr/src/debug/okular-4.9.5/ui/annotationpopup.cpp:88
#34 0xb617f491 in PageView::mousePressEvent (this=0x9a3e2c0, e=0xbfa9f024) at /usr/src/debug/okular-4.9.5/ui/pageview.cpp:2018
#35 0x4e267437 in QWidget::event (this=0x9a3e2c0, event=0xbfa9f024) at kernel/qwidget.cpp:8371
#36 0x4e67ce46 in QFrame::event (this=0x9a3e2c0, e=0xbfa9f024) at widgets/qframe.cpp:557
#37 0x4e70ef54 in QAbstractScrollArea::viewportEvent (this=0x9a3e2c0, e=0xbfa9f024) at widgets/qabstractscrollarea.cpp:1043
#38 0xb616f55f in PageView::viewportEvent (this=0x9a3e2c0, e=0xbfa9f024) at /usr/src/debug/okular-4.9.5/ui/pageview.cpp:2994
#39 0x4e7117e6 in viewportEvent (event=0xbfa9f024, this=<optimized out>) at widgets/qabstractscrollarea_p.h:100
#40 QAbstractScrollAreaFilter::eventFilter (this=0x9a3fd58, o=0x9a3e278, e=0xbfa9f024) at widgets/qabstractscrollarea_p.h:116
#41 0x4d40e20e in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x97f5d80, receiver=0x9a3e278, event=0xbfa9f024) at kernel/qcoreapplication.cpp:1056
#42 0x4e20d03e in QApplicationPrivate::notify_helper (this=0x97f5d80, receiver=0x9a3e278, e=0xbfa9f024) at kernel/qapplication.cpp:4558
#43 0x4e21260b in QApplication::notify (this=0x97f5d80, receiver=0x9a3e278, e=0xbfa9f024) at kernel/qapplication.cpp:4105
#44 0x4edb1a82 in KApplication::notify (this=0xbfa9f814, receiver=0x9a3e278, event=0xbfa9f024) at /usr/src/debug/kdelibs-4.9.5/kdeui/kernel/kapplication.cpp:311
#45 0x4d40e08e in QCoreApplication::notifyInternal (this=0xbfa9f814, receiver=0x9a3e278, event=0xbfa9f024) at kernel/qcoreapplication.cpp:946
#46 0x4e20def5 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:231
#47 QApplicationPrivate::sendMouseEvent (receiver=0x9a3e278, event=0xbfa9f024, alienWidget=0x9a3e278, nativeWidget=0x9982348, buttonDown=0x4eba7274 <qt_button_down>, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3173
#48 0x4e297235 in QETWidget::translateMouseEvent (this=0x9982348, event=0xbfa9f44c) at kernel/qapplication_x11.cpp:4537
#49 0x4e295edb in QApplication::x11ProcessEvent (this=0xbfa9f814, event=0xbfa9f44c) at kernel/qapplication_x11.cpp:3660
#50 0x4e2bfa85 in x11EventSourceDispatch (s=0x97f8b38, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148
#51 0x4af5216b in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#52 0x4af52510 in g_main_context_iterate.isra.22 () from /lib/libglib-2.0.so.0
#53 0x4af525f2 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#54 0x4d440ad2 in QEventDispatcherGlib::processEvents (this=0x97d67f8, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#55 0x4e2bf70b in QGuiEventDispatcherGlib::processEvents (this=0x97d67f8, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#56 0x4d40cb2d in QEventLoop::processEvents (this=this@entry=0xbfa9f748, flags=...) at kernel/qeventloop.cpp:149
#57 0x4d40ce29 in QEventLoop::exec (this=0xbfa9f748, flags=...) at kernel/qeventloop.cpp:204
#58 0x4d41236b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#59 0x4e20aee5 in QApplication::exec () at kernel/qapplication.cpp:3823
#60 0x0804e03e in main (argc=6, argv=0xbfa9f9a4) at /usr/src/debug/okular-4.9.5/shell/main.cpp:85
Comment 6 Albert Astals Cid 2013-01-27 21:34:59 UTC
This is interesting but still doesn't give me enough info.

Could you try this? Install valgrind if you don't have it installed and run

valgrind okular

in a terminal, it will run very slowly. Then do whatever you do to make okular crash and paste here the output of the valgrind command.

Thanks!
Comment 7 laleluna.noctiluca 2013-01-27 22:08:29 UTC
Since there was quite a lot of output, I put all of it in an additional text file.
This is the extract from where the error began (I guess):

(okular:4441): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion `GTK_IS_WIDGET (widget)' failed

(okular:4441): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion `GTK_IS_WIDGET (widget)' failed
==4441== Invalid read of size 4
==4441==    at 0x4E7B2E84: QAbstractItemView::mouseReleaseEvent(QMouseEvent*) (qscopedpointer.h:135)
==4441==    by 0x4ECDBE4E: KColorCells::mouseReleaseEvent(QMouseEvent*) (kcolordialog.cpp:445)
==4441==    by 0x4E267454: QWidget::event(QEvent*) (qwidget.cpp:8375)
==4441==    by 0x4E67CE45: QFrame::event(QEvent*) (qframe.cpp:557)
==4441==    by 0x4E70EF53: QAbstractScrollArea::viewportEvent(QEvent*) (qabstractscrollarea.cpp:1043)
==4441==    by 0x4E7B159B: QAbstractItemView::viewportEvent(QEvent*) (qabstractitemview.cpp:1644)
==4441==    by 0x4E7117E5: QAbstractScrollAreaFilter::eventFilter(QObject*, QEvent*) (qabstractscrollarea_p.h:100)
==4441==    by 0x4D40E20D: QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) (qcoreapplication.cpp:1056)
==4441==    by 0x4E20D03D: QApplicationPrivate::notify_helper(QObject*, QEvent*) (qapplication.cpp:4558)
==4441==    by 0x4E21260A: QApplication::notify(QObject*, QEvent*) (qapplication.cpp:4105)
==4441==    by 0x4EDB1A81: KApplication::notify(QObject*, QEvent*) (kapplication.cpp:311)
==4441==    by 0x4D40E08D: QCoreApplication::notifyInternal(QObject*, QEvent*) (qcoreapplication.cpp:946)
==4441==  Address 0x4f9c494 is 4 bytes inside a block of size 24 free'd
==4441==    at 0x4007AEE: operator delete(void*) (vg_replace_malloc.c:480)
==4441==    by 0x4ECD9D9A: KColorCells::~KColorCells() (kcolordialog.cpp:214)
==4441==    by 0x4ECDEBC2: KDEPrivate::KColorTable::setColors(QString const&) (kcolordialog.cpp:824)
==4441==    by 0x4ECE0D33: KDEPrivate::KColorTable::addToRecentColors(QColor const&) (kcolordialog.cpp:906)
==4441==    by 0x4ECE0EA9: KColorDialog::color() const (kcolordialog.cpp:1470)
==4441==    by 0x4ECD7317: KColorButton::KColorButtonPrivate::_k_colorChosen() (kcolorbutton.cpp:279)
==4441==    by 0x4ECD73EE: KColorButton::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (kcolorbutton.moc:67)
==4441==    by 0x4D42525D: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (qobject.cpp:3539)
==4441==    by 0x4ECDC3E5: KColorDialog::colorSelected(QColor const&) (kcolordialog.moc:343)
==4441==    by 0x4ECDC45C: KColorDialog::KColorDialogPrivate::_setColor(QColor const&, QString const&) (kcolordialog.cpp:1649)
==4441==    by 0x4ECDC6FB: KColorDialog::KColorDialogPrivate::slotColorSelected(QColor const&, QString const&) (kcolordialog.cpp:1622)
==4441==    by 0x4ECE13E4: KColorDialog::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (kcolordialog.moc:288)
==4441== 
==4441== Invalid read of size 4
==4441==    at 0x4E7B2E99: QAbstractItemView::mouseReleaseEvent(QMouseEvent*) (qabstractitemview.cpp:1789)
==4441==    by 0x4ECDBE4E: KColorCells::mouseReleaseEvent(QMouseEvent*) (kcolordialog.cpp:445)
==4441==    by 0x4E267454: QWidget::event(QEvent*) (qwidget.cpp:8375)
==4441==    by 0x4E67CE45: QFrame::event(QEvent*) (qframe.cpp:557)
==4441==    by 0x4E70EF53: QAbstractScrollArea::viewportEvent(QEvent*) (qabstractscrollarea.cpp:1043)
==4441==    by 0x4E7B159B: QAbstractItemView::viewportEvent(QEvent*) (qabstractitemview.cpp:1644)
==4441==    by 0x4E7117E5: QAbstractScrollAreaFilter::eventFilter(QObject*, QEvent*) (qabstractscrollarea_p.h:100)
==4441==    by 0x4D40E20D: QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) (qcoreapplication.cpp:1056)
==4441==    by 0x4E20D03D: QApplicationPrivate::notify_helper(QObject*, QEvent*) (qapplication.cpp:4558)
==4441==    by 0x4E21260A: QApplication::notify(QObject*, QEvent*) (qapplication.cpp:4105)
==4441==    by 0x4EDB1A81: KApplication::notify(QObject*, QEvent*) (kapplication.cpp:311)
==4441==    by 0x4D40E08D: QCoreApplication::notifyInternal(QObject*, QEvent*) (qcoreapplication.cpp:946)
==4441==  Address 0x4f9c490 is 0 bytes inside a block of size 24 free'd
==4441==    at 0x4007AEE: operator delete(void*) (vg_replace_malloc.c:480)
==4441==    by 0x4ECD9D9A: KColorCells::~KColorCells() (kcolordialog.cpp:214)
==4441==    by 0x4ECDEBC2: KDEPrivate::KColorTable::setColors(QString const&) (kcolordialog.cpp:824)
==4441==    by 0x4ECE0D33: KDEPrivate::KColorTable::addToRecentColors(QColor const&) (kcolordialog.cpp:906)
==4441==    by 0x4ECE0EA9: KColorDialog::color() const (kcolordialog.cpp:1470)
==4441==    by 0x4ECD7317: KColorButton::KColorButtonPrivate::_k_colorChosen() (kcolorbutton.cpp:279)
==4441==    by 0x4ECD73EE: KColorButton::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (kcolorbutton.moc:67)
==4441==    by 0x4D42525D: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (qobject.cpp:3539)
==4441==    by 0x4ECDC3E5: KColorDialog::colorSelected(QColor const&) (kcolordialog.moc:343)
==4441==    by 0x4ECDC45C: KColorDialog::KColorDialogPrivate::_setColor(QColor const&, QString const&) (kcolordialog.cpp:1649)
==4441==    by 0x4ECDC6FB: KColorDialog::KColorDialogPrivate::slotColorSelected(QColor const&, QString const&) (kcolordialog.cpp:1622)
==4441==    by 0x4ECE13E4: KColorDialog::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (kcolordialog.moc:288)
==4441== 
==4441== Jump to the invalid address stated on the next line
==4441==    at 0x0: ???
==4441==    by 0x4ECDBE4E: KColorCells::mouseReleaseEvent(QMouseEvent*) (kcolordialog.cpp:445)
==4441==    by 0x4E267454: QWidget::event(QEvent*) (qwidget.cpp:8375)
==4441==    by 0x4E67CE45: QFrame::event(QEvent*) (qframe.cpp:557)
==4441==    by 0x4E70EF53: QAbstractScrollArea::viewportEvent(QEvent*) (qabstractscrollarea.cpp:1043)
==4441==    by 0x4E7B159B: QAbstractItemView::viewportEvent(QEvent*) (qabstractitemview.cpp:1644)
==4441==    by 0x4E7117E5: QAbstractScrollAreaFilter::eventFilter(QObject*, QEvent*) (qabstractscrollarea_p.h:100)
==4441==    by 0x4D40E20D: QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) (qcoreapplication.cpp:1056)
==4441==    by 0x4E20D03D: QApplicationPrivate::notify_helper(QObject*, QEvent*) (qapplication.cpp:4558)
==4441==    by 0x4E21260A: QApplication::notify(QObject*, QEvent*) (qapplication.cpp:4105)
==4441==    by 0x4EDB1A81: KApplication::notify(QObject*, QEvent*) (kapplication.cpp:311)
==4441==    by 0x4D40E08D: QCoreApplication::notifyInternal(QObject*, QEvent*) (qcoreapplication.cpp:946)
==4441==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4441== 
KCrash: Application 'okular' crashing...
KCrash: Attempting to start /usr/libexec/kde4/drkonqi from kdeinit
==4441== Invalid read of size 4
==4441==    at 0x4EE20583: startFromKdeinit(int, char const**) (kcrash.cpp:781)
==4441==    by 0x4EE2129C: KCrash::startProcess(int, char const**, bool) (kcrash.cpp:537)
==4441==    by 0x4EE2172F: KCrash::defaultCrashHandler(int) (kcrash.cpp:435)
==4441==    by 0x4AC4DC17: ??? (in /usr/lib/libc-2.16.so)
==4441==    by 0x4ECDBE4E: KColorCells::mouseReleaseEvent(QMouseEvent*) (kcolordialog.cpp:445)
==4441==    by 0x4E267454: QWidget::event(QEvent*) (qwidget.cpp:8375)
==4441==    by 0x4E67CE45: QFrame::event(QEvent*) (qframe.cpp:557)
==4441==    by 0x4E70EF53: QAbstractScrollArea::viewportEvent(QEvent*) (qabstractscrollarea.cpp:1043)
==4441==    by 0x4E7B159B: QAbstractItemView::viewportEvent(QEvent*) (qabstractitemview.cpp:1644)
==4441==    by 0x4E7117E5: QAbstractScrollAreaFilter::eventFilter(QObject*, QEvent*) (qabstractscrollarea_p.h:100)
==4441==    by 0x4D40E20D: QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) (qcoreapplication.cpp:1056)
==4441==    by 0x4E20D03D: QApplicationPrivate::notify_helper(QObject*, QEvent*) (qapplication.cpp:4558)
==4441==  Address 0x5ed0b88 is 0 bytes inside a block of size 3 alloc'd
==4441==    at 0x4008F6F: malloc (vg_replace_malloc.c:270)
==4441==    by 0x4EE2050F: startFromKdeinit(int, char const**) (kcrash.cpp:660)
==4441==    by 0x4EE2129C: KCrash::startProcess(int, char const**, bool) (kcrash.cpp:537)
==4441==    by 0x4EE2172F: KCrash::defaultCrashHandler(int) (kcrash.cpp:435)
==4441==    by 0x4AC4DC17: ??? (in /usr/lib/libc-2.16.so)
==4441==    by 0x4ECDBE4E: KColorCells::mouseReleaseEvent(QMouseEvent*) (kcolordialog.cpp:445)
==4441==    by 0x4E267454: QWidget::event(QEvent*) (qwidget.cpp:8375)
==4441==    by 0x4E67CE45: QFrame::event(QEvent*) (qframe.cpp:557)
==4441==    by 0x4E70EF53: QAbstractScrollArea::viewportEvent(QEvent*) (qabstractscrollarea.cpp:1043)
==4441==    by 0x4E7B159B: QAbstractItemView::viewportEvent(QEvent*) (qabstractitemview.cpp:1644)
==4441==    by 0x4E7117E5: QAbstractScrollAreaFilter::eventFilter(QObject*, QEvent*) (qabstractscrollarea_p.h:100)
==4441==    by 0x4D40E20D: QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) (qcoreapplication.cpp:1056)
==4441== 
sock_file=/home/martina/.kde/socket-eduroam-244-088.wlan.univie.ac.at/kdeinit4__0
==4441== 
==4441== HEAP SUMMARY:
==4441==     in use at exit: 21,357,772 bytes in 123,007 blocks
==4441==   total heap usage: 525,610 allocs, 402,603 frees, 262,996,463 bytes allocated
==4441== 
==4441== LEAK SUMMARY:
==4441==    definitely lost: 3,156 bytes in 34 blocks
==4441==    indirectly lost: 12,260 bytes in 607 blocks
==4441==      possibly lost: 9,196,776 bytes in 15,810 blocks
==4441==    still reachable: 12,145,580 bytes in 106,556 blocks
==4441==         suppressed: 0 bytes in 0 blocks
==4441== Rerun with --leak-check=full to see details of leaked memory
==4441== 
==4441== For counts of detected and suppressed errors, rerun with: -v
==4441== Use --track-origins=yes to see where uninitialised values come from
==4441== ERROR SUMMARY: 262 errors from 46 contexts (suppressed: 1 from 1)
Comment 8 laleluna.noctiluca 2013-01-27 22:10:34 UTC
Created attachment 76762 [details]
the entire output of # valgrind okular
Comment 9 Albert Astals Cid 2013-01-27 23:03:58 UTC
Ok, i can reproduce now, thanks
Comment 10 Albert Astals Cid 2013-02-06 23:09:42 UTC
Git commit f3f6b9c7d533c3c03ceb47b9de753c74c4e082b9 by Albert Astals Cid.
Committed on 07/02/2013 at 00:08.
Pushed by aacid into branch 'KDE/4.10'.

Fix two bugs in kcolorbutton+tests

Selecting+cancel does not really cancel
Selecting in recent colors crashes
REVIEW: 108637
FIXED-IN: 4.10.1

M  +1    -2    kdeui/colors/kcolorbutton.cpp
M  +1    -0    kdeui/tests/CMakeLists.txt
A  +119  -0    kdeui/tests/kcolorbuttontest.cpp     [License: LGPL (v2+)]
A  +40   -0    kdeui/tests/kcolorbuttontest.h     [License: LGPL (v2+)]

http://commits.kde.org/kdelibs/f3f6b9c7d533c3c03ceb47b9de753c74c4e082b9
Comment 11 Jekyll Wu 2013-02-17 10:18:08 UTC
*** Bug 315309 has been marked as a duplicate of this bug. ***
Comment 12 Albert Astals Cid 2013-02-27 22:41:34 UTC
*** Bug 315878 has been marked as a duplicate of this bug. ***
Comment 13 Jekyll Wu 2013-03-04 13:45:33 UTC
*** Bug 316112 has been marked as a duplicate of this bug. ***
Comment 14 Jekyll Wu 2013-03-31 03:07:37 UTC
*** Bug 317620 has been marked as a duplicate of this bug. ***
Comment 15 Paul 2014-01-06 14:08:50 UTC
Created attachment 84479 [details]
New crash information added by DrKonqi

plasma-desktop (0.4) on KDE Platform 4.9.5 using Qt 4.8.3

Folder widget, description
Set the colour back to the default after changing it to another colour for testing.

Linux Mint 14

-- Backtrace (Reduced):
#6  0xb5b528f1 in QAbstractItemView::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#7  0xb66827ae in KColorCells::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libkdeui.so.5
#8  0xb560f6df in QWidget::event(QEvent*) () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#9  0xb5a1ff15 in QFrame::event(QEvent*) () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#10 0xb5ab0733 in QAbstractScrollArea::viewportEvent(QEvent*) () from /usr/lib/i386-linux-gnu/libQtGui.so.4