-
Notifications
You must be signed in to change notification settings - Fork 43
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
识别异常时异常不会被捕获,导致整个服务挂掉 #40
Labels
enhancement
New feature or request
Comments
感谢反馈 |
就算是文件图片,如果是损坏的文件图片也会挂掉 |
可以问下在这个问题解决了吗 , 我这边也遇到了这个问题 |
可以识别失败,但是不能挂掉呀~~~~~ |
用 NCNN 试试 |
图片损坏或不常见格式(如ico)仍然会使整个jvm服务挂掉 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
目前在实际使用中碰到如下问题场景,异常均无法捕获,服务直接挂掉
场景如下:
1、识别一张已损坏图片,会导致识别异常,服务挂掉
2、被修改后缀的异常文件,a文件为一个非图片文件,如dox、zip、html等文件,现直接修改后缀为a.png,识别a.png会使服务挂掉
现在是在解析前判断是否为图片,如果为图片才进行识别,来避免此问题
The text was updated successfully, but these errors were encountered: