Forums - snpe-sample to android demo

3 posts / 0 new
Last post
snpe-sample to android demo
zhouxiangjing2018
Join Date: 25 Jul 18
Posts: 1
Posted: Wed, 2018-07-25 23:34

snpe-sample to android demo

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();

opts.LogFileDirectory = OutputDir;
if(!logger->setOptions(opts)) {
std::cerr << "Failed to set options" << std::endl;
std::exit(1);
}
if (!logger->start()) {
std::cerr << "Failed to start logger" << std::endl;
std::exit(1);
}

 

Always output "Failed to start logger"   on andeoid demo

Could someone help me fix this issue?

  • Up0
  • Down0
tsinghal
Join Date: 29 Aug 19
Posts: 2
Posted: Thu, 2019-08-29 18:22

Hi, 

Did you get any response or working solution to this. I am also facing same issue.

  • Up0
  • Down0
tsinghal
Join Date: 29 Aug 19
Posts: 2
Posted: Thu, 2019-08-29 19:16

Resolved it! There was some issue with 'OutputDir' value. When I tried different location (/sdcard/DCIM), I was able to dump log. Please check the location in your case too.

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.