Closed freeclouds closed 5 years ago
You could try to execute /apollo/bazel-bin/modules/planning/planning to check if planning could crash when starting it.
issue have fixed,we find in apollo master branch latest code have a bug, file path: apollo-master\apollo-master\modules\planning\planning_base.h
@freeclouds Hi, could you let us know more details about the bug in planning_base.h? Thanks!
Would you like to commit your solution for others who is suffering this issue?
we use gdb tools find in planning_dispatcher.cc, std::string Name() const override { return planningbase->Name(); } =》“return planningbase->Name()”; will cause core dump, because planningbase this class don't have Name()function, we return a string ,this core dump issue don't occur.
@freeclouds Name() function is define in ApolloApp class. The pointer will point to either std_planning or navi_planning. Calling ->Name() should work.
It seems that this problem has occurred since the following commit.
https://github.com/ApolloAuto/apollo/commit/28cd780499342ab7b5dc906dd1d7d497e03a6da6
Because Name() func is called before Init(), the planningbase in Name() is NULL.
We will fix it in the next release soon.
platform: ubuntu 16.04+apollo 3.0 about module: planning issue: when build pass lanunch planning module ,will failed:
alan@in_dev_docker:/apollo$ bash scripts/planning.sh start /apollo/scripts/apollo_base.sh: line 234: 26879 Segmentation fault (core dumped) nohup /apollo/bazel-bin/modules/planning/planning --flagfile=modules/planning/conf/planning.conf --log_dir=/apollo/data/log < /dev/null > /apollo/data/log/planning.out 2>&1 Could not launch module planning. Is it already built?
we have three PC to run this module, All computers have meet this issue, Is there some meet the same question?