Android emulator running extremely slow on Ubuntu 17.04 - android

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.

Related

how to run android studio emulator on nVidia GT 365M

I created an emulator via Android studio AVD.
when i run the emulator, it show a message saying
your gpu driver information :
make:8086
Model:Intel (R) HD graphics 4000
device id :0166
Some users have experienced emulator stability issues with this driver version. As a result, were selecting a compatibility renderer. Please check with your manufacturer to see if there is an updated driver available.
https://i.ibb.co/60pY4pm/emulator2.jpg
I Added Android Studio to my nvidia card to run automatically on GPU driver whenever i open android studio
I Also added emulator executive files to nvidia card control
So it supposed that the emulator run on My nividia GT 365M not intel 4000
http://i63.tinypic.com/5bd7vk.jpg
But same message appear and my emulator is extremely slow
it is on that stage after 15 min of running
http://i66.tinypic.com/2zfv2hz.jpg
I tried every single option in emulator setting
http://i68.tinypic.com/71jpm0.jpg
***I tried to run the emulator by command line
emulator -avd pixel -gpu on
But the same problem
**** I enabled Intel HAXM (intel hardware acceleratio),,,nothing changed
********I ensured that my nividia card Driver is up-to-date
My Laptop Specs
CPU Intel Core i5 (3rd Gen) 3210M / 2.5 GHz
*Number of Cores Dual-Core
*Cache 3 MB
*Ram: 6 GB
*Graphics Processor Intel HD Graphics 4000
*Graphic card : nVidia GT365M
What is the solution ?
problem solved by installing intel 4000 graphic card update
https://downloadcenter.intel.com/product/81499/Intel-HD-Graphics-4000
but I still think my emulator runs on Intel card not GPU nividia card
any solutions for that ?

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.

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.

HAXM not working properly

I am using DELL inspiron n4010 with i3 generation 1 processor. Its showing me VT- enabled but I am not able to run the HAXM driver in my android simulator. The drivers have been installed successfullly. Please help me out.
Actually I am not able to see this while running the avd with intel processor.
It should not supposed to run on android simulator(Emulator) actually YOu have to create an emulator with intel Atom(x86), and the driver will make this emulator run faster than the other emulator.
Check this link
you should check how much disk space you have allocated while installing HAXM and how much disk space your virtual devices (in AVD) use. Perhaps you allocate more disk space to the emulated devices than you have specified when installing HAXM.

Categories

Resources