Bug 225345

Summary: Krusader crashes when I opened a large text file and scrolled down quickly.
Product: [Applications] kate Reporter: Leoš Kafka <leos.kafka>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: andresbajotierra
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:

Description Leoš Kafka 2010-02-03 08:12:02 UTC
Application that crashed: krusader
Version of the application: 2.0.0 "Mars Pathfinder"
KDE Version: 4.3.2 (KDE 4.3.2)
Qt Version: 4.5.2
Operating System: Linux 2.6.31-17-generic x86_64
Distribution: Ubuntu 9.10

What I was doing when the application crashed:
Krusader crashes when I opened a large text file and scrolled down quickly.

 -- Backtrace:
Application: Krusader (krusader), signal: Segmentation fault
The current source language is "auto; currently c".
[KCrash Handler]
#5  memcpy () at ../sysdeps/x86_64/memcpy.S:267
#6  0x00007f4618bacabc in QVectorData::malloc (sizeofTypedData=<value optimized out>, size=<value optimized out>, sizeofT=8, init=0x8bc940) at /usr/include/bits/string3.h:52
#7  0x00007f46003a5f9e in QVector<KateHlContext*>::realloc (this=0x136a8e8, asize=2016308837, aalloc=-131174810) at /usr/include/qt4/QtCore/qvector.h:455
#8  0x00007f4600395ec5 in QVector<KateHlContext*>::resize (this=0x136a8e0) at /usr/include/qt4/QtCore/qvector.h:321
#9  KateHighlighting::dropDynamicContexts (this=0x136a8e0) at ../../kate/syntax/katehighlight.cpp:232
#10 0x00007f460038f837 in KateHlManager::resetDynamicCtxs (this=0x12e8f50) at ../../kate/syntax/katesyntaxmanager.cpp:375
#11 0x00007f460035d636 in KateBuffer::doHighlight (this=0x14df4e0, startLine=<value optimized out>, endLine=<value optimized out>, invalidate=<value optimized out>)
    at ../../kate/document/katebuffer.cpp:1031
#12 0x00007f460035df8c in KateBuffer::ensureHighlighted (this=0x0, line=<value optimized out>) at ../../kate/document/katebuffer.cpp:775
#13 0x00007f4600347378 in KateDocument::kateTextLine (this=0x14f04c0, i=3245568832) at ../../kate/document/katedocument.cpp:6019
#14 0x00007f4600384318 in KateLineLayout::textLine (this=0x5b133b0, reloadForce=<value optimized out>) at ../../kate/render/katelinelayout.cpp:67
#15 0x00007f460037a3cd in KateRenderer::layoutLine (this=0x2d17b50, lineLayout=<value optimized out>, maxwidth=-1049398464, cacheLayout=false) at ../../kate/render/katerenderer.cpp:763
#16 0x00007f4600380a30 in KateLayoutCache::line (this=0x2768c30, realLine=89957, virtualLine=<value optimized out>) at ../../kate/render/katelayoutcache.cpp:309
#17 0x00007f4600381cc5 in KateLayoutCache::updateViewCache (this=0x2768c30, startPos=<value optimized out>, newViewLineCount=53, viewLinesScrolled=<value optimized out>)
    at ../../kate/render/katelayoutcache.cpp:262
#18 0x00007f46003d1f02 in KateViewInternal::doUpdateView (this=0x1d047f0, changed=false, viewLinesScrolled=<value optimized out>) at ../../kate/view/kateviewinternal.cpp:592
#19 0x00007f46003d267c in KateViewInternal::updateView (this=0x1d047f0, changed=64, viewLinesScrolled=18) at ../../kate/view/kateviewinternal.cpp:568
#20 0x00007f46003d3a88 in KateViewInternal::scrollPos (this=0x1d047f0, c=..., force=<value optimized out>, calledExternally=<value optimized out>) at ../../kate/view/kateviewinternal.cpp:514
#21 0x00007f46003d4124 in KateViewInternal::scrollViewLines (this=0x1d047f0, offset=<value optimized out>) at ../../kate/view/kateviewinternal.cpp:390
#22 0x00007f46003d434a in KateViewInternal::wheelEvent (this=0x1d047f0, e=<value optimized out>) at ../../kate/view/kateviewinternal.cpp:3298
#23 0x00007f4619660362 in QWidget::event (this=0x1d047f0, event=0x7fff6d4f51d0) at kernel/qwidget.cpp:7557
#24 0x00007f4619611efc in QApplicationPrivate::notify_helper (this=0xbaba90, receiver=0x1d047f0, e=0x7fff6d4f51d0) at kernel/qapplication.cpp:4056
#25 0x00007f4619619be2 in QApplication::notify (this=0x7fff6d4f74f0, receiver=0x1d047f0, e=0x7fff6d4f51d0) at kernel/qapplication.cpp:3821
#26 0x00007f461be16ab6 in KApplication::notify (this=0x7fff6d4f74f0, receiver=0x1d047f0, event=0x7fff6d4f51d0) at ../../kdeui/kernel/kapplication.cpp:302
#27 0x00007f4618c41c2c in QCoreApplication::notifyInternal (this=0x7fff6d4f74f0, receiver=0x1d047f0, event=0x7fff6d4f51d0) at kernel/qcoreapplication.cpp:610
#28 0x00007f461966dc67 in QCoreApplication::sendSpontaneousEvent (this=<value optimized out>, global_x=<value optimized out>, global_y=<value optimized out>, delta=<value optimized out>, buttons=)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#29 QETWidget::translateWheelEvent (this=<value optimized out>, global_x=<value optimized out>, global_y=<value optimized out>, delta=<value optimized out>, buttons=)
    at kernel/qapplication_x11.cpp:4447
#30 0x00007f461967ef56 in QETWidget::translateMouseEvent (this=0x1c3fd80, event=0x7fff6d4f6e60) at kernel/qapplication_x11.cpp:4224
#31 0x00007f461967daa9 in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fff6d4f6e60) at kernel/qapplication_x11.cpp:3550
#32 0x00007f46196a6d0c in x11EventSourceDispatch (s=<value optimized out>, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#33 0x00007f4614456bce in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#34 0x00007f461445a598 in ?? () from /lib/libglib-2.0.so.0
#35 0x00007f461445a6c0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#36 0x00007f4618c6a1a6 in QEventDispatcherGlib::processEvents (this=0xb83110, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#37 0x00007f46196a64be in QGuiEventDispatcherGlib::processEvents (this=0x0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#38 0x00007f4618c40532 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#39 0x00007f4618c40904 in QEventLoop::exec (this=0x7fff6d4f7190, flags=) at kernel/qeventloop.cpp:201
#40 0x00007f4618c42ab9 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#41 0x000000000045bc78 in main (argc=<value optimized out>, argv=<value optimized out>) at /build/buildd/krusader-2.0.0/krusader/main.cpp:268

Reported using DrKonqi
Comment 1 Dario Andres 2010-02-04 02:37:24 UTC
- Which kind of file (extension) it was ?
Regards
Comment 2 Leoš Kafka 2010-02-04 08:11:23 UTC
It was VHDL file, about 15MB large.

It happened twice at least yesterday. I have been trying to repeat it now, but not successful so far (i.e. it did not crash again). If it happens again, I will try to describe it more precisely.
Comment 3 Dario Andres 2010-02-04 13:02:51 UTC
The situation should be better on KDE SC 4.4: read bug 197313. Regards

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