question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

App crashes when using React Native Debugger

See original GitHub issue

Description

Due to this line introduced here the app crashes when using React Native Debugger since global._chronoNow is undefined.

Error message is: global.performance.now is not a function

Compare to: https://github.com/software-mansion/react-native-reanimated/issues/2760

Changes

I would suggest a patch similar to the following:

global.performance = {
    now: global._chronoNow || (() => {}),
};

Package version

  • React Native Reanimated: 2.3.1
  • React Native Debugger: 0.12.1

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
piaskowykcommented, Jan 14, 2022

Duplicate: https://github.com/software-mansion/react-native-reanimated/issues/2827 This issue is already resolved here: #2771 but it isn’t released yet. We will release 2.3.2 soon, please be patient 🙏

1reaction
29ercommented, Jan 12, 2022

me too. same issue. if i go into core.ts and change line 386ish. it works

 global.performance = {
        now: global._chronoNow,
      };

to

      if (global.performance == null) {
        global.performance = {
          now: global._chronoNow,
        };
      }
Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does React Native app crash when clicking on debug in ...
When clicked on reload app crashes and lost connection to debugger. Tried uninstalling and reinstalling apk in emulator and cd android ./gradlew ...
Read more >
app crashes if debugging mode is enabled #1674 - GitHub
I am using react-native-reanimated as a dependency of react-native-draggable-flatlist . Since I started using reanimated , app crashes if ...
Read more >
Debug React Native Apps like a PRO - Medium
Small steps to debug your crashing Android app without error logs ... This command tells the device to type “RR” which is the...
Read more >
React Native app crashing in debug mode : r/reactnative
My app is crashing when trying to debug in chrome debugger particularly on making service calls using axios.Any help is appreciated.
Read more >
ReactNative App Crashes when Deployed to TestFlight
Your app crashed due to an unhandled language exception. Looking at frames 3 through 2 in the Last Exception Backtrace you posted, it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found