Android Emulator causing Blue Screen - android

Whenever I am trying to run the Android Emulator (any Nougat, Oreo, or Kitkat) laptop throws a blue screen saying STOP CODE IRQL NOT LESS OR EQUAL.
My laptop will restart in 20 minutes or so and I can do everything else on my laptop and even run the Android app on my mobile using USB Debugging.
I tried reinstalling android studio and AVD manager several times but my issue is not getting resolved.
PLEASE help!
Laptop Configuration:
Dell Inspiron 3576
Processor: Intel(R) Core(TM) i5-8250U CPU # 1.60GHz 1.80 GHz
RAM: 8.00 GB (7.87 GB usable)
System Type: 64-bit operating system, x64-based processor
Edition: Windows 10 Home Single Language
Version: 20H2 (as of 01st April, 2021)

I had the same issue with NoxPlayer which is another android emulator, the stopcode was different but it was fixed when I created a new boot entry with Hyper-V Disabled.
Check this out:
https://blog.nicholasrogoff.com/2013/12/27/create-a-no-hyper-v-boot-option/
"Don't forget to change Windows8 to windows10 in your commands, That's just a name but it has to be meaningful :D"

Related

Cannot launch Device "The emulators process for AVD Nexus_6_API_28 has terminated"

I had a problem with Android Studio.
Cannot launch emulator, the error is: "The emulators process for AVD Nexus_6_API_28 has terminated"
For better diagnostic, I desired view a log of error but cannot see anything. It´s possible for Android?
I tryed wit this post but not work:
1- Emulator: Unexpected feature list: MultiDisplay VulkanNullOptionalStrings YUV420888toNV21 YUVCache
2- Failed to launch emulator: Error: Emulator didn't connect within 60 seconds
My system is:
Android Studio Chipmunk 2021.2.1 (May 18, 2022)
Mi PC:
Intel(R) Core(TM) i7-10510U CPU # 1.80GHz 2.30 GHz
Windows 10 Pro
Any idea? Thank
In my case I was low on memory. I had 8GB of RAM and there were Google Chrome, Android Studio and few Terminals and background processes running, occupying 95% of my memory. I closed chrome and few other background processes and emulator started successfully. Sometimes I needed to restart Android Studio to run emulator.

Android Emulator very slow on Ubuntu 20.04

My Android emulator runs very slow on my Ubuntu machine. I need it to run faster, because some apps are slowed down so much, that they change their behaviour (they use the camera).
System specs:
-x86_64
-Intel(R) Core(TM) i7-5600U CPU # 2.60 GHz
-20GB Ram
-512Gb HDD
I use Ubuntu 20.04 and Android Studio 4.1.1 (fresh installation).
I use this AVD: Pixel2 1080 x 1920: 420dpi API 28 Android 9.0 (Google X86_ARM) CPU/ABI: x86
In the extended menu I chose Graphics: Hardware - GLES 2.0. I also disabled GPS, audioInput and audioOutput with no performance improvements.
I did not try this, because selecting Hardware - GLES 2.0 worked for me and the avd started normally (but still very slow).
Other system images are equally slow though.
I tried:
sudo modprobe msr
sudo rdmsr 0x3A
and it returns 5, so VT-X is enabled
Is the hardware the bottleneck, or is something configured wrongly? Maybe it is the HDD that slows the emulator down? I tried running the emulator on Windows and it's insanely fast. The windows machine is stronger though.
Update 11.12.2020:
I also verified my KVM installation using this command:
./emulator -avd Pixel2Api28Arm -accel-check
It returned this:
28Arm -accel-check
accel:
0
KVM (version 12) is installed and usable
accel
So this does not seem to be an issue.
I was having the same problem (KVM working, but slow x64 emulator on x64 host), and found a solution here, which is to disable automatic snapshot creation.
Run your emulator, and click on the three dots (...) to open the settings:
In the settings, click "Snapshots":
Switch to the "Settings" section on top:
Set "Auto-save current state to Quickboot" to No:
It'll ask you to restart the emulator, click Yes:

GPU Driver issue with Android Emulator

I an new to Android Development and Android Studio, and I am trying to run the emulator, but unfortunately, everytime I run it I get the following error.
GPU #1
Make: 8086
Model: Intel(R) HD Graphics Family
Device ID: 0a16
Some Users have experienced emulator stability issues with this driver version.
As a result, we're selecting a compatibility renderer. Please check with your manufacturer to see if there is an
updated driver available.
Does anyone know how to fix it,
My computer's details:
Processor: Intel Core i3-4005 CPU # 1.70 GHz
Graphics: Intel HD Graphics Family
Model: Dell Inspiron 3542
RAM: 4GB
Hard Disk 1TB
I encounter this warning on my hackintosh (Lenovo X230, Intel HD 4000).
I tried to force hardware use with no success.
Did you try this one emulator from Microsoft?
https://www.visualstudio.com/vs/msft-android-emulator/
In my case, on my Windows machine (same X230), the emulator keeps stalling on the profiles screen...
I have an old macbook pro with HD3000 on which the emulator runs fine, though the graphic chip is part of from Intel's HD family.

