[GH-ISSUE #138] [Bug] High CPU on macOS #71

Closed
opened 2026-03-23 20:31:24 +00:00 by mirror · 8 comments
Owner

Originally created by @Thearas on GitHub (Dec 13, 2021).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/138

Originally assigned to: @appflowy on GitHub.

Describe the bug
The CPU usage of AppFlowy is always greater than 100:

To Reproduce

  1. brew install appflowy and run
  2. Create a page and write something
  3. Wait a few minutes and do nothing, the CPU usage is still high (greater than 100)

Screenshots
image

Desktop (please complete the following information):

  • OS: macOS M1
Darwin ThearasdeMacBook-Pro-13.local 21.1.0 Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:24 PDT 2021; root:xnu-8019.41.5~1/RELEASE_ARM64_T8101 arm64
  • Browser: chrome
  • Version: 96.0.4664.93
Originally created by @Thearas on GitHub (Dec 13, 2021). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/138 Originally assigned to: @appflowy on GitHub. **Describe the bug** The CPU usage of AppFlowy is always greater than 100: **To Reproduce** 1. `brew install appflowy` and run 2. Create a page and write something 3. Wait a few minutes and do nothing, the CPU usage is still high (greater than 100) **Screenshots** ![image](https://user-images.githubusercontent.com/44015907/145770188-d35ec39f-2a93-47e6-9ab9-c1ec093c7f60.png) **Desktop (please complete the following information):** - OS: macOS M1 ``` Darwin ThearasdeMacBook-Pro-13.local 21.1.0 Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:24 PDT 2021; root:xnu-8019.41.5~1/RELEASE_ARM64_T8101 arm64 ``` - Browser: chrome - Version: 96.0.4664.93
mirror 2026-03-23 20:31:24 +00:00
Author
Owner

@Thearas commented on GitHub (Dec 13, 2021):

image

xctrace record --template 'Time Profiler' --time-limit 10s --attach AppFlowy

profile.tar.gz

<!-- gh-comment-id:992205324 --> @Thearas commented on GitHub (Dec 13, 2021): ![image](https://user-images.githubusercontent.com/44015907/145778964-79111adf-8c39-4870-9e0b-cb42153eb9f8.png) ```sh xctrace record --template 'Time Profiler' --time-limit 10s --attach AppFlowy ``` [profile.tar.gz](https://github.com/AppFlowy-IO/appflowy/files/7702190/profile.tar.gz)
Author
Owner

@MikeWallaceDev commented on GitHub (Dec 13, 2021):

I would just like to add that this doesn't happen on Linux. At least not with the details shared here. I page, let it sit there for 40 minutes and there was no cpu problem.

<!-- gh-comment-id:992902274 --> @MikeWallaceDev commented on GitHub (Dec 13, 2021): I would just like to add that this doesn't happen on Linux. At least not with the details shared here. I page, let it sit there for 40 minutes and there was no cpu problem.
Author
Owner

@Thearas commented on GitHub (Dec 14, 2021):

It is reproducing steadily on my mac. Maybe I'm missing something, or maybe the problem is related to my local data?

<!-- gh-comment-id:993214848 --> @Thearas commented on GitHub (Dec 14, 2021): It is reproducing steadily on my mac. Maybe I'm missing something, or maybe the problem is related to my local data?
Author
Owner

@appflowy commented on GitHub (Jan 3, 2022):

@Thearas I try to reproduce this bug but fail. Would you mind showing me what you type in the document or any steps to reproduce this?
image

<!-- gh-comment-id:1004080852 --> @appflowy commented on GitHub (Jan 3, 2022): @Thearas I try to reproduce this bug but fail. Would you mind showing me what you type in the document or any steps to reproduce this? ![image](https://user-images.githubusercontent.com/86001920/147934224-09b92070-a020-4e88-8a2d-0f64bafa9dab.png)
Author
Owner

@Thearas commented on GitHub (Jan 6, 2022):

@Thearas I try to reproduce this bug but fail. Would you mind showing me what you type in the document or any steps to reproduce this?

I reproduce this bug successfully by:
Enter some some long Chinese sentences with Sogou Pinyin😂
image

Non-reproducible when typing English.

<!-- gh-comment-id:1006347709 --> @Thearas commented on GitHub (Jan 6, 2022): > @Thearas I try to reproduce this bug but fail. Would you mind showing me what you type in the document or any steps to reproduce this? I reproduce this bug successfully by: ***Enter some some long Chinese sentences with Sogou Pinyin***😂 ![image](https://user-images.githubusercontent.com/44015907/148346657-ccb8e344-8bd3-42d9-8e83-63e46fc4eee2.png) Non-reproducible when typing English.
Author
Owner

@appflowy commented on GitHub (Jan 9, 2022):

Thanks, the problem has been solved!
0.0.3 version will include this fix.

<!-- gh-comment-id:1008221519 --> @appflowy commented on GitHub (Jan 9, 2022): Thanks, the problem has been solved! 0.0.3 version will include this fix.
Author
Owner

@rebron1900 commented on GitHub (Jan 9, 2022):

@appflowy When will the next version be released?

<!-- gh-comment-id:1008254189 --> @rebron1900 commented on GitHub (Jan 9, 2022): @appflowy When will the next version be released?
Author
Owner

@appflowy commented on GitHub (Jan 24, 2022):

@appflowy When will the next version be released?

Will be published at the end of this month.

<!-- gh-comment-id:1020044402 --> @appflowy commented on GitHub (Jan 24, 2022): > @appflowy When will the next version be released? Will be published at the end of this month.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#71
No description provided.