[Top] [All Lists]

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

Subject: [Qt-interest] bad_alloc: Can't find what is causing it
From: Ori Lahav
Date: Thu, 1 Jul 2010 13:08:38 +0300

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?

Qt-interest mailing list
<Prev in Thread] Current Thread [Next in Thread>