I changed my code from:

*properties = self.propertiesToSave; *

To something like this ensuring I'm always accessing the database on the 
same thread:

*dispatch_sync(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 
0), ^{*
*        properties = self.propertiesToSave;*
*});*

Now this works fine for running the app on the device.  However when 
running the Kiwi Test framework I now get Assertions like below:

*(lldb) po self.propertiesToSave*
*2014-04-01 14:05:01.745 XXXXApp[78999:90b] *** Assertion failure in 
-[CBL_FMDatabase beginUse], 
/Users/couchbase/jenkins/workspace/build_cblite_ios_stable/couchbase-lite-ios/vendor/fmdb/src/FMDatabase.m:907*
*error: warning: couldn't get cmd pointer (substituting NULL): no variable 
named '_cmd' found in this frame*
*Execution was interrupted, reason: breakpoint 1.3.*
*The process has been returned to the state before expression evaluation.*
*2014-04-01 14:15:46.827 XXXXApp[78999:90b] *** Assertion failure in 
-[CBL_FMDatabase beginUse], 
/Users/couchbase/jenkins/workspace/build_cblite_ios_stable/couchbase-lite-ios/vendor/fmdb/src/FMDatabase.m:907*

I did some investigation into both Couchbase Lite and FMDatabase but can't 
seem to pinpoint the root cause of the problem.  I just wanted to see if 
anyone else has seen similar issues or just get help in narrowing down the 
problem.

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mobile-couchbase+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/e0698b19-f59f-41ee-b195-f56fce807737%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to