question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mem leak Avatar.Image

See original GitHub issue

react-native: expo sdk-40.0.1 react-native-paper: ^4.2.0 react-native-vector-icons: N/A

Using the Avatar component in a React Native FlatList. The Avatar image is loaded from a remote URI.

<Avatar.Image size={36} source={{uri: uri}} />

Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.
    in Image (created by Avatar.Image)
    in div (created by View)
    in View (created by Avatar.Image)
    in Avatar.Image (created by Context.Consumer)
    in ThemedComponent (created by withTheme(Avatar.Image))

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
martin-halumcommented, May 13, 2022

Have any one found a solution yet? I’m also experiencing the same issue "react-native-paper": "^4.12.1", "react-native": "https://github.com/expo/react-native/archive/sdk-41.0.0.tar.gz", "@expo/vector-icons": "^12.0.0", "expo": "^41.0.0",

0reactions
github-actions[bot]commented, Apr 16, 2021

Hello 👋, this issue has been open for more than 2 months with no activity on it. If the issue is still present in the latest version, please leave a comment within 7 days to keep it open, otherwise it will be closed automatically. If you found a solution on workaround for the issue, please comment here for others to find. If this issue is critical for you, please consider sending a pull request to fix the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Memory Leak in Avatar.Image #2506 - GitHub
Using the Avatar component in a React Native FlatList. The Avatar image is loaded from a remote URI. Warning: Can't perform a React...
Read more >
Memory leak when creating pixel buffer of image - ios
I am trying to create a video with an input of images using AVAssetWriterInput for which I need to create a pixel ...
Read more >
UWP DataTemplate LoadContent has memory leak when the ...
Describe the bug. When calling DataTemplate.LoadContent , the memory will leak if the root element is not a framework control.
Read more >
Inspect your app's memory usage with Memory Profiler
Find out about the Memory Profiler component in the Android Profiler that helps you identify memory leaks and memory churn that can lead...
Read more >
Photo - memory leak
Avatar. memory leak. Image.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found