<?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>211384</bug_id>
          
          <creation_ts>2009-10-21 23:38:26 +0000</creation_ts>
          <short_desc>kate crash while file edition</short_desc>
          <delta_ts>2009-10-22 15:16:15 +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>Unlisted Binaries</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>200858</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="Mariusz Pluciński">vshader</reporter>
          <assigned_to name="KWrite Developers">kwrite-bugs-null</assigned_to>
          <cc>andresbajotierra</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>848512</commentid>
    <comment_count>0</comment_count>
    <who name="Mariusz Pluciński">vshader</who>
    <bug_when>2009-10-21 23:38:26 +0000</bug_when>
    <thetext>Application that crashed: kate
Version of the application: 3.3.1
KDE Version: 4.3.1 (KDE 4.3.1)
Qt Version: 4.5.2
Operating System: Linux 2.6.31custom1 x86_64
Distribution: &quot;Fedora release 11 (Leonidas)&quot;

 -- Backtrace:
Application: Kate (kate), signal: Segmentation fault
[KCrash Handler]
#5  KateLineLayout::viewLineCount (this=&lt;value optimized out&gt;) at /usr/src/debug/kdelibs-4.3.1/kate/render/katelinelayout.cpp:173
#6  KateLineLayout::viewLine (this=&lt;value optimized out&gt;) at /usr/src/debug/kdelibs-4.3.1/kate/render/katelinelayout.cpp:179
#7  0x00007f0c70fd830e in KateLayoutCache::textLayout (this=&lt;value optimized out&gt;, realLine=5241, _viewLine=-1) at /usr/src/debug/kdelibs-4.3.1/kate/render/katelayoutcache.cpp:346
#8  0x00007f0c71025740 in KateViewInternal::previousLayout (this=0x188b760) at /usr/src/debug/kdelibs-4.3.1/kate/view/kateviewinternal.cpp:1282
#9  0x00007f0c7102d6ef in KateViewInternal::cursorUp (this=0x188b760, sel=false) at /usr/src/debug/kdelibs-4.3.1/kate/view/kateviewinternal.cpp:1462
#10 0x00007f0c71017dfd in KateView::qt_metacall (this=0x17db9c0, _c=QMetaObject::InvokeMetaMethod, _id=&lt;value optimized out&gt;, _a=0x7fffd1f45670)
    at /usr/src/debug/kdelibs-4.3.1/x86_64-redhat-linux-gnu/kate/kateview.moc:371
#11 0x00000038933547dc in QMetaObject::activate (sender=0x19c5230, from_signal_index=&lt;value optimized out&gt;, to_signal_index=&lt;value optimized out&gt;, argv=0x1) at kernel/qobject.cpp:3113
#12 0x0000003895389857 in QAction::triggered (this=0x7fffd1f45480, _t1=false) at .moc/release-shared/moc_qaction.cpp:236
#13 0x000000389538acbf in QAction::activate (this=0x19c5230, event=&lt;value optimized out&gt;) at kernel/qaction.cpp:1160
#14 0x000000389538d747 in QAction::event (this=0x7fffd1f45480, e=&lt;value optimized out&gt;) at kernel/qaction.cpp:1079
#15 0x000000354114010d in KAction::event (this=0x7fffd1f45480, event=0x7fffd1f45b70) at /usr/src/debug/kdelibs-4.3.1/kdeui/actions/kaction.cpp:88
#16 0x000000389538f69c in QApplicationPrivate::notify_helper (this=0x11a5ca0, receiver=0x19c5230, e=0x7fffd1f45b70) at kernel/qapplication.cpp:4056
#17 0x00000038953968fe in QApplication::notify (this=0x7fffd1f48210, receiver=0x19c5230, e=0x7fffd1f45b70) at kernel/qapplication.cpp:4021
#18 0x0000003541211b56 in KApplication::notify (this=0x7fffd1f48210, receiver=0x19c5230, event=0x7fffd1f45b70) at /usr/src/debug/kdelibs-4.3.1/kdeui/kernel/kapplication.cpp:302
#19 0x000000389333f59c in QCoreApplication::notifyInternal (this=0x7fffd1f48210, receiver=0x19c5230, event=0x7fffd1f45b70) at kernel/qcoreapplication.cpp:610
#20 0x00000038953c3cb6 in QCoreApplication::sendEvent (event=&lt;value optimized out&gt;, receiver=&lt;value optimized out&gt;) at ../../src/corelib/kernel/qcoreapplication.h:213
#21 QShortcutMap::dispatchEvent (event=&lt;value optimized out&gt;, receiver=&lt;value optimized out&gt;) at kernel/qshortcutmap.cpp:884
#22 0x00000038953c5b27 in QShortcutMap::tryShortcutEvent (this=0x11a5db8, o=&lt;value optimized out&gt;, e=0x7fffd1f46000) at kernel/qshortcutmap.cpp:369
#23 0x0000003895397596 in QApplication::notify (this=0x7fffd1f48210, receiver=0x188b760, e=0x7fffd1f46000) at kernel/qapplication.cpp:3645
#24 0x0000003541211b56 in KApplication::notify (this=0x7fffd1f48210, receiver=0x188b760, event=0x7fffd1f46000) at /usr/src/debug/kdelibs-4.3.1/kdeui/kernel/kapplication.cpp:302
#25 0x000000389333f59c in QCoreApplication::notifyInternal (this=0x7fffd1f48210, receiver=0x188b760, event=0x7fffd1f46000) at kernel/qcoreapplication.cpp:610
#26 0x000000389541e8ba in QKeyMapper::sendKeyEvent (keyWidget=0x188b760, grab=&lt;value optimized out&gt;, type=QEvent::KeyPress, code=16777235, modifiers=&lt;value optimized out&gt;, text=@0x7fffd1f46220, 
    autorepeat=false, count=1, nativeScanCode=111, nativeVirtualKey=65362, nativeModifiers=16) at kernel/qkeymapper_x11.cpp:1861
