# Ctest freezes in random moments on my OOT

**URL:** <https://www.ruby-forum.com/t/ctest-freezes-in-random-moments-on-my-oot/231541>\
**Category:** GNU Radio\
**Created:** [August 14, 2014, 12:39pm UTC](https://www.ruby-forum.com/t/ctest-freezes-in-random-moments-on-my-oot/231541 "2014-08-14T12:39:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [August 14, 2014, 12:39pm UTC](https://www.ruby-forum.com/t/ctest-freezes-in-random-moments-on-my-oot/231541/1 "2014-08-14T12:39:32Z")

</div>

Hello,

I’ve written a simple block that takes a c34vector message as input and  
outputs a message containing average mag^2 of the samples in the vector.

I’ve added the QA code in Python and it seems to be working except the  
test  
never finishes. I’ve added a few print statements to see whats up. From  
what I can gather:

- The freeze doesn’t use up CPU (at least nothing noticeable)
- Random number of messages are processed before the freeze occurs,  
sometimes none are sent

Could someone give me a hint on that? I’ve added the relevant code in  
the  
attachment.

BR,  
Michal

---

<div class="post-metadata">

**Author:** ![Michal\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/77aa72/32.png) [@Michal\_J](https://www.ruby-forum.com/u/Michal_J)\
**Post date:** [August 14, 2014, 3:17pm UTC](https://www.ruby-forum.com/t/ctest-freezes-in-random-moments-on-my-oot/231541/2 "2014-08-14T15:17:27Z")

</div>

On Thu, Aug 14, 2014 at 6:38 AM, Michal J. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> sometimes none are sent
> 
> Could someone give me a hint on that? I’ve added the relevant code in the  
> attachment.
> 
> BR,  
> Michal

What version of GNU Radio are you using? There is a known problem with  
message-only apps not properly shutting down. This should be fixed in  
the  
latest 3.7.4 release, but I think 3.7.3 is still buggy on this one.

Tom

---

<div class="post-metadata">

**Author:** ![Michal\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/77aa72/32.png) [@Michal\_J](https://www.ruby-forum.com/u/Michal_J)\
**Post date:** [August 14, 2014, 5:07pm UTC](https://www.ruby-forum.com/t/ctest-freezes-in-random-moments-on-my-oot/231541/3 "2014-08-14T17:07:06Z")

</div>

On Thu, Aug 14, 2014 at 4:15 PM, Tom R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > From what I can gather:
> 
> What version of GNU Radio are you using? There is a known problem with  
> message-only apps not properly shutting down. This should be fixed in the  
> latest 3.7.4 release, but I think 3.7.3 is still buggy on this one.
> 
> Tom

I was on 3.7.2, I believe. I used the build-gnuradio script to update to  
3.7.4. My problem persists. However, odd things happen. I doubt it is  
relevant to my actual problem, but here it goes:

# 5:

## 5: FAIL: test\_001\_t ( **main**.qa\_burst\_to\_power) 5:

## 5: Traceback (most recent call last): 5: File “/home/mehow/projects/gr-gsm\_measure/python/qa\_burst\_to\_power.py”, line 124, in test\_001\_t 5: msg\_pow.message\_ports\_in(), 0)), ‘bursts’) 5: AssertionError: ‘system’ != ‘bursts’ 5: 5:

5: Ran 1 test in 0.005s

I don’t have a port called ‘system’. This happened only once and made me  
tweak with the assertion statements. Now, when I check the message ports  
against their actual names (‘bursts’ and ‘power’), the assertion is  
passed,  
but when I change the name to check against in the QA code I get (for  
both  
of my ports):

5: AssertionError: ‘system’ != ‘whatever\_name\_I\_put\_there’

Other than this oddity, I get exactly the same thing as at the  
beginning.  
Could this happen because I have some leftovers of the previous version  
of  
gnuradio after using the script?
