Memory Error and Bad Exception Handling


#1

We spent almost two weeks tracking down an error in our app. For some context, qe have a Questionnaire object that has a reference to a mutable document that stores all the questionnaire data.
This object lives through all the questionnaire answering process (an android Activity that evolves as the user answers one by one questions that have trick validation rules and triggers associated) and is saved each time a question is fully answered. When we call the save method on the document, the app moves on and make changes on this questionnaire object after the saving started but before it finishes. That give us what looks like the memory erros below. It was trick to find the error because it is intermitent and related to the speed at which the user navigates through the questions. Although it is clearly a develoment error with mismanagement of memory usage, I believe couchbase could be improved to prevent the developer from making this mistake or improving the exception that is thrown.

We solved the issue by making a copy of the object before saving it.

Here are some of the exceptions:

07-26 16:55:00.235 19261 19367 D document-save: dmc:log: Key - 82ae94f2-8fa0-44a2-a595-c213850e2009
07-26 16:55:00.860 1505 4516 E LocSvc_eng: E/Calling gnss_sv_status_cb
07-26 16:55:00.970 5132 5138 E ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only
07-26 16:55:01.002 559 559 I SFPerfTracer: triggers: (rate: 67:7071) (compose: 30:741) (post: 0:0) (render: 0:704) (18:286862 frames) (19:338283)
07-26 16:55:01.002 559 559 D SFPerfTracer: layers: (3:9) (StatusBar (0xaaf16c00): 0:131262) (NavigationBar (0xaaf15800): 0:115644) (com.android.systemui.ImageWallpaper (0xaaf14400): 0:112931)* (DimLayerController/Stack=0 (0xaaf0f800): 0:9322)* (Sprite (0xaaf0d000): 0:4)* (animation background stackId=1 (0xaaf0e400): 0:52)* (br.gov.ibge.coleta.cd2020.teste/br.gov.ibge.coleta.cnefe.unidade.AtividadeUnidades (0xaaf13000): 0:202)- (br.gov.ibge.coleta.cd2020.teste/br.gov.ibge.coleta.questionario.QuestionarioActivity (0xaaf0bc00): 0:43)- (br.gov.ibge.coleta.cd2020.teste/br.gov.ibge.coleta.questionario.QuestionarioActivity (0xab4f1000): 19:131)
07-26 16:55:01.081 19261 19261 D Set Variavel: 9
07-26 16:55:01.082 19261 19261 D getQuesitoAnterior: voltando quesito do quadro 4 indice do quesito 9
07-26 16:55:01.082 19261 19367 D LogAgro : setCodSetor: 330455705070018
07-26 16:55:01.085 19261 19367 D document-save: dmc:log: Key - 3d546b72-9e0d-439f-b1fb-8d66d1d8cff8
07-26 16:55:01.092 19261 19367 D LogAgro : setCodSetor: 330455705070018
07-26 16:55:01.097 19261 19367 D document-save: dmc:log: Key - e71ff2bf-9aaf-4903-9815-e79b47919cad
07-26 16:55:01.152 559 747 I SFPerfTracer: triggers: (rate: 0:4) (12624 sw vsyncs) (0 skipped) (6:485303 vsyncs) (8:553408)
07-26 16:55:01.652 5132 5138 E ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only
07-26 16:55:01.737 19261 19261 D Set Variavel: 8
07-26 16:55:01.738 19261 19367 D LogAgro : setCodSetor: 330455705070018
07-26 16:55:01.738 19261 19261 D getQuesitoAnterior: voltando quesito do quadro 4 indice do quesito 8
07-26 16:55:01.741 19261 19367 D document-save: dmc:log: Key - cbf7d527-fe07-4dab-bf91-00edb7879c13
07-26 16:55:01.747 19261 19367 D LogAgro : setCodSetor: 330455705070018
07-26 16:55:01.750 19261 19367 D document-save: dmc:log: Key - 8ce6e417-5c64-482f-81f9-cff74af081d6
07-26 16:55:01.861 1505 4516 E LocSvc_eng: E/Calling gnss_sv_status_cb
07-26 16:55:01.866 5181 10790 W ctxmgr : [AclManager]No 2 for (accnt=account#-517948760#, com.google.android.gms(10030):IndoorOutdoorProducer, vrsn=12874000, 0, 3pPkg = null , 3pMdlId = null , pid = 5181). Was: 3 for 57, account#-517948760#
07-26 16:55:02.257 5132 5138 E ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only
07-26 16:55:02.364 19261 19261 D Set Status: RESPONDIDO
07-26 16:55:02.365 19261 19261 D Set Status: SALTADO
07-26 16:55:02.366 19261 19261 D Set Status: SALTADO
07-26 16:55:02.366 19261 19261 D Set Status: SALTADO
07-26 16:55:02.369 19261 19261 D IteradorPerquisa: Executando callback no quesito Em 19 de agosto de 2013 morava:
07-26 16:55:02.371 19261 19261 D Set Variavel: 9
07-26 16:55:02.372 19261 19261 D getProximoQuesito: avançando quesito do quadro 4 indice do quesito 9
07-26 16:55:02.373 19261 19367 D LogAgro : setCodSetor: 330455705070018
07-26 16:55:02.378 19261 19367 D document-save: dmc:log: Key - d431499e-6a27-4ca8-8226-2229cebf618a
07-26 16:55:02.383 19261 19366 D document-save: : Key - dmc:quest_330455705070018001001000006000001
07-26 16:55:02.386 19261 19366 F libc : Fatal signal 11 (SIGSEGV), code 2, fault addr 0x1fe80acc in tid 19366 (IO)
07-26 16:55:02.387 397 397 W : debuggerd: handling request: pid=19261 uid=10318 gid=10318 tid=19366
07-26 16:55:02.482 19867 19867 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
07-26 16:55:02.482 19867 19867 F DEBUG : Build fingerprint: ‘motorola/athene_t/athene_t:7.0/NPJS25.93-14-10/10:user/release-keys’
07-26 16:55:02.482 19867 19867 F DEBUG : Revision: ‘p2ad’
07-26 16:55:02.482 19867 19867 F DEBUG : ABI: ‘arm’
07-26 16:55:02.483 19867 19867 F DEBUG : pid: 19261, tid: 19366, name: IO >>> br.gov.ibge.coleta.cd2020.teste <<<
07-26 16:55:02.483 19867 19867 F DEBUG : signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x1fe80acc
07-26 16:55:02.483 19867 19867 F DEBUG : r0 1fe80acc r1 40c96f70 r2 00002bae r3 6d0a900c
07-26 16:55:02.483 19867 19867 F DEBUG : r4 7eefb108 r5 00000000 r6 7eefb108 r7 7eefb0c8
07-26 16:55:02.483 19867 19867 F DEBUG : r8 7eefb158 r9 7eefb150 sl 7eefb170 fp 00000000
07-26 16:55:02.483 19867 19867 F DEBUG : ip 7f660d7c sp 7eefb0c8 lr 7f55a631 pc 7f556590 cpsr 800f0030
07-26 16:55:02.508 19867 19867 F DEBUG :
07-26 16:55:02.508 19867 19867 F DEBUG : backtrace:
07-26 16:55:02.508 19867 19867 F DEBUG : #00 pc 001bc590 /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece5Value5derefEPKS0_b+59)
07-26 16:55:02.508 19867 19867 F DEBUG : #01 pc 001c062d /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZNK6fleece5Array4impl10firstValueEv+12)
07-26 16:55:02.508 19867 19867 F DEBUG : #02 pc 001c06fb /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece5Array8iteratorppEv+34)
07-26 16:55:02.508 19867 19867 F DEBUG : #03 pc 001bef95 /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+268)
07-26 16:55:02.508 19867 19867 F DEBUG : #04 pc 001bf03b /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+434)
07-26 16:55:02.508 19867 19867 F DEBUG : #05 pc 001bf03b /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+434)
07-26 16:55:02.508 19867 19867 F DEBUG : #06 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.508 19867 19867 F DEBUG : #07 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.508 19867 19867 F DEBUG : #08 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.508 19867 19867 F DEBUG : #09 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.508 19867 19867 F DEBUG : #10 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.508 19867 19867 F DEBUG : #11 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.508 19867 19867 F DEBUG : #12 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.508 19867 19867 F DEBUG : #13 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.508 19867 19867 F DEBUG : #14 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.509 19867 19867 F DEBUG : #15 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.509 19867 19867 F DEBUG : #16 pc 001bf03b /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+434)
07-26 16:55:02.509 19867 19867 F DEBUG : #17 pc 001bf03b /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+434)
07-26 16:55:02.509 19867 19867 F DEBUG : #18 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.509 19867 19867 F DEBUG : #19 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.509 19867 19867 F DEBUG : #20 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.509 19867 19867 F DEBUG : #21 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.509 19867 19867 F DEBUG : #22 pc 001bf03b /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+434)
07-26 16:55:02.509 19867 19867 F DEBUG : #23 pc 001bf03b /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+434)
07-26 16:55:02.509 19867 19867 F DEBUG : #24 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.509 19867 19867 F DEBUG : #25 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.509 19867 19867 F DEBUG : #26 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.509 19867 19867 F DEBUG : #27 pc 001bf03b /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+434)
07-26 16:55:02.509 19867 19867 F DEBUG : #28 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.509 19867 19867 F DEBUG : #29 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.509 19867 19867 F DEBUG : #30 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.509 19867 19867 F DEBUG : #31 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.509 19867 19867 F DEBUG : #32 pc 001bf03b /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+434)
07-26 16:55:02.509 19867 19867 F DEBUG : #33 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.509 19867 19867 F DEBUG : #34 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.509 19867 19867 F DEBUG : #35 pc 001bf03b /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+434)
07-26 16:55:02.509 19867 19867 F DEBUG : #36 pc 001bf03b /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+434)
07-26 16:55:02.509 19867 19867 F DEBUG : #37 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.509 19867 19867 F DEBUG : #38 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.509 19867 19867 F DEBUG : #39 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.509 19867 19867 F DEBUG : #40 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.509 19867 19867 F DEBUG : #41 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.510 19867 19867 F DEBUG : #42 pc 001bf03b /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+434)
07-26 16:55:02.510 19867 19867 F DEBUG : #43 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.510 19867 19867 F DEBUG : #44 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.510 19867 19867 F DEBUG : #45 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.510 19867 19867 F DEBUG : #46 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.510 19867 19867 F DEBUG : #47 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.510 19867 19867 F DEBUG : #48 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.510 19867 19867 F DEBUG : #49 pc 001bf03b /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+434)
07-26 16:55:02.510 19867 19867 F DEBUG : #50 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.510 19867 19867 F DEBUG : #51 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.510 19867 19867 F DEBUG : #52 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.510 19867 19867 F DEBUG : #53 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.510 19867 19867 F DEBUG : #54 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.510 19867 19867 F DEBUG : #55 pc 001bef8f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+262)
07-26 16:55:02.510 19867 19867 F DEBUG : #56 pc 001bf03b /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+434)
07-26 16:55:02.510 19867 19867 F DEBUG : #57 pc 001bf03b /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece7Encoder10writeValueEPKNS_5ValueEPKNS_10SharedKeysEPKNS_12function_refIFbS3_S3_EEE+434)
07-26 16:55:02.510 19867 19867 F DEBUG : #58 pc 001c1d4d /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (FLEncoder_WriteValueWithSharedKeys+20)
07-26 16:55:02.510 19867 19867 F DEBUG : #59 pc 000d2a7d /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (Java_com_couchbase_litecore_fleece_Encoder_writeValue+8)
07-26 16:55:02.510 19867 19867 F DEBUG : #60 pc 000adb99 /system/lib/libart.so (art_quick_generic_jni_trampoline+40)
07-26 16:55:02.510 19867 19867 F DEBUG : #61 pc 000a91c1 /system/lib/libart.so (art_quick_invoke_stub_internal+64)
07-26 16:55:02.510 19867 19867 F DEBUG : #62 pc 004032f1 /system/lib/libart.so (art_quick_invoke_static_stub+228)
07-26 16:55:02.510 19867 19867 F DEBUG : #63 pc 000b047f /system/lib/libart.so (_ZN3art9ArtMethod6InvokeEPNS_6ThreadEPjjPNS_6JValueEPKc+178)
07-26 16:55:02.826 854 854 I MSM-irqbalance: Decided to move IRQ155 from CPU5 to CPU7
07-26 16:55:02.862 1505 4516 E LocSvc_eng: E/Calling gnss_sv_status_cb
07-26 16:55:02.864 1505 4516 V OSNPGlue_jni: Entering : void onSetRequestJNI(izat_manager::IzatRequest *)
07-26 16:55:02.865 1505 4516 V OSNPGlue_jni: Entering : void onSetRequestJNI(izat_manager::IzatRequest *)
07-26 16:55:03.861 1505 4516 E LocSvc_eng: E/Calling gnss_sv_status_cb
07-26 16:55:04.861 1505 4516 E LocSvc_eng: E/Calling gnss_sv_status_cb
07-26 16:55:05.861 1505 4516 E LocSvc_eng: E/Calling gnss_sv_status_cb
07-26 16:55:06.188 1505 4306 D BatteryService: uevent={POWER_SUPPLY_TEMP=327, POWER_SUPPLY_STATUS=Full, POWER_SUPPLY_CAPACITY=100, ACTION=change, DEVPATH=/devices/soc.0/qpnp-smbcharger-17/power_supply/battery, POWER_SUPPLY_AGE=100, POWER_SUPPLY_VOLTAGE_MAX=4350, SUBSYSTEM=power_supply, POWER_SUPPLY_NUM_SYSTEM_TEMP_LEVELS=8, POWER_SUPPLY_VOLTAGE_MAX_DESIGN=4350000, POWER_SUPPLY_INPUT_CURRENT_MAX=1500000, POWER_SUPPLY_CHARGE_FULL=3029000, POWER_SUPPLY_NAME=battery, POWER_SUPPLY_FLASH_CURRENT_MAX=2812315, POWER_SUPPLY_HEALTH=Good, POWER_SUPPLY_CYCLE_COUNT=0, POWER_SUPPLY_TECHNOLOGY=Li-ion, POWER_SUPPLY_CHARGE_TYPE=N/A, POWER_SUPPLY_PRESENT=1, POWER_SUPPLY_CONSTANT_CHARGE_CURRENT_MAX=2500000, POWER_SUPPLY_TEMP_HOTSPOT=0, POWER_SUPPLY_INPUT_CURRENT_SETTLED=0, POWER_SUPPLY_SAFETY_TIMER_ENABLED=0, POWER_SUPPLY_FLASH_ACTIVE=0, POWER_SUPPLY_VOLTAGE_NOW=4320500, SEQNUM=15103, POWER_SUPPLY_CHARGE_FULL_DESIGN=3029000, POWER_SUPPLY_CURRENT_NOW=1525, POWER_SUPPLY_SYSTEM_TEMP_LEVEL=0, POWER_SUPPLY_CHARGE_COUNTER=3029000, POWER_SUPPLY_CHARGE_RATE=Normal, POWER_SUPPLY_CHARGING_ENABLED=1, POWER_SUPPLY_BATTERY_CHARGING_ENABLED=1}
07-26 16:55:06.191 1505 6327 D BatteryService: mLastPlugType/mPlugType:2/2
07-26 16:55:06.191 1505 6327 D BatteryService: set mLastPlugType to 2
07-26 16:55:06.193 4365 4365 D KeyguardUpdateMonitor: received broadcast android.intent.action.BATTERY_CHANGED
07-26 16:55:06.194 5227 5338 W QCNEJ : |CORE| CNE received unexpected action: android.intent.action.BATTERY_CHANGED
07-26 16:55:06.194 4540 4540 D VideoCall_LowBattery: BatteryIntent received: android.intent.action.BATTERY_CHANGED
07-26 16:55:06.197 4365 4365 D KeyguardUpdateMonitor: handleBatteryUpdate
07-26 16:55:06.198 4358 4358 I DownloadManagerWrapper: onReceive() : Charging = true
07-26 16:55:06.199 4540 4540 E QtiImsExtUtils: getConfigForPhoneId subId is invalid
07-26 16:55:06.199 4540 4540 E QtiImsExtUtils: isCarrierConfigEnabled bundle is null
07-26 16:55:06.199 4540 4540 D VideoCall_LowBattery: allowVideoCallsInLowBattery: false isCarrierOneSupported: false mIsLowbattery: false
07-26 16:55:06.616 1505 19872 W ActivityManager: Force finishing activity br.gov.ibge.coleta.cd2020.teste/br.gov.ibge.coleta.questionario.QuestionarioActivity

LogAgro : setCodSetor: 330455705070018
07-26 17:16:10.237 20963 21030 D document-save: dmc:log: Key - 36b3ce23-66b5-4a09-a14d-a568d73c4331
07-26 17:16:10.238 20963 20963 D Set Variavel: 0
07-26 17:16:10.240 20963 20963 D getQuesitoAnterior: voltando quesito do quadro 4 indice do quesito 0
07-26 17:16:10.248 20963 21030 D LogAgro : setCodSetor: 330455705070018
07-26 17:16:10.249 20963 21030 D document-save: dmc:log: Key - 810e0ae9-3833-4a62-bb58-ad17fc314233
07-26 17:16:10.266 20963 20963 F libc : Fatal signal 11 (SIGSEGV), code 2, fault addr 0x315c112e in tid 20963 (ta.cd2020.teste)
07-26 17:16:10.266 397 397 W : debuggerd: handling request: pid=20963 uid=10318 gid=10318 tid=20963
07-26 17:16:10.363 21420 21420 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
07-26 17:16:10.363 21420 21420 F DEBUG : Build fingerprint: ‘motorola/athene_t/athene_t:7.0/NPJS25.93-14-10/10:user/release-keys’
07-26 17:16:10.363 21420 21420 F DEBUG : Revision: ‘p2ad’
07-26 17:16:10.363 21420 21420 F DEBUG : ABI: ‘arm’
07-26 17:16:10.363 21420 21420 F DEBUG : pid: 20963, tid: 20963, name: ta.cd2020.teste >>> br.gov.ibge.coleta.cd2020.teste <<<
07-26 17:16:10.363 21420 21420 F DEBUG : signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x315c112e
07-26 17:16:10.364 21420 21420 F DEBUG : r0 a0e4f9de r1 315c112e r2 a0e4f9de r3 00000005
07-26 17:16:10.364 21420 21420 F DEBUG : r4 be9694b4 r5 7e56112e r6 7e561126 r7 be9694a8
07-26 17:16:10.364 21420 21420 F DEBUG : r8 fffffff8 r9 be9694dc sl be969590 fp a8305400
07-26 17:16:10.364 21420 21420 F DEBUG : ip 7f4c8d40 sp be969498 lr 7f3bc183 pc 7f3be0c2 cpsr 800b0030
07-26 17:16:10.370 21420 21420 F DEBUG :
07-26 17:16:10.370 21420 21420 F DEBUG : backtrace:
07-26 17:16:10.370 21420 21420 F DEBUG : #00 pc 001bc0c2 /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZNK6fleece5Value14getStringBytesEv+17)
07-26 17:16:10.370 21420 21420 F DEBUG : #01 pc 001ba17f /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece8dictImplILb1EE6keyCmpEPKNS_5sliceEPKNS_5ValueE+38)
07-26 17:16:10.370 21420 21420 F DEBUG : #02 pc 001b98d9 /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZNK6fleece4Dict3getENS_5sliceEPNS_10SharedKeysE+228)
07-26 17:16:10.370 21420 21420 F DEBUG : #03 pc 001c11bf /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (FLDict_GetSharedKey+38)
07-26 17:16:10.370 21420 21420 F DEBUG : #04 pc 000d7663 /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (Java_com_couchbase_litecore_fleece_FLDict_getSharedKey+38)
07-26 17:16:10.370 21420 21420 F DEBUG : #05 pc 000adb99 /system/lib/libart.so (art_quick_generic_jni_trampoline+40)
07-26 17:16:10.370 21420 21420 F DEBUG : #06 pc 00008cef /dev/ashmem/dalvik-jit-code-cache (deleted)
07-26 17:16:10.384 854 854 I MSM-irqbalance: Decided to move IRQ239 from CPU7 to CPU6
07-26 17:16:10.859 1505 4516 E LocSvc_eng: E/Calling gnss_sv_status_cb
07-26 17:16:11.860 1505 4516 E LocSvc_eng: E/Calling gnss_sv_status_cb
07-26 17:16:12.860 1505 4516 E LocSvc_eng: E/Calling gnss_sv_status_cb
07-26 17:16:13.860 1505 4516 E LocSvc_eng: E/Calling gnss_sv_status_cb
07-26 17:16:14.021 1505 21423 W ActivityManager: Force finishing activity br.gov.ibge.coleta.cd2020.teste/br.gov.ibge.coleta.questionario.QuestionarioActivity
07-26 17:16:14.024 397 397 W : debuggerd: resuming target 20963
07-26 17:16:14.030 1505 2628 I BootReceiver: Copying /data/tombstones/tombstone_04 to DropBox (SYSTEM_TOMBSTONE)
07-26 17:16:14.031 1505 6327 E ActivityManager: Sending non-protected broadcast com.motorola.motocare.INTENT_TRIGGER from system 4526:com.motorola.process.system/1000 pkg com.motorola.motgeofencesvc
07-26 17:16:14.031 1505 6327 E ActivityManager: java.lang.Throwable
07-26 17:16:14.031 1505 6327 E ActivityManager: at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:18226)
07-26 17:16:14.031 1505 6327 E ActivityManager: at com.android.server.am.ActivityManagerService.broadcastIntent(ActivityManagerService.java:18826)
07-26 17:16:14.031 1505 6327 E ActivityManager: at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:512)
07-26 17:16:14.031 1505 6327 E ActivityManager: at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2906)
07-26 17:16:14.031 1505 6327 E ActivityManager: at android.os.Binder.execTransact(Binder.java:565)
07-26 17:16:14.102 1505 17346 I OpenGLRenderer: Initialized EGL, version 1.4
07-26 17:16:14.102 1505 17346 D OpenGLRenderer: Swap behavior 1

