I forgot to mention that we also store an attachment in the document...

*"_attachments" =     {*

*        profilepic =         {*

*            "content_type" = "image/jpeg";*

*            digest = "sha1-BO34T5KmYC1dB5XIl3OwrqcSJ+8=";*

*            length = 928;*

*            revpos = 2;*

*            stub = 1;*

*        };*

*    };*

On Sunday, November 9, 2014 10:25:09 AM UTC-8, Christoph Berlin wrote:
>
> Hi,
> we are kind of stuck on a problem we cannot explain. Sometimes (not 
> always) we get the following error:
>
> **** Assertion failure in -[OPUserProfile setValue:ofProperty:], 
> /Users/jenkins/jenkins/workspace/build_cblite_ios_102-enterprise/couchbase-lite-ios/Source/API/CBLModel.m:461*
>
>
> Our problem is that the issue occurs randomly - it works about 50% of the 
> time (same functions) while other times it fails. Debugging the issue leads 
> to nowhere.
>
>
> Does anyone have an idea of what could be the cause?
>
>
> The OPProfilefunction does nothing fancy but we know that it fails at 
>
>
> self.user_id = user_id;
>
>  
>
>
> - (instancetype) initCurrentUserProfileInDatabase: (CBLDatabase*)db 
>> andUserID:(NSString*)user_id;
>>
>> {
>>
>>     NSParameterAssert(user_id);
>>
>>     CBLDocument *doc = [db documentWithID:[@"profile:" 
>> stringByAppendingString:user_id]];
>>
>>     self = [super initWithDocument:doc];
>>
>>     if (self)
>>
>>     {
>>
>>         self.user_id = user_id;
>>
>>         self.type = kOPDocType_UserProfile;
>>
>>         self.created_at = [NSDate date];
>>
>>     }
>>
>>     return self;
>>
>> }
>>
>>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/3111f626-b224-45f8-9ceb-451137a29377%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to