GithubHelp home page GithubHelp logo

Comments (6)

github-actions avatar github-actions commented on April 28, 2024 1
⚠️ Newer Version of React Native is Available!
ℹ️ You are on a supported minor version, but it looks like there's a newer patch available - 0.73.2. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.

from metro.

cortinico avatar cortinico commented on April 28, 2024 1

Passing on to Metro

from metro.

cortinico avatar cortinico commented on April 28, 2024 1

Are you able to reproduce outside your private app at all?

@huextrat if you need, you can use this reproducer template https://github.com/react-native-community/reproducer-react-native

from metro.

github-actions avatar github-actions commented on April 28, 2024
⚠️ Missing Reproducible Example
ℹ️ We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.

from metro.

robhogan avatar robhogan commented on April 28, 2024

Hi @huextrat, thanks for the report.

Install the debug app on iOS & Android
Start the app on both devices
Open a screen with lazy components
Metro is crashing

I've just tried this with a fresh app and haven't been able to reproduce a crash or anything that'd suggest a leak. Are you able to reproduce outside your private app at all?

I wouldn't expect enabling lazy bundling in itself to increase memory usage particularly, but many parallel bundling requests might be too much.

You can try starting Metro with debug logging and experimenting with the memory limit - if you could record a video demonstrating the behaviour you're seeing, that might help us see what's going on. If you don't want to share publicly, feel free to email my GitHub username @ meta.com.

DEBUG=Metro:* NODE_OPTIONS=--max-old-space-size=8192 yarn start`

from metro.

huextrat avatar huextrat commented on April 28, 2024

Thx @robhogan, I've just e-mailed videos showing the problem.

Increasing node memory limit seems to fix the issue, was not able to reproduce with --max-old-space-size=8192.

I'm trying to create a project to reproduce when I have a bit of time, but it might be complicated. The problem only seems to arise if the load on the metro is high, which I think implies a project of a certain size.

from metro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.