Bug 216833

Summary: any ruby plasmoid crash, if adding too quickly
Product: [Unmaintained] plasma4 Reporter: Petr Šigut <facebook>
Component: scriptenginesAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: andresbajotierra, asraniel, kde-bindings
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Petr Šigut 2009-11-30 17:21:46 UTC
Version:            (using KDE 4.3.2)
OS:                Linux
Installed from:    Ubuntu Packages

If I am adding plasmoids written in ruby too quickly through Add Widgets dialog, plasma-desktop crash. I tried for example "WebPage subset or HTML Widget", or minimal plasmoid made according to the tutorial here:

http://techbase.kde.org/Development/Tutorials/Plasma/Ruby/SimplePasteApplet

you can download it here:
http://tmp.sigut.net/ruby-test.zip

I tested in Ubuntu 9.10 and Fedora 12, the same results, plasma-desktop crash...

I very appreciate your help.
Comment 1 Petr Šigut 2009-11-30 21:19:48 UTC
I did not find which packages I need to solve this: (Ubuntu 9.10)
0xa75ea394 in ?? () from /usr/lib/libsmokeqt.so.2
#9  0xa788b4ac in ?? () from /usr/lib/libqtruby4shared.so.2


Application: Plasma Workspace (kdeinit4), signal: Segmentation fault
The current source language is "auto; currently c".
[Current thread is 1 (Thread 0xb5823700 (LWP 1950))]

Thread 2 (Thread 0xa8d9ab70 (LWP 1951)):
#0  0xb7859832 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0xb5f7de15 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0xb614178d in __pthread_cond_wait (cond=0x8a09110, mutex=0x8a090f8) at forward.c:139
#3  0xb7656e67 in QWaitConditionPrivate::wait (this=0x89f2908, mutex=0x89f2904, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#4  QWaitCondition::wait (this=0x89f2908, mutex=0x89f2904, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#5  0xb5e8f922 in QHostInfoAgent::run (this=0x89f28f8) at kernel/qhostinfo.cpp:260
#6  0xb7655e32 in QThreadPrivate::start (arg=0x89f28f8) at thread/qthread_unix.cpp:188
#7  0xb5f7980e in start_thread (arg=0xa8d9ab70) at pthread_create.c:300
#8  0xb61347ee in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb5823700 (LWP 1950)):
[KCrash Handler]
#6  QMetaObject::indexOfSignal (this=0x8cec358, signal=0x8bcf781 "releaseVisualFocus()") at kernel/qmetaobject.cpp:582
#7  0xb77581c7 in QObject::connect (sender=0x910bfb8, signal=0x8bd7be8 "2releaseVisualFocus()", receiver=0x8de90b0, method=0x8bcf780 "2releaseVisualFocus()", type=Qt::AutoConnection)
    at kernel/qobject.cpp:2497
