discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] QT throwing std::bad_alloc


From: Tom McDermott
Subject: [Discuss-gnuradio] QT throwing std::bad_alloc
Date: Fri, 8 Jun 2018 14:38:23 -0700


I've had a problem that started about 4 months ago with Qt Gui throwing an exception on startup.
I recently installed / rebuilt main-3.7 from git, to see if that bypassed this issue, unfortunately not.
The problem occurs with QT GUI Frequency Sink. Disabling it prevents the error.

GRC version 3.7.13.2    Ubuntu 16.04
$ sysctl kernel.shmmax
kernel.shmmax = 2147483648

$ qmake --version
QMake version 2.01a
Using Qt version 4.8.7 in /usr/lib/x86_64-linux-gnu


Here is the trace:

gr::log :INFO: audio source - Audio sink arch: alsa
[New Thread 0x7fffa36c1700 (LWP 4563)]
[New Thread 0x7fffa2ec0700 (LWP 4564)]
[New Thread 0x7fffa26bf700 (LWP 4565)]
[New Thread 0x7fffa1ebe700 (LWP 4566)]
[New Thread 0x7fffa16bd700 (LWP 4567)]
[New Thread 0x7fffa0ebc700 (LWP 4568)]
[New Thread 0x7fff97ffe700 (LWP 4569)]
[New Thread 0x7fff977fd700 (LWP 4570)]
[New Thread 0x7fff96ffc700 (LWP 4571)]
[New Thread 0x7fff967fb700 (LWP 4572)]
[New Thread 0x7fff95ffa700 (LWP 4573)]
[New Thread 0x7fff957f9700 (LWP 4574)]
aU[Thread 0x7fffaabf0700 (LWP 4559) exited]
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc

Thread 1 "python" received signal SIGABRT, Aborted.
0x00007ffff7825428 in __GI_raise (address@hidden)
    at ../sysdeps/unix/sysv/linux/raise.c:54
54    ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  0x00007ffff7825428 in __GI_raise (address@hidden)
    at ../sysdeps/unix/sysv/linux/raise.c:54
#1  0x00007ffff782702a in __GI_abort () at abort.c:89
#2  0x00007ffff4f1884d in __gnu_cxx::__verbose_terminate_handler() ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3  0x00007ffff4f166b6 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007ffff4f16701 in std::terminate() ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5  0x00007ffff4f16969 in __cxa_rethrow ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6  0x00007ffff53946ee in QEventLoop::exec (address@hidden,
    flags=...) at kernel/qeventloop.cpp:218
#7  0x00007ffff539a4b9 in QCoreApplication::exec ()
    at kernel/qcoreapplication.cpp:1227
#8  0x00007ffff2d5522c in QApplication::exec () at kernel/qapplication.cpp:3828
#9  0x00007ffff3df2aeb in meth_QApplication_exec_ (sipArgs=<optimized out>)
    at sipQtGuipart9.cpp:38155
#10 0x00000000004bc3fa in call_function (oparg=<optimized out>,
    pp_stack=0x7fffffffd8f0) at ../Python/ceval.c:4350
#11 PyEval_EvalFrameEx () at ../Python/ceval.c:2987
#12 0x00000000004b9ab6 in PyEval_EvalCodeEx () at ../Python/ceval.c:3582
#13 0x00000000004c16e7 in fast_function (nk=<optimized out>,
    na=<optimized out>, n=<optimized out>, pp_stack=0x7fffffffdaf0,
---Type <return> to continue, or q <return> to quit---func=<functiQuit
(gdb)


Do I need to install some other version of Qt to suppress this error?
If so, what version, is there any place that describes how/what ?

-- Tom, N5EG



reply via email to

[Prev in Thread] Current Thread [Next in Thread]