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

Crashing or slow in MRZ + NFC scanner #139

Open
nicholemnl opened this issue Feb 14, 2023 · 7 comments
Open

Crashing or slow in MRZ + NFC scanner #139

nicholemnl opened this issue Feb 14, 2023 · 7 comments
Assignees

Comments

@nicholemnl
Copy link
Collaborator

Current Behaviour

The library is having issues like slowness or even app crash when using MRZ + NFC Scanner

Expected Behaviour

When importing this library on the other projects it should not experience any slowness/delay/lag in reading. As much as possible it will avoid in crash

Steps to Reproduce the Problem

  1. Happens when using NFC and MRZ
  2. Sometimes it will get slow to read. Then suddenly MRZ stops working

Current solution :

  • Then it requires to stop the app or entire phone
  • Restart the app every 2 hours

Context

  • Version:
    Smartscanner core : v0.4.5 (unrelease version)
    Capacitor : v0.5.0-beta.9
@nicholemnl
Copy link
Collaborator Author

image (10)

@nicholemnl
Copy link
Collaborator Author

Run some several tests with a fresh clean ionic project and use Smartscanner capacitor and these are the result with MRZ scanning :

Screen Shot 2023-02-16 at 10 52 27 AM

Screen Shot 2023-02-16 at 10 52 57 AM

So from this, we can observe that there is no gradually increasing of memory/processor every scan with MRZ.

@nicholemnl
Copy link
Collaborator Author

Profiling with NFC scanner, result no abnormality in Memory/CPU

Screen Shot 2023-02-16 at 5 17 24 PM

@nicholemnl nicholemnl self-assigned this Feb 16, 2023
@ccerdaz
Copy link

ccerdaz commented Feb 16, 2023

This issue is related to this one.

I hope someone can fix it.

@nicholemnl
Copy link
Collaborator Author

@ccerdaz are you experiencing this issue? can you give me the version of your google play service?

@ccerdaz
Copy link

ccerdaz commented Feb 18, 2023

My Google Play Services?, I honestly had no idea that this was relevant... could you explain why it is?

Anyway, my version is 23.04.13

@nicholemnl
Copy link
Collaborator Author

@ccerdaz sorry yeah i think the google play service version does not affect anything. Thought it might be related from this googlesamples/mlkit#236 but it does not make sense because i got a lower version of google play services compared to yours but i was not able to reproduce this issue:

  • Tested more than 50 ID scans (MRZ + NFC) for more than 2 hours.
  • Tried to leave the scanner open for a long time hoping it would break but it did not.
  • Monitored the memory/cpu profiling and got no abnormality or gradually increasing / spikes during this process.

Though this issue might be related to this newlogic/smartscanner-capacitor#22 (comment)

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