Bug 168214

Summary: Kopete crashes opening Tools menu after disabling tex plugin
Product: [Unmaintained] kopete Reporter: Oliver Putz <Regnaron>
Component: Latex PluginAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash CC: mail, mattr
Priority: NOR    
Version First Reported In: 0.12.7   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Oliver Putz 2008-08-03 14:52:00 UTC
Version:           0.12.7 (using 3.5.9, Gentoo)
Compiler:          Target: x86_64-pc-linux-gnu
OS:                Linux (x86_64) release 2.6.25-gentoo-r7

Steps to reproduce:

1) Enable latex plugin (KopeTeX) for kopete
2) Open a conversation with someone
3) Disable the latex plugin (the chat session needs to stay open)
4) Type some tex formula (e.g. $$a_b$$) [You need to type at least $$a_b$ to make it crash.]
5) Click on Tools and see kopete crash with the following backtrace:

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 0x7ff2ccf98700 (LWP 25473)]
[KCrash handler]
#5  0x00007ff2c3820235 in *__GI_raise (sig=<value optimized out>)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#6  0x00007ff2c3821753 in *__GI_abort () at abort.c:88
#7  0x00007ff2c8d796ee in KIconFactory::createPixmap (this=0xf07e10, 
    mode_P=<value optimized out>) at kiconloader.cpp:1264
#8  0x00007ff2c75bb949 in QIconSetPrivate::icon (this=0xf0d1d0, 
    iconSet=0xf07ad0, size=QIconSet::Small, mode=QIconSet::Active, 
    state=QIconSet::Off) at kernel/qiconset.cpp:195
#9  0x00007ff2c75bbcdc in QIconSet::pixmap (this=0xf07ad0, 
    size=QIconSet::Small, mode=QIconSet::Active, state=QIconSet::Off)
    at kernel/qiconset.cpp:520
#10 0x00007ff2c35dd9e2 in PlastikStyle::drawControl (this=0x7bdbe0, 
    element=<value optimized out>, p=0x7fffd4fcc110, widget=0xf069f0, 
    r=@0x7fffd4fcbb00, cg=@0x7b95e8, flags=<value optimized out>, 
    opt=@0x7fffd4fcba90) at plastik.cpp:2545
#11 0x00007ff2c775172d in QPopupMenu::drawItem (this=0xf069f0, 
    p=0x7fffd4fcc110, tab_=71, mi=0xe47bd0, act=true, x=1, y=1, w=320, h=22)
    at widgets/qpopupmenu.cpp:1456
#12 0x00007ff2c7753049 in QPopupMenu::drawContents (this=0xf069f0, 
    p=0x7fffd4fcc110) at widgets/qpopupmenu.cpp:1527
#13 0x00007ff2c76e9a2f in QFrame::paintEvent (this=0xf069f0, 
    event=0x7fffd4fcc970) at widgets/qframe.cpp:520
#14 0x00007ff2c77513d7 in QPopupMenu::paintEvent (this=0xf069f0, 
    e=0x7fffd4fcc970) at widgets/qpopupmenu.cpp:1571
#15 0x00007ff2c7642450 in QWidget::event (this=0xf069f0, e=0x7fffd4fcc970)
    at kernel/qwidget.cpp:4780
#16 0x00007ff2c758397f in QApplication::internalNotify (this=0x7fffd4fcde30, 
    receiver=0xf069f0, e=0x7fffd4fcc970) at kernel/qapplication.cpp:2635
#17 0x00007ff2c75866c5 in QApplication::notify (this=0x7fffd4fcde30, 
    receiver=0xf069f0, e=0x7fffd4fcc970) at kernel/qapplication.cpp:2523
#18 0x00007ff2c8d2d76c in KApplication::notify (this=0x7fffd4fcde30, 
    receiver=0xf069f0, event=0x7fffd4fcc970) at kapplication.cpp:550
#19 0x00007ff2c7542f82 in QWidget::repaint (this=0xf069f0, x=1, y=1, w=320, 
    h=22, erase=true) at kernel/qwidget_x11.cpp:1586
#20 0x00007ff2c77564b6 in QPopupMenu::updateRow (this=0xf069f0, row=0)
    at widgets/qpopupmenu.cpp:2368
#21 0x00007ff2c7757200 in QPopupMenu::setActiveItem (this=0xf069f0, i=0)
    at widgets/qpopupmenu.cpp:2502
#22 0x00007ff2c775d178 in QPopupMenu::mouseMoveEvent (this=0xf069f0, 
    e=0x7fffd4fcd440) at widgets/qpopupmenu.cpp:1787
#23 0x00007ff2c7641f2d in QWidget::event (this=0xf069f0, e=0x7fffd4fcd440)
    at kernel/qwidget.cpp:4664
#24 0x00007ff2c758397f in QApplication::internalNotify (this=0x7fffd4fcde30, 
    receiver=0xf069f0, e=0x7fffd4fcd440) at kernel/qapplication.cpp:2635
#25 0x00007ff2c7585e9c in QApplication::notify (this=0x7fffd4fcde30, 
    receiver=0xf069f0, e=0x7fffd4fcd440) at kernel/qapplication.cpp:2421
#26 0x00007ff2c8d2d76c in KApplication::notify (this=0x7fffd4fcde30, 
    receiver=0xf069f0, event=0x7fffd4fcd440) at kapplication.cpp:550
#27 0x00007ff2c750542e in QApplication::sendSpontaneousEvent (
    receiver=0xf069f0, event=0x7fffd4fcd440) at kernel/qapplication.h:499
#28 0x00007ff2c7503d0a in QETWidget::translateMouseEvent (this=0xf069f0, 
    event=0x7fffd4fcdad0) at kernel/qapplication_x11.cpp:4240
#29 0x00007ff2c7501ec2 in QApplication::x11ProcessEvent (this=0x7fffd4fcde30, 
    event=0x7fffd4fcdad0) at kernel/qapplication_x11.cpp:3449
#30 0x00007ff2c751b5a4 in QEventLoop::processEvents (this=0x750800, flags=4)
    at kernel/qeventloop_x11.cpp:192
#31 0x00007ff2c75a35e5 in QEventLoop::enterLoop (this=0x750800)
    at kernel/qeventloop.cpp:198
#32 0x00007ff2c75a33eb in QEventLoop::exec (this=0x750800)
    at kernel/qeventloop.cpp:145
#33 0x00007ff2c75857c4 in QApplication::exec (this=0x7fffd4fcde30)
    at kernel/qapplication.cpp:2758
#34 0x0000000000438bff in main (argc=<value optimized out>, 
    argv=<value optimized out>) at main.cpp:107
#35 0x00007ff2c380c486 in __libc_start_main (main=0x4386e0 <main>, argc=7, 
    ubp_av=0x7fffd4fce198, init=0x478250 <__libc_csu_init>, 
    fini=<value optimized out>, rtld_fini=<value optimized out>, 
    stack_end=0x7fffd4fce188) at libc-start.c:226
#36 0x0000000000438619 in _start ()
Current language:  auto; currently c
Comment 1 Oliver Putz 2008-08-03 16:00:35 UTC
Modified summary to take the focus off "displaying latex code"
Comment 2 Pino Toscano 2008-08-03 20:07:07 UTC
> #10 0x00007ff2c35dd9e2 in PlastikStyle::drawControl (this=0x7bdbe0, 
>     element=<value optimized out>, p=0x7fffd4fcc110, widget=0xf069f0, 
>     r=@0x7fffd4fcbb00, cg=@0x7b95e8, flags=<value optimized out>, 
>     opt=@0x7fffd4fcba90) at plastik.cpp:2545 

Please report the issue to the developers of this style.
Comment 3 Oliver Putz 2008-08-03 20:50:20 UTC
Frankly, I dont think this bug is theme-related. I can also trigger the bug with other themes (maybe I need to move the window a little or so before it crashes). But this bug not only surfaces with the Plastik style. I'll attach a video of this crash with the "Sunshine" theme.
Comment 4 Oliver Putz 2008-08-03 20:53:48 UTC
The video that shows the bug with the Sunshine theme can be found at: http://oliver-putz.net/bugreports/bug168214.ogv
Comment 5 Matt Rogers 2008-11-18 03:22:13 UTC
can this be reproduced with KDE 4?
Comment 6 Oliver Putz 2008-11-19 11:05:09 UTC
No, I cannot reproduce this crash with kopete from KDE-4.1.73 any longer.
Comment 7 George Kiagiadakis 2009-04-24 11:25:10 UTC
Closing as it is not reproducable anymore.