trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: October 2012

Re: [trinity-devel] kate/kwrite stalls a long time opening any *.kcrash file

From: "E. Liddell" <ejlddll@...>
Date: Sat, 20 Oct 2012 18:17:23 -0400
On Fri, 19 Oct 2012 17:43:11 -0700 (PDT)
Darrell Anderson <humanreadable@...> wrote:

> > Latest R14.
> > 
> > Would somebody please confirm this behavior?
> > 
> > Run crashtest.
> > Save the backtrace.
> > Open the file with kate or kwrite. Open directly from within
> > or through konqueror.
> > 
> > On my dual core system with SATA II drives, opening a
> > *.kcrash file takes more than a minute to open, creating the
> > impression the app has stalled or locked.
> 
> The problem is caused by the katepart syntax/gdb.xml. The stalls disappears when removing the gdb.xml file.
> 
> I haven't found an updated file on the web, including the KDE4 sources. :(
> 
> Any xml gurus want to look at this file? The installed location is /opt/trinity/share/apps/katepart/syntax/gdb.xml.
> 
> In the GIT sources the location is tdelibs/kate/data/gdb.xml.
> 
> Thanks much!

I wouldn't exactly consider myself a guru, but I had a look, and I can't see anything
obviously wrong with the file.  As far as I can tell by means of Mark I Eyeball, it
is in compliance with the language.dtd file included in the same directory, and therefore
has correct syntax (although a recheck with a proper parser might turn up something
that I missed).

The file does not exist on my KDE3 system and was apparently added to Trinity at
the beginning of this year, but I have other Kate syntax highlighting schemas of
similar vintage that aren't causing any problems, so it anything is up with this
file, it's either peculiar to it or peculiar to Trinity.

Or it could just be that .kcrash files are difficult to parse for some reason--I
don't have a sample handy to check.