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

External component has thrown an exception (Windows Server 2019) #70

Open
ytchen2833 opened this issue Nov 13, 2023 · 1 comment
Open

Comments

@ytchen2833
Copy link

ytchen2833 commented Nov 13, 2023

It can run on Windows 10, but throw an exception on the windows server IIS. The error log is shown as below.

ErrorLog

2023-11-13 09:20:11,821 [ERROR] [(null)] [8] [IISHttpServer] [?] Connection ID "17582052951160001624", Request ID "8000145b-0001-f400-b63f-84710c7967bb": An unhandled exception was thrown by the application.
System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception.
   at Sdcb.PaddleInference.Native.PaddleNative.PD_PredictorRun(IntPtr pd_predictor)
   at Sdcb.PaddleInference.PaddlePredictor.Run()
   at Sdcb.PaddleOCR.PaddleOcrDetector.RunRaw(Mat src, Size& resizedSize)
   at Sdcb.PaddleOCR.PaddleOcrDetector.Run(Mat src)
   at Sdcb.PaddleOCR.PaddleOcrAll.Run(Mat src, Int32 recognizeBatchSize)
   at Sdcb.PaddleOCR.QueuedPaddleOcrAll.ProcessQueue()

I turned stdoutLogEnabled on, and the error log is shown as below.

fail: Microsoft.AspNetCore.Server.IIS.Core.IISHttpServer[2]
      Connection ID "17870283331606688933", Request ID "800034a6-0002-f800-b63f-84710c7967bb": An unhandled exception was thrown by the application.
      System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception.
         at Sdcb.PaddleInference.Native.PaddleNative.PD_PredictorRun(IntPtr pd_predictor)
         at Sdcb.PaddleInference.PaddlePredictor.Run()
         at Sdcb.PaddleOCR.PaddleOcrDetector.RunRaw(Mat src, Size& resizedSize)
         at Sdcb.PaddleOCR.PaddleOcrDetector.Run(Mat src)
         at Sdcb.PaddleOCR.PaddleOcrAll.Run(Mat src, Int32 recognizeBatchSize)
         at Sdcb.PaddleOCR.QueuedPaddleOcrAll.ProcessQueue()

Environment
Windows Server 2019 Standard
IIS 10.0.17763.1
.NET 6 Web API
PackageReference Include="Sdcb.PaddleInference" Version="2.5.0.1"
PackageReference Include="Sdcb.PaddleInference.runtime.win64.mkl" Version="2.5.1"
PackageReference Include="Sdcb.PaddleOCR" Version="2.7.0"
PackageReference Include="Sdcb.PaddleOCR.Models.Local" Version="2.7.0"

@sdcb
Copy link
Owner

sdcb commented Nov 13, 2023

Can you try my another project OpenVINO.NET: https://github.com/sdcb/OpenVINO.NET
Also provided PaddleOCR inference but it's better.

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