Getting Crash While trying to stop replication

java

#1

Hi,

On Logout, I am trying to stop my continuous replication. and getting fatal error with below written log.

05-25 15:44:07.703 29847-29847/? I/LiteCoreJNI: [NATIVE] C4Replicator.stop() repl -> 0xb8c23d80
05-25 15:44:07.704 29847-29898/? I/LiteCoreJNI: [NATIVE] C4Replicator.statusChangedCallback() repl -> 0x0xb8c23d80 status -> 4
05-25 15:44:07.752 29847-29916/? W/WS: CBLWebSocket.requestClose() Failed to attempt to initiate a graceful shutdown of this web socket.
05-25 15:44:07.753 29847-29897/? I/LiteCoreJNI: [NATIVE] C4Replicator.statusChangedCallback() repl -> 0x0xb8c23d80 status -> 0
05-25 15:44:07.758 29847-29915/? I/LiteCoreJNI: [NATIVE] C4Replicator.free() repl -> 0xb8c23d80
05-25 15:44:08.719 29847-29847/? I/LiteCoreJNI: [NATIVE] C4Replicator.stop() repl -> 0xb8bff138
05-25 15:44:08.720 29847-29897/? I/LiteCoreJNI: [NATIVE] C4Replicator.statusChangedCallback() repl -> 0x0xb8bff138 status -> 4
05-25 15:44:08.767 29847-29912/? W/WS: CBLWebSocket.requestClose() Failed to attempt to initiate a graceful shutdown of this web socket.
05-25 15:44:08.768 29847-29897/? I/LiteCoreJNI: [NATIVE] C4Replicator.statusChangedCallback() repl -> 0x0xb8bff138 status -> 0
05-25 15:44:08.770 29847-29911/? I/LiteCoreJNI: [NATIVE] C4Replicator.free() repl -> 0xb8bff138
05-25 15:44:09.739 29847-29847/? I/LiteCoreJNI: [NATIVE] C4Replicator.stop() repl -> 0xb8bda460
05-25 15:44:09.739 29847-29898/? I/LiteCoreJNI: [NATIVE] C4Replicator.statusChangedCallback() repl -> 0x0xb8bda460 status -> 4
05-25 15:44:09.824 29847-29907/? W/WS: CBLWebSocket.requestClose() Failed to attempt to initiate a graceful shutdown of this web socket.
05-25 15:44:09.825 29847-29899/? I/LiteCoreJNI: [NATIVE] C4Replicator.statusChangedCallback() repl -> 0x0xb8bda460 status -> 0
05-25 15:44:09.827 29847-29906/? I/LiteCoreJNI: [NATIVE] C4Replicator.free() repl -> 0xb8bda460
05-25 15:44:10.753 29847-29847/? I/LiteCoreJNI: [NATIVE] C4Replicator.stop() repl -> 0xb8bc8378
05-25 15:44:10.754 29847-29898/? I/LiteCoreJNI: [NATIVE] C4Replicator.statusChangedCallback() repl -> 0x0xb8bc8378 status -> 4
05-25 15:44:10.804 29847-29904/? W/WS: CBLWebSocket.requestClose() Failed to attempt to initiate a graceful shutdown of this web socket.
05-25 15:44:10.804 29847-29898/? I/LiteCoreJNI: [NATIVE] C4Replicator.statusChangedCallback() repl -> 0x0xb8bc8378 status -> 0
05-25 15:44:10.814 29847-29902/? I/LiteCoreJNI: [NATIVE] C4Replicator.free() repl -> 0xb8bc8378
05-25 15:44:10.815 29847-29897/? A/libc: heap corruption detected by dlfree
05-25 15:44:10.815 29847-29897/? A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 29897 (Thread-28235)

I am not able to understand why it is coming on the database. I am just calling replicator.stop() method to stop replication.

Regards,
Achint Sarkar


#2

What else are you doing in your logout function ?


#3

I am trying to stop replication , trying to delete one sqlite database and clearing all preferences stored in to the application. Nothing more than that. But i have 6 couchbase lite database on the mobile end.

Regards,
Achint Sarkar