Giter Club home page Giter Club logo

Comments (7)

somyaguptagit avatar somyaguptagit commented on July 18, 2024 1

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.

somyaguptagit avatar somyaguptagit commented on July 18, 2024

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.

giacomuzzi avatar giacomuzzi commented on July 18, 2024

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
image

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.

somyaguptagit avatar somyaguptagit commented on July 18, 2024

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.

giacomuzzi avatar giacomuzzi commented on July 18, 2024

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.

aottonello avatar aottonello commented on July 18, 2024

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.

somyaguptagit avatar somyaguptagit commented on July 18, 2024

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)

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.