nscollectionview


Why does NSCollectionView.makeItem sometimes crash with EXC_BAD_ACCESS?


For some reason, my app just started doing this after months of not doing so. This popped up after a seemingly-unrelated use of OperationQueue (I always use main, so it's done on Thread 1).
As you can see, I call the exact same function 6 times in a row, and only on the 4th time does it fail. I see no pattern...
I haven't done very extensive digging or testing, but it seems a block like this was the culprit:
collectionView.performBatchUpdates({
collectionView.reloadItems()
}, completionHandler: { [weak self] _ in
// cleanup
})
Seems the collection view doesn't like doing much more than insert+remove inside the batch update context. Changing it to this seems to have cured the crash:
collectionView.reloadItems()
// cleanup

Related Links

imac and mbp display nscollectionview different way
Why does NSCollectionView.makeItem sometimes crash with EXC_BAD_ACCESS?
NSCollectionView with different item types

Categories

HOME
asterisk
optimization
cors
aix
python-requests
file-upload
cryengine
crm
nltk
okhttp3
lithium
hiveql
overrides
download
grid
aggregation-framework
uml-designer
open-search-server
normals
adroitlogic
oxid
derby
aggregate
tag-cloud
ibatis
project-structure
jq
custom-component
google-drive-android-api
connection-pooling
knapsack-problem
rollupjs
drombler-fx
typeorm
angular-schema-form
paper-trail-gem
andengine
multilanguage
jsonapi-resources
webspeech-api
incapsula
headphones
redhat-brms
jquery-inputmask
linkurious
file-conversion
google-chrome-console
ape-phylo
autodesk-data-management
flume-ng
colorbox
pexpect
text-extraction
html-entities
ocpjp
ack
sharpdevelop
seyren
addressbook
distcc
consolidation
access-violation
php-java-bridge
diameter-protocol
radar-chart
cexception
web-optimization
overlapping
android-facebook
transbase
first-order-logic
autoscaling
eula
httpmodule
esri-arc-engine
alpha-beta-pruning
conditional-comments
ios-enterprise
rpt
pyalgotrade
reactjs-native
hotlinking
winrun4j
elixir-framework
db2-connect
lastinsertid
grunt-wiredep
xcode5.1
oc4j
jython-2.5
cocotron
mysql2
msbuild-task
antixsslibrary
quit
orchestration
nude.js
parsec
jmesa
mcpd
execjs
lightopenid
numerical-computing
dojox.gfx
urlscan

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App