C++ Tutorial snpe-sample Segmentation fault (core dumped)
Posted: Thu, 2018-05-31 03:19
I follow the C++ Tutorial to make the snpe-sample then run, but got the "Segmentation fault (core dumped)".
Belows are my cmds:
make -f Makefile.x86_64-linux-clang
$SNPE_ROOT/examples/NativeCpp/SampleCode/obj/local/x86_64-linux-clang/snpe-sample -b ITENSOR -d ../dlc/bvlc_alexnet.dlc -i target_raw_list.txt -o output
->got the "Segmentation fault (core dumped)".
Howerver, using the snpe-net-run cmd as below is work.
snpe-net-run --container ../dlc/bvlc_alexnet.dlc --input_list target_raw_list.txt
So I add some process log and figure out the crash may be happened in:
auto logger_opt = snpe->getDiagLogInterface();
if (!logger_opt) throw std::runtime_error("SNPE failed to obtain logging interface");
auto logger = *logger_opt;
auto opts = logger->getOptions();
Could someone help me fix this issue?