[Qt-interest] bad_alloc: Can't find what is causing it

Ori Lahav vbcrlf at gmail.com
Thu Jul 1 12:08:38 CEST 2010


Hello,

QT says I've got a std::bad_alloc exception, and close the program. I look
at the stack and it is from the QEventLoop. Here's the full stack trace:
0 raise /lib/libc.so.6 0 0x00007ffff59b2565
1 abort /lib/libc.so.6 0 0x00007ffff59b39e6
2 __gnu_cxx::__verbose_terminate_handler() /usr/lib/libstdc++.so.6 0
0x00007ffff5fb206d
3 __cxxabiv1::__terminate(void (*)()) /usr/lib/libstdc++.so.6 0
0x00007ffff5fb0286
4 std::terminate() /usr/lib/libstdc++.so.6 0 0x00007ffff5fb02b3
5 __cxa_rethrow /usr/lib/libstdc++.so.6 0 0x00007ffff5fb0406
6 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)
/usr/lib/libQtCore.so.4 0 0x00007ffff6354452
7 QCoreApplication::exec() /usr/lib/libQtCore.so.4 0 0x00007ffff635876b
8 main main.cpp 28 0x000000000040d21e

If the window is not focused, no exception is thrown - only when I switch to
the window I get this exception. It is somehow related to events.
(I know what I did before it started to happen, but my program is pretty
complicated now, so it is hard to find why the change is causing it without
a useful stack trace)

How can I find what causes this error?

Thanks!
Ori.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100701/2876d605/attachment.html 


More information about the Qt-interest-old mailing list