-
-
Notifications
You must be signed in to change notification settings - Fork 55.7k
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
stitch image error:libc++abi.dylib: terminating with uncaught exception of type cvflann::anyimpl::bad_any_cast #8018
Comments
This user had the same problem 6 years ago, is it still applicable? |
+1 |
https://stackoverflow.com/questions/41762869/stitching-panorama-on-ios-crashes-with-cvflannanyimplbad-any-cast <-- a couple of hack-arounds here. http://answers.opencv.org/question/503/how-to-use-the-lshindexparams/ <-- or here EDIT: None of these succeeded! |
Could someone try this patch ? It resolves memory corruption problem in flann library for some Apple compilers. |
I'm also getting hit by this bug: runtime error upon executing The error only occurs in debug build. Release build works okay. Was it just that modules/flann/include/opencv2/flann/any.h operator to add? I inserted the code & rebuilt but it didn't change anything. I noticed that patch is part of a larger commit (18 files modified). Should I be downloading and applying the whole commit? (can't see how to do this). |
@p-i- Thank you for check! Other changes are not related to flann library. |
How does one go about debugging an iOS build? I can imagine setting up the project in Xcode copying across all the linker flags etc from |
For my particular situation, replacing: ... with: ... did the trick. Hope this helps narrow it down for someone. |
in my case replacing |
Tried all of methods mentioned above, no one works... Struggling with this exception for so long time, can anybody help me? |
Hi @alex0-0. I'm facing a very similar issue. Could you finally fix it? |
Here's a total hack that has gotten me past the cvflann::anyimpl::bad_any_cast exception. I suspect it will prove to be problematic down the road, but I'd be curious if anyone can comment on how feasible it is. In Pods->OpenCV2->opencv_modules.hpp, on line 17, change:
|
Any idea now? I met this problem on ios 12.0 with opencv 3.4.4. |
same |
My issue was solved starting the Flann as |
I had similar problem: Fixed it by replacing general import to specific ones. |
Including headers necessary but import <opencv2/opencv.hpp> work for me. |
|
System information (version)
Detailed description
stitching images on iphone will crash,output error:
libc++abi.dylib: terminating with uncaught exception of type cvflann::anyimpl::bad_any_cast
but stitching images success on the simulator.
Steps to reproduce
the iOS project file:
opencvtest.zip
The text was updated successfully, but these errors were encountered: