The code changes I made should be fine regardless which version of 
Couchbase LIte is used and I noticed this code works fine on Couchbase Lite 
Beta 2 and breaks with Beta 3.

On Tuesday, April 1, 2014 3:45:28 PM UTC-7, David Quon wrote:
>
> Also it should be stated that I'm getting this assertion when the app is 
> just being brought up to run.  I've disabled all of the unit test specs 
> from running.
>
> On Tuesday, April 1, 2014 3:21:27 PM UTC-7, David Quon wrote:
>>
>> 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/92c9c411-272d-4cea-b6d6-1e16a0b0f4c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to