Mimalloc引起ppocr推理崩溃
#12773
Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
如果一定要引入mimalloc库的话有何解决办法? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
端侧本地部署ppocr的推理程序。计划将ppocr编译为dll,并导出一个接口供外部调用。主程序ConsoleApplication1.exe调用这个导出的接口。主程序里引入mimalloc后,在推理过程中崩溃。
具体崩溃位置为检测过程的BoxesFromBitmap接口,见附图。
其中主程序ConsoleApplication.exe的代码为

PPOCR推理库导出接口为

请教可能是什么原因?是ppocr里内存管理可能有不恰当的地方,还是自身与mimalloc不兼容?是否与ppocr.dll的MT、MD模式有关?
Beta Was this translation helpful? Give feedback.
All reactions