couchbase / couchbase-lite-android-ce

The community edition of couchbase lite for android
Apache License 2.0
9 stars 1 forks source link

IllegalStateException("Tmp dir root is null") on com.couchbase.lite.internal.CouchbaseLiteInternal.makeTmpPath #38

Closed sinan-kalkan closed 3 years ago

sinan-kalkan commented 3 years ago

Hello,

currently we recognize more crashes while initializing Couchbase on some device types like Huawei, Sony, Motorla within generating the external file dir from Android 7 to 10 OS. Is there any workaround planned for this situations to be handled in the near future? Here the full stacktrace:

Caused by java.lang.IllegalStateException: Tmp dir root is null at com.couchbase.lite.internal.CouchbaseLiteInternal.makeTmpPath(CouchbaseLiteInternal.java:153) at com.couchbase.lite.internal.CouchbaseLiteInternal.initDirectories(CouchbaseLiteInternal.java:216) at com.couchbase.lite.internal.CouchbaseLiteInternal.init(CouchbaseLiteInternal.java:95) at com.couchbase.lite.CouchbaseLite.init(CouchbaseLite.java:53) at com.couchbase.lite.CouchbaseLite.init(CouchbaseLite.java:35) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1195) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7202) at android.app.ActivityThread.access$2200(ActivityThread.java:296) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2208) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:213) at android.app.ActivityThread.main(ActivityThread.java:8178) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1101)

Android configs: