<?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>314245</bug_id>
          
          <creation_ts>2013-02-01 11:31:01 +0000</creation_ts>
          <short_desc>Kate Crash on Folding/unlolding code blocks</short_desc>
          <delta_ts>2013-02-20 10:57:49 +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>folding</component>
          <version>unspecified</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>311866</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="Ovidiu-Florin BOGDAN">kde.kfoar</reporter>
          <assigned_to name="KWrite Developers">kwrite-bugs-null</assigned_to>
          <cc>kde.kfoar</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>1337074</commentid>
    <comment_count>0</comment_count>
    <who name="Ovidiu-Florin BOGDAN">kde.kfoar</who>
    <bug_when>2013-02-01 11:31:01 +0000</bug_when>
    <thetext>Application: kate (3.9.5)
KDE Platform Version: 4.9.5
Qt Version: 4.8.2
Operating System: Linux 3.2.0-36-generic x86_64
Distribution: Ubuntu 12.04.1 LTS

-- Information about the crash:
- What I was doing when the application crashed:

I had a C++ source file opened.
Folded all the code blocks starting with the level 4 to top Level using View -&gt; Code Folding -&gt; Fold Nodes in Level ...
After I&apos;ve folded all of them, I tried to unfold the second level using: View -&gt; Code Folding -&gt; Unfold Nodes in Level 2.
The first time I did this Kate crashed. The second time I tried the exact same thing all the code in the text view area dissapeared.

The crash can be reproduced every time.

-- Backtrace:
Application: Kate (kate), signal: Segmentation fault
Using host libthread_db library &quot;/lib/x86_64-linux-gnu/libthread_db.so.1&quot;.
[Current thread is 1 (Thread 0x7fa849c8a780 (LWP 9220))]

Thread 3 (Thread 0x7fa83519c700 (LWP 9221)):
#0  0x00007fa8467195c0 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fa8466ddc49 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fa8466de0a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fa8466de164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fa8474a0906 in QEventDispatcherGlib::processEvents (this=0x7fa8300008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007fa84746fe42 in QEventLoop::processEvents (this=&lt;optimized out&gt;, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007fa847470097 in QEventLoop::exec (this=0x7fa83519bdc0, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007fa84736f057 in QThread::exec (this=&lt;optimized out&gt;) at thread/qthread.cpp:501
#8  0x00007fa8474516f8 in QDnotifySignalThread::run (this=0xdb67b0) at io/qfilesystemwatcher_dnotify.cpp:179
#9  0x00007fa84737207b in QThreadPrivate::start (arg=0xdb67b0) at thread/qthread_unix.cpp:307
#10 0x00007fa846baae9a in start_thread (arg=0x7fa83519c700) at pthread_create.c:308
#11 0x00007fa8495cccbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fa834949700 (LWP 9222)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fa8375a1222 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#2  0x00007fa8375a1259 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#3  0x00007fa846baae9a in start_thread (arg=0x7fa834949700) at pthread_create.c:308
#4  0x00007fa8495cccbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fa849c8a780 (LWP 9220)):
[KCrash Handler]
#6  KateLineLayout::viewLineCount (this=0x0) at ../../part/render/katelinelayout.cpp:173
#7  0x00007fa837c2848e in KateLayoutCache::lastViewLine (this=&lt;optimized out&gt;, realLine=&lt;optimized out&gt;) at ../../part/render/katelayoutcache.cpp:461
#8  0x00007fa837c284d9 in KateLayoutCache::viewLineCount (this=&lt;optimized out&gt;, realLine=&lt;optimized out&gt;) at ../../part/render/katelayoutcache.cpp:466
#9  0x00007fa837c28ce8 in KateLayoutCache::displayViewLine (this=0x1efcbd0, virtualCursor=..., limitToVisible=false) at ../../part/render/katelayoutcache.cpp:437
#10 0x00007fa837c7bd6f in KateViewInternal::scrollPos (this=0x1daf3b0, c=..., force=&lt;optimized out&gt;, calledExternally=false) at ../../part/view/kateviewinternal.cpp:461
#11 0x00007fa837c7c1aa in KateViewInternal::slotRegionVisibilityChanged (this=0x1daf3b0) at ../../part/view/kateviewinternal.cpp:674
#12 0x00007fa847485761 in QMetaObject::activate (sender=0x1d17c90, m=&lt;optimized out&gt;, local_signal_index=&lt;optimized out&gt;, argv=0x0) at kernel/qobject.cpp:3547
#13 0x00007fa837c5e029 in KateCodeFoldingTree::expandLevel (this=0x1d17c90, level=2, node=&lt;optimized out&gt;, nodeLevel=&lt;optimized out&gt;) at ../../part/syntax/katecodefolding.cpp:681
#14 0x00007fa837c5dfa8 in KateCodeFoldingTree::expandLevel (this=0x1d17c90, level=2, node=&lt;optimized out&gt;, nodeLevel=&lt;optimized out&gt;) at ../../part/syntax/katecodefolding.cpp:688
#15 0x00007fa837c5dfa8 in KateCodeFoldingTree::expandLevel (this=0x1d17c90, level=2, node=&lt;optimized out&gt;, nodeLevel=&lt;optimized out&gt;) at ../../part/syntax/katecodefolding.cpp:688
#16 0x00007fa837c64388 in expandLevel (level=2, this=&lt;optimized out&gt;) at ../../part/syntax/katecodefolding.h:405
#17 KateView::slotExpandLevel (this=0x1e5c9b0) at ../../part/view/kateview.cpp:1032
#18 0x00007fa847485761 in QMetaObject::activate (sender=0x1d1c5b0, m=&lt;optimized out&gt;, local_signal_index=&lt;optimized out&gt;, argv=0x7fff6e703960) at kernel/qobject.cpp:3547
#19 0x00007fa8489cf072 in QAction::triggered (this=&lt;optimized out&gt;, _t1=false) at .moc/release-shared/moc_qaction.cpp:277
#20 0x00007fa8489cf25f in QAction::activate (this=0x1d1c5b0, event=&lt;optimized out&gt;) at kernel/qaction.cpp:1257
#21 0x00007fa848e215e9 in QMenuPrivate::activateCausedStack (this=0x1e67920, causedStack=..., action=0x1d1c5b0, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1028
#22 0x00007fa848e27742 in QMenuPrivate::activateAction (this=0x1e67920, action=0x1d1c5b0, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1120
#23 0x00007fa847d3e5b0 in KMenu::mouseReleaseEvent (this=0x1da8470, e=0x7fff6e704530) at ../../kdeui/widgets/kmenu.cpp:464
#24 0x00007fa848a25fb4 in QWidget::event (this=0x1da8470, event=0x7fff6e704530) at kernel/qwidget.cpp:8371
#25 0x00007fa848e28cdb in QMenu::event (this=0x1da8470, e=0x7fff6e704530) at widgets/qmenu.cpp:2469
#26 0x00007fa8489d57b4 in notify_helper (e=0x7fff6e704530, receiver=0x1da8470, this=0x8aa720) at kernel/qapplication.cpp:4556
#27 QApplicationPrivate::notify_helper (this=0x8aa720, receiver=0x1da8470, e=0x7fff6e704530) at kernel/qapplication.cpp:4528
#28 0x00007fa8489daf2f in QApplication::notify (this=&lt;optimized out&gt;, receiver=0x1da8470, e=0x7fff6e704530) at kernel/qapplication.cpp:4099
#29 0x00007fa847c7d7a6 in KApplication::notify (this=0x7fff6e705260, receiver=0x1da8470, event=0x7fff6e704530) at ../../kdeui/kernel/kapplication.cpp:311
#30 0x00007fa84747130c in QCoreApplication::notifyInternal (this=0x7fff6e705260, receiver=0x1da8470, event=0x7fff6e704530) at kernel/qcoreapplication.cpp:915
#31 0x00007fa8489d6782 in sendEvent (event=&lt;optimized out&gt;, receiver=&lt;optimized out&gt;) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#32 QApplicationPrivate::sendMouseEvent (receiver=0x1da8470, event=0x7fff6e704530, alienWidget=0x0, nativeWidget=0x1da8470, buttonDown=0x0, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3167
#33 0x00007fa848a561e1 in QETWidget::translateMouseEvent (this=0x1da8470, event=&lt;optimized out&gt;) at kernel/qapplication_x11.cpp:4551
#34 0x00007fa848a54ace in QApplication::x11ProcessEvent (this=0x7fff6e705260, event=0x7fff6e704e00) at kernel/qapplication_x11.cpp:3732
#35 0x00007fa848a7e052 in x11EventSourceDispatch (s=0x8ad370, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#36 0x00007fa8466ddd53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#37 0x00007fa8466de0a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#38 0x00007fa8466de164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#39 0x00007fa8474a089f in QEventDispatcherGlib::processEvents (this=0x874b30, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#40 0x00007fa848a7dcde in QGuiEventDispatcherGlib::processEvents (this=&lt;optimized out&gt;, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#41 0x00007fa84746fe42 in QEventLoop::processEvents (this=&lt;optimized out&gt;, flags=...) at kernel/qeventloop.cpp:149
#42 0x00007fa847470097 in QEventLoop::exec (this=0x7fff6e7051a0, flags=...) at kernel/qeventloop.cpp:204
#43 0x00007fa8474753e7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#44 0x00007fa84989e0d5 in kdemain (argc=&lt;optimized out&gt;, argv=&lt;optimized out&gt;) at ../../../kate/app/katemain.cpp:377
#45 0x00007fa8494fa76d in __libc_start_main (main=0x400630 &lt;main(int, char**)&gt;, argc=2, ubp_av=0x7fff6e706798, init=&lt;optimized out&gt;, fini=&lt;optimized out&gt;, rtld_fini=&lt;optimized out&gt;, stack_end=0x7fff6e706788) at libc-start.c:226
#46 0x0000000000400661 in _start ()

Possible duplicates by query: bug 313628.

Reported using DrKonqi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1343626</commentid>
    <comment_count>1</comment_count>
    <who name="Dominik Haumann">dhaumann</who>
    <bug_when>2013-02-20 10:57:49 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 311866 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>