Closed jeethukthomas closed 5 years ago
Error: runtime: UI API called from background thread: -[UIApplication applicationState] must be used from main thread only
This is knows issue, it will be fixed in the next release version, but it shouldn't trigger a crash.
Could you please provide more information about this issue? How we can reproduce it on our side?
But in iOS12 its triggering crash
We have tested on few different devices with iOS 12 and all working fine, can you provide full crash log, please?
Im using, Xcode 10, swift 4.+ with iPhone Xs Max running on iOS 12. Im getting the following error after scanning the document, before receiving the control in the "handleResult(result: DocumentReaderResults?)" delegate.
=================================================================
Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState]
PID: 670, TID: 37290, Thread name: com.apple.CoreMotion.MotionThread, Queue name: com.apple.root.default-qos.overcommit, QoS: 0
Backtrace:
4 libobjc.A.dylib 0x000000019cb17894
While using this git example code also im getting the same error.
Thank you for your report, we have able to reproduce it in our side, now.
As we understand it crashed only on new devices like Xs and Xs Max. It is a problem in our Core part and unrelated with calling UI API from background thread.
We are working on to resolve this issue shortly.
We are working on a PoC app, and the device we use for the demo is iPhone Xs Max with iOS 12. We want to complete this by today. So, will you able to give a fix for this issue by today at the earliest? Else, we have to look for alternatives.
@jeethukthomas Unfortunately, we can't resolve this issue very fast. We are still working on it now. After fix we should prepare new release version for API and Core, so it will take some time
@jeethukthomas Hello, we have fixed this issue, and preparing new release version right now. If you want to get it faster please email to our support: support@regulaforensics.com
Thank you. I have already mailed you. Please do the needful
Fixed in latest release
Error: runtime: UI API called from background thread: -[UIApplication applicationState] must be used from main thread only
It happened immediately when the scanner detects the document. in iOS 11 and all, its working fine