Bug 296797 - Kate snippets crashed upon the copy of a system snippet to one under the home folder
Summary: Kate snippets crashed upon the copy of a system snippet to one under the home...
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: plugin-snippets (show other bugs)
Version: unspecified
Platform: unspecified Linux
: VHI crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-26 08:45 UTC by Neil Groves
Modified: 2012-10-30 21:19 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.10


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Neil Groves 2012-03-26 08:45:24 UTC
Application: ktesnippets_editor (0.1)
KDE Platform Version: 4.8.1 (4.8.1)
Qt Version: 4.8.0
Operating System: Linux 3.2.0-20-generic x86_64
Distribution: Ubuntu precise (development branch)

-- Information about the crash:
I started editting a snippet within the Kate snippet editor. Upon attempting to commit my changes the editor displayed information that it would copy the system snippet file (installed via apt-get) and place a new version under the home folder.

The crash can be reproduced every time.

-- Backtrace:
Application: Snippets Datafile Editor (ktesnippets_editor), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[KCrash Handler]
#6  internalWinId (this=<optimized out>) at ../../include/QtGui/../../src/gui/kernel/qwidget.h:241
#7  QWidget::effectiveWinId (this=0x14d1410) at kernel/qwidget.cpp:2608
#8  0x000000000040cb6e in EditorApp::openWindow (this=<optimized out>, url=...) at ../../../../../kate/plugins/snippets_tng/editor/editorapp.cpp:69
#9  0x000000000040cde3 in EditorApp::newInstance (this=0x7ffffcb48990) at ../../../../../kate/plugins/snippets_tng/editor/editorapp.cpp:53
#10 0x00007f29f38720b2 in KUniqueApplicationAdaptor::newInstance (this=0x13b4310, asn_id=..., args=...) at ../../kdeui/kernel/kuniqueapplication.cpp:442
#11 0x00007f29f3872134 in qt_static_metacall (_a=0x7ffffcb463d0, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at ./kuniqueapplication_p.moc:58
#12 KUniqueApplicationAdaptor::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=0x7ffffcb463d0) at ./kuniqueapplication_p.moc:52
#13 0x00007f29f387227b in KUniqueApplicationAdaptor::qt_metacall (this=0x13b4310, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7ffffcb463d0) at ./kuniqueapplication_p.moc:102
#14 0x00007f29f25b537b in QDBusConnectionPrivate::deliverCall (this=0x12a3f20, object=0x13b4310, msg=..., metaTypes=..., slotIdx=4) at qdbusintegrator.cpp:947
#15 0x00007f29f25b64dd in QDBusConnectionPrivate::activateCall (this=0x12a3f20, object=0x13b4310, flags=337, msg=...) at qdbusintegrator.cpp:857
#16 0x00007f29f25b6e3b in QDBusConnectionPrivate::activateObject (this=0x12a3f20, node=..., msg=..., pathStartPos=<optimized out>) at qdbusintegrator.cpp:1423
#17 0x00007f29f25b6f2b in QDBusActivateObjectEvent::placeMetaCall (this=0x175fc60) at qdbusintegrator.cpp:1537
#18 0x00007f29f29a2ab6 in QObject::event (this=0x7ffffcb48990, e=<optimized out>) at kernel/qobject.cpp:1195
#19 0x00007f29f1a93414 in QApplication::event (this=0x7ffffcb48990, e=0x175fc60) at kernel/qapplication.cpp:2537
#20 0x00007f29f1a8f6b4 in notify_helper (e=0x175fc60, receiver=0x7ffffcb48990, this=0x12bb8b0) at kernel/qapplication.cpp:4555
#21 QApplicationPrivate::notify_helper (this=0x12bb8b0, receiver=0x7ffffcb48990, e=0x175fc60) at kernel/qapplication.cpp:4527
#22 0x00007f29f1a94533 in QApplication::notify (this=0x7ffffcb48990, receiver=0x7ffffcb48990, e=0x175fc60) at kernel/qapplication.cpp:4416
#23 0x00007f29f386c906 in KApplication::notify (this=0x7ffffcb48990, receiver=0x7ffffcb48990, event=0x175fc60) at ../../kdeui/kernel/kapplication.cpp:311
#24 0x00007f29f298950c in QCoreApplication::notifyInternal (this=0x7ffffcb48990, receiver=0x7ffffcb48990, event=0x175fc60) at kernel/qcoreapplication.cpp:876
#25 0x00007f29f298d2da in sendEvent (event=0x175fc60, receiver=0x7ffffcb48990) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#26 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x127b670) at kernel/qcoreapplication.cpp:1500
#27 0x00007f29f29b8603 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#28 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279
#29 0x00007f29ee55ad8a in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007f29ee55b150 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007f29ee55b214 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007f29f29b8a2f in QEventDispatcherGlib::processEvents (this=0x127cb30, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#33 0x00007f29f1b37b1e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#34 0x00007f29f29882f2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#35 0x00007f29f2988547 in QEventLoop::exec (this=0x7ffffcb470a0, flags=...) at kernel/qeventloop.cpp:204
#36 0x00007f29f1f60236 in QDialog::exec (this=0x7ffffcb47110) at dialogs/qdialog.cpp:552
#37 0x000000000040ec74 in SnippetEditorWindow::SnippetEditorWindow (this=0x14d5c70, modes=..., url=...) at ../../../../../kate/plugins/snippets_tng/editor/snippeteditorwindow.cpp:134
#38 0x000000000040cbb6 in EditorApp::openWindow (this=0x7ffffcb48990, url=...) at ../../../../../kate/plugins/snippets_tng/editor/editorapp.cpp:72
#39 0x000000000040cde3 in EditorApp::newInstance (this=0x7ffffcb48990) at ../../../../../kate/plugins/snippets_tng/editor/editorapp.cpp:53
#40 0x00007f29f38720b2 in KUniqueApplicationAdaptor::newInstance (this=0x13b4310, asn_id=..., args=...) at ../../kdeui/kernel/kuniqueapplication.cpp:442
#41 0x00007f29f3872134 in qt_static_metacall (_a=0x7ffffcb47c50, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at ./kuniqueapplication_p.moc:58
#42 KUniqueApplicationAdaptor::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=0x7ffffcb47c50) at ./kuniqueapplication_p.moc:52
#43 0x00007f29f387227b in KUniqueApplicationAdaptor::qt_metacall (this=0x13b4310, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7ffffcb47c50) at ./kuniqueapplication_p.moc:102
#44 0x00007f29f25b537b in QDBusConnectionPrivate::deliverCall (this=0x12a3f20, object=0x13b4310, msg=..., metaTypes=..., slotIdx=4) at qdbusintegrator.cpp:947
#45 0x00007f29f25b641d in QDBusConnectionPrivate::activateCall (this=0x12a3f20, object=0x13b4310, flags=337, msg=...) at qdbusintegrator.cpp:850
#46 0x00007f29f25b6e3b in QDBusConnectionPrivate::activateObject (this=0x12a3f20, node=..., msg=..., pathStartPos=<optimized out>) at qdbusintegrator.cpp:1423
#47 0x00007f29f25b6f2b in QDBusActivateObjectEvent::placeMetaCall (this=0x13b5550) at qdbusintegrator.cpp:1537
#48 0x00007f29f29a2ab6 in QObject::event (this=0x7ffffcb48990, e=<optimized out>) at kernel/qobject.cpp:1195
#49 0x00007f29f1a93414 in QApplication::event (this=0x7ffffcb48990, e=0x13b5550) at kernel/qapplication.cpp:2537
#50 0x00007f29f1a8f6b4 in notify_helper (e=0x13b5550, receiver=0x7ffffcb48990, this=0x12bb8b0) at kernel/qapplication.cpp:4555
#51 QApplicationPrivate::notify_helper (this=0x12bb8b0, receiver=0x7ffffcb48990, e=0x13b5550) at kernel/qapplication.cpp:4527
#52 0x00007f29f1a94533 in QApplication::notify (this=0x7ffffcb48990, receiver=0x7ffffcb48990, e=0x13b5550) at kernel/qapplication.cpp:4416
#53 0x00007f29f386c906 in KApplication::notify (this=0x7ffffcb48990, receiver=0x7ffffcb48990, event=0x13b5550) at ../../kdeui/kernel/kapplication.cpp:311
#54 0x00007f29f298950c in QCoreApplication::notifyInternal (this=0x7ffffcb48990, receiver=0x7ffffcb48990, event=0x13b5550) at kernel/qcoreapplication.cpp:876
#55 0x00007f29f298d2da in sendEvent (event=0x13b5550, receiver=0x7ffffcb48990) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#56 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x127b670) at kernel/qcoreapplication.cpp:1500
#57 0x00007f29f29b8603 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#58 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279
#59 0x00007f29ee55ad8a in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#60 0x00007f29ee55b150 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#61 0x00007f29ee55b214 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#62 0x00007f29f29b8a2f in QEventDispatcherGlib::processEvents (this=0x127cb30, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#63 0x00007f29f1b37b1e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#64 0x00007f29f29882f2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#65 0x00007f29f2988547 in QEventLoop::exec (this=0x7ffffcb48920, flags=...) at kernel/qeventloop.cpp:204
#66 0x00007f29f298d5d7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#67 0x000000000040c57e in main (argc=2, argv=0x7ffffcb48c28) at ../../../../../kate/plugins/snippets_tng/editor/editor.cpp:34

Reported using DrKonqi
Comment 1 Dominik Haumann 2012-03-26 17:24:13 UTC
Jowenn, can you have a look?
Comment 2 Christian Krippendorf 2012-10-07 17:49:05 UTC
I'm sorry but i can't follow how this crash occurs.

Please give me some more informations. :-)

Regards
Comment 3 Christoph Cullmann 2012-10-30 12:31:51 UTC
Git commit 591cac23e70badd106436553a89e137d5087d3eb by Christoph Cullmann.
Committed on 30/10/2012 at 13:28.
Pushed by cullmann into branch 'master'.

Default to the new snippets code from part and avoid duplicated functionality.
Some functions still need porting, therefore keeping code around.

This closes the following bugs, as these dialogs and the plugin are no longer used:
Related: bug 296244

M  +1    -1    kate/plugins/CMakeLists.txt

http://commits.kde.org/kate/591cac23e70badd106436553a89e137d5087d3eb