<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>228980</bug_id>
          
          <creation_ts>2010-02-28 23:41:22 +0000</creation_ts>
          <short_desc>Kate crashes on deleting large selection</short_desc>
          <delta_ts>2010-03-01 23:52:40 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kate</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>226409</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Vladislav Blanton">vblanton</reporter>
          <assigned_to name="KWrite Developers">kwrite-bugs-null</assigned_to>
          <cc>s.zelman</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>926483</commentid>
    <comment_count>0</comment_count>
    <who name="Vladislav Blanton">vblanton</who>
    <bug_when>2010-02-28 23:41:22 +0000</bug_when>
    <thetext>Application: kate (3.4.0)
KDE Platform Version: 4.4.00 (KDE 4.4.0)
Qt Version: 4.6.1
Operating System: Linux 2.6.31-20-generic i686
Distribution: Ubuntu 9.10

-- Information about the crash:
Dear bugsquashers,

In a kate session with ~40 files (mixed .css, .html, .php, .js, and simply text) I selected a large portion of an .html file&apos;s text and hit the &quot;Del&quot; button.  Kate crashed at this moment.  The only thing special that I can think of is that I had clicked the little collapsing triangle to the left of a large chunk of javascript a moment earlier to hide the code from view.

 -- Backtrace:
Application: Kate (kdeinit4), signal: Segmentation fault
[Current thread is 1 (Thread 0xb7761980 (LWP 6911))]

Thread 2 (Thread 0xb4fa8b70 (LWP 6912)):
#0  0x0063f422 in __kernel_vsyscall ()
#1  0x00a19e15 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x02bb1887 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x2c8a1a0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2304
#3  0x02bb18d1 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x2c8a1a0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1438
#4  0x00a1580e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#5  0x01ec38de in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb7761980 (LWP 6911)):
[KCrash Handler]
#6  KateLineLayout::viewLineCount (this=0x0) at ../../kate/render/katelinelayout.cpp:173
#7  0x022fd5bc in KateLayoutCache::viewLine (this=0xb86e888, realCursor=...) at ../../kate/render/katelayoutcache.cpp:395
#8  0x0236af52 in KateViewInternal::viewLineOffset (this=0xb86f1f8, virtualCursor=..., offset=43, keepX=false) at ../../kate/view/kateviewinternal.cpp:1349
#9  0x0236e6c4 in KateViewInternal::makeVisible (this=0xb86f1f8, c=..., endCol=4, force=false, center=false, calledExternally=false) at ../../kate/view/kateviewinternal.cpp:666
#10 0x0236ef50 in KateViewInternal::updateCursor (this=0xb86f1f8, newCursor=..., force=true, center=&lt;value optimized out&gt;, calledExternally=&lt;value optimized out&gt;)
    at ../../kate/view/kateviewinternal.cpp:1912
