Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ddddocr.DdddOcr(ocr=True)在centos系统报Segmentation fault (core dumped)错误 #96

Closed
18463105800 opened this issue Oct 12, 2022 · 3 comments

Comments

@18463105800
Copy link

18463105800 commented Oct 12, 2022

在centos系统中尝试安装了python3.8版本和3.9版本,只要是运行ddddocr.DdddOcr(ocr=True)代码就会报coredump错误(ocr为false不会),看了下报错行数是在”self.__ort_session = onnxruntime.InferenceSession(self.__graph_path, providers=self.__providers)“代码中,怀疑和onnxruntime有关,尝试安装了多个版本都不行(后面测试1.6.0一个比较老的版本没问题),onnxruntime升级到最新版后虽然没有cordump,但就是一直卡着不出结果。辛苦大佬们帮忙看看这个问题,看看是否遇到了类似的

@zytomorrow
Copy link

和你出现了类似的问题,但是比你复杂点

我打包了一个docker镜像,基础环境是3.9.10,在LXC ubuntu 22.04 LTS上卡着不出结果,但是同一个镜像在VPS ubuntu 22.04就正常

@zytomorrow
Copy link

和你出现了类似的问题,但是比你复杂点

我打包了一个docker镜像,基础环境是3.9.10,在LXC ubuntu 22.04 LTS上卡着不出结果,但是同一个镜像在VPS ubuntu 22.04就正常

基础镜像切换到python:3.8.13-slim,onnxruntime指定1.6.0,运行正常

@18463105800
Copy link
Author

18463105800 commented Oct 26, 2022

确实,onnxruntime指定1.6.0就没问题,之前也发现了,但是新版本的死活都不行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants