Wednesday, 17 March 2010

NSInternalInconsistencyException in UITableView


i had experienced exception 3 times far in 2 months , can't find cause. happens , never when i'm hunting it. full text console:

assertion failure in -[uitableview _endcellanimationswithcontext:], /sourcecache/uikit/uikit-984.38/uitableview.m:774
terminating app due uncaught exception 'nsinternalinconsistencyexception', reason: 'invalid update: invalid number of rows in section 0. number of rows contained in existing section after update (49) must equal number of rows contained in section before update (48), plus or minus number of rows inserted or deleted section (1 inserted, 1 deleted).'


thing not inserting or removing items tableview. don't have single call deleterowsatindexpaths:withrowanimation: or insertrowsatindexpaths:withrowanimation: in entire project.

on other hand, have nsoperations active in view precedes table view in navigation hierarchy somehow might affect arrays used form table view, operations perform changes arrays in main thread. plus, operations stopped navigate out of root view.

so, first question message above. mean increased or decreased number of elements? or both?!

said, got few times in couple of months when happens happens when enter second view containing table , if start dragging table. when stops have crash. in way repeatable. have try enough times.
 



Forums iPhone, iPad, and iPod Touch iOS Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

No comments:

Post a Comment