#11 0x0236fcdb in KateViewInternal::editEnd (this=0xb86f1f8, editTagLineStart=144, editTagLineEnd=144, tagFrom=true) at ../../kate/view/kateviewinternal.cpp:3397
#12 0x0234e3e9 in KateView::editEnd (this=0xb83f910, editTagLineStart=144, editTagLineEnd=144, tagFrom=&lt;value optimized out&gt;) at ../../kate/view/kateview.cpp:1603
#13 0x022b6504 in KateDocument::editEnd (this=0xaac4bc0) at ../../kate/document/katedocument.cpp:981
#14 0x02355d0d in KateView::removeSelectedText (this=0xb83f910) at ../../kate/view/kateview.cpp:1775
#15 0x022bf5d1 in KateDocument::backspace (this=0xaac4bc0, view=0xb83f910, c=...) at ../../kate/document/katedocument.cpp:2817
#16 0x023638a1 in KateViewInternal::doBackspace (this=0xb86f1f8) at ../../kate/view/kateviewinternal.cpp:854
#17 0x0235172c in KateView::backspace (this=0xb83f910) at ../../kate/view/kateview.cpp:2296
#18 0x02356594 in KateView::qt_metacall (this=0xb83f910, _c=QMetaObject::InvokeMetaMethod, _id=51, _a=0xbff4a5b8) at ./kateview.moc:373
#19 0x004fef6a in QMetaObject::metacall (object=0xb83f910, cl=QMetaObject::ReadProperty, idx=90, argv=0xbff4a5b8) at kernel/qmetaobject.cpp:237
#20 0x0050d705 in QMetaObject::activate (sender=0xb928cd8, m=0x39bed58, local_signal_index=1, argv=0xbff4a5b8) at kernel/qobject.cpp:3275
#21 0x03092a39 in QAction::triggered (this=0xb928cd8, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#22 0x03094c4c in QAction::activate (this=0xb928cd8, event=QAction::Trigger) at kernel/qaction.cpp:1251
#23 0x03096538 in QAction::event (this=0xa0c71a8, e=0x0) at kernel/qaction.cpp:1177
#24 0x00e0fed3 in KAction::event (this=0xb928cd8, event=0xbff4aad8) at ../../kdeui/actions/kaction.cpp:129
#25 0x0309927c in QApplicationPrivate::notify_helper (this=0x9f3db50, receiver=0xb928cd8, e=0xbff4aad8) at kernel/qapplication.cpp:4298
#26 0x0309fede in QApplication::notify (this=0xbff4b9f4, receiver=0xb928cd8, e=0xbff4aad8) at kernel/qapplication.cpp:3702
#27 0x00efc1fa in KApplication::notify (this=0xbff4b9f4, receiver=0xb928cd8, event=0xbff4aad8) at ../../kdeui/kernel/kapplication.cpp:302
#28 0x004f9cfb in QCoreApplication::notifyInternal (this=0xbff4b9f4, receiver=0xb928cd8, event=0xbff4aad8) at kernel/qcoreapplication.cpp:704
#29 0x030db1ed in QCoreApplication::sendEvent (this=0x9f3dbfc, e=0xbff4af54) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#30 QShortcutMap::dispatchEvent (this=0x9f3dbfc, e=0xbff4af54) at kernel/qshortcutmap.cpp:879
#31 0x030dcfde in QShortcutMap::tryShortcutEvent (this=0x9f3dbfc, o=0xb86f1f8, e=0xbff4af54) at kernel/qshortcutmap.cpp:364
#32 0x030a1c9d in QApplication::notify (this=0xbff4b9f4, receiver=0xb86f1f8, e=0xbff4af54) at kernel/qapplication.cpp:3744
#33 0x00efc1fa in KApplication::notify (this=0xbff4b9f4, receiver=0xb86f1f8, event=0xbff4af54) at ../../kdeui/kernel/kapplication.cpp:302
#34 0x004f9cfb in QCoreApplication::notifyInternal (this=0xbff4b9f4, receiver=0xb86f1f8, event=0xbff4af54) at kernel/qcoreapplication.cpp:704
#35 0x0309a15e in QCoreApplication::sendSpontaneousEvent (receiver=0xb86f1f8, event=0xa0c71a8) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#36 qt_sendSpontaneousEvent (receiver=0xb86f1f8, event=0xa0c71a8) at kernel/qapplication.cpp:5277
#37 0x03153150 in QKeyMapper::sendKeyEvent (keyWidget=0xb86f1f8, grab=false, type=QEvent::KeyPress, code=16777219, modifiers=..., text=..., autorepeat=&lt;value optimized out&gt;, 
    count=&lt;value optimized out&gt;, nativeScanCode=22, nativeVirtualKey=65288, nativeModifiers=0) at kernel/qkeymapper_x11.cpp:1861
#38 0x03155699 in QKeyMapperPrivate::translateKeyEvent (this=0x9f7ed08, keyWidget=0xb86f1f8, event=0xbff4b60c, grab=false) at kernel/qkeymapper_x11.cpp:1831
#39 0x03128dc7 in QApplication::x11ProcessEvent (this=0xbff4b9f4, event=0xbff4b60c) at kernel/qapplication_x11.cpp:3394
#40 0x0315895a in x11EventSourceDispatch (s=0x9f3dc98, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#41 0x08cade88 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#42 0x08cb1730 in ?? () from /lib/libglib-2.0.so.0
#43 0x08cb1863 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#44 0x005258e5 in QEventDispatcherGlib::processEvents (this=0x9f3b358, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#45 0x03158485 in QGuiEventDispatcherGlib::processEvents (this=0x9f3b358, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#46 0x004f8319 in QEventLoop::processEvents (this=0xbff4b904, flags=) at kernel/qeventloop.cpp:149
#47 0x004f876a in QEventLoop::exec (this=0xbff4b904, flags=...) at kernel/qeventloop.cpp:201
#48 0x004fc95f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#49 0x03099317 in QApplication::exec () at kernel/qapplication.cpp:3577
#50 0x01388a25 in kdemain () from /usr/lib/libkdeinit4_kate.so
#51 0x0804dff7 in launch (argc=&lt;value optimized out&gt;, _name=&lt;value optimized out&gt;, args=&lt;value optimized out&gt;, cwd=0x0, envc=1, envs=0x9f1fe69 &quot;DISPLAY=:0.0&quot;, reset_env=false, tty=0x0, 
    avoid_loops=false, startup_id_str=0x8051405 &quot;0&quot;) at ../../kinit/kinit.cpp:717
#52 0x0804ec15 in handle_launcher_request (sock=&lt;value optimized out&gt;, who=&lt;value optimized out&gt;) at ../../kinit/kinit.cpp:1209
#53 0x0804f08c in handle_requests (waitForPid=&lt;value optimized out&gt;) at ../../kinit/kinit.cpp:1402
#54 0x0804fe2f in main (argc=4, argv=0xbff4c944, envp=0xbff4c958) at ../../kinit/kinit.cpp:1841

Possible duplicates by query: bug 226322, bug 224308, bug 224073, bug 223406, bug 203884.

Reported using DrKonqi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>926784</commentid>
    <comment_count>1</comment_count>
    <who name="Dominik Haumann">dhaumann</who>
    <bug_when>2010-03-01 18:02:27 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 226409 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>926929</commentid>
    <comment_count>2</comment_count>
    <who name="Dominik Haumann">dhaumann</who>
    <bug_when>2010-03-01 23:52:40 +0000</bug_when>
    <thetext>*** Bug 229071 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>