Comments (7)
Thank you for sharing the requested information. This is a known issue on Samsung devices and we have forwarded it to our internal teams, as soon as we have an update, we will make a follow-up here.
from blinkid-android.
Hello! Thank you for reaching out! Would you mind sharing how you are setting up the license? Would you also share the license number(starting LIC00..) that you are using?
Does the issue only appear on Samsung devices? Have you tried testing it on other Android devices?
from blinkid-android.
Hello! Thank you for your response!
Would you mind sharing how you are setting up the license?
We are setting up the license as follows:
override fun onCreate() {
super.onCreate()
// ... other initializations
MicroblinkSDK.setLicenseFile("licenses/microblink/license.key", this)
}
Does the issue only appear on Samsung devices?
The issue appears mostly on Samsung devices. Take a look at this screenshot from Crashlytics for the last 30 days
Have you tried testing it on other Android devices?
I'm testing on a Moto G (5) Plus but I can't reproduce the error. However, if I enable StrictMode I get several strict policy violations:
StrictMode policy violation; ~duration=111 ms: android.os.StrictMode$StrictModeDiskReadViolation: policy=65543 violation=2
at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1449)
at java.io.UnixFileSystem.list(UnixFileSystem.java:302)
at java.io.File.list(File.java:1122)
at java.io.File.listFiles(File.java:1286)
at com.microblink.blinkid.secured.IIIlllIlII.<clinit>(line:3)
at com.microblink.blinkid.hardware.MicroblinkDeviceManager.<clinit>(line:1)
at com.microblink.blinkid.hardware.MicroblinkDeviceManager.IllIIIIllI(line:1)
at com.microblink.blinkid.secured.lIlIllllII.IllIIIllII(line:3)
at com.microblink.blinkid.secured.lIlIllllII.llIIlIlIIl(line:1)
at com.microblink.blinkid.MicroblinkSDK.<clinit>(line:1)
at com.microblink.blinkid.MicroblinkSDK.setLicenseFile(Unknown Source:0)
at com.example.MyApp.onCreate(MyApp.kt:126)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1141)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5854)
at android.app.ActivityThread.-wrap1(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1697)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6626)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:811)
StrictMode policy violation; ~duration=103 ms: android.os.StrictMode$StrictModeDiskReadViolation: policy=65543 violation=2
at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1449)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:203)
at libcore.io.IoBridge.open(IoBridge.java:498)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:274)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:141)
at com.microblink.blinkid.secured.IIIlllIlII.llIIlIlIIl(line:21)
at com.microblink.blinkid.secured.IIIlllIlII.<clinit>(line:16)
at com.microblink.blinkid.hardware.MicroblinkDeviceManager.<clinit>(line:1)
at com.microblink.blinkid.hardware.MicroblinkDeviceManager.IllIIIIllI(line:1)
at com.microblink.blinkid.secured.lIlIllllII.IllIIIllII(line:3)
at com.microblink.blinkid.secured.lIlIllllII.llIIlIlIIl(line:1)
at com.microblink.blinkid.MicroblinkSDK.<clinit>(line:1)
at com.microblink.blinkid.MicroblinkSDK.setLicenseFile(Unknown Source:0)
at com.example.MyApp.onCreate(MyApp.kt:126)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1141)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5854)
at android.app.ActivityThread.-wrap1(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1697)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6626)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:811)
StrictMode policy violation; ~duration=101 ms: android.os.StrictMode$StrictModeDiskReadViolation: policy=65543 violation=2
at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1449)
at libcore.io.BlockGuardOs.fstat(BlockGuardOs.java:153)
at libcore.io.IoBridge.open(IoBridge.java:501)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:274)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:141)
at com.microblink.blinkid.secured.IIIlllIlII.llIIlIlIIl(line:21)
at com.microblink.blinkid.secured.IIIlllIlII.<clinit>(line:16)
at com.microblink.blinkid.hardware.MicroblinkDeviceManager.<clinit>(line:1)
at com.microblink.blinkid.hardware.MicroblinkDeviceManager.IllIIIIllI(line:1)
at com.microblink.blinkid.secured.lIlIllllII.IllIIIllII(line:3)
at com.microblink.blinkid.secured.lIlIllllII.llIIlIlIIl(line:1)
at com.microblink.blinkid.MicroblinkSDK.<clinit>(line:1)
at com.microblink.blinkid.MicroblinkSDK.setLicenseFile(Unknown Source:0)
at com.example.MyApp.onCreate(MyApp.kt:126)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1141)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5854)
at android.app.ActivityThread.-wrap1(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1697)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6626)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:811)
StrictMode policy violation; ~duration=99 ms: android.os.StrictMode$StrictModeDiskReadViolation: policy=65543 violation=2
at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1449)
at libcore.io.BlockGuardOs.read(BlockGuardOs.java:250)
at libcore.io.IoBridge.read(IoBridge.java:528)
at java.io.RandomAccessFile.readBytes(RandomAccessFile.java:359)
at java.io.RandomAccessFile.read(RandomAccessFile.java:388)
at java.io.RandomAccessFile.read(RandomAccessFile.java:346)
at java.io.RandomAccessFile.readLine(RandomAccessFile.java:976)
at com.microblink.blinkid.secured.IIIlllIlII.llIIlIlIIl(line:23)
at com.microblink.blinkid.secured.IIIlllIlII.<clinit>(line:16)
at com.microblink.blinkid.hardware.MicroblinkDeviceManager.<clinit>(line:1)
at com.microblink.blinkid.hardware.MicroblinkDeviceManager.IllIIIIllI(line:1)
at com.microblink.blinkid.secured.lIlIllllII.IllIIIllII(line:3)
at com.microblink.blinkid.secured.lIlIllllII.llIIlIlIIl(line:1)
at com.microblink.blinkid.MicroblinkSDK.<clinit>(line:1)
at com.microblink.blinkid.MicroblinkSDK.setLicenseFile(Unknown Source:0)
at com.example.MyApp.onCreate(MyApp.kt:126)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1141)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5854)
at android.app.ActivityThread.-wrap1(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1697)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6626)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:811)
Would you also share the license number(starting LIC00..) that you are using?
LIC03000054510
from blinkid-android.
Hello @giacomuzzi, Our internal teams have requested the below details in order to reproduce the crash.
Do you maybe have a minimal reproducible sample app? If yes, please share it with us.
Also, can you please share the full crash logs? How often does the crash happen?
Once you share the requested information, we will forward these details internally and reach out with an update. Thank you.
from blinkid-android.
Hello @somyaguptagit , you can enable StrictMode to detect which operations shouldn't be executed on the main thread, if you keep those operations off the main thread you will fix the bug.
from blinkid-android.
Hi @somyaguptagit I have the same issue with ANR events. When initializing the Microblink SDK in the application's onCreate method. The libBlinkID.so library is being loaded in the main thread and generate ANR.
Can you give the most up-to-date information and guidance on how to solve this problem ?
from blinkid-android.
Hello @aottonello Would you kindly reach out to Microblink Support([email protected]) with the below-requested information so we can continue troubleshooting over there?
Also, it would be helpful if you can share a minimal reproducible sample app. Thank you.
from blinkid-android.
Related Issues (20)
- Camera view has no children?!? HOT 1
- How to change to front-facing camera using `RecognizerRunnerView`? HOT 3
- Blink id scan screen crashes for this. HOT 2
- USDL - Louisiana - Doesn't OCR/Decode the PDF barcode at the back of the card HOT 4
- Can't scan backside of ID card with BlinkIdSingleSideRecognizer() in custom option. HOT 3
- Error Migration from 5.20.0 to 6.0.0 - NoClassDefFoundError MicroblinkSDK HOT 3
- Reinstate x86 and x86_64 support. HOT 1
- Warning: This feature is not supported on camera without autofocus HOT 8
- How to set outer layer of the quad view with grey transparent overlay HOT 4
- This entity is not allowed by currently active license! HOT 1
- Can not close error popup on 6.2.1 version HOT 3
- Background ANR at jdk.internal.misc.Unsafe.park HOT 10
- Invalid license buffer magic number. HOT 5
- doesn't read first/last name or doc number from some type of Chinese passport HOT 2
- DateResult and Date toString returns appended data instead of interleaved HOT 4
- Sample apps use an outdated version of BlinkID and don't compile with the current version (6.5.0) HOT 1
- com.microblink.blinkid.licence.exception.InvalidLicenceKeyException HOT 1
- Upgrading to Version 6.6.0 but the SDK is not working HOT 2
- Feature Request: Height, Eye Color, Hair Color, Weight Support HOT 2
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 blinkid-android.