Simultaneous Running HAXM AVD Emulator Limit

To elaborate on the title, I'm running many simultaneous AVD's for my automated build/test processes (think concurrent builds for a project, or multiple projects building at once). Most problems that people have with running multiple HAXM accelerated AVD's at once is memory related. THIS IS NOT MY PROBLEM (I think). I have a pretty beefy i7 machine with 32gb of ram. When installing HAXM, I allocated 28gb (sorry, I can't post more pictures without more rep).
Here is my AVD configuration(s). Observe, only 1024mb of memory allocated per emulator:
AVD Config:
Here are my system specs:
OS Name Microsoft Windows 7 Enterprise
Version 6.1.7601 Service Pack 1 Build 7601
Other OS Description Not Available
OS Manufacturer Microsoft Corporation
System Name DUCHT1-DS1
System Manufacturer Dell Inc.
System Model OptiPlex 7040
System Type x64-based PC
Processor Intel(R) Core(TM) i7-6700 CPU # 3.40GHz, 3401 Mhz, 4 Core(s), 8 Logical Processor(s)
BIOS Version/Date Dell Inc. 1.2.8, 1/26/2016
SMBIOS Version 2.8
Windows Directory C:\WINDOWS
System Directory C:\WINDOWS\system32
Boot Device \Device\HarddiskVolume2
Locale United States
Hardware Abstraction Layer Version = "6.1.7601.17514"
User Name Not Available
Time Zone Central Daylight Time
Installed Physical Memory (RAM) 32.0 GB
Total Physical Memory 31.9 GB
Available Physical Memory 29.5 GB
Total Virtual Memory 63.8 GB
Available Virtual Memory 61.2 GB
Page File Space 31.9 GB
Page File C:\pagefile.sys
I can run 8 emulators at once, I would post an image if I could. I'm only using ~16gb of my 32gb of ram when they're all running. (2048mb per emulator at this moment in time). No matter what I do, I cannot run more than 8 emulators. I can run 8 emulators with 1gb, 2gb, or 3gb memory allocated per device simultaneously. I've tried 32bit vs 64bit intel images. There is clearly a limit beyond that of memory that is enforcing this.
The error message I get when starting my 9th emulator (Note, I started counting emulators at 0):
9th emulator boot error
"Failed to create HAX VM. No accelerator found."
The only thing I could think of where the number 8 might be coming from would be the fact I have 4 cores == 8 logical processors. That's a wild guess though. Any help would be greatly appreciated.
It is due to a hardcoded variable in the HAXM. You can solve this problem by downloading the latest HAXM from the Github page, which will set an limit of 64 guests instead of 8.
Type this in the command line:
sc stop intelhaxm
then:
sc start intelhaxm
And then your emulator should work.

Android x86 + VirtualBox

I try to install android x86 4.2 (I tried also 4.0 asus laptop and eeepc) to my VirtualBox. My pc configuration:
Windows 7 x64
Lenovo Y570, Intel Core i7
NTFS file system
What I create in VirtualBox:
Name: Android x86
Type: Other (I tried Linux 2.4 x86 or Linux 2.6 x86 too)
Version: Other/Unknow
RAM: 512 Mb
Create a virtual hard drive => VDI (or HDD) => Fixed size (or dynamically) => 3 Gb (or 6)
Than I start my device and see boot menu. If I try to run it without installation, I see
Detecting Android-x86... found at /dev/sr0
Warning: Not an ASUS product
A N D R O I D
and nothing more happens. But now it must run like in different tutorials.
If I install, I try to format my Primary/Logical Bootable/Unbootable disk (FS type is Linux) from Choose Partition => Create/Modify partition.
I see very quickly disappearing line "could not find valid v7 on sda", than I see "can not mount /dev/sda1 Do you want to format it?" And I again go to Choose Partition menu.
Why emulator does not run?
Edited.
Answer: It's just a destiny. I installed VBox on my big pc with Win7 x32 and all is fine. On my Lenovo with the same config but with Win7 x64 it does not work. If u really wanna good android emulator, u can try YouWave.
I have HP430 Laptop with win 7. I had the same problem. But I figured out the solution.
While booting the computer with win7 I entered BIOS menu. There was a option to optimize pc for virtualization.I selected it. After that every thing ran smooth.
Later I noticed in virtual box that, in system settings the acceleration type was VT-x AMD, Nested Paging,PAE/NX. This was different before optimization.
Hope this gives some idea.

Categories

Resources