|
From: | Anderson, Douglas J. |
Subject: | [Discuss-gnuradio] Python message passing block hangs (test file included) |
Date: | Thu, 12 Mar 2015 21:00:08 +0000 |
Hi all, I'm struggling to understand an issue I'm having with a simple python block with a registered message port connected to the copy block. The python block looks like this: it literally does nothing, it just happens to have a message port registered: class signal_sink(gr.sync_block):
Then I have a gr.unittest case that connects a vector_source, the copy block, and the above signal sink: def test_copy(self):
The second time the flowgraph is "run", it hangs indefinitely. GDB shows sig_sink's thread state as #0 pthread_cond_timedwait@@GLIBC_2.3.2 () Commenting out the "self.tb.msg_connect" line stops the hang, as does connecting sig_sink's message port to a message_debug block (which is not in the flowgraph). All this even though the sig_sink block doesn't send any signals over its message port. Any hints would be very much appreciated, my debugging prowess has taken me as far as it's going to take me. I've attached the complete test file that you can run with "python test.py" Thanks in advance, -Doug |
test.py
Description: test.py
[Prev in Thread] | Current Thread | [Next in Thread] |