Re: [Discuss-gnuradio] Error in hier block with 4 outputs and an async message!
I can reproduce the issue and also confirm your work-around. I pushed a fix to the grcwg repo. See if that works for you guys. Sebastian On 01/31/2014 12:53 AM, Achilleas Anastasopoulos wrote: SUCCESS!! after renaming the output message pad as zzz_something, the right order is restored! I will make sure to file a bug ticket on this, but for now I am set. thanks Achilleas -- Karlsruhe Institute of Technology (KIT) Communications Engineering Lab (CEL) Dipl.-Ing. Sebastian Koslowski Research Associate Kaiserstraße 12 Building 05.01 76131 Karlsruhe, Germany Phone: +49 721 608-46275 Fax: +49 721 608-46071 Email: sebastian.koslow...@kit.edu Web: http://www.cel.kit.edu/ KIT – University of the State of Baden-Wuerttemberg and National Research Center of the Helmholtz Association signature.asc Description: OpenPGP digital signature ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] Error in hier block with 4 outputs and an async message!
Please see attached simple hier block with 4 complex outputs and 1 async message output. Everything compiles but the application does not run giving python error: Using Volk machine: sse4_1_64_orc Traceback (most recent call last): File ./test_msg.py, line 67, in module tb = test_msg() File ./test_msg.py, line 31, in __init__ self.test_msg_hier_0 = test_msg_hier() File /home/anastas/.grc_gnuradio/test_msg_hier.py, line 34, in __init__ self.connect((self, 0), (self, 0)) File /usr/local/lib64/python2.7/site-packages/gnuradio/gr/hier_block2.py, line 75, in connect self._connect(points[i-1], points[i]) File /usr/local/lib64/python2.7/site-packages/gnuradio/gr/hier_block2.py, line 81, in _connect dst_block.to_basic_block(), dst_port) File /usr/local/lib64/python2.7/site-packages/gnuradio/gr/runtime_swig.py, line 2848, in primitive_connect return _runtime_swig.hier_block2_sptr_primitive_connect(self, *args) ValueError: connect: src and destination blocks cannot be the same Notice that the python file of the hier block indexes outputs as 0,1,2,4 instead of 0,1,2,3 ? Achilleas --- linux; GNU C++ version 4.8.2 20131017 (Red Hat 4.8.2-1); Boost_105300; UHD_003.005.004-143-gde4ce9ea Welcome to GNU Radio Companion 3.7.2git-142-g66196335 test_msg_hier.grc Description: Binary data test_msg.grc Description: Binary data ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Error in hier block with 4 outputs and an async message!
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Achilleas, you're right, grc omits one of the pad sinks; that is kind of a bug, but I don't know if the terminology really fits; as it seems, gnuradio does not like you to have input and output pads directly connected. I don't know if this is only a precaution to avoid loops, or if there are actual reasons you can't have this in a hier block. However, can you make the error go away by inserting copy blocks where you directly pass through? Greetings, Marcus On 30.01.2014 22:17, Achilleas Anastasopoulos wrote: Please see attached simple hier block with 4 complex outputs and 1 async message output. Everything compiles but the application does not run giving python error: Using Volk machine: sse4_1_64_orc Traceback (most recent call last): File ./test_msg.py, line 67, in module tb = test_msg() File ./test_msg.py, line 31, in __init__ self.test_msg_hier_0 = test_msg_hier() File /home/anastas/.grc_gnuradio/test_msg_hier.py, line 34, in __init__ self.connect((self, 0), (self, 0)) File /usr/local/lib64/python2.7/site-packages/gnuradio/gr/hier_block2.py, line 75, in connect self._connect(points[i-1], points[i]) File /usr/local/lib64/python2.7/site-packages/gnuradio/gr/hier_block2.py, line 81, in _connect dst_block.to_basic_block(), dst_port) File /usr/local/lib64/python2.7/site-packages/gnuradio/gr/runtime_swig.py, line 2848, in primitive_connect return _runtime_swig.hier_block2_sptr_primitive_connect(self, *args) ValueError: connect: src and destination blocks cannot be the same Notice that the python file of the hier block indexes outputs as 0,1,2,4 instead of 0,1,2,3 ? Achilleas --- linux; GNU C++ version 4.8.2 20131017 (Red Hat 4.8.2-1); Boost_105300; UHD_003.005.004-143-gde4ce9ea Welcome to GNU Radio Companion 3.7.2git-142-g66196335 ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJS6tcRAAoJEAFxB7BbsDrLpBsH/0BmBlZgg7hLMcqzfrxpzbkh 5ASQAwWdA6iIaqwa55aVxXzJl3nn5mAixCk0OctBvIb4vYH1ncQDSSVB8tciUqzX 3daDl6r8Bueott9z5NTLlcvJWEALqoEhUs5PPH3W3PHSTq9EG9rLvqcgRPhS1Ukj B8+U3iZngp0NV7VT5vAEXu9jWTjBrxxhH3kviAoIXULXFyfdW03N/MAhkWfmIt5c 9WOfLAIuTT4mw+hehcQ7u4lIoVkntvBC/RwoGQqJY+fxqr3yMvE73skPpOe5VEnP cvzrFmW6f7d6wrDQv1JRjeM6UTRTIsrfRnoMnvofMt6FAWsHxNxGSaIEqUYOFRo= =QxW6 -END PGP SIGNATURE- ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Error in hier block with 4 outputs and an async message!
Marcus, the error is still there even if you don't have direct connections between in/out pads. See attached Achilleas test_msg_hier.grc Description: Binary data ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Error in hier block with 4 outputs and an async message!
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ok, Now I can reproduce your problem. But I do get (in contrast to your error message because of connecting a block to itself): Traceback (most recent call last): File /home/marcus/top_block.py, line 74, in module tb = top_block() File /home/marcus/top_block.py, line 32, in __init__ self.test_msg_hier_0 = test_msg_hier() File /home/marcus/.grc_gnuradio/test_msg_hier.py, line 38, in __init__ self.connect((self.blocks_complex_to_mag_0_0_0, 0), (self, 4)) File /home/marcus/.usrlocal/lib64/python2.7/site-packages/gnuradio/gr/hier_block2.py, line 75, in connect self._connect(points[i-1], points[i]) File /home/marcus/.usrlocal/lib64/python2.7/site-packages/gnuradio/gr/hier_block2.py, line 81, in _connect dst_block.to_basic_block(), dst_port) File /home/marcus/.usrlocal/lib64/python2.7/site-packages/gnuradio/gr/runtime_swig.py, line 2890, in primitive_connect return _runtime_swig.hier_block2_sptr_primitive_connect(self, *args) ValueError: destination port 4 out of range for test_msg_hier(1) Which fits quite well into your observation that there is a lack of order in the output. As it seems, the output signature of your hier block is 4 streams, which is correct. So I guess GRC is getting the hiccups because the message stream is not the last pad; I think they're ordered alphabetically. Can you give the block an id like __verylast? does that help? Greetings, Marcus On 31.01.2014 00:22, Achilleas Anastasopoulos wrote: Marcus, the error is still there even if you don't have direct connections between in/out pads. See attached Achilleas -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJS6uLIAAoJEAFxB7BbsDrLGtUIAKYeM9Kv/cr/SwkL1dEI6Vqn KExN/jXG5FOTHWW9wNP1ctO94x8u+Ard/j4KZ1qkr1SEvlvwe9ZW+7+R9KGXy0nm LK3XRr7PlSr+CRXPFcYigFcFGaev12EDMudD7Ulx6DOHVSrw2FBg7gUpiqHA6FfX I0f72L1/1zC0JamVp/+27+Mjv+BsOsBjcQj45deKHsnR+FFHEaxOVaTQXMiIqZUI 5SsSj7AVMAzKg+p8JLEq7S2js2ozObNSvUB3S7DooHpSW/xIxx23JiAzVcByhKBa 6IbIkD2/1pekQx+qyo+kJ67qbPVS2JppHXaHEqj/ke24XP2wfDHPImNYndeHX2E= =NOd2 -END PGP SIGNATURE- ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Error in hier block with 4 outputs and an async message!
SUCCESS!! after renaming the output message pad as zzz_something, the right order is restored! I will make sure to file a bug ticket on this, but for now I am set. thanks Achilleas ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio