regulaforensics / DocumentReader-iOS

iOS Framework for reading and validation of identification documents
56 stars 15 forks source link

[BR] DocumentReaderFullRFID pod conflict with onnxruntime-objc pod #64

Closed pksa closed 1 week ago

pksa commented 1 year ago

Bug Description

I have downloaded a sample application and added another pod onnxruntime-objc from ONNXRuntime in podfile and run the application. After that, I added object detection functionality using onnxruntime pod methods but got EXC_BAD_ACCESS error. For testing purposes I removed the DocumentReaderFullRFID pod then It was working fine. So I believe DocumentReaderFullRFID and onnxruntime-objc pods are conflicting with each other.

Steps To Reproduce

  1. Download the project from this link(https://drive.google.com/file/d/1kBLsTZrBdUw9NyYHMHKM4-COM7RrjBwp/view?usp=share_link)
  2. Install pod
  3. Add regula license
  4. After running the application, Click on the ORT button it will show EXC_BAD_ACCESS error

Expected behavior

Let me know which version of onnxruntime you are using in DocumentReaderFullRFID, So I can use the same version and maybe an issue will be resolved. I want to use the ONNXRuntime library anyhow because I want to process images as well as Document scans.

Screenshots

Screenshot 2023-04-05 at 11 32 01 AM

Environment:

Let me know if any queries

Thanks!

edgchen1 commented 1 year ago

Looks like there is a shared library, DocumentReaderCore:

% file Pods/DocumentReaderFullRFID/DocumentReaderCore.xcframework/ios-arm64_x86_64-simulator/DocumentReaderCore.framework/DocumentReaderCore
Pods/DocumentReaderFullRFID/DocumentReaderCore.xcframework/ios-arm64_x86_64-simulator/DocumentReaderCore.framework/DocumentReaderCore: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit dynamically linked shared library x86_64] [arm64]
Pods/DocumentReaderFullRFID/DocumentReaderCore.xcframework/ios-arm64_x86_64-simulator/DocumentReaderCore.framework/DocumentReaderCore (for architecture x86_64):        Mach-O 64-bit dynamically linked shared library x86_64
Pods/DocumentReaderFullRFID/DocumentReaderCore.xcframework/ios-arm64_x86_64-simulator/DocumentReaderCore.framework/DocumentReaderCore (for architecture arm64): Mach-O 64-bit dynamically linked shared library arm64

which exports symbol _OrtGetApiBase.

% nm -g Pods/DocumentReaderFullRFID/DocumentReaderCore.xcframework/ios-arm64_x86_64-simulator/DocumentReaderCore.framework/DocumentReaderCore | grep OrtGetApiBase
0000000000b0c550 T _OrtGetApiBase

The static library in onnxruntime-c also has a symbol with the same name.

vyakimchik commented 1 year ago

Hello. Please have a look at the new version - 6.8. The issue was fixed there. Thank you!

vyakimchik commented 2 weeks ago

Hi @pksa,

Have the issue been solved? Can we close the ticket?