blocksuite icon indicating copy to clipboard operation
blocksuite copied to clipboard

Unable to use editor with more notes, entire chrome tab getting stucked.

Open RajaTheKing826 opened this issue 1 year ago • 11 comments

When i run my react app with edgeless editor, its taking nearly 1.4GB memory and my chrome getting stuck like anything, and i am unable to open that page again.

Can anyone look into this. We are unable to do a small action if the data is more in whiteboard. But same thing working fine in firefox.

RajaTheKing826 avatar Apr 17 '24 14:04 RajaTheKing826

Yeah. I too facing the same issue

https://github.com/toeverything/blocksuite/assets/59285838/01269bf4-2278-47c8-b247-fec7babfecd0

Nagendra7509 avatar Apr 17 '24 14:04 Nagendra7509

Just as I was about to hit 'send' on this pesky issue I've been wrestling with, a light bulb went off – it turns out, I'm not the only one grappling with it.

So, before I hit the panic button, I thought I'd reach out to this awesome community for some collective brainpower. If anyone's got a map to smoother seas or a toolkit for troubleshooting, please drop me a line. Let's team up and conquer this challenge together!"

upender7270 avatar Apr 17 '24 14:04 upender7270

Even I'm facing the same issue. Kindly please look into it.

Thank you

Praneetha1219 avatar Apr 18 '24 04:04 Praneetha1219

When i run my react app with edgeless editor, its taking nearly 1.4GB memory and my chrome getting stuck like anything, and i am unable to open that page again.

Can anyone look into this. We are unable to do a small action if the data is more in whiteboard.

But same thing working fine in firefox.

Can you share your app and how many elements are on the edgeless?

fundon avatar Apr 18 '24 17:04 fundon

I can't share my react app as it is confidential, instead i can share the Json data which i convert as snapshot doc. Hope this is fine.

Here you can find the json data -> https://codesandbox.io/p/sandbox/testdata-qsgkfj?file=%2Fsrc%2Fdata.json%3A26684%2C15

RajaTheKing826 avatar Apr 19 '24 04:04 RajaTheKing826

@fundon I hope this is fine and you are working on this

RajaTheKing826 avatar Apr 19 '24 04:04 RajaTheKing826

@fundon any update on this

RajaTheKing826 avatar Apr 23 '24 04:04 RajaTheKing826

@fundon any update on this

Sorry, I'll spend some time on this in the next couple of days.

fundon avatar Apr 23 '24 06:04 fundon

@fundon

Could you please prioritize addressing this issue as soon as possible? It's a critical blocker for us, rendering the app unusable due to frequent freezing.

Nagendra7509 avatar Apr 23 '24 06:04 Nagendra7509

@golok727 Do you have any insights in this?

RajaTheKing826 avatar May 04 '24 08:05 RajaTheKing826

Thanks for the feedback. We've observed and reproduced significant performance regression in edgeless. But since our team were mainly working on new product features in the past weeks, optimization were not actually prioritized.

So in the incoming housekeeping stage, this would be tracked together with other usability blockers.

cc @doouding

doodlewind avatar May 04 '24 15:05 doodlewind

@RajaTheKing826 Hi Raja, could you please export the data so I can reproduce the problem? You can remove any sensitive information as long as the issue remains.

doouding avatar May 07 '24 09:05 doouding

I can't share my react app as it is confidential, instead i can share the Json data which i convert as snapshot doc. Hope this is fine.

Here you can find the json data -> https://codesandbox.io/p/sandbox/testdata-qsgkfj?file=%2Fsrc%2Fdata.json%3A26684%2C15

@doouding does the provided information fail to meet your requirements?

Nagendra7509 avatar May 07 '24 09:05 Nagendra7509

Thanks, that helps a lot.

doouding avatar May 07 '24 09:05 doouding

@doouding any update??

Nagendra7509 avatar May 09 '24 13:05 Nagendra7509

Yeah, Im working on it right now. The reason is that the editor try to render all the blocks at same time. And it would take massive time if there're too many blocks. I try to split the rendering into different parts but I'm not sure if this would work.

doouding avatar May 09 '24 13:05 doouding

Hi, we just shipped some optimizations related to this issue. You can update your dependencies to the latest canary 0.15.0-canary-202405160654-a3008e5 to see if the problem has been resolved or mitigated.

doouding avatar May 16 '24 07:05 doouding

This issue has been resolved. If you are still experiencing this problem, feel free to reopen it.

doouding avatar May 31 '24 06:05 doouding

https://github.com/toeverything/blocksuite/pull/7068

doouding avatar May 31 '24 06:05 doouding