#8  0xa75ea394 in ?? () from /usr/lib/libsmokeqt.so.2
#9  0xa788b4ac in ?? () from /usr/lib/libqtruby4shared.so.2
#10 0xa788913e in QtRuby::MethodCallBase::next() () from /usr/lib/libqtruby4shared.so.2
#11 0xa7856f53 in method_missing(int, unsigned long*, unsigned long) () from /usr/lib/libqtruby4shared.so.2
#12 0xa790c878 in call_cfunc (func=0xa7856c20 <method_missing(int, unsigned long*, unsigned long)>, recv=1852405345, len=-1, argc=5, argv=0xbfc77c20) at eval.c:5762
#13 0xa7917c1e in rb_call0 (klass=<value optimized out>, recv=<value optimized out>, id=4057, oid=4057, argc=5, argv=0xbfc77c20, body=0x8ee51a8, flags=0) at eval.c:5917
#14 0xa7917dba in rb_call (klass=149836500, recv=2801745680, mid=4057, argc=5, argv=0xbfc77c20, scope=3, self=6) at eval.c:6164
#15 0xa7920fcc in rb_call_super (argc=5, argv=0xbfc77c20) at eval.c:6332
#16 0xa7912910 in rb_eval (self=<value optimized out>, n=<value optimized out>) at eval.c:3569
#17 0xa7915518 in rb_eval (self=3217524500, n=<value optimized out>) at eval.c:3319
#18 0xa7917ab9 in rb_call0 (klass=<value optimized out>, recv=<value optimized out>, id=4057, oid=4057, argc=5, argv=0xbfc78710, body=0x903be1c, flags=0) at eval.c:6068
#19 0xa7917dba in rb_call (klass=2801811360, recv=2801745680, mid=4057, argc=5, argv=0xbfc78710, scope=1, self=6) at eval.c:6164
#20 0xa79186b9 in rb_funcall2 (recv=1852405345, mid=4057, argc=5, argv=0xbfc78710) at eval.c:6300
#21 0xa791e77a in method_missing (obj=<value optimized out>, id=<value optimized out>, argc=4, argv=0xbfc78c00, call_status=8) at eval.c:5742
#22 0xa7917e40 in rb_call (klass=149836500, recv=2801745680, mid=11057, argc=4, argv=0xbfc78c00, scope=3, self=6) at eval.c:6143
#23 0xa7920fcc in rb_call_super (argc=4, argv=0xbfc78c00) at eval.c:6332
#24 0xa7018231 in ?? () from /usr/lib/ruby/1.8/i486-linux/qtruby4.so
#25 0xa790c878 in call_cfunc (func=0xbfc78c00, recv=1852405345, len=-1, argc=4, argv=0xbfc78c00) at eval.c:5762
#26 0xa7917c1e in rb_call0 (klass=<value optimized out>, recv=<value optimized out>, id=11057, oid=11057, argc=4, argv=0xbfc78c00, body=0xa6fecaf8, flags=0) at eval.c:5917
#27 0xa7917dba in rb_call (klass=150963800, recv=2801745680, mid=11057, argc=4, argv=0xbfc78c00, scope=1, self=2801745680) at eval.c:6164
#28 0xa7914edc in rb_eval (self=<value optimized out>, n=<value optimized out>) at eval.c:3518
#29 0xa7917ab9 in rb_call0 (klass=<value optimized out>, recv=<value optimized out>, id=2961, oid=2961, argc=1, argv=0xbfc79360, body=0x903d708, flags=2) at eval.c:6068
#30 0xa7917dba in rb_call (klass=2801811360, recv=2801745680, mid=2961, argc=1, argv=0xbfc79360, scope=3, self=6) at eval.c:6164
#31 0xa7920fcc in rb_call_super (argc=1, argv=0xbfc79360) at eval.c:6332
#32 0xa7912910 in rb_eval (self=<value optimized out>, n=<value optimized out>) at eval.c:3569
#33 0xa7917ab9 in rb_call0 (klass=<value optimized out>, recv=<value optimized out>, id=2961, oid=2961, argc=1, argv=0xbfc79e20, body=0xa6ff52c0, flags=2) at eval.c:6068
#34 0xa7917dba in rb_call (klass=2801773520, recv=2801745680, mid=2961, argc=1, argv=0xbfc79e20, scope=1, self=6) at eval.c:6164
#35 0xa79186b9 in rb_funcall2 (recv=1852405345, mid=2961, argc=1, argv=0xbfc79e20) at eval.c:6300
#36 0xa7918757 in rb_obj_call_init (obj=2801745680, argc=1, argv=0xbfc79e20) at eval.c:7800
#37 0xa70177bb in ?? () from /usr/lib/ruby/1.8/i486-linux/qtruby4.so
#38 0xa790c878 in call_cfunc (func=0xa6ff3f10, recv=1852405345, len=-1, argc=1, argv=0xbfc79e20) at eval.c:5762
#39 0xa7917c1e in rb_call0 (klass=<value optimized out>, recv=<value optimized out>, id=3361, oid=3361, argc=1, argv=0xbfc79e20, body=0x8ee525c, flags=0) at eval.c:5917
#40 0xa7917dba in rb_call (klass=149836480, recv=2801773520, mid=3361, argc=1, argv=0xbfc79e20, scope=0, self=2801752420) at eval.c:6164
#41 0xa7914fcb in rb_eval (self=<value optimized out>, n=<value optimized out>) at eval.c:3503
#42 0xa79146a6 in rb_eval (self=0, n=<value optimized out>) at eval.c:3708
#43 0xa7917ab9 in rb_call0 (klass=<value optimized out>, recv=<value optimized out>, id=10985, oid=10985, argc=0, argv=0xbfc7ac20, body=0x9035328, flags=0) at eval.c:6068
#44 0xa7917dba in rb_call (klass=2801796520, recv=2801752420, mid=10985, argc=0, argv=0xbfc7ac20, scope=1, self=6) at eval.c:6164
#45 0xa79186b9 in rb_funcall2 (recv=1852405345, mid=10985, argc=0, argv=0xbfc7ac20) at eval.c:6300
#46 0xa788906b in ?? () from /usr/lib/libqtruby4shared.so.2
#47 0xa790e371 in rb_protect (proc=0xa7889030, data=2801752420, state=0xbfc7ab88) at eval.c:5539
#48 0xa788a630 in QtRuby::VirtualMethodCall::callMethod() () from /usr/lib/libqtruby4shared.so.2
#49 0xa788913e in QtRuby::MethodCallBase::next() () from /usr/lib/libqtruby4shared.so.2
#50 0xa7858e36 in QtRuby::Binding::callMethod(short, void*, Smoke::StackItem*, bool) () from /usr/lib/libqtruby4shared.so.2
#51 0xa77dc300 in ?? () from /usr/lib/libsmokeplasma.so.2
#52 0xb565f204 in Plasma::Applet::init (this=0x8d6faa8) at ../../plasma/applet.cpp:205
#53 0xb56752bf in Plasma::Containment::addApplet (this=0x864daf8, applet=0x910bfb8, pos=..., delayInit=false) at ../../plasma/containment.cpp:817
#54 0xb567550b in Plasma::ContainmentPrivate::addApplet (this=0x8719648, name=..., args=..., appletGeometry=..., id=0, delayInit=<value optimized out>) at ../../plasma/containment.cpp:1857
#55 0xb5675769 in Plasma::Containment::addApplet (this=0x864daf8, name=..., args=..., appletGeometry=...) at ../../plasma/containment.cpp:749
#56 0xb448cab3 in Plasma::AppletBrowserWidget::addApplet (this=0x8bbced8) at ../../../../plasma/shells/common/appletbrowser.cpp:265
#57 0xb4490ee3 in Plasma::AppletBrowserWidget::qt_metacall (this=0x8bbced8, _c=QMetaObject::InvokeMetaMethod, _id=27, _a=0xbfc7b088) at ./appletbrowser.moc:80
#58 0xb775c263 in QMetaObject::activate (sender=0x8c11738, from_signal_index=29, to_signal_index=29, argv=0xbfc7b088) at kernel/qobject.cpp:3113
#59 0xb775cec2 in QMetaObject::activate (sender=0x8c11738, m=0xb44ae510, local_signal_index=2, argv=0xbfc7b088) at kernel/qobject.cpp:3187
#60 0xb4492e03 in KCategorizedItemsView::doubleClicked (this=0x8c11738, _t1=...) at ./kcategorizeditemsview_p.moc:121
#61 0xb4494325 in KCategorizedItemsView::qt_metacall (this=0x8c11738, _c=QMetaObject::InvokeMetaMethod, _id=35, _a=0xbfc7b1a8) at ./kcategorizeditemsview_p.moc:94
#62 0xb775c263 in QMetaObject::activate (sender=0x8d73f80, from_signal_index=33, to_signal_index=33, argv=0xbfc7b1a8) at kernel/qobject.cpp:3113
#63 0xb775cec2 in QMetaObject::activate (sender=0x8d73f80, m=0xb6c2d884, local_signal_index=2, argv=0xbfc7b1a8) at kernel/qobject.cpp:3187
#64 0xb6906003 in QAbstractItemView::doubleClicked (this=0x8d73f80, _t1=...) at .moc/release-shared/moc_qabstractitemview.cpp:328
#65 0xb6957e9f in QTreeView::mouseDoubleClickEvent (this=0x8d73f80, event=0xbfc7bab0) at itemviews/qtreeview.cpp:1831
#66 0xb6414e47 in QWidget::event (this=0x8d73f80, event=0xbfc7bab0) at kernel/qwidget.cpp:7553
#67 0xb67c4633 in QFrame::event (this=0x8d73f80, e=0xbfc7bab0) at widgets/qframe.cpp:559
#68 0xb6863494 in QAbstractScrollArea::viewportEvent (this=0x8e0a3204, e=0x8503d7e4) at widgets/qabstractscrollarea.cpp:962
#69 0xb6917087 in QAbstractItemView::viewportEvent (this=0x8d73f80, event=0xbfc7bab0) at itemviews/qabstractitemview.cpp:1476
#70 0xb6952434 in QTreeView::viewportEvent (this=0x8d73f80, event=0xbfc7bab0) at itemviews/qtreeview.cpp:1266
#71 0xb6865a95 in QAbstractScrollAreaPrivate::viewportEvent (this=0x88b1c40, o=0x8c88690, e=0xbfc7bab0) at widgets/qabstractscrollarea_p.h:100
#72 QAbstractScrollAreaFilter::eventFilter (this=0x88b1c40, o=0x8c88690, e=0xbfc7bab0) at widgets/qabstractscrollarea_p.h:111
#73 0xb774583a in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x83a9bf8, receiver=0x8c88690, event=0xbfc7bab0) at kernel/qcoreapplication.cpp:726
#74 0xb63bff2c in QApplicationPrivate::notify_helper (this=0x83a9bf8, receiver=0x8c88690, e=0xbfc7bab0) at kernel/qapplication.cpp:4052
#75 0xb63c8033 in QApplication::notify (this=0x8382d98, receiver=0x8c88690, e=0xbfc7bab0) at kernel/qapplication.cpp:3758
#76 0xb6e0fbfa in KApplication::notify (this=0x8382d98, receiver=0x8c88690, event=0xbfc7bab0) at ../../kdeui/kernel/kapplication.cpp:302
#77 0xb77466cb in QCoreApplication::notifyInternal (this=0x8382d98, receiver=0x8c88690, event=0xbfc7bab0) at kernel/qcoreapplication.cpp:610
#78 0xb63c6f6e in QCoreApplication::sendSpontaneousEvent (receiver=0x8c88690, event=0xbfc7bab0, alienWidget=0x8c88690, nativeWidget=0x8d0abd8, buttonDown=0xb6c3aaa0, lastMouseReceiver=...)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#79 QApplicationPrivate::sendMouseEvent (receiver=0x8c88690, event=0xbfc7bab0, alienWidget=0x8c88690, nativeWidget=0x8d0abd8, buttonDown=0xb6c3aaa0, lastMouseReceiver=...)
    at kernel/qapplication.cpp:2924
