I recently installed the Linux Pop! _OS 20.04 LTS distribution to develop in flutter. Everything works very well, except the AVD emulator, which is extremely slow. What could it be?
I have a 16gb dell of ram, i5 8th generation and 256 of ssd.
im on POP OS 21.10 (Intel® Pentium(R) Gold G5420 CPU # 3.80GHz × 4, 8 single channel ram ), first i need to applied this following instruction https://developer.android.com/studio/run/emulator-acceleration?utm_source=android-studio#vm-linux , for my use case(flutter) i increased the ram to 3gb and VM heap to 512mb , chose Hardware GLES 2.0 on graphics option, then it runs smoothly, if u are using genymotion u can increase the VRAM on virtual box.enter image description here
In case anyone else runs into this, I had to change quick boot to cold boot, as mentioned in this redit post. No idea why quick boot doesn't work, and my system was not spiking in any way but the whole OS was completely unusable until I killed the emulator. I'm on Pop! OS 22.04.
Related
I installed the latest version of the HoloLens 2 Emulator (10.0.20348.1501) on my Windows 10 Pro machine. I have 32GB of RAM, 11th Gen Intel 8 Core CPU, Nvidia 3080 (mobile) graphics card.
Initially I thought that the HoloLens emulator was super slow (an input such as trying to move the pointer can take 10, 20, 30 seconds to show up and sometimes doesn't even show up).
But upon testing some more, I've realized that my inputs are going through immediately (as I can tell from the sound feedback), it's just the visual feedback which is not updating. This testing is just inside the OS (without trying to launch an app I developed).
Any ideas what could be going on? In the performance monitoring tool, everything looks fine.
In the end, the only way to fix it, was to disable graphics switching in the BIOS, and set to Discrete only - despite the fact that the Nvidia GPU Activity shows that the GPU turns on when I launch the emulator.
If the emulator takes 10 seconds to update the graphic, there should be configurations issues. Based on my test, though I cannot say it works fluently in my PC, the HoloLens 2 emulator runs at around 15 fps. There is delay but should be work fine for testing. (I am running it with Nvidia 1080 (mobile), with a much older CPU than yours.)
Please check the document on Using the HoloLens Emulator - Mixed Reality | Microsoft Docs and make sure you have configured your computer properly.
In BIOS
Intel VT -> enabled
Intel VT-d -> disabled
Hardware-based Data Execution Prevention (DEP) (or any Intel data protection related feature, display name could be varied) -> disabled
In Windows
After BIOS configuration is done, completely shut down your PC, then boot. (Directly reboot may not apply changes).
Run dxdiag to check:
DirectX 11.0 or later (12.0 in my PC)
WDDM 2.5 graphics driver or later (3.0 in my PC)
Hyper-V Checking
Enable it if it is not. Reboot is required.
If it is already enabled. Disable it -> reboot the PC -> enable it again -> reboot
Others
For the laptop, make sure the power supply is plug-in and it is not in power-save mode. Check the GPU payload (around 36% in Nvidia 1080 mobile)
Then you may run the emulator again to see if this issue still exists.
I am Facing this error recently. Everything was fine i was learning android studio and suddenly out of nowhere this hit me up.
****Emulator: Warning: Quick Boot / Snapshots not supported on this machine. A CPU with EPT + UG features is currently needed. We will address this in a future release.****
This error made me to delete my virtual device and create a new one. Then it became too slow to start and run the applications. I am running an i5 - 4570 with 8 gigs of ram and a NVIDIA GT 610. I have installed HAXM and virtualization is enabled.Please help me through this.
Kudos.
This error means that your CPU do not have right configuration the INTEL VTX technology in your PC.
Android recommend this steps:
https://developer.android.com/studio/run/device
Is more reliable in some cases use a physical device via USB instead of emulator.
Really trying to not create a duplicate.
I've read the closest SO on this and it is quite old:
Android Studio and Ryzen CPU?
It's time to upgrade my hardware since my i7, 8GB RAM laptop can no longer run Android Studio and the emulator at the same time (major memory issues). Unfortunately, my laptop can only go to 8GB.
I am definitely considering a Ryzen 5 or 7 since I can save so much $$$ (compared to similar Intel choices).
On Ryzen, can I run the normal HAXM emulator? The one I'm used to running on my i7? Or do I have to run something different?
Does anyone have comparison stats? My i7 starts the emulator just about instantly on my i7. But I can no longer run the emulator and android Studio (AS) at the same time (due to RAM being eaten up by AS and associated Java runtimes).
Is running on the Ryzen not solid? Am I going to see a lot of crashes? Is it going to be so slow it drives me crazy? If not I'd rather pay the extra for the Intel chip?
Hope someone out there is an Android dev and has experience to share.
Win10 Version?
Also, I just read the requirements for Hyper-V. I'm running Windows Home edition. Do I need Windows Pro or Enterprise to run with Ryzen 5/7? Will I be required to use Hyper-V?
The following is from : https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v
Windows 10 Enterprise, Pro, or Education
64-bit Processor with Second Level Address Translation (SLAT).
CPU support for VM Monitor Mode Extension (VT-c on Intel CPUs).
Minimum of 4 GB memory.
The Hyper-V role cannot be installed on Windows 10 Home.
I found the following information from July 09, 2018 (a while ago and AS 3.2 was out) that seems to indicate that :
1. Android emulator is supported and will run with AMD Ryzen chips
2. You will need to turn on Windows HyperVisor Platform (which should be available via Windows 10 Home)
https://android-developers.googleblog.com/2018/07/android-emulator-amd-processor-hyper-v.html
It also states (my emphasis shown where I am confused -- not sure what Hyper-V running at same time gives me) :
If you want to use Hyper-V at the same time as the Android Emulator
on your Intel processor-based computer, you will also need the same
Android Studio and Android Emulator versions as listed above, but with
the additional requirements:
Enable via Windows Features: "Hyper-V" - Only available for Windows 10 Professional/Education/Enterprise
Intel Processor : Intel® Core™ processor that supports Virtualization Technology (VT-x), Extended Page Tables (EPT), and
Unrestricted Guest (UG) features. Additionally VT-x needs to be
enabled in the BIOS.
More Info - Definitive Answer
My son has a machine with Gigabyte m/b and a Ryzen 5 2600x and we installed Android Studio 3.5 and made the appropriate changes tonight.
The board / CPU supports SVM (virtualization technology) so we made
that change in the BIOS.
Next we turned on the Win10 setting for Windows HyperVisor Platform.
We downloaded an x86 Oreo image via Android Studio / AVD Manager and ran it and it runs very fast and smoothly on that machine (16GB RAM).
We didn't see any problems. Loaded up a basic template app and deployed it to the Android VM and it ran great. It all looks good to me. Support for Ryzen seems to be just fine. I will be buying a board and Ryzen just like his.
Update - 2020-03-23
I did purchase the Gigabyte mainboard and the Ryzen 5 2600x and I've been running it for over 6 months now and running current versions of Android Studio (keeping it updated) during that time.
I have 16GB RAM and the CPU can run Android Studio and at least two emulators running at the same time with no problems at all.
Ubuntu Linux / Windows 10 Home Edition Dual Boot
I dual boot my machine running Ubuntu and Win10. I run Ubuntu 90% of the time because Android Studio runs so smoothly on it, but I also boot in to Win10 and Android Studio runs fine there too. (Home edition works fine.)
This confirms that the AMD processors work completely fine running the Android emulators.
Android studio's emulator takes like ages to start and also crashes sometimes and at times does not show output, is very very slow.
OS X Yosemite
version 10.10.1
MacBook Pro (15-inc, late 2008)
Processor 2.4 GHz Intel core 2 Duo
Memory 8 GB 1333 MHz DDR3
Startup Disk Untitled
Graphics NVIDIA GeForce 9600M GT 256MB
If i remember correcly your MacBook do not support Hardware Accelerated Execution Manager becouse the cpu is quite old :-( (mine is too) so the default android emulator will be so so slow and there is no way to fix it
Yes you can tweek some parameters and maybe gain a second but it would be very marginal gain.
I use Genymotion is realy fast and run well on ald machines, give it a try. Is commercial product. It han the big disadvantage that there is no images with google play services.
Otherwise there is a way to run android images on "Oracle VM VirtualBox" but this way is not so easy, is hard to find a good android image and setup the envirnoment. install Android in VirtualBox
ps. if you haven't done this already upgrade hd to an ssd , it helps a lot
I have dual booted windows 7 and ubuntu 14.04 on my PC.
I have a recurring problem with windows.
The screen frequently becomes blank for a few seconds, showing an error message in a popup menu:
"Display driver stopped responding and has recovered. Display driver NVIDIA windows kernel mode driver version 266.58 stopped responding and has successfully recovered."
Here are my computer specifications:
Intel core i5 processor,
4gb ram,
Nvidia GeForce 210 graphics card.
I updated the drivers on my computer.
I also formatted my PC, but the problem still persists.
Now the problem is worse and windows shuts down within a few minutes of starting.
Today, Ubuntu also started randomly freezing, a symptom which had not presented itself until now.
As Astor139 said:
Honestly, this particular question doesn't fit stack overflow, since it isn't strictly programming related. (As far as I can tell, you have a hardware issue.) Since it persists across two different OS, with very different arch, I would say you need a new gpu. A Nvidia GT 730 is under $50 USD and would be a suitable replacement/upgrade for your 200.
Posted as his comment is really a suitable answer.