Skip to content

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

@xzilja

Description

@xzilja

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions