facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
118.5k stars 24.27k forks source link

RCTCxxBridge runRunLoop cause memory leak on iOS 16.6 #42257

Closed jaychen04 closed 7 months ago

jaychen04 commented 8 months ago

Description

When I used instrument,it reported a memory leak on iOS16.6. Befor iOS16.6, like iOS14, there in no memory leak.Any could help me?

35661705043998_ pic

Steps to reproduce

use instrument

React Native Version

0.70.7

Affected Platforms

Runtime - iOS

Output of npx react-native info

// run the run loop
    while (kCFRunLoopRunStopped !=
           CFRunLoopRunInMode(
               kCFRunLoopDefaultMode, ((NSDate *)[NSDate distantFuture]).timeIntervalSinceReferenceDate, NO)) {
      UPRN70RCTAssert(NO, @"not reached assertion"); // runloop spun. that's bad.
    }
  }

Stacktrace or Logs

// run the run loop
    while (kCFRunLoopRunStopped !=
           CFRunLoopRunInMode(
               kCFRunLoopDefaultMode, ((NSDate *)[NSDate distantFuture]).timeIntervalSinceReferenceDate, NO)) {
      UPRN70RCTAssert(NO, @"not reached assertion"); // runloop spun. that's bad.
    }
  }

Reproducer

1

Screenshots and Videos

35661705043998_ pic

github-actions[bot] commented 8 months ago
:warning: Unsupported Version of React Native
:information_source: It looks like your issue or the example you provided uses an unsupported version of React Native.

Due to the number of issues we receive, we're currently only accepting new issues against one of the supported versions. Please upgrade to latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If you cannot upgrade, please open your issue on StackOverflow to get further community support.
github-actions[bot] commented 8 months ago
:warning: Missing Reproducible Example
:information_source: 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.
github-actions[bot] commented 8 months ago

This issue is waiting for author's feedback since 24 days. Please provide the requested feedback or this will be closed in 7 days.

github-actions[bot] commented 7 months ago

This issue was closed because it has been stalled for 7 days with no activity.

github-actions[bot] commented 7 months ago

This issue was closed because the author hasn't provided the requested feedback after 7 days.