Assertion failure in -[UICollectionViewData validateLayoutInRect:]
記錄一下不小心踩到的一個坑:
2016-10-27 16:12:01.553202 xx[20375:5807576] *** Assertion failurein -[UICollectionViewData validateLayoutInRect:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit/UIKit-3599.6.1/UICollectionViewData.m:433
2016-10-27 16:12:01.614351 xx[20375:5807576] invalid mode 'kCFRunLoopCommonModes' provided to CFRunLoopRunSpecific - break on _CFRunLoopError_RunCalledWithInvalidMode to debug. This message will only appear once per execution.
libc++abi.dylib: terminate_handler unexpectedly threw an exception
我用UICollectionView,removeAll之後然後reloadData,然後就報這個錯誤,Google了一下發現很多方法,大部分是因為兩個UICollectionView用了同一個CustomLayout。
我這邊是用UICollectionViewLayout實現瀑布流,然後reloadData的時候忘記清除itemAttributes: [UICollectionViewLayoutAttributes]
相關文章
- Assertion failure 錯誤AI
- ORA-29516: Aurora assertion failure: Assertion failure at joez.c:3311AI
- Assertion failure in -[UITableView -configureCellForDisplay:forIndexPath:]AIUIViewIndex
- 轉:Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]AIUIViewIndex
- [InnoDB] Assertion failure: ut0ut.cc:553 thread 140235111884544【筆記】AIthread筆記
- vulnhub - ASSERTION1.0.1
- 練習使用list failure,advise failure; repair failure;AI
- Failure is not fatal, but failure to change might be.AI
- design for failureAI
- Ext success failure 呼叫AI
- ASSERTION FAILED: TLS ALLOCATOR ALLOC_TEMP_THREAD...AITLSthread
- MongoDB報錯:"assertion" : "can't map file memory"MongoDB
- cannot convert (type interface {}) to type int: need type assertion
- 安裝CLUSTER碰到 Assertion failed offset fFileSize錯誤AI
- DRIVER_POWER_STATE_FAILUREAI
- Vagrant:NS_ERROR_FAILUREErrorAI
- Python中不盡如人意的斷言AssertionPython
- Error: Debug Failure at typeToStringErrorAI
- Preferred Read Failure GroupsAI
- [Linux] kernel: page allocation failureLinuxAI
- [virtualbox] temporary failure in name resolutionAI
- Node.js 中 TypeError [ERR_IMPORT_ASSERTION_TYPE_MISSING]Node.jsErrorImport
- ASM Failure Group的一點理解ASMAI
- datafilecopy header validation failure problemHeaderAI
- Failure at scls_scr_create with code 1AI
- Oracle ASM (10) - ASM中優先讀failure group配置ASM_PREFERRED_READ_FAILURE_GROUPSOracleASMAI
- Oracle ASM (11) - ASM中優先讀failure group配置ASM_PREFERRED_READ_FAILURE_GROUPSOracleASMAI
- mysql 報錯 Communications link failureMySqlAI
- Failure at final check of Oracle CRS stack.AIOracle
- ORA-00704: bootstrap process failurebootAI
- _gcry_ath_mutex_lock: Assertion `*lock == ((ath_mutex_t) 0)' failed.GCMutexAI
- 遭遇 bug InnoDB: Failing assertion: page_get_n_recs(page) > 1AI
- Temporary failure resolving ‘archive.ubuntu.com‘AIHiveUbuntu
- 經常報錯:Communications link failureAI
- ORA-27302 “failure occurred at skgxpvfymmtu” in RACAI
- tensorflow.python.framework.errors_impl.InvalidArgumentError: assertion failed: [0] [Op:Assert] namePythonFrameworkErrorAI
- VS C++ 出現debug assertion failed彈框,怎麼定位程式碼C++AI
- Http failure response 0 Unknown error 錯誤分析HTTPAIError