Unrecognized LLDB behavior in Android Studio 2.2

So, I just upgraded to Android Studio 2.2, and I had problems running my application on my device. It looks like there are now two separate debuggers when I try to debug my application. One of them is the good old Java debugger, and the other I consider LLDB debugger.

In my application there is a screensaver presented as the first Activityin the application. What happened earlier, a splash screen was displayed only 1 second before the actual opening screen appeared. After I updated my Android studio to version 2.2, it will take about a minute until the splash screen disappears.

I set a breakpoint on SplashScreenActivity.onCreate()to make sure everything is in order. After starting the application, it waits for a while before the LLDB debugger stops with the SIGURG signal. I click the Continue button, and again it accesses the same signal. This happens 7-8 times, after which my breakpoint SplashScreenActivity.onCreate()falls into the Java debugger. After that, the application continues to work normally.

I don't know if this helps, but the LLDB debugger console looks like this:

09/26 00:19:32: Launching app
No apk changes detected since last installation, skipping installation of D:\Documents\SourceTree\autocolorsplash-android\app\build\outputs\apk\app-debug.apk
$ adb shell am force-stop com.kayimapps.autocolorsplash_android
$ adb shell am start -n "com.kayimapps.autocolorsplash_android/com.kayimapps.autocolorsplash_android.activities.SplashScreenActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
Waiting for application to come online: com.kayimapps.autocolorsplash_android | com.kayimapps.autocolorsplash_android.test
Waiting for application to come online: com.kayimapps.autocolorsplash_android | com.kayimapps.autocolorsplash_android.test
Connecting to com.kayimapps.autocolorsplash_android
Now Launching Native Debug Session
Starting LLDB server: /data/data/com.kayimapps.autocolorsplash_android/lldb/bin/start_lldb_server.sh /data/data/com.kayimapps.autocolorsplash_android/lldb unix-abstract /data/data/com.kayimapps.autocolorsplash_android/lldb/tmp platform-1474838375380.sock "lldb process:gdb-remote packets"
Debugger attached to process 927
Signal: SIGURG (signal SIGURG)
Signal: SIGURG (signal SIGURG)
Signal: SIGURG (signal SIGURG)
Signal: SIGURG (signal SIGURG)
Signal: SIGURG (signal SIGURG)
Signal: SIGURG (signal SIGURG)
Signal: SIGURG (signal SIGURG)
Signal: SIGURG (signal SIGURG)

I do not use C ++ in my application, except for some compiled OpenCV code, which I did not touch at all. I use only Java shell for OpenCV.

The debugger frame looks like this after the first SIGURG signal:

debug frame debug frame

, - , , , . , , , , .

+4
1

, LLDB , , LLDB. , Android Studio 2.2, Run- > Edit Configurations Debugger Debug Java Auto.

LLDB , 2.2. adb - .

+9

Source: https://habr.com/ru/post/1655761/


All Articles