Set Status: RESPONDIDO
07-26 17:23:02.201 21497 21497 D IteradorPerquisa: Executando callback no quesito Quantos banheiros de uso exclusivo dos moradores existem neste domicílio, inclusive os localizados no terreno ou na propriedade?
07-26 17:23:02.201 21497 21497 D Set Variavel: 3
07-26 17:23:02.203 21497 21497 D getProximoQuesito: avançando quesito do quadro 0 indice do quesito 3
07-26 17:23:02.204 21497 21596 D LogAgro : setCodSetor: 330455705070018
07-26 17:23:02.208 21497 21596 D document-save: dmc:log: Key - b306c887-886e-4c65-ba95-9e7256a48160
07-26 17:23:02.217 21497 21595 D document-save: : Key - dmc:quest_330455705070018001001000006000001
07-26 17:23:02.220 21497 21595 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x4f78b70a in tid 21595 (IO)
07-26 17:23:02.221 397 397 W : debuggerd: handling request: pid=21497 uid=10318 gid=10318 tid=21595
07-26 17:23:02.314 21965 21965 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
07-26 17:23:02.314 21965 21965 F DEBUG : Build fingerprint: ‘motorola/athene_t/athene_t:7.0/NPJS25.93-14-10/10:user/release-keys’
07-26 17:23:02.314 21965 21965 F DEBUG : Revision: ‘p2ad’
07-26 17:23:02.314 21965 21965 F DEBUG : ABI: ‘arm’
07-26 17:23:02.315 21965 21965 F DEBUG : pid: 21497, tid: 21595, name: IO >>> br.gov.ibge.coleta.cd2020.teste <<<
07-26 17:23:02.315 21965 21965 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x4f78b70a
07-26 17:23:02.315 21965 21965 F DEBUG : r0 4f78b70a r1 28f00ba7 r2 00006bdc r3 00000000
07-26 17:23:02.315 21965 21965 F DEBUG : r4 7e184c38 r5 8db6a958 r6 2adff470 r7 7f07cbf0
07-26 17:23:02.315 21965 21965 F DEBUG : r8 2adff360 r9 81bf5a00 sl 7f07cc40 fp 81bf5a00
07-26 17:23:02.315 21965 21965 F DEBUG : ip 7f7f8d7c sp 7f07cbe8 lr 7f6ebfdd pc 7f6ee590 cpsr 800f0030
07-26 17:23:02.319 21965 21965 F DEBUG :
07-26 17:23:02.319 21965 21965 F DEBUG : backtrace:
07-26 17:23:02.319 21965 21965 F DEBUG : #00 pc 001bc590 /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece5Value5derefEPKS0_b+59)
07-26 17:23:02.319 21965 21965 F DEBUG : #01 pc 001b9fd9 /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece4Dict8iterator6readKVEv+34)
07-26 17:23:02.319 21965 21965 F DEBUG : #02 pc 001ba085 /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (_ZN6fleece4Dict8iteratorppEv+32)
07-26 17:23:02.319 21965 21965 F DEBUG : #03 pc 001c12bf /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (FLDictIterator_Next+6)
07-26 17:23:02.319 21965 21965 F DEBUG : #04 pc 000d7795 /data/app/br.gov.ibge.coleta.cd2020.teste-2/lib/arm/libLiteCoreJNI.so (Java_com_couchbase_litecore_fleece_FLDictIterator_next+6)
07-26 17:23:02.319 21965 21965 F DEBUG : #05 pc 000adb99 /system/lib/libart.so (art_quick_generic_jni_trampoline+40)
07-26 17:23:02.320 21965 21965 F DEBUG : #06 pc 0000a441 /dev/ashmem/dalvik-jit-code-cache (deleted)
07-26 17:23:02.857 1505 4516 E LocSvc_eng: E/Calling gnss_sv_status_cb
07-26 17:23:03.355 5132 5138 E ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only
07-26 17:23:03.857 1505 4516 E LocSvc_eng: E/Calling gnss_sv_status_cb
07-26 17:23:04.513 5132 5138 E ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only
07-26 17:23:04.857 1505 4516 E LocSvc_eng: E/Calling gnss_sv_status_cb
07-26 17:23:05.858 1505 4516 E LocSvc_eng: E/Calling gnss_sv_status_cb
07-26 17:23:05.866 5181 18307 W ctxmgr : [AclManager]No 2 for (accnt=account#-517948760#, com.google.android.gms(10030):IndoorOutdoorProducer, vrsn=12874000, 0, 3pPkg = null , 3pMdlId = null , pid = 5181). Was: 3 for 57, account#-517948760#
07-26 17:23:05.874 854 854 I MSM-irqbalance: Decided to move IRQ178 from CPU7 to CPU4
07-26 17:23:06.023 1505 21970 W ActivityManager: Force finishing activity br.gov.ibge.coleta.cd2020.teste/br.gov.ibge.coleta.questionario.QuestionarioActivity


#2

Its seems your question is regarding Couchbase Lite, not the Java SDK. Can you post it to the right category (Mobile/Couchbase Lite at https://forums.couchbase.com/c/mobile/couchbase-lite) or perhaps @matthew.groves @hod.greeley or @czajkowski can move it.


#3

Thanks @ingenthr I’ve made the change now.