Hermes Profiler is broken in React Native 0.69.5 and 0.70.0

This issue has been created since 2022-09-15.

Description

When using the Hermes profiler with a fresh react native app, after enabling Hermes, the profiler file is always empty. Tested using React Native 0.69.5 and 0.70.0.

Tested with Samsung S21 Android 12 and a Macbook Pro M1.

Version

0.70.0

Output of npx react-native info

info Fetching system and libraries information...
System:
OS: macOS 12.6
CPU: (10) arm64 Apple M1 Pro
Memory: 2.42 GB / 32.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.13.1 - ~/.asdf/installs/nodejs/16.13.1/bin/node
Yarn: Not Found
npm: 8.1.2 - ~/.asdf/plugins/nodejs/shims/npm
Watchman: 2022.09.05.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: Not Found
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 16.0, macOS 12.3, tvOS 16.0, watchOS 9.0
Android SDK: Not Found
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8815526
Xcode: 14.0/14A309 - /usr/bin/xcodebuild
Languages:
Java: 11.0.13 - /Users/eliaslecomte/.asdf/shims/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.0.0 => 18.0.0
react-native: 0.69.3 => 0.69.3
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

  1. Create a new repo
  2. Enable hermes (enableHermes in android/app/build.gradle)
  3. Run android: npx react-native run-android
  4. Press d in packager
  5. Press Enable Sample Profiler (to start)
  6. Press d in packager
  7. Press Enable Sample Profiler (to stop)
  8. Get a toast

Snack, code example, screenshot, or link to a repository

Error when downloading the sample:

info Downloading a Hermes Sampling Profiler from your Android device...
info No filename is provided, pulling latest file
warn Multiple Podfiles were found: ios/Podfile,vendor/bundle/ruby/2.7.0/gems/cocoapods-core-1.11.3/lib/cocoapods-core/Podfile. Choosing ios/Podfile automatically. If you would like to select a different one, you can configure it via "project.ios.sourceDir". You can learn more about it here: https://github.com/react-native-community/cli/blob/master/docs/configuration.md
info File to be pulled: sampling-profiler-trace2304690698737821966.cpuprofile
error /var/folders/wn/53s2bq6n7_d3z6cpvd3zx7lr0000gp/T/sampling-profiler-trace2304690698737821966.cpuprofile is an empty file.
Error: /var/folders/wn/53s2bq6n7_d3z6cpvd3zx7lr0000gp/T/sampling-profiler-trace2304690698737821966.cpuprofile is an empty file

Also verified via Android Studio's Device File Explorer, the file exists but is empty.
image

cortinico wrote this answer on 2022-09-18

Thanks for reporting this. Closing as this issue was fixed in 0.70.1:

Please reopen if the issue persists.

More Details About Repo
Owner Name facebook
Repo Name react-native
Full Name facebook/react-native
Language JavaScript
Created Date 2015-01-09
Updated Date 2022-10-07
Star Count 105180
Watcher Count 3671
Fork Count 22481
Issue Count 2230

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Permutation test for cellProximityEnrichment(), including only heterotypic interactions 1 2022-03-29 2022-09-24
Shift+Tab doesn't work as expected 1 2021-09-26 2022-10-01
Trying to get in touch regarding a security issue 0 2021-08-04 2022-08-20
Ctrl-click inside of a block selection results in whole selection being cancelled 0 2021-12-08 2022-09-21
I think there are some bad examples in the portuguese version 6 2022-07-01 2022-07-17
Add `gitVersion` to `buildInfo` command 0 2021-12-21 2022-09-30
[Bug]: GetActiveThreadsAsync() from IForumChannel returns all active threads across the server instead of those under the forum channel 0 2022-08-12 2022-09-29
how to inference 0 2021-10-11 2022-01-21
Sqitch revert takes very long (minutes) on individual changes with a high number of dependencies on Snowflake 3 2021-04-04 2022-10-06
AdminKit theme for select2, or another enhanced dropdown library 2 2022-08-31 2022-09-26
Enemy gib issue 0 2021-12-30 2022-01-11
SDK Version Upgrade Email 0 2021-11-28 2022-10-01
Bump puma to 3.12.6 or higher 3 2020-08-06 2022-08-25
Add support for unique master and follower certificates 0 2020-07-08 2022-08-19
There is a new release of the service broker in preparation for a new TAS tile (2) 0 2020-07-13 2022-07-13
Service Broker Policy uses Human-Readable Names 2 2019-01-24 2022-08-16
Option to ignore missing timestamp/level in log or ignore not matched line 11 2021-10-07 2022-08-25
feat(app): add dark mode 0 2019-09-24 2022-10-01
Feature of "uncrashable" FFI calls 0 2021-08-23 2022-10-06
Windows VM does not automatically open image file in same directory 4 2021-08-31 2022-07-30
Set the defaultProp's value of URLs in TryoutController component 1 2021-11-23 2022-07-20
id: and title: aren't working 2 2021-12-02 2022-09-02
Make Custom scorer Modal Bigger to write JS easier 0 2021-12-03 2022-09-03
Provide method to generate macros equivalent to \Aboxed 1 2022-01-01 2022-08-06
spaces in messages 2 2021-12-16 2021-12-27
Bump nebula-test from 7.10.2 to 8.1.0 1 2021-03-08 2022-01-23
multi-edges generate error on non-strict digraph 4 2021-10-21 2022-10-04
Gesture Control 0 2020-04-15 2022-01-15
Crash on selection when not using box (Windows) 12 2021-01-19 2022-08-27
Importing external glimmer components as children // glimmer addons 0 2021-10-13 2022-09-20
[fr] "DUPLICATE_DETERMINER" causes an exception 0 2022-02-25 2022-08-29
https://www.kkkshu.co/ 1 2022-04-05 2022-09-11
add column to listing? 1 2022-05-30 2022-09-21
org-roam-node-find with vertico - can't create new node if text matches existing node 2 2022-02-06 2022-09-23
Error mkdir: cannot create directory 'vendor': Permission denied when running sudo make install 8 2021-08-10 2022-08-22
ssh/tailssh: add optional cert auth support at wire level 2 2022-03-23 2022-07-05
Update github.com/prometheus/prometheus to v2.35.0-rc0 1 2022-04-09 2022-09-01
Error When Training Retinaface with mobilenet.25 1 2021-08-10 2022-09-13
DraggableScrollbar does not work with AnimatedList 2 2019-05-15 2022-10-06
unable to get user details in browser after sign in by the user. 2 2022-08-22 2022-09-28
Support for a categoricalArray as the dependent variable for GLM models 4 2018-07-07 2022-09-29
fathom train fails: 'WebDriver' object has no attribute 'find_element_by_id' 3 2022-07-18 2022-10-04
initialValues only works on initial render, not subsequent renders 2 2021-08-18 2022-09-23
群文件接口为什么没有时间标识呢 1 2021-08-03 2022-01-14
Minor readme.txt changes 4 2014-01-04 2022-10-05
Scrolling using mouse scroll wheel in PowerToys app does not function without "Scroll inactive windows when I hover over them" 1 2022-10-01 2022-09-27
Blazor WASM debugging stopped working with Visual Studio Code 1.64(January) 2 2022-02-14 2022-08-06
Automatic sorting of windows in FancyZones 0 2022-09-30 2022-09-27
URL expansion not respecting Account Settings 1 2021-02-04 2022-07-29
Running `build-framework-cache` produces different output directory than expected 3 2017-11-02 2022-07-14