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
google-cloud-pubsub
swift3
mobile
opencv4android
dynamic
x86-64
livecharts
spss
xss
aggregation-framework
psexec
clip-path
vsixmanifest
revit-api
yacc
rtc
obd-ii
wowza
vichuploaderbundle
virtualenv
jinja2
aggregate
infopath
dat.gui
owncloud
versioning
spring-webflow
android-wifi
typedef
nsopenpanel
android-cursorloader
typeclass
custom-fields
azure-table-storage
restangular
csproj
request-uri
log4net-configuration
jcr
matlab-compiler
cache-control
rtsp
stdin
mockserver
glide-image-library
directadmin
irr
head
taiga
python-venv
django-tables2
openidm
sharpdevelop
playframework-2.3
jenkins-docker
jtextarea
lightspeed
racket-student-languages
strtol
universe
mate-desktop
android-xmlpullparser
laterjs
archiva
mod
chomsky-normal-form
fadein
nonblocking
angular-promise
adempiere
page-flipping
joomla3.3
cakephp-2.6
douglas-peucker
sony-xperia
pysvn
fedena
frisby.js
growl
sync
cocos2d-x-2.x
pytz
disparity-mapping
time-frequency
ant-contrib
reactjs-native
farpoint-spread
pidgin
email-headers
iwork
dayofweek
boofcv
surfaceview
friendly-id
static-class
jython-2.5
antixsslibrary
custom-cursor
jquery-1.8
blackberry-eclipse-plugin
parsec
commonsware
inserthtml
clgeocoder
backlight
noise-reduction
subdirectories
nscharacterset
simultaneous
jquery-attributes
for-xml
lts
dojox.gfx
projectgen
ffdshow
content-delivery-network
jgrowl
moores-law

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