Qt-interest Archive, June 2007
Dr.Watson Dumps for QT
Message 1 in thread
Hi,
1. Does Trolltech have access to the Dr.Watson crash dumps that is sent to
Microsoft when a QT application crashes running on Windows?
2. Is it possible to make some kind of arrangement so that I receive the
Dr.Watson crash dumps whenever my QT application crashes running on
Windows?
3. Does QT provide any crossplatform equivalent to Dr.Watson so that I can
automatically receive and analyze production crashes on all platforms for
my QT application?
Regards,
Martin
--
[ signature omitted ]
Message 2 in thread
> 1. Does Trolltech have access to the Dr.Watson crash dumps that is sent
> to
> Microsoft when a QT application crashes running on Windows?
Nope. It would not be very useful for us, as we don't know how you
build/link/configured Qt, which compiler was used etc. The information
provided is in gernal only useful if you have the means to get the
software into the same state, and for that the application executable is
needed.
> 2. Is it possible to make some kind of arrangement so that I receive the
> Dr.Watson crash dumps whenever my QT application crashes running on
> Windows?
You can sign up for this with Microsoft.
> 3. Does QT provide any crossplatform equivalent to Dr.Watson so that I
> can
> automatically receive and analyze production crashes on all platforms
> for
> my QT application?
No, there is no API for that in Qt. C++ exception handling, doing some
state-dumping in the case of fatal problems, is the best you can do.
Volker
--
[ signature omitted ]
Message 3 in thread
Volker Hilsheimer wrote:
>> ...
>>3. Does QT provide any crossplatform equivalent to Dr.Watson so that I
>>can
>>automatically receive and analyze production crashes on all platforms
>>for
>>my QT application?
>
>
> No, there is no API for that in Qt. C++ exception handling, doing some
> state-dumping in the case of fatal problems, is the best you can do.
At least when you stick to Windows there's another alternative (to the
Dr. Watson which sends everything to Microsoft):
http://www.codeproject.com/debug/XCrashReportPt4.asp
I have not looked at it in detail, but it is code for an MFC based
application which sends you the crash report (stack trace, platform
description, user error report) by email (to an address of your choice,
off course).
AFAIK an external email program is invoced for this and the crash dump
is attached, but it should be fairly simple to use the Qt mail example
application instead, adapt it a little bit, take a little bit of BASE64
encoding code and write a nice Qt GUI around it and there you go :)
I once thought of that as a task for an internship trainee; but she
decided to go for something more challenging instead ;)
Cheers, Oliver
--
[ signature omitted ]
Message 4 in thread
On 11 Jun 2007, at 09:47, Martin Olsson wrote:
> 3. Does QT provide any crossplatform equivalent to Dr.Watson so
> that I can
> automatically receive and analyze production crashes on all
> platforms for
> my QT application?
http://code.google.com/p/google-breakpad/
Currently being integrated into Mozilla, should appear in Firefox 3.
But the client code is not Mozilla related (phew), it includes the
necessary magic to grab a crash trace for various platforms.
James
--
[ signature omitted ]