在Mac上启动AVD(Android虚拟设备)时,qemu-system-i386意外退出(非法指令4) [英] qemu-system-i386 quit unexpectedly when starting AVD (Android Virtual Device) on a Mac (illegal instruction 4)

查看:572
本文介绍了在Mac上启动AVD(Android虚拟设备)时,qemu-system-i386意外退出(非法指令4)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Mac上安装了Android Studio(Macbook Pro,2017年8月,OSX 10.12.4),然后启动,创建了一个hello world项目并创建了一个AVD(Android虚拟设备,Nexus 5)在其上运行我的项目

I installed Android Studio on my Mac (Macbook Pro, August 2017, OSX 10.12.4), then started up, created a hello world project and created an AVD (Android Virtual Device, Nexus 5) to run my project on it.

当我尝试在模拟器上运行项目(按播放按钮)或尝试启动模拟器本身时,会显示错误.

The error shows when I try to run my project on the simulator (pressing the play button) or when I try to start up the emulator itself.

以下是错误的屏幕截图:

Here's a screenshot of the error:

这是堆栈跟踪的开始:

Process:               qemu-system-i386 [5779]
Path:                  /Users/USER/Library/Android/*/qemu-system-i386
Identifier:            qemu-system-i386
Version:               0
Code Type:             X86-64 (Native)
Parent Process:        studio [4683]
Responsible:           qemu-system-i386 [5779]
User ID:               502

Date/Time:             2017-08-22 13:20:02.612 +0100
OS Version:            Mac OS X 10.12.4 (16E195)
Report Version:        12
Anonymous UUID:        A816A6BA-C97F-6831-E59F-1431A005F23C

Sleep/Wake UUID:       48F2FC89-DF11-4A13-ACEB-E81AF10174B0

Time Awake Since Boot: 15000 seconds
Time Since Wake:       7900 seconds

System Integrity Protection: enabled

Crashed Thread:        4

Exception Type:        EXC_CRASH (SIGILL)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Illegal instruction: 4
Termination Reason:    Namespace SIGNAL, Code 0x4
Terminating Process:   qemu-system-i386 [5779]

这是完整的堆栈跟踪: https://pastebin.com/raw/Btt2igX4

And here is the full stack trace: https://pastebin.com/raw/Btt2igX4

推荐答案

禁用/卸载CylancePROTECT为我解决了此问题.

Disabling / Uninstalling CylancePROTECT solved this issue for me.

sudo launchctl remove com.cylance.agent_service

同一软件也阻止了我编译go程序.

The same software was also preventing me from compiling go programs.

某些内存保护是问题的根源.以下是一些有关CylancePROTECT的微调的相关文章,可以通过完全卸载软件来解决该问题:运行时:bsdthread_register致命错误(CylancePROTECT)

Some memory protection is at the source of the problem. Here is the relevant article for some fine tuning of CylancePROTECT that could resolve the issue with uninstalling completely the software: runtime: bsdthread_register fatal error (CylancePROTECT)

这篇关于在Mac上启动AVD(Android虚拟设备)时,qemu-system-i386意外退出(非法指令4)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