Comments (11)
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.
from documentreader-ios.
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?
from documentreader-ios.
But in iOS12 its triggering crash
from documentreader-ios.
We have tested on few different devices with iOS 12 and all working fine, can you provide full crash log, please?
from documentreader-ios.
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 + 56
5 CoreMotion 0x00000001a33787a4 CoreMotion + 305060
6 CoreMotion 0x00000001a3378cd8 CoreMotion + 306392
7 CoreMotion 0x00000001a3378be8 CoreMotion + 306152
8 CoreMotion 0x00000001a33aa3cc CoreMotion + 508876
9 CoreMotion 0x00000001a33aa42c CoreMotion + 508972
10 CoreFoundation 0x000000019d8b0888 + 28
11 CoreFoundation 0x000000019d8b016c + 276
12 CoreFoundation 0x000000019d8ab470 + 2324
13 CoreFoundation 0x000000019d8aa844 CFRunLoopRunSpecific + 452
14 CoreFoundation 0x000000019d8ab5a8 CFRunLoopRun + 84
15 CoreMotion 0x00000001a33a9d64 CoreMotion + 507236
16 libsystem_pthread.dylib 0x000000019d525a04 + 132
17 libsystem_pthread.dylib 0x000000019d525960 _pthread_start + 52
18 libsystem_pthread.dylib 0x000000019d52ddf4 thread_start + 4
2018-10-24 13:29:03.441354+0530 PassportAuthenticator[670:37290] [reports] 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 + 56
5 CoreMotion 0x00000001a33787a4 CoreMotion + 305060
6 CoreMotion 0x00000001a3378cd8 CoreMotion + 306392
7 CoreMotion 0x00000001a3378be8 CoreMotion + 306152
8 CoreMotion 0x00000001a33aa3cc CoreMotion + 508876
9 CoreMotion 0x00000001a33aa42c CoreMotion + 508972
10 CoreFoundation 0x000000019d8b0888 + 28
11 CoreFoundation 0x000000019d8b016c + 276
12 CoreFoundation 0x000000019d8ab470 + 2324
13 CoreFoundation 0x000000019d8aa844 CFRunLoopRunSpecific + 452
14 CoreFoundation 0x000000019d8ab5a8 CFRunLoopRun + 84
15 CoreMotion 0x00000001a33a9d64 CoreMotion + 507236
16 libsystem_pthread.dylib 0x000000019d525a04 + 132
17 libsystem_pthread.dylib 0x000000019d525960 _pthread_start + 52
18 libsystem_pthread.dylib 0x000000019d52ddf4 thread_start + 4
Scaning not finished. Result: <DocumentReaderResults: 0x2808650e0>
Scaning not finished. Result: <DocumentReaderResults: 0x28084d900>
Scaning not finished. Result: <DocumentReaderResults: 0x28084d770>
Scaning not finished. Result: <DocumentReaderResults: 0x28084dc70>
Scaning not finished. Result: <DocumentReaderResults: 0x28084d040>
Scaning not finished. Result: <DocumentReaderResults: 0x28084d3b0>
Scaning not finished. Result: <DocumentReaderResults: 0x2808657c0>
Scaning not finished. Result: <DocumentReaderResults: 0x280865bd0>
Scaning not finished. Result: <DocumentReaderResults: 0x2808660d0>
Scaning not finished. Result: <DocumentReaderResults: 0x280864e60>
Scaning not finished. Result: <DocumentReaderResults: 0x280864d20>
Scaning not finished. Result: <DocumentReaderResults: 0x280865400>
Scaning not finished. Result: <DocumentReaderResults: 0x280866120>
Scaning not finished. Result: <DocumentReaderResults: 0x280864e60>
Scaning not finished. Result: <DocumentReaderResults: 0x28084e030>
Scaning not finished. Result: <DocumentReaderResults: 0x28084d9f0>
Scaning not finished. Result: <DocumentReaderResults: 0x280864d20>
Scaning not finished. Result: <DocumentReaderResults: 0x28084cdc0>
Scaning not finished. Result: <DocumentReaderResults: 0x28084c690>
Scaning not finished. Result: <DocumentReaderResults: 0x28084e030>
Scaning not finished. Result: <DocumentReaderResults: 0x2808665d0>
Scaning not finished. Result: <DocumentReaderResults: 0x280866080>
Scaning not finished. Result: <DocumentReaderResults: 0x280866030>
Scaning not finished. Result: <DocumentReaderResults: 0x280865360>
Scaning not finished. Result: <DocumentReaderResults: 0x280864eb0>
Scaning not finished. Result: <DocumentReaderResults: 0x2808d5cc0>
libc++abi.dylib: terminating with uncaught exception of type (anonymous namespace)::ExifParsingError
(lldb)
from documentreader-ios.
While using this git example code also im getting the same error.
from documentreader-ios.
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.
from documentreader-ios.
@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
from documentreader-ios.
@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: [email protected]
from documentreader-ios.
Thank you. I have already mailed you. Please do the needful
from documentreader-ios.
Fixed in latest release
from documentreader-ios.
Related Issues (20)
- prepareDatabase crash in 5.0.531 HOT 2
- Can't get the values from Malaysian MyKad back images HOT 1
- Capture button doesn't apper HOT 1
- Crash after scan document: EXC_BAD_ACCESS HOT 3
- Add support for Mac Catalyst HOT 4
- Auto update and initialization problems HOT 3
- DocumentReaderGraphicResult doesn't return an image for a .gf_Portrait path. HOT 2
- App crash with OCR mode selected HOT 4
- App metadata rejected from app store because of NFC usage while we use just MRZ scanner... HOT 10
- memory issues on iphone 6 HOT 1
- get SOD data from NFC HOT 2
- recognizeImage problem HOT 10
- Есть ли либа упакованная в xcframework? HOT 5
- Build error on case sensitive apfs volume HOT 2
- TourchButton not hiding
- Trial license HOT 4
- App crashing on initializeReader(config: Config(license: license), completion: completion) HOT 1
- [FR] Missing changelog in github repo HOT 1
- [BR] DocumentReaderFullRFID pod conflict with onnxruntime-objc pod HOT 2
- [BR] TMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from documentreader-ios.