-
Notifications
You must be signed in to change notification settings - Fork 952
Discussion: Flipper painfully slow on Mac Big Sur #2173
Comments
Same problem. So laggy! (version 0.84.0) |
Hi folks, I tried reproducing this with the OSS build on several devices, but failed to get similar bad performance. Please provide some more details: what kind of device (OS + simulator / emulator) are you connected to, what plugins are enabled, and which one is currently active. Which OS are you on etc. Providing a performance profile would be very helpful, it can be created by using |
I'm connecting to iPhone 11 (iOS 14.4) Simulator with MacBook Pro (Mac OS 11.2.3). Profiler JSON: https://gist.github.com/rufat/cf4ce078b07ec9fe7c7218d3b5aa9245 |
It looks that the interaction with the XCode is really really slow. Could you run the following command just to verify XCode itself is responsive?
From what I can see however, this seems to be mostly caused by Electron on Big Sur, every time we spawn a process it blocks for 300(!) ms seconds inside the standard library. It probably relates to: electron/electron#26143 / libuv/libuv#3050 (comment) |
Phew, that's horrible. We don't have "official support" for Big Sur yet, as in we don't run it on Big Sur internally and have no way of testing it. If it comes down to individual command invocations, we could probably cache them more. For Xcode mismatches, that's likely something running once per session would suffice. |
This specific example we could probably cache. But many commands we can't. For example querying devices happens every few seconds, we could cache 2/3 of the commands, which would make things slightly better, but that third command has to run fresh and will block the interface 400ms which will be still very noticable every few secs. And we have many more things that spawn processes regularly: doctor checks, starting / stopping listening to logs, certificate exchange, port forwarding, etc etc. In the attached profile Flipper is blocked for 12 full seconds when starting, due to all the commands we spawn that all get penalised 😅. I'll try to put up a diff next week (unless someone else volunteers) to at least cache some of the xcode commands, but I don't think it is gonna solve the problem. From what I can see it should have been fixed in Electron 12.0.0, but later the change was reverted. It is unclear to me whether the reverted change has been released as well and in what version. It'd be awesome if someone on Big Sur could clone the repo, run it from source ( |
Output is: xcode-select -p 0.00s user 0.00s system 66% cpu 0.010 total I did try the The interesting part is it was working smoothly with the previous versions. |
I downgraded to 0.79.0 and it works smoothly again. I will use it temporarily. |
Looks like the Electron 12 update shipped in 0.82. Using 0.81 should be the highest one on Electron 11 |
Summary: Downgrade electron to 11.2.3 to work-around performance problems described in #2173. Changelog: Electron downgraded to v11.2.3 to work-around performance issues on MacOS Big Sur Reviewed By: passy Differential Revision: D27732746 fbshipit-source-id: cec187f47ac5b734c33f3e6eecc5cf0b03d76c1a
@nikoant Thanks a lot for the quick fix. Now it works much better, but not ideal 😅 |
Thanks, everyone. It works flawlessly. |
@vomchik Check in Flipper settings if you correctly set 'Idb' path. After fixing that point, Flipper runs well on my computer ! |
@vomchik how or what do you have to do to "correctly set ldb path"? |
You need to install idb
Source: https://github.com/facebook/idb When IDB is installed, launch Flipper and click on File -> Preferences Toggle on And you can set your IDB Path in In my case Idb path is And if you don't know the path you can execute that cmd Hope my instructions will help you :) |
I'm using Flipper 0.91.2 but the above solution didn't work for me. Few different points were:
Despite those different points, the setup doctor says IDB is correctly installed but still, my mac gets slower and hotter as I open the Flipper longer so I have to close it after I'm done with debugging. Anyone faced same issue as mine? |
As I understand that correctly, the issue is arm vs x86_64 arch, which Flipper uses underneath. I've installed idb using this guide facebook/idb#649. But it is still x86. There is the comment which successfully installed an M1 version of Flipper (facebook/idb#649 (comment)) but I can't make it work. |
After the release of the 80+ version, Flipper now very slow and consumes a lot of CPU time. UI is very laggy. Sometimes all animation effect has dropped frames.
Do you know about this problem?
CleanShot.2021-04-09.at.15.34.07.mp4
The text was updated successfully, but these errors were encountered: