Giter Site home page Giter Site logo

Comments (11)

DmitrySmolyakov avatar DmitrySmolyakov commented on May 16, 2024 1

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.

DmitrySmolyakov avatar DmitrySmolyakov commented on May 16, 2024

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.

jeethukthomas avatar jeethukthomas commented on May 16, 2024

But in iOS12 its triggering crash

from documentreader-ios.

DmitrySmolyakov avatar DmitrySmolyakov commented on May 16, 2024

We have tested on few different devices with iOS 12 and all working fine, can you provide full crash log, please?

from documentreader-ios.

jeethukthomas avatar jeethukthomas commented on May 16, 2024

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.

jeethukthomas avatar jeethukthomas commented on May 16, 2024

While using this git example code also im getting the same error.

from documentreader-ios.

jeethukthomas avatar jeethukthomas commented on May 16, 2024

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.

DmitrySmolyakov avatar DmitrySmolyakov commented on May 16, 2024

@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.

DmitrySmolyakov avatar DmitrySmolyakov commented on May 16, 2024

@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.

jeethukthomas avatar jeethukthomas commented on May 16, 2024

Thank you. I have already mailed you. Please do the needful

from documentreader-ios.

DmitrySmolyakov avatar DmitrySmolyakov commented on May 16, 2024

Fixed in latest release

from documentreader-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.