【发布时间】:2022-01-07 17:47:54
【问题描述】:
我正在为 GNU Radio OOT 模块运行一些测试,虽然测试通过,但我收到以下消息:
thread[thread-per-block[1]: <block conv_enc(0)>]: pmt_dict_keys: wrong_type : #<unknown> 多次,其中conv_enc 是我创建的块之一。
什么可能导致此消息? 提前致谢!
【问题讨论】:
标签: gnuradio
我正在为 GNU Radio OOT 模块运行一些测试,虽然测试通过,但我收到以下消息:
thread[thread-per-block[1]: <block conv_enc(0)>]: pmt_dict_keys: wrong_type : #<unknown> 多次,其中conv_enc 是我创建的块之一。
什么可能导致此消息? 提前致谢!
【问题讨论】:
标签: gnuradio
pmt_dict_keys: wrong_type : #<unknown>
很可能您将pmt 消息传递给不是dictionary 的块,因此您会从dict_keys 或dict_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);
}
error:
// FIXME
// port << "#<" << obj << ">";
port << "#<unknown>";
}
【讨论】: