-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash when using 2.1 to pull attachments from 2.0 #2205
Comments
@parvezq You can do
Thanks! |
I am out of office now so not possible to provide complete backtrace but few more details for your reference:
1. Crash happens when data is being synced.
2. The crash always occurs.
3. Enabled LogDomain.all logging but I did not see any log.
Hope this helps.
Do we have source code for the 2.1.0 available that I can use to identify the culprit code in the project, if yes please share link.
From: Pasin Suriyentrakorn
Sent: Wednesday, September 19, 8:40 PM
Subject: Re: [couchbase/couchbase-lite-ios] CouchbaseLiteSwift 2.1.0: Crash on iOS (#2205)
To: couchbase/couchbase-lite-ios
Cc: Parvez Qureshi, Mention
@parvezq<https://github.com/parvezq> Can you provide the stacktrace of the crashed thread which is thread 43 (You can do bt -all)? If possible, please provide the following info as well:
What is the scenario that causes the crash?
Is the crash always reproducible?
Can you share the log with Replicator and Verbose logging enabled?
Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on <#2205 (comment)> GitHub<#2205 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AB5bOiebzriF_Hxd3lTb_zmFqhI4_V0dks5ucl5xgaJpZM4WwIbK>.
|
If the crash always occurs, maybe some certain documents or blobs trigger the crash?
If attaching the device/simulator to xcode, you should be able to see the log in the Xcode's console; if not, it is very strange.
Here is the tag: https://github.com/couchbase/couchbase-lite-ios/tree/2.1.0 |
Below is the detailed stack trace:
Even I tried using below Couchbase logging but unfortunately it did not prints out any log in console. Database.setLogLevel(.verbose, domain: .network) Also what folders to include for the CouchbaseLiteSwift source code (from the 2.1.0 tag link shared above) so that I can debug it and check the issue at my end. |
To add CouchbaseLite project directly, try the followings:
|
@parvezq after all I think the full stacktrace doesn't provide any new info and the first stacktrace already reveals the issue. I'm sorry for asking the unnecessary full stacktrace. BTW, I'm formatting the stacktrace on your post to make it more readable. |
From the stacktrace, it seems like _byte is null?
|
This might be related with https://github.com/couchbase/couchbase-lite-core/issues/565. |
After following the steps for adding the source code of CouchbaseLite as mentioned above when I try to compile my project then I am getting the compilation error for a file "sqlite3_unicodesn_tokenizer.c". It seems checking out from the tag 2.1.0 do not have all needed files included and the CouchbaseLite project is using submodules also. |
After checking out the tag, you will also need to update the submodules as follows:
|
Using CBlite 2.0 for iOS and randomly during the sync process application gets crashed , here is the log , kindly help regarding this crash : Crash Log :terminating with uncaught exception of type std::__1: system_error: mutex lock failed: Invalid argument |
Even after following the defined steps with submodules updated, I am now getting compilation error 'no such module CouchbaseLiteSwift' no matter we add first framework or second one. |
@parvezq If you can create zip an empty swift project linked with CBL that shows the issue, I can try to look where the issue is. |
Anyway I was able to reproduce the exact crash and I can confirm that it's the same issue as https://github.com/couchbase/couchbase-lite-core/issues/565. The crash happens when trying to sync the attachments/blobs that got push to SG by using CBL 2.0.0. We plan to have a fix in 2.1.2. |
Closed the issue as we can track the issue by couchbase/couchbase-lite-core#565. |
Any tentative deadline when 2.1.2 will be available?
…________________________________
From: Pasin Suriyentrakorn <notifications@github.com>
Sent: Tuesday, September 25, 2018 1:05:46 AM
To: couchbase/couchbase-lite-ios
Cc: Parvez Qureshi; Mention
Subject: Re: [couchbase/couchbase-lite-ios] CouchbaseLiteSwift 2.1.0: Crash on iOS (#2205)
Closed #2205<#2205>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#2205 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AB5bOt7Nvxntf1f186MVpe-dfpT0MNihks5ueTQSgaJpZM4WwIbK>.
|
@djpongh can you help answer the question? |
For an iOS 11.4 (Swift 3.3) application, we are getting crash when syncing is going on.
The Xcode console prints below text:
CouchbaseLiteSwift was compiled with optimization - stepping may behave oddly; variables may not be available.
The crash details are as given below (obtained through backtrace):
Any idea about the crash reason?
The text was updated successfully, but these errors were encountered: