Closed RocketRider closed 5 years ago
I can reproduce it with the sample from couchbase. I had to change two things:
Now I can reproduce the issue with the following steps:
Tested with following devices: CAT S61 - Android 8.1: Crash Samsung S9 - Android 9.0: Crash Pixel 2 - Android 9.0: Crash Samsung Tab - Android 5.0: No Crash
Thanks Michael for all these detail steps to reproduce. I will look into it and get back to you as soon as I have an answer. -Sandy
Michael, can we get about double that much logcat, on either side of the failure (5x, total)? We don't have any of the specific devices on which you are seeing the crash.
Thank you for looking into it. I guess it will crash on any Android 8+ device with an arm cpu.
Here is the full log from starting the app until the crash: profiler-crash.txt
@RocketRider I am moving this issue to the couchbase-lite-android-ce repo. Please follow it there
This seems to be a known problem with the Studio Profiler. It is scribbling on the compiled code, so it is not entirely surprising that it has trouble with native libraries. There appears to be some evidence that the problem is specific to certain versions of AS and specific devices (e.g.: this )
It perhaps an android studio profile bug. Delete the whole codecache directory in your application package root path(data/data/pacakge_name/codecache).
It perhaps an android studio profile bug. Delete the whole codecache directory in your application package root path(data/data/pacakge_name/codecache).
thank u, it works for me
I am using an Android 8.1 device (arm-v7), Couchbase Lite 2.5, AGP and AS 3.4.1. When I try to profile the app, the app crashes within the cb-lite JNI lib. The crash occurs when I write something to the DB.
As it does only occur if the AS profiler is running, I did also report it to google: https://issuetracker.google.com/issues/133166400