Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS integrated react native 0.56.1, memory will not be released after the interface is destroyed. #22313

Closed
3 tasks
1203556555 opened this issue Nov 16, 2018 · 1 comment
Labels
Bug Platform: iOS iOS applications. Resolution: Locked This issue was locked by the bot.

Comments

@1203556555
Copy link

1203556555 commented Nov 16, 2018

Environment

React Native Environment Info:
System:
OS: macOS 10.13.6
CPU: (12) x64 Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
Memory: 279.43 MB / 8.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 10.12.0 - ~/.nvm/versions/node/v10.12.0/bin/node
Yarn: 1.10.1 - /usr/local/bin/yarn
npm: 6.4.1 - ~/.nvm/versions/node/v10.12.0/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.0, macOS 10.13, tvOS 12.1, watchOS 5.1
Android SDK:
API Levels: 23, 24, 26, 27, 28
Build Tools: 27.0.0, 27.0.3, 28.0.2, 28.0.3
System Images: android-27 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom
IDEs:
Android Studio: 3.2 AI-181.5540.7.32.5056338
Xcode: 10.0/10A255 - /usr/bin/xcodebuild
npmPackages:
react: 16.4.1 => 16.4.1
react-native: 0.56.1=> 0.56.1
npmGlobalPackages:
react-native-cli: 2.0.0

Description

IOS integrated react native 0.56.1, memory will not be released after the interface is destroyed.

Reproducible Demo

image
image
image

class RNVC: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()

    let strUrl = "http://localhost:8081/index.bundle?platform=ios&dev=true";
    let jsCodeLocation = URL.init(string: strUrl)
    let rootView = RCTRootView.init(bundleURL: jsCodeLocation, moduleName: "helloWorld", initialProperties: nil, launchOptions: nil)
    self.view = rootView
}

}

After opening this interface and then exiting the interface, the memory is not released.

@elicwhite
Copy link
Member

Thanks for opening the issue! It does not appear like a community member will be able to reliably reproduce this issue. This may be for several reasons; perhaps it affects a particular app but a minimal repro has not been provided, or the issue may be sporadic. As it happens, we need a concrete set of steps that can demonstrably reproduce the issue as this will allow your fellow community members to validate a fix. We'll close the issue for now, but feel free to comment with more information explaining how to recreate this issue and we can reopen it. Thanks for your understanding!

@facebook facebook locked as resolved and limited conversation to collaborators Mar 19, 2020
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Mar 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Platform: iOS iOS applications. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants