[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] std::runtime_error (gdb backtrace included)
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] std::runtime_error (gdb backtrace included) |
Date: |
Mon, 16 Apr 2007 12:57:07 -0700 |
User-agent: |
Mutt/1.5.9i |
On Fri, Apr 13, 2007 at 03:33:46PM -0600, Tarun Tiwari wrote:
> Hi,
>
> I am implementing a relay network for voice transmision and reception. I
> using threading to start the GUI and flow graph. I am facing a runtime error
> in random at destination, whereas it works perfectly at the relay node. At
> relay node I have bypassed the audio device and have a connection like this
> :
> USRP--> gsm full rate decoder --> gsm full rate encode --> USRP.
> I ran the program in debugger mode and got following trace/errors from gdb.
> I need help from somebody to resolve this problem.
>
> """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
> terminate called after throwing an instance of 'std::runtime_error'
> what(): msg length is not a multiple of d_itemsize
Hi Tarun,
The exception indicates that you sent gr_message_source a message
that wasn't a multiple of the itemsize that you specified in the
constructor. See line 99 in gr_message_source.cc
How are you calling it?
FYI, I looked at the old gnuradio-examples/python/digital_voice/encdec.py
code, but it's suffered bit rot and was never updated to use the the
revised packet based modulators. It would take some work to
straighten it out, and I don't have time to pursue that now.
Eric
> Program received signal SIGABRT, Aborted.
> [Switching to Thread 145009568 (LWP 8656)]
> 0x00ef2410 in __kernel_vsyscall ()
> (gdb)
> (gdb) bt
> #0 0x00ef2410 in __kernel_vsyscall ()
> #1 0x0045fee9 in raise () from /lib/libc.so.6
> #2 0x004614f1 in abort () from /lib/libc.so.6
> #3 0x00c39780 in __gnu_cxx::__verbose_terminate_handler ()
> from /usr/lib/libstdc++.so.6
> #4 0x00c371b5 in std::set_unexpected () from /usr/lib/libstdc++.so.6
> #5 0x00c371f2 in std::terminate () from /usr/lib/libstdc++.so.6
> #6 0x00c3732a in __cxa_throw () from /usr/lib/libstdc++.so.6
> #7 0x006d3cdb in gr_message_source::work (this=0x9234d50,
> noutput_items=4095,
> address@hidden, address@hidden) at
> gr_message_source.cc:99
... This is where the problem is ...
> #8 0x00701e1a in gr_sync_block::general_work (this=0x9234d50,
> noutput_items=4095, address@hidden, address@hidden,
> address@hidden) at gr_sync_block.cc:64
> #9 0x00700022 in gr_single_threaded_scheduler::main_loop (this=0x8d6c960)
> at gr_single_threaded_scheduler.cc:330
> #10 0x007010a1 in gr_single_threaded_scheduler::run (this=0x8d6c960)
> at gr_single_threaded_scheduler.cc:86
> #11 0x00205dab in sts_pyrun ()
> from
> /usr/local/lib/python2.4/site-packages/gnuradio/gr/_gnuradio_swig_py_runtime.so
> #12 0x00214132 in _wrap_sts_pyrun ()
> from
> /usr/local/lib/python2.4/site-packages/gnuradio/gr/_gnuradio_swig_py_runtime.so
Eric