| Subject: | [Qt-interest] bad_alloc: Can't find what is causing it |
|---|---|
| From: | Ori Lahav |
| Date: | Thu, 1 Jul 2010 13:08:38 +0300 |
|
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. _______________________________________________ Qt-interest mailing list Qt-interest@xxxxxxxxxxxxx http://lists.trolltech.com/mailman/listinfo/qt-interest |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [Qt-interest] error while running Qt application, amulya rattan |
|---|---|
| Next by Date: | Re: [Qt-interest] basic QScript question, "Alexander Carôt" |
| Previous by Thread: | [Qt-interest] QProcess::execute() results in arbitrary "segmenation faults" or "illegal instructions", Markus Franke |
| Next by Thread: | Re: [Qt-interest] bad_alloc: Can't find what is causing it, Paul Floyd |
| Indexes: | [Date] [Thread] [Top] [All Lists] |