Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting nullpointer exception : LensEngine LensAnalyzerRunable on using it second time #52

Open
rohitgarg29 opened this issue Oct 27, 2020 · 1 comment

Comments

@rohitgarg29
Copy link

rohitgarg29 commented Oct 27, 2020

Hi,

I am using this example to scan the ID card, it is working fine but when i am trying to scan it 2nd time, it is giving me null pointer exception.

Exception thrown from receiver.
java.lang.NullPointerException: tep oivk* ita ehd'odcmhae.m.ld*.omnMAaye*.banitr*(o.uwihsmskcmo.Lrm)* nanl* betrfrne
at com.huawei.hms.mlsdk.common.LensEngine$LensAnalyzerRunable.run(LensEngine.java:734)
at java.lang.Thread.run(Thread.java:929)

plus any reason for getting below logs

forbiddenHiLog.getVenderCountry=meafnaf
forbiddenHiLog openHa = true

Update: we need below code onPause, that will resolve the issue.
this.lensEngine = null;

I still want to know the reason behind forbidden lines.

Thanks in advance for your help.

@Mike-mei
Copy link
Contributor

@rohitgarg29
Please firstly check which integration way you are using

  1. Full SDK integration: only one dependency needs to be added, and upgrade ml-computer-card-icr-cn to the latest 2.0.3.300 version,
  2. Basic SDK integration: only one dependency needs to be added, adn upgrade ml-computer-card-icr-cn-plugin to the latest 2.0.3.300 version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants