Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio causes application to receive Fatal signal 6 (SIGABRT), code -6 (SI_TKILL)

Tags:

java

android

So essentially, my application was working with no errors, until I restarted my computer. Now, whenever I attempt to run the application from within Android Studio, the application crashes after a few seconds (with no interaction) with the following output:

    03-08 13:57:30.175 16138-16138/com.aryangulati.ddapppt2 V/StudioProfiler: StudioProfilers agent attached.
    03-08 13:57:30.210 16138-16203/com.aryangulati.ddapppt2 V/StudioProfiler: Acquiring Application for Events
    03-08 13:57:30.367 16138-16138/com.aryangulati.ddapppt2 A/libc: Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 16138 (gulati.ddapppt2), pid 16138 (gulati.ddapppt2)

Surprisingly, this error only occurs when my device is plugged into my laptop. When I opened the application directly on my phone, unplugged from the computer, it functions normally. However, whenever the device is plugged into the laptop and/or I run it from the IDE, it causes a crash. I have tried restarting Android Studio, but the same problem still occurs. Why does this happen? And what can I do to fix it?

Edit: I found this thread: Android app crashes with SIGABRT Signal 6 only while Eclipse debugging, but for some reason, I cannot find the show all ANRs option in the developer settings. Any help there would also be appreciated.

Edit 2: I have found this only occurs when attempting to use the android profiler

like image 233
Aryan Gulati Avatar asked Mar 08 '19 10:03

Aryan Gulati


1 Answers

In Android Studio 4.0 (or higher), there is a specific way to run the app with Profiler:

  1. From menu click on "Run"
  2. Profile 'app'

With this mode, app does not crash.

like image 122
Pablo Alfonso Avatar answered Oct 16 '22 19:10

Pablo Alfonso