Bug 243478 - Kate crashes when switching/scrolling documents [null KateLineLayout::viewLineCount, KateLayoutCache::lastViewLine, KateLayoutCache::viewLineCount, KateLayoutCache::displayViewLine]
Summary: Kate crashes when switching/scrolling documents [null KateLineLayout::viewLin...
Status: RESOLVED DUPLICATE of bug 247081
Alias: None
Product: kate
Classification: Applications
Component: folding (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: VHI crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 262653 266427 268779 276930 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-07-03 07:05 UTC by David Zaslavsky
Modified: 2011-08-01 18:14 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (6.39 KB, text/plain)
2011-03-15 17:45 UTC, gamesh.g
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Zaslavsky 2010-07-03 07:05:33 UTC
Application: kate (3.4.4)
KDE Platform Version: 4.4.4 (KDE 4.4.4) (Compiled from sources)
Qt Version: 4.6.3
Operating System: Linux 2.6.33-gentoo x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
I clicked on a tab in the tab bar plugin to switch documents, and Kate crashed with this backtrace. All files being edited were Python source code.

The crash does not seem to be reproducible.

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

Thread 3 (Thread 0x7f2de9adb710 (LWP 3681)):
#0  0x00007f2dfa586503 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f2df75dea8b in IA__g_poll (fds=0x18aab50, nfds=1, timeout=-1) at gpoll.c:127
#2  0x00007f2df75d34d5 in g_main_context_poll (context=0x1a67290, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2904
#3  g_main_context_iterate (context=0x1a67290, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2586
#4  0x00007f2df75d3624 in IA__g_main_context_iteration (context=0x1a67290, may_block=1) at gmain.c:2654
#5  0x00007f2dfc25746e in QEventDispatcherGlib::processEvents (this=0x1921eb0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:414
#6  0x00007f2dfc22c7f2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#7  0x00007f2dfc22cbbd in QEventLoop::exec (this=0x7f2de9adade0, flags=) at kernel/qeventloop.cpp:201
#8  0x00007f2dfc13d9db in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#9  0x00007f2dfc20d2a0 in QInotifyFileSystemWatcherEngine::run (this=0x1a1f320) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x00007f2dfc1400b5 in QThreadPrivate::start (arg=0x1a1f320) at thread/qthread_unix.cpp:248
#11 0x00007f2dfbeb0944 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#12 0x00007f2dfa58f1dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7f2ddfcf1710 (LWP 4446)):
#0  pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f2dec3a3046 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7f2dec685220) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2304
#2  0x00007f2dec3a3089 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x7f2dec6932ec) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1438
#3  0x00007f2dfbeb0944 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#4  0x00007f2dfa58f1dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7f2dfe37f760 (LWP 3680)):
[KCrash Handler]
#5  KateLineLayout::viewLineCount (this=0x0) at /var/tmp/portage/kde-base/kdelibs-4.4.4/work/kdelibs-4.4.4/kate/render/katelinelayout.cpp:173
#6  0x00007f2dec7743ad in KateLayoutCache::lastViewLine (this=0x2970030, realLine=455) at /var/tmp/portage/kde-base/kdelibs-4.4.4/work/kdelibs-4.4.4/kate/render/katelayoutcache.cpp:469
#7  0x00007f2dec774415 in KateLayoutCache::viewLineCount (this=0x0, realLine=-1596356496) at /var/tmp/portage/kde-base/kdelibs-4.4.4/work/kdelibs-4.4.4/kate/render/katelayoutcache.cpp:474
#8  0x00007f2dec77474b in KateLayoutCache::displayViewLine (this=0x2970030, virtualCursor=..., limitToVisible=false)
    at /var/tmp/portage/kde-base/kdelibs-4.4.4/work/kdelibs-4.4.4/kate/render/katelayoutcache.cpp:435
#9  0x00007f2dec7cb3dc in KateViewInternal::scrollPos (this=0x287cfb0, c=..., force=<value optimized out>, calledExternally=false)
    at /var/tmp/portage/kde-base/kdelibs-4.4.4/work/kdelibs-4.4.4/kate/view/kateviewinternal.cpp:497
#10 0x00007f2dec7cb673 in KateViewInternal::scrollLines (this=0x287cfb0, line=<value optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.4.4/work/kdelibs-4.4.4/kate/view/kateviewinternal.cpp:383
#11 0x00007f2dec7d0563 in KateViewInternal::qt_metacall (this=0x287cfb0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffa0d98bf0)
    at /var/tmp/portage/kde-base/kdelibs-4.4.4/work/kdelibs-4.4.4_build/kate/kateviewinternal.moc:133
#12 0x00007f2dfc241166 in QMetaObject::activate (sender=0x2c5b700, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x1) at kernel/qobject.cpp:3287
#13 0x00007f2dfb8075d1 in QAbstractSlider::sliderMoved (this=0x0, _t1=462) at .moc/release-shared/moc_qabstractslider.cpp:195
#14 0x00007f2dfb5229f3 in QAbstractSlider::setSliderPosition (this=0x2c5b700, position=462) at widgets/qabstractslider.cpp:494
#15 0x00007f2dfb5b924a in QScrollBar::mouseMoveEvent (this=0x2c5b700, e=0x7fffa0d99800) at widgets/qscrollbar.cpp:673
#16 0x00007f2dec7d4f1f in KateScrollBar::mouseMoveEvent (this=0x0, e=0x7fffa0d98870) at /var/tmp/portage/kde-base/kdelibs-4.4.4/work/kdelibs-4.4.4/kate/view/kateviewhelpers.cpp:114
#17 0x00007f2dfb1d88b7 in QWidget::event (this=0x2c5b700, event=0x7fffa0d99800) at kernel/qwidget.cpp:8029
#18 0x00007f2dfb5b9c82 in QScrollBar::event (this=0x2c5b700, event=0x7fffa0d99800) at widgets/qscrollbar.cpp:545
#19 0x00007f2dfb1825ac in QApplicationPrivate::notify_helper (this=0x17546a0, receiver=0x2c5b700, e=0x7fffa0d99800) at kernel/qapplication.cpp:4302
#20 0x00007f2dfb18925d in QApplication::notify (this=0x7fffa0d9a380, receiver=0x2c5b700, e=0x7fffa0d99800) at kernel/qapplication.cpp:3867
#21 0x00007f2dfc9ce3f8 in KApplication::notify (this=0x7fffa0d9a380, receiver=0x2c5b700, event=0x7fffa0d99800)
    at /var/tmp/portage/kde-base/kdelibs-4.4.4/work/kdelibs-4.4.4/kdeui/kernel/kapplication.cpp:302
#22 0x00007f2dfc22decb in QCoreApplication::notifyInternal (this=0x7fffa0d9a380, receiver=0x2c5b700, event=0x7fffa0d99800) at kernel/qcoreapplication.cpp:726
#23 0x00007f2dfb1883e1 in QCoreApplication::sendEvent (receiver=0x2c5b700, event=0x7fffa0d99800, alienWidget=0x0, nativeWidget=<value optimized out>, buttonDown=<value optimized out>, 
    lastMouseReceiver=<value optimized out>, spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#24 QApplicationPrivate::sendMouseEvent (receiver=0x2c5b700, event=0x7fffa0d99800, alienWidget=0x0, nativeWidget=<value optimized out>, buttonDown=<value optimized out>, 
    lastMouseReceiver=<value optimized out>, spontaneous=true) at kernel/qapplication.cpp:2967
#25 0x00007f2dfb208fe3 in QETWidget::translateMouseEvent (this=0x2c5b700, event=<value optimized out>) at kernel/qapplication_x11.cpp:4380
#26 0x00007f2dfb207c5f in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fffa0d99f80) at kernel/qapplication_x11.cpp:3513
#27 0x00007f2dfb231b3a in x11EventSourceDispatch (s=0x1769170, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#28 0x00007f2df75d0484 in g_main_dispatch (context=0x1779570) at gmain.c:1960
#29 IA__g_main_context_dispatch (context=0x1779570) at gmain.c:2513
#30 0x00007f2df75d352c in g_main_context_iterate (context=0x1779570, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2591
#31 0x00007f2df75d3624 in IA__g_main_context_iteration (context=0x1779570, may_block=1) at gmain.c:2654
#32 0x00007f2dfc25741e in QEventDispatcherGlib::processEvents (this=0x1766290, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#33 0x00007f2dfb231746 in QGuiEventDispatcherGlib::processEvents (this=0x0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#34 0x00007f2dfc22c7f2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#35 0x00007f2dfc22cbbd in QEventLoop::exec (this=0x7fffa0d9a2b0, flags=) at kernel/qeventloop.cpp:201
#36 0x00007f2dfc2317fb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#37 0x00007f2defa5d876 in kdemain (argc=<value optimized out>, argv=<value optimized out>) at /var/tmp/portage/kde-base/kate-4.4.4/work/kate-4.4.4/kate/app/katemain.cpp:377
#38 0x0000000000407054 in launch (argc=2, _name=0x16fc438 "/usr/bin/kate", args=<value optimized out>, cwd=<value optimized out>, envc=-1596343712, envs=<value optimized out>, reset_env=false, tty=
    0x0, avoid_loops=false, startup_id_str=0x16fc466 "acetylene09;1278125438;722067;2594_TIME5932202") at /var/tmp/portage/kde-base/kdelibs-4.4.4/work/kdelibs-4.4.4/kinit/kinit.cpp:710
#39 0x0000000000407949 in handle_launcher_request (sock=8, who=<value optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.4.4/work/kdelibs-4.4.4/kinit/kinit.cpp:1202
#40 0x0000000000407f97 in handle_requests (waitForPid=0) at /var/tmp/portage/kde-base/kdelibs-4.4.4/work/kdelibs-4.4.4/kinit/kinit.cpp:1395
#41 0x000000000040909e in main (argc=4, argv=<value optimized out>, envp=<value optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.4.4/work/kdelibs-4.4.4/kinit/kinit.cpp:1838

This bug may be a duplicate of or related to bug 200796.

Possible duplicates by query: bug 201743, bug 200796.

Reported using DrKonqi
Comment 1 Dominik Haumann 2010-10-26 13:46:41 UTC
bug #200796 states the same backtrace and was supposed to be fixed for KDE 4.4.4. However, this doesn't seem to be the case. So this is still valid...
Comment 2 Dario Andres 2011-02-19 23:54:01 UTC
[Comment from a bug triager]
From bug 262653 (KDE SC 4.5.4):
- What I was doing when the application crashed:
I wanted to check a long config file, tried to scroll down and Kate crashed.
Why is there still no auto-backup feature for unsaved documents? I lost data
multiple times :(

From bug 266427 (KDevelop on KDE SC 4.5.5):
- What I was doing when the application crashed:
Scrolled document quickly till the end (approx) using mouse.

- Updated backtrace (4.5.5):
[KCrash Handler]
#7  0x018b3d36 in KateLineLayout::viewLineCount (this=0x0) at
/usr/src/debug/kdelibs-4.5.5/kate/render/katelinelayout.cpp:173
#8  0x018b0fd5 in KateLayoutCache::lastViewLine (this=0x9a56a30, realLine=1425)
at /usr/src/debug/kdelibs-4.5.5/kate/render/katelayoutcache.cpp:448
#9  0x018b1029 in KateLayoutCache::viewLineCount (this=0x9a56a30,
realLine=1425) at
/usr/src/debug/kdelibs-4.5.5/kate/render/katelayoutcache.cpp:453
#10 0x018b148b in KateLayoutCache::displayViewLine (this=0x9a56a30,
virtualCursor=..., limitToVisible=false) at
/usr/src/debug/kdelibs-4.5.5/kate/render/katelayoutcache.cpp:416
#11 0x01919d1d in KateViewInternal::scrollPos (this=0x99de348, c=...,
force=false, calledExternally=false) at
/usr/src/debug/kdelibs-4.5.5/kate/view/kateviewinternal.cpp:491
#12 0x0191a4e1 in KateViewInternal::scrollLines (this=0x99de348, line=1470) at
/usr/src/debug/kdelibs-4.5.5/kate/view/kateviewinternal.cpp:377
#13 0x01922957 in KateViewInternal::qt_metacall (this=0x99de348,
_c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbf8cc9e8)
    at
/usr/src/debug/kdelibs-4.5.5/i686-redhat-linux-gnu/kate/kateviewinternal.moc:125
#14 0x04639bcb in QMetaObject::metacall (object=0x99de348,
cl=QMetaObject::InvokeMetaMethod, idx=35, argv=0xbf8cc9e8) at
kernel/qmetaobject.cpp:237
#15 0x04648a75 in QMetaObject::activate (sender=0x99d8730, m=0x7759c94,
local_signal_index=2, argv=0xbf8cc9e8) at kernel/qobject.cpp:3295
#16 0x075229c4 in QAbstractSlider::sliderMoved (this=0x99d8730, _t1=1470) at
.moc/release-shared/moc_qabstractslider.cpp:195
#17 0x07236868 in QAbstractSlider::setSliderPosition (this=0x99d8730,
position=<value optimized out>) at widgets/qabstractslider.cpp:494
#18 0x072d3f2b in QScrollBar::mouseMoveEvent (this=0x99d8730, e=0xbf8cd1a0) at
widgets/qscrollbar.cpp:673
#19 0x019283aa in KateScrollBar::mouseMoveEvent (this=0x99d8730, e=0xbf8cd1a0)
at /usr/src/debug/kdelibs-4.5.5/kate/view/kateviewhelpers.cpp:111
...
Comment 3 Dario Andres 2011-02-19 23:54:56 UTC
*** Bug 262653 has been marked as a duplicate of this bug. ***
Comment 4 Dario Andres 2011-02-19 23:55:10 UTC
*** Bug 266427 has been marked as a duplicate of this bug. ***
Comment 5 gamesh.g 2011-03-15 17:45:49 UTC
Created attachment 58045 [details]
New crash information added by DrKonqi

kate (3.5.1) on KDE Platform 4.5.1 (KDE 4.5.1) using Qt 4.7.0

- What I was doing when the application crashed:

I was scrolling down (quickly) through a large text file when kate crashed.

-- Backtrace (Reduced):
#7  KateLineLayout::viewLineCount (this=0x0) at ../../kate/render/katelinelayout.cpp:173
#8  0xb2645a94 in KateLayoutCache::lastViewLine (this=0xa7e6980, realLine=1131) at ../../kate/render/katelayoutcache.cpp:448
#9  0xb2645ae8 in KateLayoutCache::viewLineCount (this=0xa7e6980, realLine=1131) at ../../kate/render/katelayoutcache.cpp:453
#10 0xb2645f58 in KateLayoutCache::displayViewLine (this=0xa7e6980, virtualCursor=..., limitToVisible=false) at ../../kate/render/katelayoutcache.cpp:416
#11 0xb26b7195 in KateViewInternal::scrollPos (this=0xa7f96e8, c=..., force=false, calledExternally=false) at ../../kate/view/kateviewinternal.cpp:491
Comment 6 Milian Wolff 2011-06-20 15:34:09 UTC
pretty sure this is related to folding and bug 247081
Comment 7 Dominik Haumann 2011-07-02 07:33:34 UTC
*** Bug 276930 has been marked as a duplicate of this bug. ***
Comment 8 Dominik Haumann 2011-08-01 10:28:23 UTC
*** Bug 268779 has been marked as a duplicate of this bug. ***
Comment 9 Adrian 2011-08-01 18:14:40 UTC
I couldn't reproduce the bug (using both folding versions).
This bugs is for sure a duplicate of bug 247081.

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