yeatse / opencv-spm

Integrate OpenCV into your project using Swift Package Manager.
Apache License 2.0
69 stars 24 forks source link

Unable to view crash logs from errors #18

Open micheleRuocco opened 5 months ago

micheleRuocco commented 5 months ago

When an error happens from inside the opencv framework such as an assertion failure, no crash logs are created nor in crashlytics am I able to see any information.

When running locally I am able to see an error message in the console telling me the reason for the crash but not when the app is distributed to others.

Any idea of how I can get these errors saved somewhere so I can fix them?

yeatse commented 5 months ago

If there are no crash logs, how are you able to know that a crash has occurred?

micheleRuocco commented 5 months ago

I have a screen recording from a user. As well as if I force a crash myself by calling something like Imgproc.cvtColor(src: Mat(), dst: grayMat, code: ColorConversionCodes.COLOR_RGB2GRAY) in the console I get

libc++abi: terminating due to uncaught exception of type cv::Exception: OpenCV(4.9.0) /Users/runner/work/opencv-spm/opencv-spm/opencv/modules/imgproc/src/color.cpp:196: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'

However when not connected to Xcode I get no information about this crash.