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

❓ Waiting for the barcode module to be downloaded. #2256

Closed
4 tasks done
erwanlpfr opened this issue Dec 5, 2023 · 5 comments · Fixed by #2348
Closed
4 tasks done

❓ Waiting for the barcode module to be downloaded. #2256

erwanlpfr opened this issue Dec 5, 2023 · 5 comments · Fixed by #2348
Labels
💭 question Further information is requested

Comments

@erwanlpfr
Copy link
Contributor

Question

Hello,

On my app, I start the app with a Camera View directly after the splash screen.
The CameraView is set to get the Qrcode directly.
On my devices it works even after a fresh install but according to Google Console, when they test I get always 2 crashes on 7.

It was a bit tricky to understand why without logs but I added them and I get :

Camera.onError(unknown/unknown): [unknown/unknown] Waiting for the barcode module to be downloaded. Please wait. [unknown/unknown]: [unknown/unknown] Waiting for the barcode module to be downloaded. Please wait.

Actually, I am not reporting a bug, but more a strategy to adopt in this case.
Since the error looks "unknown", what can it be, the best strategy to wait and to retry?

// The full error object
{
arguments: [
Camera.onError(unknown/unknown): [unknown/unknown] Waiting for the barcode module to be downloaded. Please wait., 
{
_cause: {}, 
_code: unknown/unknown, 
_message: [unknown/unknown] Waiting for the barcode module to be downloaded. Please wait., 
message: [unknown/unknown] Waiting for the barcode module to be downloaded. Please wait., 
name: unknown/unknown, 
stack: 
[unknown/unknown]: [unknown/unknown] Waiting for the barcode module to be downloaded. Please wait.
    at construct (native)
    at Wrapper (address at index.android.bundle:1:197548)
    at construct (native)
    at _createSuperInternal (address at index.android.bundle:1:2492550)
    at call (native)
    at CameraError (address at index.android.bundle:1:2493014)
    at construct (native)
    at _createSuperInternal (address at index....
}
]
}

Thank you!

What I tried

No response

VisionCamera Version

3.6.13

Additional information

@erwanlpfr erwanlpfr added the 💭 question Further information is requested label Dec 5, 2023
@WinstonNau
Copy link

Try adding this:

dependencies {
  // ...
  // Use this dependency to bundle the model with your app
  implementation 'com.google.mlkit:barcode-scanning:17.2.0'
}

to your app/build.gradle file.

@erwanlpfr
Copy link
Contributor Author

Tried and it works!
If I have time, I will suggest a PR to add it on expo plugin

@kyjus25
Copy link

kyjus25 commented Jan 4, 2024

Try adding this:

dependencies {
  // ...
  // Use this dependency to bundle the model with your app
  implementation 'com.google.mlkit:barcode-scanning:17.2.0'
}

to your app/build.gradle file.

@erwanlpfr is there a method that works for Expo? As far as I know I can't run a deployment because it requires a manual change to the android gradle file. Any luck on that PR?

@erwanlpfr
Copy link
Contributor Author

Hello !
I tried this : #2348
Let me know if it works for you!

@kyjus25
Copy link

kyjus25 commented Jan 4, 2024

@erwanlpfr Fantastic! Thank you so much for the PR and quick reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💭 question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants