cdq icon indicating copy to clipboard operation
cdq copied to clipboard

EXC_BAD_ACCESS in relationship_query.rb#9

Open buffpojken opened this issue 10 years ago • 4 comments

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.

buffpojken avatar Jan 30 '15 15:01 buffpojken

That line is pretty innocuous. Hard to tell what it's doing without a test case. Have you submitted an issue to HipByte?

kemiller avatar Jan 30 '15 21:01 kemiller

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?

kemiller avatar Jan 30 '15 21:01 kemiller

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.

buffpojken avatar Feb 01 '15 14:02 buffpojken

You can sometimes get away with bad threading behavior, which makes it all the more dangerous. But that's where I'd look.

kemiller avatar Feb 19 '15 17:02 kemiller