react-native-debugger icon indicating copy to clipboard operation
react-native-debugger copied to clipboard

High CPU usage

Open rborn opened this issue 5 years ago • 10 comments

Hi, for some reason ReactNaiveDebugger will spawn 2 or more diagnosticd processes that will put a high load on the CPU and slow down the machine a lot

Once I stop RND everything comes back to normal.

Any ideas? 😻 Thank you

Screenshot 2020-02-26 at 11 15 26

React Native Debugger app version: 0.10.16 React Native version:0.61.4 Platform: IOS/Android Is real device of platform: iOS - No, Android - yes Operating System: macOS

rborn avatar Feb 26 '20 10:02 rborn

I hava the same problem.The react native alway get stuck.

image

React Native Debugger app version: 0.10.6 React Native version:0.61.3 Platform: IOS Is real device of platform: iOS - No, Operating System: macOS 10.14.4

WymanY avatar Mar 03 '20 10:03 WymanY

Although I am not using RND, I came here via a Google search because I'm experiencing the same problem. One diagnosticd process with increasing cpu load over time (minutes) rising to ca. 150%. Maybe we can find out what is causing this.

maartenvandillen avatar Mar 26 '20 13:03 maartenvandillen

Same here on Arch Linux, I had to stop using it because it makes my laptop unusable. I also noticed that if I leave react-native-debugger open for a couple of hours then it takes several minutes to even close it.

darkbasic avatar Apr 19 '20 08:04 darkbasic

+1

augustosamame avatar Jun 15 '20 01:06 augustosamame

I have had this issue when trying to console.log an EventHandler's event, for instance an onPress handler. Sometimes those events contain recursive elements, and the process will spin high in CPU usage, never printing the actual data.

However, very recently, I am experiencing this issue even without any console.log

SmartArray avatar Dec 27 '20 12:12 SmartArray

@SmartArray the issue has gotten worse since a couple of weeks. There is no high CPU usage anymore, just the depletion of system resources (probably file handles) resulting in an OS crash without warning.

maartenvandillen avatar Dec 28 '20 12:12 maartenvandillen

Same issue here :(

pbassut avatar Jan 12 '21 02:01 pbassut

Maybe we can collaborate finding out the cause of this. Not sure where to start or what tools to use though. I'm thinking in the line of installed versions (global packages like node?), other tools or even upgrade paths you happen to follow.

maartenvandillen avatar Jan 12 '21 09:01 maartenvandillen

same issue here for years.

younthu avatar Feb 21 '21 03:02 younthu

It is not bind to RND. the CPU usage go up 100% with chrome debugger too.

younthu avatar Feb 21 '21 06:02 younthu