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

识别异常时异常不会被捕获,导致整个服务挂掉 #40

Open
youknowhaze opened this issue Apr 7, 2024 · 6 comments
Open
Labels
enhancement New feature or request

Comments

@youknowhaze
Copy link

目前在实际使用中碰到如下问题场景,异常均无法捕获,服务直接挂掉
场景如下:
1、识别一张已损坏图片,会导致识别异常,服务挂掉
2、被修改后缀的异常文件,a文件为一个非图片文件,如dox、zip、html等文件,现直接修改后缀为a.png,识别a.png会使服务挂掉

现在是在解析前判断是否为图片,如果为图片才进行识别,来避免此问题

image

image

image

@MyMonsterCat
Copy link
Owner

感谢反馈

@MyMonsterCat MyMonsterCat added the enhancement New feature or request label Apr 30, 2024
@littleLittleCoder
Copy link

就算是文件图片,如果是损坏的文件图片也会挂掉

@ffeiko
Copy link

ffeiko commented Aug 2, 2024

可以问下在这个问题解决了吗 , 我这边也遇到了这个问题

@a773860916
Copy link

可以识别失败,但是不能挂掉呀~~~~~

@rongrong1000
Copy link

用 NCNN 试试

@ZHAOmingquan
Copy link

图片损坏或不常见格式(如ico)仍然会使整个jvm服务挂掉

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

No branches or pull requests

7 participants