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

NSInternalInconsistencyException: Invalid batch updates detected: ReaderDetailCommentsTableViewDelegate.tableView #21202

Closed
sentry-io bot opened this issue Jul 28, 2023 · 3 comments · Fixed by #21222

Comments

@sentry-io
Copy link

sentry-io bot commented Jul 28, 2023

Sentry Issue: JETPACK-IOS-W59

NSInternalInconsistencyException: Invalid batch updates detected: the number of sections and/or rows returned by the data source before and/or after performing the batch updates are inconsistent with the updates.
Data source before updates = { 1 section with row counts: [2] }
Data source after updates = { 1 section with row counts: [0] }
Updates = [

]
Table view: <WordPress.IntrinsicTableView: 0x13a144e00; baseClass = UITableView; frame = (8 1915.5; 743.5 215); clipsToBounds = YES; autoresize = RM+BM; gestureRecognizers = <NSArray: 0x283b2f630>; backgroundColor = <UIDynamicSystemColor: 0x2820bc800; name = tableBackgroundColor>; layer = <CALayer: 0x28352b720>; contentOffset: {0, 0}; contentSize: {743.5, 235}; adjustedContentInset: {0, 0, 0, 0}; dataSource: (null)>
  File "ReaderDetailCommentsTableViewDelegate.swift", line 86, in ReaderDetailCommentsTableViewDelegate.tableView
  File "CommentContentTableViewCell.swift", line 262, in CommentContentTableViewCell.renderer
  File "<compiler-generated>", line 258, in CommentContentTableViewCell.renderer
  File "<compiler-generated>", line 258, in CommentContentTableViewCell
  File "WebCommentContentRenderer.swift", line 74, in WebCommentContentRenderer.webView
...
(25 additional frame(s) were not displayed)
@kean
Copy link
Contributor

kean commented Jul 28, 2023

The number of occurrences seems fairly low. So far it only affected two users. This crash first appeared in 28.0.0.3.

@kean
Copy link
Contributor

kean commented Jul 28, 2023

I've reached out to one of the a11n who reproduced to get the steps to reproduce: you just need to open the notifications tab. It seems like the issue is with one of the specific comments. They can't reproduce this crash anymore.

@kean kean changed the title NSInternalInconsistencyException: Invalid batch updates detected: the number of sections and/or rows returned by the data source be... NSInternalInconsistencyException: Invalid batch updates detected: ReaderDetailCommentsTableViewDelegate.tableView Jul 28, 2023
@kean kean added the [Pri] Low label Jul 31, 2023
@kean
Copy link
Contributor

kean commented Aug 2, 2023

This crash started to appear at the same time as #21102 (comment). So it likely has the same root cause.

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

Successfully merging a pull request may close this issue.

1 participant