Skip to content

Could not invoke RNImageRecognition.initImageRecognizer. Failed to allocate byte allocation. #39

@Jonarod

Description

@Jonarod

Just cloned the repo, and ran the example as-is on a Genymotion android device with 4Gb RAM.
Everything seems to build fine, but got this error in the device:

Could not invoke RNImageRecognition.initImageRecognizer. 

null

Failed to allocate a 53884608 byte allocation with 25165824 free bytes and 31MB until OOM, max allowed footprint 93269104, growth limit 100663296.

I can imagine it is an "hardware" problem but I find it a bit strange it's not working on a 4096MB RAM device for an image classifier.

Maybe use TensorFlow Lite instead ?
Any suggestion ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions