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

app screen is stuck #928

Closed
fuhailong opened this issue May 21, 2018 · 1 comment
Closed

app screen is stuck #928

fuhailong opened this issue May 21, 2018 · 1 comment

Comments

@fuhailong
Copy link

fuhailong commented May 21, 2018

I have a tableNode (section:1, line :> 150), and when I want to delete the data from the last row of cellNode, the screen is blocked. When I delete the previous cellNode, there is no blocking. I tried reloadData, deleteRows, and reloadSections to get stuck. So I think that when the data is more, the data that's behind the refresh will get stuck, and it can be copied 100% of the time. Please take a look at the aforementioned questions. It's been a long time.

@nguyenhuy
Copy link
Member

As mentioned in the documentation and briefly discussed here, reload methods are very expensive and should be avoided to prevent frame drops. The recommended way to delete some rows is to indeed use deleteRows.

Having said that, I'd guess that you're actually facing a deadlock. To be able to help you diagnose the root cause, I'd need more information, like stack trace of all the threads when the deadlock occurs, and ideally a sample project that can reliably reproduce this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants