Couchbase Lite for Android: E/System: Uncaught exception thrown by finalizer NullPointerException: Null reference used for synchronization (monitor-enter)

E/System: Uncaught exception thrown by finalizer
    java.lang.NullPointerException: Null reference used for synchronization (monitor-enter)
        at com.couchbase.lite.internal.core.C4NativePeer.releasePeer(C4NativePeer.java:118)
        at com.couchbase.lite.internal.core.C4Document.closePeer(C4Document.java:186)
        at com.couchbase.lite.internal.core.C4Document.finalize(C4Document.java:142)
        at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:291)
        at java.lang.Daemons$FinalizerDaemon.runInternal(Daemons.java:278)
        at java.lang.Daemons$Daemon.run(Daemons.java:139)
        at java.lang.Thread.run(Thread.java:923)

Yes. This is a known issue:https://issues.couchbase.com/browse/CBL-1659.

Is there any solution method for it?

This bug existed only for a short period of time, in version 3.0.0. It was a regression from 2.8 and was fixed in 3.0.2. It does not affect the upcoming 3.1

1 Like