Skip to content

Memory Leak When Rendering SVG with Filters on iOS and High Memory/CPU Consumption on Android #2687

Open
@roni-castro-shipt

Description

@roni-castro-shipt

Description

When an SVG image has a filter tag, it causes a memory leak on iOS and requires significant RAM and CPU to render on both Android and iOS. I noticed this happening also on the old arch apps

iOS

ios_memory_leak.mov

Image

Android

android_too_much_memory.mp4

Steps to reproduce

  1. Run the demo app
  2. Tap on show svg

Snack or a link to a repository

https://github.com/roni-castro-shipt/react-native-svg-memory-leak

SVG version

15.12.0

React Native version

0.79.1

Platforms

Android, iOS

JavaScript runtime

Hermes

Workflow

React Native

Architecture

Fabric (New Architecture)

Build type

Debug app & dev bundle

Device

iOS simulator

Device model

No response

Acknowledgements

Yes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions