Hi,
I follow the C++ Tutorial to make the snpe-sample then run, but got the "Segmentation fault (core dumped)".
Belows are my cmds:
cd $SNPE_ROOT/examples/NativeCpp/SampleCodeexport CXX=g++make -f Makefile.x86_64-linux-clangcd $SNPE_ROOT/models/alexnet/data$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?
environment:
Ubuntu: 16.04
SNPE: 1.14.1
I have got the same error.
Did you get the solution?
Does this has to do with Ubuntu version?
check your gcc version, if its gcc5.4. then using gcc4.9 may solve your problem.