Summary: | Crash after cutting folded code (KateLineLayout::viewLineCount (this=0x0)) | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | mr_minning |
Component: | folding | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | aa508, alanjprescott, andreozzi.nicolo, andresbajotierra, boekm, bujin2006, ceorcham, chicochicaogusmao, crissi99, danny.smit.0, diazona, j.mairboeck, joao.eiras, josep.m.perez, kdebugs.phobie, kevinlyles, lucatersi, mail, matti.valovirta, original-andy, ou_cha, pascal_sotin, pa_ubach, reg.charney, stephan.diestelhorst, waltercool |
Priority: | VHI | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 4.8.0 | |
Sentry Crash Report: | |||
Attachments: |
New crash information added by DrKonqi
Testcase: XML file to reproduce the crash New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi |
Description
mr_minning
2010-08-08 18:40:58 UTC
Created attachment 50617 [details]
New crash information added by DrKonqi
kate (3.5.0) on KDE Platform 4.5.00 (KDE 4.5.0) using Qt 4.7.0
Another instance of this crash it seems. I was trying to delete two folded XML nodes and their children when I experienced this.
-- Backtrace (Reduced):
#6 KateLineLayout::viewLineCount (this=0x0) at ../../kate/render/katelinelayout.cpp:173
#7 0x00007f6ec0a56db4 in KateLayoutCache::lastViewLine (this=<value optimized out>, realLine=<value optimized out>) at ../../kate/render/katelayoutcache.cpp:448
#8 0x00007f6ec0ab8f78 in KateViewInternal::viewLineOffset (this=0x14f6d00, virtualCursor=..., offset=56, keepX=<value optimized out>) at ../../kate/view/kateviewinternal.cpp:1351
#9 0x00007f6ec0abcb5d in KateViewInternal::makeVisible (this=0x14f6d00, c=..., endCol=<value optimized out>, force=false, center=<value optimized out>, calledExternally=false)
at ../../kate/view/kateviewinternal.cpp:663
#10 0x00007f6ec0abedc1 in KateViewInternal::updateCursor (this=0x14f6d00, newCursor=<value optimized out>, force=<value optimized out>, center=false, calledExternally=<value optimized out>)
at ../../kate/view/kateviewinternal.cpp:1907
Created attachment 50618 [details]
Testcase: XML file to reproduce the crash
This is the XML file I was working on. It's 100% reproducable: Fold the three <Activity> sections below <Activities> and delete any of them.
Sorry the file's so big, can't make it smaller, kate crashes when trying ;-)
*** Bug 249826 has been marked as a duplicate of this bug. *** *** Bug 249861 has been marked as a duplicate of this bug. *** Created attachment 52517 [details]
New crash information added by DrKonqi
kate (3.5.2) on KDE Platform 4.5.2 (KDE 4.5.2) "release 9" using Qt 4.6.3
- What I was doing when the application crashed:
Had applied code folding to multiple segments of an XML file (in this case a GPX file) and attempted to delete some of them causing kate to crash.
Same or similar actions on other files also caused kate to crash
-- Backtrace (Reduced):
#7 viewLineCount (this=0x8ca0c48) at /usr/src/debug/kdelibs-4.5.2/kate/render/katelinelayout.cpp:173
#8 KateLayoutCache::lastViewLine (this=0x8ca0c48) at /usr/src/debug/kdelibs-4.5.2/kate/render/katelayoutcache.cpp:448
#9 0xaefb968d in KateViewInternal::viewLineOffset (this=0x8ecd410, virtualCursor=..., offset=47, keepX=false) at /usr/src/debug/kdelibs-4.5.2/kate/view/kateviewinternal.cpp:1351
#10 0xaefbd925 in KateViewInternal::makeVisible (this=0x8ecd410, c=..., endCol=0, force=false, center=false, calledExternally=false) at /usr/src/debug/kdelibs-4.5.2/kate/view/kateviewinternal.cpp:663
#11 0xaefc50bc in KateViewInternal::updateCursor (this=0x8ecd410, newCursor=..., force=true, center=76, calledExternally=<value optimized out>)
at /usr/src/debug/kdelibs-4.5.2/kate/view/kateviewinternal.cpp:1907
*** Bug 252284 has been marked as a duplicate of this bug. *** *** Bug 254701 has been marked as a duplicate of this bug. *** maybe related to: bug 254873, bug 233749, bug 237256 Created attachment 53495 [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:
Cuttting a block of text, I also have 3 windows opened of kate
-- Backtrace (Reduced):
#7 KateLineLayout::viewLineCount (this=0x0) at ../../kate/render/katelinelayout.cpp:173
#8 0x02eb3a94 in KateLayoutCache::lastViewLine (this=0x9aae828, realLine=150) at ../../kate/render/katelayoutcache.cpp:448
#9 0x02f21ffd in KateViewInternal::viewLineOffset (this=0xa5761c0, virtualCursor=..., offset=46, keepX=false) at ../../kate/view/kateviewinternal.cpp:1351
#10 0x02f268b8 in KateViewInternal::makeVisible (this=0xa5761c0, c=..., endCol=0, force=false, center=false, calledExternally=false) at ../../kate/view/kateviewinternal.cpp:663
#11 0x02f280bc in KateViewInternal::updateCursor (this=0xa5761c0, newCursor=..., force=true, center=false, calledExternally=<value optimized out>) at ../../kate/view/kateviewinternal.cpp:1907
*** Bug 259261 has been marked as a duplicate of this bug. *** enough people hit this bug, we really have to come up with a fix for this... *** Bug 262427 has been marked as a duplicate of this bug. *** [Comment from a bug triager] From 267976 (KDE 4.5.1): - What I was doing when the application crashed: I highlighted the text, with the mouse, from the end of the file up to the middle of that and then prssed Delete button on my keyboard. The text I removed was a commented VHDL code, the rest of the code is not commented. The file was opened by another program at the same time. The text file is about 400 lines. I reopened Kate and tried again to remove the code and it didn't crach (this time I used pressed shift together with the mouse to highlight the code). *** Bug 267976 has been marked as a duplicate of this bug. *** Created attachment 58599 [details]
New crash information added by DrKonqi
kate (3.6.1) on KDE Platform 4.6.1 (4.6.1) using Qt 4.7.0
- What I was doing when the application crashed:
Deleting lines of text with many files open.
Devs: This is a critical bug. A text editor must not crash ever!
It is probably the last safeguard in an unstable system and
usually takes lots and lots of state with it upon crash.
This is also a regression for KDE 4.6.1, these crashes never
ocured in any previous version. Using the KDE PPAs on Kubuntu
10.10.
-- Backtrace (Reduced):
#6 KateLineLayout::viewLineCount (this=0x0) at ../../kate/render/katelinelayout.cpp:173
#7 0x00007faa84ff5114 in KateLayoutCache::lastViewLine (this=<value optimized out>, realLine=<value optimized out>) at ../../kate/render/katelayoutcache.cpp:457
#8 0x00007faa8504b0c6 in KateViewInternal::viewLineOffset (this=0x2b69d90, virtualCursor=..., offset=23, keepX=<value optimized out>) at ../../kate/view/kateviewinternal.cpp:1291
#9 0x00007faa8504e89f in KateViewInternal::makeVisible (this=0x2b69d90, c=..., endCol=<value optimized out>, force=false, center=<value optimized out>, calledExternally=false) at ../../kate/view/kateviewinternal.cpp:613
#10 0x00007faa85050661 in KateViewInternal::updateCursor (this=0x2b69d90, newCursor=<value optimized out>, force=<value optimized out>, center=false, calledExternally=<value optimized out>) at ../../kate/view/kateviewinternal.cpp:1825
Created attachment 58771 [details]
New crash information added by DrKonqi
kile (2.0.86) on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2
- What I was doing when the application crashed:
I deleted some lines of code from a text file. The line count changed to below 1000 because of the delete.
-- Backtrace (Reduced):
#7 0xb15d388f in viewLineCount (this=0x8dd30f0, realLine=1021) at /usr/src/debug/kdelibs-4.6.2/kate/render/katelinelayout.cpp:173
#8 KateLayoutCache::lastViewLine (this=0x8dd30f0, realLine=1021) at /usr/src/debug/kdelibs-4.6.2/kate/render/katelayoutcache.cpp:457
#9 0xb15d66e5 in KateViewInternal::viewLineOffset (this=0x8df17d0, virtualCursor=..., offset=22, keepX=false) at /usr/src/debug/kdelibs-4.6.2/kate/view/kateviewinternal.cpp:1291
#10 0xb15dad71 in KateViewInternal::makeVisible (this=0x8df17d0, c=..., endCol=0, force=false, center=false, calledExternally=false) at /usr/src/debug/kdelibs-4.6.2/kate/view/kateviewinternal.cpp:613
#11 0xb15db714 in KateViewInternal::updateCursor (this=0x8df17d0, newCursor=..., force=true, center=false, calledExternally=false) at /usr/src/debug/kdelibs-4.6.2/kate/view/kateviewinternal.cpp:1825
Created attachment 59167 [details]
New crash information added by DrKonqi
kate (3.6.2) on KDE Platform 4.6.2 (4.6.2) "release 3" using Qt 4.7.2
- What I was doing when the application crashed:
I was trying to cut about 3 lines (php code) using block selection in VI input mode.
The lines to cut were below (not within) a collapsed piece of code, approx. 370 lines were collapsed in 1 block.
It unfortunately does not seem to occur again when I repeat the same steps.
-- Backtrace (Reduced):
#6 0x00007fdb8ebf962c in viewLineCount (this=<value optimized out>, realLine=<value optimized out>) at /usr/src/debug/kdelibs-4.6.2/kate/render/katelinelayout.cpp:173
#7 KateLayoutCache::lastViewLine (this=<value optimized out>, realLine=<value optimized out>) at /usr/src/debug/kdelibs-4.6.2/kate/render/katelayoutcache.cpp:457
#8 0x00007fdb8ebfbfe6 in KateViewInternal::viewLineOffset (this=0xad1750, virtualCursor=..., offset=45, keepX=false) at /usr/src/debug/kdelibs-4.6.2/kate/view/kateviewinternal.cpp:1291
#9 0x00007fdb8ebfff2d in KateViewInternal::makeVisible (this=0xad1750, c=..., endCol=39, force=false, center=<value optimized out>, calledExternally=false) at /usr/src/debug/kdelibs-4.6.2/kate/view/kateviewinternal.cpp:613
#10 0x00007fdb8ec00801 in KateViewInternal::updateCursor (this=0xad1750, newCursor=<value optimized out>, force=<value optimized out>, center=false, calledExternally=false) at /usr/src/debug/kdelibs-4.6.2/kate/view/kateviewinternal.cpp:1825
*** Bug 275954 has been marked as a duplicate of this bug. *** Git commit 4151628e86aa0bfaa8a3cc49eb97d06503e69638 by Adrian Lungu. Committed on 29/07/2011 at 17:13. Pushed by lungu into branch 'master'. BUG: 247081 I solved the bug posted on comment 2. The bug was replicated using the old code folding and the new code folding. I made some small changes in katedocument and katelayoutcache. If there are any problems regarding this patch, please let me know. M +2 -4 part/document/katedocument.cpp M +2 -2 part/view/kateviewinternal.cpp M +8 -0 part/document/katebuffer.h M +12 -0 part/document/katebuffer.cpp M +5 -1 part/render/katelayoutcache.cpp http://commits.kde.org/kate/4151628e86aa0bfaa8a3cc49eb97d06503e69638 *** Bug 237256 has been marked as a duplicate of this bug. *** *** Bug 243478 has been marked as a duplicate of this bug. *** *** Bug 269223 has been marked as a duplicate of this bug. *** *** Bug 282227 has been marked as a duplicate of this bug. *** *** Bug 284097 has been marked as a duplicate of this bug. *** Created attachment 65276 [details]
New crash information added by DrKonqi
kate (3.7.2) on KDE Platform 4.7.2 (4.7.2) using Qt 4.7.4
- What I was doing when the application crashed:
Pressing lot of control+z while I'm working and died.
-- Backtrace (Reduced):
#6 KateLineLayout::viewLineCount (this=0x0) at ../../part/render/katelinelayout.cpp:173
#7 0x00007f813585cfea in KateTextLayout::isValid (this=0x15cf3b8) at ../../part/render/katetextlayout.cpp:90
#8 0x00007f813585d089 in KateTextLayout::line (this=0x15cf3b8) at ../../part/render/katetextlayout.cpp:95
#9 0x00007f81358a4e47 in KateViewInternal::endPos (this=0x1653850) at ../../part/view/kateviewinternal.cpp:291
#10 0x00007f81358ab0bc in KateViewInternal::makeVisible (this=0x1653850, c=..., endCol=2, force=false, center=<optimized out>, calledExternally=true) at ../../part/view/kateviewinternal.cpp:612
Pablo's report shows this an issue in kate 3.7.2 - reopening. Pablo: can you give us an example on when this crash occurrs? I.e. the steps required to reproduce the issue? At least, happened just one time, I was programming with Kate as editor, and I was a bit angry because my touchpad just delete me and moved text (my fault working without touchpad disabled on write) and I let control+z pressed for 2 seconds and segfault. Control+z was hold for 2 seconds. Milian: "Pablo's report shows this an issue in kate 3.7.2 - reopening." Of course. Adrians changes are only in KDE 4.8... We won't get any further with this. If people still report this in KDE 4.8, we can reopen it again. --> You can close it again, see comment #19. Sorry, I assumed this was fixed in Kate 3.7.x - my bad. *** Bug 289312 has been marked as a duplicate of this bug. *** *** Bug 292029 has been marked as a duplicate of this bug. *** *** Bug 293603 has been marked as a duplicate of this bug. *** *** Bug 281221 has been marked as a duplicate of this bug. *** Created attachment 71320 [details]
New crash information added by DrKonqi
kate (3.7.4) on KDE Platform 4.7.4 (4.7.4) using Qt 4.7.4
- What I was doing when the application crashed:
Holding Ctrl+Z and suddenly Kate crashed
-- Backtrace (Reduced):
#7 KateLineLayout::viewLineCount (this=0x0) at ../../part/render/katelinelayout.cpp:173
#8 0x02fa07c7 in KateTextLayout::isValid (this=0x9481050) at ../../part/render/katetextlayout.cpp:90
#9 0x02fa08c2 in KateTextLayout::line (this=0x9481050) at ../../part/render/katetextlayout.cpp:95
#10 0x02ff2be1 in KateViewInternal::endPos (this=0x9342e60) at ../../part/view/kateviewinternal.cpp:291
#11 0x02ff9d84 in KateViewInternal::makeVisible (this=0x9342e60, c=..., endCol=77, force=false, center=true, calledExternally=true) at ../../part/view/kateviewinternal.cpp:612
*** Bug 309768 has been marked as a duplicate of this bug. *** |