#80 0xb64357c0 in QETWidget::translateMouseEvent (this=0x8d0abd8, event=0xbfc7d0fc) at kernel/qapplication_x11.cpp:4409
#81 0xb6434c4b in QApplication::x11ProcessEvent (this=0x8382d98, event=0xbfc7d0fc) at kernel/qapplication_x11.cpp:3428
#82 0xb6461502 in x11EventSourceDispatch (s=0x83ac900, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#83 0xb5fc5e78 in g_main_dispatch (context=0x83abc90) at /build/buildd/glib2.0-2.22.2/glib/gmain.c:1960
#84 IA__g_main_context_dispatch (context=0x83abc90) at /build/buildd/glib2.0-2.22.2/glib/gmain.c:2513
#85 0xb5fc9720 in g_main_context_iterate (context=0x83abc90, block=<value optimized out>, dispatch=1, self=0x83a9700) at /build/buildd/glib2.0-2.22.2/glib/gmain.c:2591
#86 0xb5fc9853 in IA__g_main_context_iteration (context=0x83abc90, may_block=1) at /build/buildd/glib2.0-2.22.2/glib/gmain.c:2654
#87 0xb777102c in QEventDispatcherGlib::processEvents (this=0x83a9858, flags=...) at kernel/qeventdispatcher_glib.cpp:327
#88 0xb6460be5 in QGuiEventDispatcherGlib::processEvents (this=0x83a9858, flags=...) at kernel/qguieventdispatcher_glib.cpp:202
#89 0xb7744c79 in QEventLoop::processEvents (this=0xbfc7d3f4, flags=) at kernel/qeventloop.cpp:149
#90 0xb77450ca in QEventLoop::exec (this=0xbfc7d3f4, flags=...) at kernel/qeventloop.cpp:201
#91 0xb774753f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#92 0xb63bfdd7 in QApplication::exec () at kernel/qapplication.cpp:3525
#93 0xb446a80d in kdemain (argc=1, argv=0x836c378) at ../../../../plasma/shells/desktop/main.cpp:50
#94 0x0804dde1 in launch (argc=<value optimized out>, _name=<value optimized out>, args=<value optimized out>, cwd=0x0, envc=0, envs=0x8331b10 "", reset_env=false, tty=0x0, avoid_loops=false, 
    startup_id_str=0x80511a5 "0") at ../../kinit/kinit.cpp:677
#95 0x0804ea35 in handle_launcher_request (sock=<value optimized out>, who=<value optimized out>) at ../../kinit/kinit.cpp:1169
#96 0x0804eeac in handle_requests (waitForPid=<value optimized out>) at ../../kinit/kinit.cpp:1362
#97 0x0804fbaf in main (argc=2, argv=0xbfc7dc54, envp=0xbfc7dc60) at ../../kinit/kinit.cpp:1793
Comment 2 Dario Andres 2010-03-22 00:04:00 UTC
Merging with bug 227006. Regards

*** This bug has been marked as a duplicate of bug 227006 ***