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

device overheated by CameraRoll API with FlatList in iOS #22393

Closed
3 tasks done
vreality64 opened this issue Nov 23, 2018 · 3 comments
Closed
3 tasks done

device overheated by CameraRoll API with FlatList in iOS #22393

vreality64 opened this issue Nov 23, 2018 · 3 comments
Labels

Comments

@vreality64
Copy link
Contributor

vreality64 commented Nov 23, 2018

Environment

  React Native Environment Info:
    System:
      OS: macOS High Sierra 10.13.6
      CPU: (4) x64 Intel(R) Core(TM) i5-6267U CPU @ 2.90GHz
      Memory: 275.75 MB / 16.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 8.11.3 - ~/.nvm/versions/node/v8.11.3/bin/node
      Yarn: 1.12.3 - /usr/local/bin/yarn
    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:
      react: 16.6.1 => 16.6.1
      react-native: 0.57.5 => 0.57.5

Description

If I shows photo image using the CameraRoll API on an iOS device, there is an issue that causes excessive heat. I was profiling directly with Xcode and it was happening when I showed the assets-library picture through the Image component. If shows gallery view a few times, iPhone gets hot enough to notice. Is this a known bug?

If you look at the simple profiling results, the CPU is being used excessively when view renders photos. I think maybe it is the cause.

cpu profiling with xcode

Reproducible Demo

Here are expo link or Github repository

@react-native-bot
Copy link
Collaborator

Can you run react-native info and edit your issue to include these results under the Environment section?

If you believe this information is irrelevant to the reported issue, you may write [skip envinfo] under Environment to let us know.

@vreality64
Copy link
Contributor Author

I updated environment information. I'm using newest version (0.57.x) 😃

@cpojer
Copy link
Contributor

cpojer commented Mar 19, 2019

This issue has been moved to react-native-cameraroll/react-native-cameraroll#14.

@cpojer cpojer closed this as completed Mar 19, 2019
@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
Projects
None yet
Development

No branches or pull requests

4 participants