trt_mobilenet_demo fails in CI
Created by: luotao1
[05:19:49] [Step 1/1] ++ ./trt_mobilenet_demo --modeldir=/root/.cache/inference_demo/mobilenet/model --data=/root/.cache/inference_demo/mobilenet/data.txt --refer=/root/.cache/inference_demo/mobilenet/result.txt
[05:19:50] [Step 1/1] WARNING: Logging before InitGoogleLogging() is written to STDERR
[05:19:50] [Step 1/1] I0108 05:19:50.505302 117886 analysis_config.cc:28] Create GPU IR passes
[05:19:50] [Step 1/1] terminate called after throwing an instance of 'paddle::platform::EnforceNotMet'
[05:19:50] [Step 1/1] what(): Fail to parse program_desc from binary string. at [/paddle/paddle/fluid/framework/program_desc.cc:95]
[05:19:50] [Step 1/1] PaddlePaddle Call Stacks:
[05:19:50] [Step 1/1] 0 0x7f2484d74a6dp void paddle::platform::EnforceNotMet::Init<char const*>(char const*, char const*, int) + 1517
[05:19:50] [Step 1/1] 1 0x7f2484d76135p paddle::platform::EnforceNotMet::EnforceNotMet(std::__exception_ptr::exception_ptr, char const*, int) + 165
[05:19:50] [Step 1/1] 2 0x7f2484eb2db4p paddle::framework::ProgramDesc::ProgramDesc(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) + 788
[05:19:50] [Step 1/1] 3 0x7f2484d7291fp paddle::inference::Load(paddle::framework::Executor*, paddle::framework::Scope*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) + 111
[05:19:50] [Step 1/1] 4 0x7f24864c0d95p paddle::inference::analysis::IrGraphBuildPass::LoadModel(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, paddle::framework::Scope*, boost::variant<paddle::platform::CUDAPlace, paddle::platform::CPUPlace, paddle::platform::CUDAPinnedPlace, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_> const&, bool) + 133
[05:19:50] [Step 1/1] 5 0x7f24864c20bbp paddle::inference::analysis::IrGraphBuildPass::RunImpl(paddle::inference::analysis::Argument*) + 4891
[05:19:50] [Step 1/1] 6 0x7f24864bdfbep paddle::inference::analysis::IrAnalysisComposePass::ApplyIrPasses(paddle::inference::analysis::Argument*) + 1214
[05:19:50] [Step 1/1] 7 0x7f24864bfbebp paddle::inference::analysis::IrAnalysisComposePass::RunImpl(paddle::inference::analysis::Argument*) + 187
[05:19:50] [Step 1/1] 8 0x7f24864855f4p paddle::inference::analysis::Analyzer::RunIrAnalysis(paddle::inference::analysis::Argument*) + 548
[05:19:50] [Step 1/1] 9 0x7f2484d8bbdfp paddle::AnalysisPredictor::OptimizeInferenceProgram() + 1119
[05:19:50] [Step 1/1] 10 0x7f2484d8da1fp paddle::AnalysisPredictor::PrepareProgram(std::shared_ptr<paddle::framework::ProgramDesc> const&) + 271
[05:19:50] [Step 1/1] 11 0x7f2484d8dbafp paddle::AnalysisPredictor::Init(std::shared_ptr<paddle::framework::Scope> const&, std::shared_ptr<paddle::framework::ProgramDesc> const&) + 367
[05:19:50] [Step 1/1] 12 0x7f2484d8df92p std::unique_ptr<paddle::PaddlePredictor, std::default_delete<paddle::PaddlePredictor> > paddle::CreatePaddlePredictor<paddle::contrib::AnalysisConfig, (paddle::PaddleEngineKind)2>(paddle::contrib::AnalysisConfig const&) + 866
[05:19:50] [Step 1/1] 13 0x7f2484d8e5a0p std::unique_ptr<paddle::PaddlePredictor, std::default_delete<paddle::PaddlePredictor> > paddle::CreatePaddlePredictor<paddle::contrib::AnalysisConfig>(paddle::contrib::AnalysisConfig const&) + 32
[05:19:50] [Step 1/1] 14 0x41f7f1p paddle::demo::Main() + 263
[05:19:50] [Step 1/1] 15 0x4200d5p main + 44
[05:19:50] [Step 1/1] 16 0x7f248362b830p __libc_start_main + 240
[05:19:50] [Step 1/1] 17 0x41e429p _start + 41
[05:19:50] [Step 1/1]
[05:19:50] [Step 1/1] ./run.sh: line 56: 117886 Aborted ./trt_mobilenet_demo --modeldir=$DATA_DIR/mobilenet/model --data=$DATA_DIR/mobilenet/data.txt --refer=$DATA_DIR/mobilenet/result.txt
Since trt_mobilenet_demo
doesn't have following lines, it will not report error if it crashes.
https://github.com/PaddlePaddle/Paddle/blob/223cc89f0be6d5b38bf88b1a73cea72cec2e3569/paddle/fluid/inference/api/demo_ci/run.sh#L96-L99