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

Crashes on Android 12 #4

Open
Greatcallie opened this issue Mar 22, 2022 · 7 comments
Open

Crashes on Android 12 #4

Greatcallie opened this issue Mar 22, 2022 · 7 comments

Comments

@Greatcallie
Copy link

It simply doesn't work on Android 12 but works on older android

@ahsanalidev
Copy link
Owner

ahsanalidev commented Mar 23, 2022

if your app is crashing then In android/app/build.gradle, add the following setting in android block. Hope this helps.

aaptOptions {
    noCompress 'tflite'
    noCompress 'lite'
}

@Greatcallie
Copy link
Author

still crashes with this:

Failed to send request: {"jsonrpc":"2.0","id":"48","method":"getMemoryUsage","params":{"isolateId":"isolates/2876713440287243"}}

@Greatcallie
Copy link
Author

java.lang.IllegalArgumentException: Internal error: Failed to run on the given Interpreter: OpenCL library not loaded - dlopen failed: library "libOpenCL-pixel.so" not found
Falling back to OpenGL
TfLiteGpuDelegate Invoke: Write to buffer failed. Source data is larger than buffer.
Node number 90 (TfLiteGpuDelegateV2) failed to invoke.

@ahsanalidev
Copy link
Owner

Basically if you are running it on emulator it has GPU constraints so if you will run it on real device it will work.

@Greatcallie
Copy link
Author

Greatcallie commented Apr 14, 2022 via email

@ahsanalidev
Copy link
Owner

ok I will look into it thanks

@Megatronicus
Copy link

Is it working now? I'm thinking of implementing this into the code.

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

3 participants