简体   繁体   中英

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

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

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.

I fixed my problem by running the application in profiler mode .

To run your app in profiler mode go to the RUN menu on the toolbar and select Flutter run 'main.dart' in profile mode

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM