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

Opening Warning / Yellow Box details ui spikes CPU usage in iOS #22150

Closed
3 tasks done
xzilja opened this issue Nov 5, 2018 · 3 comments
Closed
3 tasks done

Opening Warning / Yellow Box details ui spikes CPU usage in iOS #22150

xzilja opened this issue Nov 5, 2018 · 3 comments
Labels
Bug Platform: iOS iOS applications. Resolution: Locked This issue was locked by the bot.

Comments

@xzilja
Copy link
Contributor

xzilja commented Nov 5, 2018

Environment

  React Native Environment Info:
    System:
      OS: macOS 10.14
      CPU: x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
      Memory: 51.45 MB / 16.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 10.11.0 - /usr/local/bin/node
      Yarn: 1.10.1 - /usr/local/bin/yarn
      npm: 6.4.1 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
    IDEs:
      Xcode: 10.1/10B61 - /usr/bin/xcodebuild
    npmPackages:
      @types/react: 16.4.18 => 16.4.18 
      @types/react-native: 0.57.7 => 0.57.7 
      react: 16.7.0-alpha.0 => 16.7.0-alpha.0 
      react-native: 0.57.4 => 0.57.4 
    npmGlobalPackages:
      react-native-cli: 2.0.1

Description

Opening / Expanding warning notification to view fullscreen message causes massive CPU spike that persists and starts heating up my mac until that view is closed.

Just warning notification

screenshot 2018-11-05 at 17 17 02

Viewing full details

screenshot 2018-11-05 at 17 21 11

Reproducible Demo

Simply add console.warn("Test") anywhere in your application and open details view.

@xzilja xzilja changed the title Warning / Yellow Box details ui spikes cpu usage in iOS Opening Warning / Yellow Box details ui spikes CPU usage in iOS Nov 5, 2018
@hramos hramos removed the 🔶🔷iOS label Nov 5, 2018
@hramos hramos removed the Bug Report label Feb 6, 2019
@orta
Copy link
Contributor

orta commented Mar 19, 2019

This was definitely happening to me on a production build of RN, but when I tested in master on RNTester I couldn't repro.

0.59:
Screen Shot 2019-03-19 at 12 22 56 PM

Master:
Screen Shot 2019-03-19 at 12 37 37 PM

@cpojer
Copy link
Contributor

cpojer commented Mar 26, 2019

Closing as it isn't happening on master any more. Happy to reopen if it is still an issue.

@ravirajn22
Copy link

The issue still occurs in 0.60.5 version of react-native, it wont happen every time but 40% of the time. When it happens you can see the yellow box at the bottom vibrating(small but visible). Its a serious issue where it pushes the mac to over 200% CPU usage, if not careful could seriously affect machines long time performance. Tested on emulator iPhone Xr in a new project. Not attaching image because its easily reproducible. @cpojer

@facebook facebook locked as resolved and limited conversation to collaborators Mar 26, 2020
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Mar 26, 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

7 participants