[Development] Debugging crashes in QML / QtDeclarative [was: Question about Qt's future]

Christoph Feck christoph at maxiom.de
Thu Apr 24 22:30:56 CEST 2014


On Tuesday 22 April 2014 23:11:59 Kleint Friedemann wrote:
> Hi Christoph,
> 
> > Christoph Feck wrote: Not speaking for Michael, but let me add
> > that C++ is much easier to debug compared to QML, if you get a
> > crash. We have nearly hundred backtraces in the Plasma bug
> > tracker that point back to crashes in QtDeclarative, without a
> > single clue where the crash comes from. For examples see bugs
> > 328234, 332131, 331060, 333621, 333532, 333334, 332995, or
> > 332646 to cite only some fairly recent ones.
> 
> Please take a look at
> https://bugreports.qt-project.org/browse/QTCREATORBUG-11144 and
> the related changes in Qt Creator 3.1 . When doing pure C++
> debugging, Qt Creator now has a context menu entry "Load QML
> frames" in the stack window. This basically checks the stack trace
> for a value of a  QV4::ExecutionContext *, tries to extract the
> JavaScript stack frames from it and displays those frames in
> addition to the C++ frames.

I wasn't aware it's actually possible to get QML backtraces. I filed 
an enhancement request for KDE's crash handler DrKonqi as KDE bug 
333816, citing your and Simon's reply.

Thanks!

-- 
Christoph Feck
http://kdepepo.wordpress.com/
KDE Quality Team
openSUSE Review Team



More information about the Development mailing list