[Qt-interest] crash during QObject::connect
Thiago Macieira
thiago at kde.org
Fri Sep 9 17:25:23 CEST 2011
On Friday, 9 de September de 2011 07:44:43 Thomas Ehrnhoefer wrote:
> Hi
>
> I am experiencing a reproducable crash when
> QObject::connect(controller, SIGNAL(onModelChanged(MyModel*)), this,
> SLOT(onModelChanged(MyModel*)),Qt::UniqueConnection);
> is called.
>
> In fact, it works once, but on a second run (same controller, but different
> "this"), it crashes. I am wondering what all the thing are that happen
> behind the scenes here, to figure out why it crashes. I do know that the
> following line does not get executed.
Please try the following, in order:
1) valgrind your application and fix any and all errors related to your own
code. Qt errors you may ignore are in the SSSE3 QPainter code.
2) look at the backtrace of the crash and inspect all pointers used the line
that crashed (or the deepest line belonging to your program, before Qt code is
called). Certify that they are all valid.
3) if all else fails, make a testcase. Your target is 200 lines of C++ code.
Remove everything that isn't related to the crash.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110909/1c7a0de2/attachment.bin
More information about the Qt-interest-old
mailing list