Simultaneous Running HAXM AVD Emulator Limit - android

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.

Related

Android Emulator causing Blue Screen

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"

Slow Emulator, no common suggestions work

So I have this interesting case where I have tried 3 different emulators on my PC:
Bluestacks, Nox and Memu
All of them are so much laggy. Nox works a bit better but you can't really play a game with it, still slow.
This is what I have tried so far:
Enabled virtualization. LeMoon says everything is alright
Updated the drivers for my graphics card and chipset (and almost everything else)
allocated 2 cores of CPU and 2048 MB ram to Nox
Nothing worked.
PC Specs:
HP Core i3 with Windows 10 (64 bit)
RAM - 4 GB DDR4
CPU Type - Intel(R) Core(TM) i3-6006U CPU # 2.00GHz
Intel SSD
Graphics Chipset
AMD Radeon(TM) R5 M430
Memory Size - 2048 MB
Memory Type - DDR3
Memory Clock - 1000 MHz
Core Clock - 1030 MHz
Total Memory Bandwidth - 16 GByte/s
Now, the same Nox setup works flawlessly on my secondary laptop which is just a second generation Core i5 with 4GB DDR3 RAM and a regular Hard drive instead of an SSD but running on 64 bit windows 7 (with VT enabled).
Any ideas?
Can windows 10 have an impact?
You do not have enough configuration on your PC and you want emulators to work properly?
For Android Studio and Emulators to work properly in Windows machine, you at least need 8GB of RAM with a 2GB Graphic Card.
Try upgrading the configs of your system and it will become better.
My Mac has only 2GB of Ram and it works like a charm. So reconsider.
Hope it helps.

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.

Android emulator running extremely slow on Ubuntu 17.04

I know this is a duplicate but i am unable to comment on this thread in order to find out a solution. I have done exactly as the accepted answer but my problem isn't solved.
I am running Ubuntu 17.04 on a laptop with Intel Core i7 4th Gen Processor, 8GB RAM, 256GB SSD and Dual Graphics.
I have installed nVidia Prime drivers and switched to Intel graphics card because it performs better than the nVidia.
I have created a Virtual Device with the following settings:
Device: Google Pixel with API 26
Graphics: Automatic(i have tried both software and hardware btw).
RAM: 4096MB
VM Heap: 1024MB
Internal Storage: 4096MB
First, reduce the RAM of the emulator image to something more reasonable (1024MB, perhaps 1536MB). Do not allocate half of your development machine's RAM to an emulator.
Second, confirm that you are using an x86 emulator image (or perhaps x86-64). This shows up in the CPU column of the AVD Manager.

This kernel requires an x86-64 cpu but only detected an i686 cpu

I have problem.
Genymotion 2.6.0 + VirtualBox 4.3.12.
windows XP 32 bit.
if anyone knows a solution would be very grateful.
This kernel requires an x86-64 cpu but only detected an i686 cpu.
Unable to boot - please use a kernel appropriate for your CPU
This problem occurs with the way Android 5.x.
Android 4.4.4 - no problems.
Genymotion requires 64-bit hardware for the newest Android kernels. You can run a 32-bit host OS if you want, but your hardware still has to be 64-bit. Here's a section of the download page pertaining to the current Windows system requirements:
System Requirements
Microsoft Windows 7, 8/8.1, 10 (32/64 bit)
64 bit CPU, with VT-x or AMD-V capability, enabled in BIOS settings
Recent and dedicated GPU
400 MB disk space
2GB RAM
In Oracle VM Box, Go to Setting->General and set Version according to your HW specs. Also you may need to enable Virtualisation option from BIOS at system startup.

Categories

Resources