-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
crashed in construction of Ort::Env, xcode13, iPhoneX #11446
Comments
Would you mind providing more details? E.g., version of ONNX runtime, full code example that reproduces the issue. |
Thanks.
|
@lanyuer: are u with IOS project or MacOS project? Further - since it is M1, is x86_64 onnxruntime a compatible version? |
Yes it's IOS project. |
@lanyuer : thanks for confirming that. |
Then why consuming x86_64 onnxruntime package on M1? Are u with simulator or something? |
threadinfo
|
@lanyuer : it is likely that that the pod installed are is with arm64 onnxruntime binary, to test out, mind try this? |
It's not worked. "xxx.xcodeproj Building for iOS, but the linked library 'libonnxruntime.1.11.1.dylib' was built for macOS." I'll try to build from source later. |
Any luck building from source? |
Closing as no response from user. |
same problem here. If I remove the opencv, it works fine. Is there any conflict in opencv and onnx runtime? How to solve it? |
I would like to reopen this comment with some weird behaviour. Common Steps:
Experiment 1: Created a fresh project with the pod and ran this part of the code:
I am able to create an ort session in this experiment. Experiment 2: Created a flutter project and communicating with the iOS module using a method channel. Flutter part: Ios Part (AppDelegate.swift)
} This experiment gives me an error at creating a ORTEnv: ` PS: If I change the pod from onnxruntime-objc to onnxruntime-mobile-objc I get this same error while creating an ORTSession...This is very confusing...Any help would be appreciated |
would it be possible to get a stacktrace? you can try to build the pods from source: try using config "RelWithDebInfo". "Debug" will result in a binary that is too large for CocoaPods to handle.
could you provide a complete (and hopefully minimal) example to reproduce the issue? I don't have experience with Flutter - if that's required, any instructions to get it running would be useful. does your project also use OpenCV? seems to be a theme in the other comments. |
Just when I tried this I got a crash.
std::string onnx_path = "./modnet_cpu.onnx";
Ort::Env ort_env;
crash info:
KeepDemo(5283,0x106ca4580) malloc: *** error for object 0x281dd9458: pointer being freed was not allocated KeepDemo(5283,0x106ca4580) malloc: *** set a breakpoint in malloc_error_break to debug dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib
Thanks for helping me to solve it
The text was updated successfully, but these errors were encountered: