Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

​Slash Menu stuck #6322

Open
1 task
dingemann opened this issue Mar 26, 2024 · 10 comments · Fixed by #6401
Open
1 task

​Slash Menu stuck #6322

dingemann opened this issue Mar 26, 2024 · 10 comments · Fixed by #6401
Assignees

Comments

@dingemann
Copy link

What happened?

When typing "go t" the Slash-Menu and the whole app gets stuck for 30 seconds.
Because I didn't see the "o" showing up I typed it multiple times which appeared later:
Bildschirmfoto 2024-03-26 um 09 49 04

Restarting the app gets it running again.

Distribution version

macOS x64 (Intel)

What browsers are you seeing the problem on if you're using web version?

No response

Are you self-hosting?

  • Yes

Relevant log output

No response

Anything else?

No response

@affine-issue-bot
Copy link

affine-issue-bot bot commented Mar 26, 2024

Issue Status: 🔍 Under Investigation

🔍 Under Investigation

We’ve triaged the issue, but now we need to investigate it more thoroughly. This may require processing additional information like logs or dumps.

This is an automatic reply by the bot.

@EYHN
Copy link
Member

EYHN commented Mar 26, 2024

Approximately how many docs are there in your workspace?

may be fixed by #6319

@dingemann
Copy link
Author

I have 25 docs in my space.
I have three different spaces and this only happens in one of them.

@EYHN
Copy link
Member

EYHN commented Mar 27, 2024

Sorry, I can't reproduce this issue.

The performance of the affine app seems to have slowed down a bit recently, I'm going to deploy some optimizations and let's see if is improvement.

@dingemann
Copy link
Author

It seems to be workspace-specific and only happening on one of my workspaces. I can reproduce it consistently. Is there anything I can provide you with, that could help?

@EYHN
Copy link
Member

EYHN commented Mar 28, 2024

Thanks, it would be very helpful if you can record a CPU profile.

You can follow my screen recording:

CleanShot.2024-03-28.at.16.32.59.mp4

@dingemann
Copy link
Author

Amazing Screen Recording 🤩
Attached you find the CPU profile.
Trace-20240328T181926.json

@pengx17
Copy link
Collaborator

pengx17 commented Mar 29, 2024

By looking at the cpu profile, it looks to me to be related to https://github.com/pacocoursey/cmdk/blob/v0.2.1/cmdk/src/command-score.ts#L81C3-L144C4

@dingemann
Copy link
Author

Great you could find something related @pengx17 . I'm not a programmer, so I can't comment on that part 😅 I'll leave it to you. lmk if you need anything else from me.

Brooooooklyn pushed a commit that referenced this issue Mar 30, 2024
Also include the command score into our own repo for some tweaks.

Might fix #6322
@dingemann
Copy link
Author

@pengx17 could you already find a solution to the stuck cmdk menu? Currently I cannot use the search function anymore, which is quite tiresome in a bigger space.
I already exported an imported the workspace. I is the same - only in this workspace though. Do you have any idea for a workaround for me? Maybe how to find out which page is causing the issue?
Thank you so much for your support 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🔍 Under Investigation
Development

Successfully merging a pull request may close this issue.

3 participants