#27 0x0000003895420e50 in QKeyMapperPrivate::translateKeyEvent (this=0x11dd100, keyWidget=0x188b760, event=&lt;value optimized out&gt;, grab=false) at kernel/qkeymapper_x11.cpp:1831
#28 0x00000038953fa4e4 in QApplication::x11ProcessEvent (this=&lt;value optimized out&gt;, event=0x7fffd1f47de0) at kernel/qapplication_x11.cpp:3438
#29 0x00000038954227dc in x11EventSourceDispatch (s=&lt;value optimized out&gt;, callback=&lt;value optimized out&gt;, user_data=&lt;value optimized out&gt;) at kernel/qguieventdispatcher_glib.cpp:146
#30 0x000000389223790e in g_main_dispatch (context=&lt;value optimized out&gt;) at gmain.c:1824
#31 IA__g_main_context_dispatch (context=&lt;value optimized out&gt;) at gmain.c:2377
#32 0x000000389223b0e8 in g_main_context_iterate (context=0x11a7e20, block=&lt;value optimized out&gt;, dispatch=&lt;value optimized out&gt;, self=&lt;value optimized out&gt;) at gmain.c:2455
#33 0x000000389223b20a in IA__g_main_context_iteration (context=0x11a7e20, may_block=1) at gmain.c:2518
#34 0x0000003893367936 in QEventDispatcherGlib::processEvents (this=0x11891b0, flags=&lt;value optimized out&gt;) at kernel/qeventdispatcher_glib.cpp:327
#35 0x0000003895421f8e in QGuiEventDispatcherGlib::processEvents (this=0x7fffd1f45480, flags=&lt;value optimized out&gt;) at kernel/qguieventdispatcher_glib.cpp:202
#36 0x000000389333ded2 in QEventLoop::processEvents (this=&lt;value optimized out&gt;, flags={i = 36}) at kernel/qeventloop.cpp:149
#37 0x000000389333e2a4 in QEventLoop::exec (this=0x7fffd1f48110, flags={i = 0}) at kernel/qeventloop.cpp:201
#38 0x0000003893340439 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#39 0x0000003541804aed in kdemain (argc=&lt;value optimized out&gt;, argv=&lt;value optimized out&gt;) at /usr/src/debug/kdesdk-4.3.1/kate/app/katemain.cpp:257
#40 0x0000003aaba1ea2d in __libc_start_main (main=&lt;value optimized out&gt;, argc=&lt;value optimized out&gt;, ubp_av=&lt;value optimized out&gt;, init=&lt;value optimized out&gt;, fini=&lt;value optimized out&gt;, 
    rtld_fini=&lt;value optimized out&gt;, stack_end=0x7fffd1f49428) at libc-start.c:220
#41 0x00000000004006c9 in _start ()
Warning: the current language does not match this frame.

Reported using DrKonqi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>848523</commentid>
    <comment_count>1</comment_count>
    <who name="Milian Wolff">mail</who>
    <bug_when>2009-10-22 00:01:08 +0000</bug_when>
    <thetext>Adding the check in katelinelayout could be enough, but I doubt it&apos;s the correct fix, even though other places in that file also check for m_layout. For one, what should the function return, if there is no layout? -1 ? 0?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>848836</commentid>
    <comment_count>2</comment_count>
    <who name="Dario Andres">andresbajotierra</who>
    <bug_when>2009-10-22 15:16:15 +0000</bug_when>
    <thetext>Merging with bug 200858 Thanks

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

    </bug>

</bugzilla>