cdq
cdq copied to clipboard
EXC_BAD_ACCESS in relationship_query.rb#9
Intermittently, our application crashes (no obvious pattern) from a EXC_BAD_ACCESS within cdq.
Crash log: http://pastebin.com/xdR7G3CQ
This happens on iOS 8.1.3, using RM 3.3 and cdq 0.1.8.
That line is pretty innocuous. Hard to tell what it's doing without a test case. Have you submitted an issue to HipByte?
Oh, actually, you do get these sorts of errors if you try to access a context from the wrong thread. Are you multi-threading, including GCD?
Hmm, yes - the app uses GCD but the strange thing is that first a set of operations is performed with no problems - then cdq.contexts.current.rollback is called to throw away all changes, and then the issue appears when trying to perform the same set of operations again.
You can sometimes get away with bad threading behavior, which makes it all the more dangerous. But that's where I'd look.