【问题标题】:GNURadio OOT Module: pmt_dict_keys: wrong_type : #<unknown>GNURadio OOT 模块:pmt_dict_keys:error_type:#<unknown>
【发布时间】:2022-01-07 17:47:54
【问题描述】:

我正在为 GNU Radio OOT 模块运行一些测试,虽然测试通过,但我收到以下消息:

thread[thread-per-block[1]: &lt;block conv_enc(0)&gt;]: pmt_dict_keys: wrong_type : #&lt;unknown&gt; 多次,其中conv_enc 是我创建的块之一。

什么可能导致此消息? 提前致谢!

【问题讨论】:

    标签: gnuradio


    【解决方案1】:

    pmt_dict_keys: wrong_type : #&lt;unknown&gt;

    很可能您将pmt 消息传递给不是dictionary 的块,因此您会从dict_keysdict_values 函数中抛出异常。

    来自pmt.cc

    pmt_t dict_keys(pmt_t dict)
    {
        if (!is_dict(dict))
            throw wrong_type("pmt_dict_keys", dict);
    
        return map(car, dict);
    }
    
    pmt_t dict_values(pmt_t dict)
    {
        if (!is_dict(dict))
            throw wrong_type("pmt_dict_keys", dict);
    
        return map(cdr, dict);
    }
    

    来自pmt_io.cc

        error:
            // FIXME
            // port << "#<" << obj << ">";
            port << "#<unknown>";
        }
    

    【讨论】:

    • 这是一个很好的答案,因为它分析了情况,参考了参考资料,准确地显示了问题发生的位置,因此甚至可以对您如何追踪这些事情有所了解。太棒了!
    • 感谢您的详细解答。只需从我的缓存中清除一些东西就解决了这个问题,所以可能是我的块的旧版本导致了它,因为我没有再做任何更改。
    猜你喜欢
    • 2019-11-06
    • 1970-01-01
    • 1970-01-01
    • 2021-11-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-06-17
    相关资源
    最近更新 更多