My app is doing some location tracking and update database when needed, the app has been running 2 days without having any issue. And now I am trying to use the Android Profiler
use this code
button2 = (Button) findViewById(R.id.button2);
It perhaps an android studio profile bug. Delete the whole codecache directory in your application data package root path(data/data/pacakge_name/codecache) and retry profile again.
Is your app a fairly sizable project with a large number of classes, potentially with some custom class loader logic?
Once you are able have the steps to reproduce the crash, you can use a tool like logcat to get more information.
https://developer.android.com/studio/command-line/logcat.html
signal 6 (SIGABRT), code -6 (SI_TKILL)
means the abort
was deliberate.
This issue seems to be related: Profiler crashes in libperfa_arm64.so
In Android Studio 4.0 (or higher), the following is the navigation to avoid crashes when running with profiler:
1. From menu click on "Run"
2. Profile 'app'