Skip to content

Segmentation Fault when Loading PP-LCNet_x1_0_doc_ori Model on ARM CPU with PaddleOCR #17590

@wangxiang0722

Description

@wangxiang0722

🔎 Search before asking

  • I have searched the PaddleOCR Docs and found no similar bug report.
  • I have searched the PaddleOCR Issues and found no similar bug report.
  • I have searched the PaddleOCR Discussions and found no similar bug report.

🐛 Bug (问题描述)

ARM CPU,加载PP-LCNet_x1_0_doc_ori模型报错,报错内容:

--------------------------------------
C++ Traceback (most recent call last):
--------------------------------------
0   paddle_infer::Predictor::Predictor(paddle::AnalysisConfig const&)
1   std::unique_ptr<paddle::PaddlePredictor, std::default_delete<paddle::PaddlePredictor> > paddle::CreatePaddlePredictor<paddle::AnalysisConfig, (paddle::PaddleEngineKind)2>(paddle::AnalysisConfig const&)
2   paddle::AnalysisPredictor::Init(std::shared_ptr<paddle::framework::Scope> const&, std::shared_ptr<paddle::framework::ProgramDesc> const&)
3   paddle::AnalysisPredictor::PreparePirProgram()
4   paddle::AnalysisPredictor::SaveOrLoadPirParameters(bool)
5   std::filesystem::__cxx11::path::~path()
6   std::vector<std::filesystem::__cxx11::path::_Cmpt, std::allocator<std::filesystem::__cxx11::path::_Cmpt> >::~vector()
7   std::vector<std::filesystem::__cxx11::path::_Cmpt, std::allocator<std::filesystem::__cxx11::path::_Cmpt> >::~vector()

----------------------
Error Message Summary:
----------------------
FatalError: `Segmentation fault` is detected by the operating system.
  [TimeInfo: *** Aborted at 1769685800 (unix time) try "date -d @1769685800" if you are using GNU date ***]
  [SignalInfo: *** SIGSEGV (@0x6623) received by PID 26147 (TID 0xffff81fc2020) from PID 26147 ***]

Segmentation fault (core dumped)

Python代码:

pipeline = PaddleOCRVL(vl_rec_backend="vllm-server", vl_rec_server_url=my_url,
    layout_detection_model_dir=layout_detection_model_dir,
    doc_orientation_classify_model_name="PP-LCNet_x1_0_doc_ori",
    use_doc_orientation_classify=True,
    doc_orientation_classify_model_dir=doc_orientation_classify_model_dir)

已安装的包版本

paddle-custom-npu      3.2.0
paddleocr              3.3.1
paddlepaddle           3.3.0
paddlex                3.3.13

🏃‍♂️ Environment (运行环境)

paddle-custom-npu      3.2.0
paddleocr              3.3.1
paddlepaddle           3.3.0
paddlex                3.3.13

🌰 Minimal Reproducible Example (最小可复现问题的Demo)

pipeline = PaddleOCRVL(vl_rec_backend="vllm-server", vl_rec_server_url=my_url,
layout_detection_model_dir=layout_detection_model_dir,
doc_orientation_classify_model_name="PP-LCNet_x1_0_doc_ori",
use_doc_orientation_classify=True,
doc_orientation_classify_model_dir=doc_orientation_classify_model_dir)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions