Skip to content

OutOfMemoryError : Failed to allocate a 2764312 byte allocation with 1687360 free bytes and 1647KB until OOM #1291

@vikjovanov

Description

@vikjovanov

Bug

Hi,

I encountered a really weird bug! A user's phone had an "OutOfMemory" and according to my research, it was caused by an SVG memory that was much too big! However, what I see is that my SVG allocation is only 2Mb which seems to be really nothing for a phone!

Here is my Sentry error report with all the stacktrace and the model of the phone on which the error occurred is a Samsung Galaxy S6 - Android 7.0 !

Environment info

React native info output:

System:
    OS: macOS 10.14.6
    CPU: (4) x64 Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
    Memory: 8.14 GB / 16.00 GB
    Shell: 5.3 - /bin/zsh
  Binaries:
    Node: 10.16.1 - /usr/local/bin/node
    npm: 6.13.4 - ~/.npm-global/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 12.4, macOS 10.14, tvOS 12.4, watchOS 5.3
  IDEs:
    Android Studio: 3.5 AI-191.8026.42.35.6010548
    Xcode: 10.3/10G8 - /usr/bin/xcodebuild
  npmPackages:
    @react-native-community/cli: ^3.0.4 => 3.0.4
    react: 16.8.6 => 16.8.6
    react-native: 0.60.4 => 0.60.4
    "react-native-svg": "^9.13.6",
    "react-native-svg-transformer": "^0.14.3",

Steps To Reproduce

I absolutely don't know how to reproduce this error, I'm sorry !

Thank you in advance for your answers!

Viktor

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions