|
From: | Anderson, Douglas J. |
Subject: | Re: [Discuss-gnuradio] Python message passing block hangs (test file included) |
Date: | Mon, 16 Mar 2015 17:08:51 +0000 |
Tom,
Ironically I was using a GNU Radio git build from Feb 3rd, the day before that patch was merged. I just rebuilt and verified that the test case I attached works now.
Thanks!
-Doug
From: address@hidden address@hidden on behalf of Tom Rondeau address@hidden
Sent: Sunday, March 15, 2015 2:09 PM To: Anderson, Douglas J. Cc: GNURadio Discussion List Subject: Re: [Discuss-gnuradio] Python message passing block hangs (test file included) On Thu, Mar 12, 2015 at 5:00 PM, Anderson, Douglas J.
<address@hidden> wrote:
Hi Doug,
What version of GNU Radio are you running (gnuradio-config-info -v)? I just tested your test.py script locally and it worked fine. We've put in a patch for the shutdown system that I think it's related to your problem, but it has not
been in a version release, yet. The patch is pretty simple:
commit 035b9d016dffefec890323bd0b24dbaf23aa9186
Author: Tom Rondeau <address@hidden>
Date: Wed Feb 4 13:06:14 2015 +0000
runtime: possible bug fix for limited-run flowgraphs with message-only blocks.
diff --git a/gnuradio-runtime/lib/block.cc b/gnuradio-runtime/lib/block.cc
index 9173094..f26d6bb 100644
--- a/gnuradio-runtime/lib/block.cc
+++ b/gnuradio-runtime/lib/block.cc
@@ -750,7 +750,10 @@ namespace gr {
bool
block::finished()
{
- return d_finished;
+ if((detail()->ninputs() != 0) || (detail()->noutputs() != 0))
+ return false;
+ else
+ return d_finished;
}
If you want to give that a try, I'm interested to hear feedback on this problem and solution.
Thanks,
Tom
|
[Prev in Thread] | Current Thread | [Next in Thread] |