11-07 09:49:07.730 10763-10763/com.eusoft.recite.fr E/TAG﹕ word:
acquisition
11-07 09:49:56.360 10763-10827/com.eusoft.recite.fr I/CBLite﹕ Thread-2580
Begin transaction (level 1)
11-07 09:49:56.400 10763-10827/com.eusoft.recite.fr I/CBLite﹕ Thread-2580
Committing transaction (level 1)
11-07 09:49:56.490 10763-10827/com.eusoft.recite.fr E/TAG﹕
updateCardReviewInCouchBase: f23e2184-80b1-403b-9e25-8724a55bcb8c
11-07 09:49:56.490 10763-10827/com.eusoft.recite.fr E/TAG﹕
onBeforeSave:properties:{lastEaseFactor=1.3, status=0,
lastDueTime=1415324996362, bookId=100, type=Card, dueTime=1415325596362,
id=186643, _rev=3-10ea71e7c80967564cf60b8374d2ab92, easeFactor=1.3,
unit=100_1, level=0, hide=0, _id=f23e2184-80b1-403b-9e25-8724a55bcb8c,
delete=0}
11-07 09:49:56.500 10763-10827/com.eusoft.recite.fr I/CBLite﹕ Thread-2580
Begin transaction (level 1)
11-07 09:49:56.510 10763-10827/com.eusoft.recite.fr I/CBLite﹕ Thread-2580
Committing transaction (level 1)
11-07 09:49:56.560 10763-10827/com.eusoft.recite.fr E/TAG﹕
onAfterSave:properties:{lastEaseFactor=1.3, lastDueTime=1415324996362,
status=0, bookId=100, type=Card, _rev=4-3dfd31088dc0b008128b6a52dc23a296,
id=186643, dueTime=1415325596362, unit=100_1, easeFactor=1.3, level=0,
_id=f23e2184-80b1-403b-9e25-8724a55bcb8c, hide=0, delete=0}
11-07 09:49:56.580 10763-10763/com.eusoft.recite.fr E/TAG﹕ worker total
times : 229
11-07 09:49:56.650 10763-10763/com.eusoft.recite.fr D/dalvikvm﹕
GC_FOR_ALLOC freed 2312K, 15% free 15375K/18032K, paused 34ms, total 35ms
11-07 09:49:56.750 10763-10763/com.eusoft.recite.fr D/dalvikvm﹕
GC_FOR_ALLOC freed 1297K, 12% free 15909K/18032K, paused 31ms, total 31ms
11-07 09:50:04.080 10763-10763/com.eusoft.recite.fr E/TAG﹕ word:
acquisition
11-07 09:50:07.150 10763-10837/com.eusoft.recite.fr I/CBLite﹕ Thread-2581
Begin transaction (level 1)
11-07 09:50:07.170 10763-10837/com.eusoft.recite.fr I/CBLite﹕ Thread-2581
Committing transaction (level 1)
11-07 09:50:07.230 10763-10837/com.eusoft.recite.fr E/TAG﹕
updateCardReviewInCouchBase: f23e2184-80b1-403b-9e25-8724a55bcb8c
11-07 09:50:07.230 10763-10837/com.eusoft.recite.fr E/TAG﹕
onBeforeSave:properties:{lastEaseFactor=1.3, status=0,
lastDueTime=1415325007158, bookId=100, type=Card, dueTime=1415325607158,
id=186643, _rev=3-10ea71e7c80967564cf60b8374d2ab92, easeFactor=1.3,
unit=100_1, level=0, hide=0, _id=f23e2184-80b1-403b-9e25-8724a55bcb8c,
delete=0}
11-07 09:50:07.240 10763-10837/com.eusoft.recite.fr I/CBLite﹕ Thread-2581
Begin transaction (level 1)
11-07 09:50:07.260 10763-10837/com.eusoft.recite.fr I/CBLite﹕ Thread-2581
CANCEL transaction (level 1)
11-07 09:50:07.260 10763-10837/com.eusoft.recite.fr I/CBLite﹕ Thread-2581
Begin transaction (level 1)
11-07 09:50:07.280 10763-10837/com.eusoft.recite.fr I/CBLite﹕ Thread-2581
CANCEL transaction (level 1)
11-07 09:50:07.280 10763-10837/com.eusoft.recite.fr W/System.err﹕
com.couchbase.lite.CouchbaseLiteException: Conflicts not allowed and there
is already an existing doc with id: f23e2184-80b1-403b-9e25-8724a55bcb8c
11-07 09:50:07.280 10763-10837/com.eusoft.recite.fr W/System.err﹕ at
com.couchbase.lite.Database.putRevision(Database.java:3480)
11-07 09:50:07.280 10763-10837/com.eusoft.recite.fr W/System.err﹕ at
com.couchbase.lite.Database.putRevision(Database.java:3415)
11-07 09:50:07.280 10763-10837/com.eusoft.recite.fr W/System.err﹕ at
com.couchbase.lite.Document.putProperties(Document.java:415)
11-07 09:50:07.280 10763-10837/com.eusoft.recite.fr W/System.err﹕ at
com.couchbase.lite.Document.putProperties(Document.java:250)
11-07 09:50:07.280 10763-10837/com.eusoft.recite.fr W/System.err﹕ at
com.eusoft.recite.support.entities.AbstractDocument.save(AbstractDocument.java:55)
11-07 09:50:07.280 10763-10837/com.eusoft.recite.fr W/System.err﹕ at
com.eusoft.recite.support.entities.AbstractDocument.save(AbstractDocument.java:43)
11-07 09:50:07.280 10763-10837/com.eusoft.recite.fr W/System.err﹕ at
com.eusoft.recite.support.ReciteSupportController.updateCardReviewInCouchBase(ReciteSupportController.java:430)
11-07 09:50:07.280 10763-10837/com.eusoft.recite.fr W/System.err﹕ at
com.eusoft.recite.support.ReciteSupportController.answerCard(ReciteSupportController.java:828)
11-07 09:50:07.280 10763-10837/com.eusoft.recite.fr W/System.err﹕ at
com.eusoft.recite.activity.recite.ReciteActivity$5.run(ReciteActivity.java:170)
11-07 09:50:07.280 10763-10837/com.eusoft.recite.fr W/System.err﹕ at
java.lang.Thread.run(Thread.java:841)
11-07 09:50:07.300 10763-10763/com.eusoft.recite.fr E/TAG﹕ worker total
times : 151
11-07 09:50:07.390 10763-10763/com.eusoft.recite.fr D/dalvikvm﹕
GC_FOR_ALLOC freed 2942K, 19% free 15162K/18644K, paused 29ms, total 34ms
在 2014年11月7日星期五UTC+8上午9时24分35秒,peng liu写道:
>
> Hi.I use couchbase on android.
> But some times when i update my doc .it will crash.
> *11-07 09:19:51.440 9487-9562/com.eusoft.recite.fr
> <http://com.eusoft.recite.fr> W/System.err﹕
> com.couchbase.lite.CouchbaseLiteException: Conflicts not allowed and there
> is already an existing doc with id: 4cd9f17d-f28f-48c9-8866-eec3a9cabe35*
> 11-07 09:19:51.440 9487-9562/com.eusoft.recite.fr W/System.err﹕ at
> com.couchbase.lite.Database.putRevision(Database.java:3480)
> 11-07 09:19:51.440 9487-9562/com.eusoft.recite.fr W/System.err﹕ at
> com.couchbase.lite.Database.putRevision(Database.java:3415)
> 11-07 09:19:51.440 9487-9562/com.eusoft.recite.fr W/System.err﹕ at
> com.couchbase.lite.Document.putProperties(Document.java:415)
> 11-07 09:19:51.440 9487-9562/com.eusoft.recite.fr W/System.err﹕ at
> com.couchbase.lite.Document.putProperties(Document.java:250)
> 11-07 09:19:51.440 9487-9562/com.eusoft.recite.fr W/System.err﹕ at
> com.eusoft.recite.support.entities.AbstractDocument.save(AbstractDocument.java:58)
> 11-07 09:19:51.440 9487-9562/com.eusoft.recite.fr W/System.err﹕ at
> com.eusoft.recite.support.entities.AbstractDocument.save(AbstractDocument.java:44)
> 11-07 09:19:51.440 9487-9562/com.eusoft.recite.fr W/System.err﹕ at
> com.eusoft.recite.support.ReciteSupportController.updateCardReviewInCouchBase(ReciteSupportController.java:417)
> 11-07 09:19:51.440 9487-9562/com.eusoft.recite.fr W/System.err﹕ at
> com.eusoft.recite.support.ReciteSupportController.answerCard(ReciteSupportController.java:815)
> 11-07 09:19:51.440 9487-9562/com.eusoft.recite.fr W/System.err﹕ at
> com.eusoft.recite.activity.recite.ReciteActivity$5.run(ReciteActivity.java:170)
> 11-07 09:19:51.440 9487-9562/com.eusoft.recite.fr W/System.err﹕ at
> java.lang.Thread.run(Thread.java:841)
>
> and how to fix it ?
> i found this issues:
> https://github.com/couchbase/couchbase-lite-java-core/issues/97#issuecomment-62040966
> but i have try to clean the document cache,it will crash again.
> * Database db = DBController.getInstance().getCouchDatabase();*
> * if (db != null) {*
> * try {*
> * entity.save(db);*
> * } catch (CouchbaseLiteException e) {*
> * db.clearDocumentCache();*
> * entity.save(db);*
> * }*
> * }*
>
--
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/2b66e3a8-1bad-4b89-a0e2-26b3dae8ad9d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.