This application has requested runtimethe runtime to termina...

【已解决】Android ADT中增大***D内存后无法启动:emulator failed to allocate memory 8
过程中,增大对应***D的内存为2G后,结果无法启动***D了:
[ 18:01:38 – Emulator] Failed to allocate memory: 8
[ 18:01:38 – Emulator]
[ 18:01:38 – Emulator] This application has requested the Runtime to terminate it in an unusual way.
[ 18:01:38 – Emulator] Please contact the application’s support team for more information.
【解决过程】
1.所以,重新改小为1G试试:
结果问题依旧。
说是,只能是256/512/1024
但是很明显,我上面改成1024也是不行的。
参考最后一个人的解释,去改为900MB,看到log为:
[ 18:16:04 – SDK Manager] Snapshot image already present, was not changed.
[ 18:16:04 – SDK Manager] SD Card already present with same size, was not changed.
[ 18:16:04 – SDK Manager] Updated ***D ‘SamsungGalaxySII’ based on Android 4.2, ARM (armeabi-v7a) processor,
[ 18:16:04 – SDK Manager] with the following hardware config:
[ 18:16:04 – SDK Manager] hw.sdCard=yes
[ 18:16:04 – SDK Manager] hw.device.manufacturer=Google
[ 18:16:04 – SDK Manager] hw.mainKeys=yes
[ 18:16:04 – SDK Manager] hw.lcd.density=240
[ 18:16:04 – SDK Manager] hw.accelerometer=yes
[ 18:16:04 – SDK Manager] hw.dPad=no
[ 18:16:04 – SDK Manager] hw.device.hash=
[ 18:16:04 – SDK Manager] hw.trackBall=no
[ 18:16:04 – SDK Manager] hw.device.name=Nexus S
[ 18:16:04 – SDK Manager] hw.camera.back=none
[ 18:16:04 – SDK Manager] hw.sensors.proximity=yes
[ 18:16:04 – SDK Manager] hw.battery=no
[ 18:16:04 – SDK Manager] disk.dataPartition.size=200M
[ 18:16:04 – SDK Manager] hw.audioInput=yes
[ 18:16:04 – SDK Manager] hw.sensors.orientation=yes
[ 18:16:04 – SDK Manager] hw.camera.front=none
[ 18:16:04 – SDK Manager] hw.gps=yes
[ 18:16:04 – SDK Manager] skin.dynamic=no
[ 18:16:04 – SDK Manager] hw.keyboard=no
[ 18:16:04 – SDK Manager] vm.heapSize=32
[ 18:16:04 – SDK Manager] hw.ramSize=900
然后再去试试,结果错误依旧。
3.改回之前配置的512MB,是可以的。
但是不是我想要的,想要的就是,尽量让内存大点,以此希望能让***D模拟器跑的快点,不要这么慢。
4.再去改为768MB,结果又显示和之前的snapshot不一致,所以还不给启动:
[ 18:19:00 – DownloadSongtasteMusic] ——————————
[ 18:19:00 – DownloadSongtasteMusic] Android Launch!
[ 18:19:00 – DownloadSongtasteMusic] adb is running normally.
[ 18:19:00 – DownloadSongtasteMusic] .downloadsongtastemusic.MainActivity activity launch
[ 18:19:00 – DownloadSongtasteMusic] Automatic Target Mode: launching new emulator with compatible ***D ‘SamsungGalaxySII’
[ 18:19:00 – DownloadSongtasteMusic] Launching a new emulator with Virtual Device ‘SamsungGalaxySII’
[ 18:19:00 – Emulator] emulator: ERROR: Unable to load VM from snapshot. The snapshot has been saved for a different hardware configuration.
5.所以,先去把snapshot去掉,然后再启动,启动后,关闭掉,再次勾选上snapshot。
结果还是同样提示:
ERROR: Unable to load VM from snapshot. The snapshot has been saved for a different hardware configuration
所以,估计只能是删除掉,重新建一个,也许才可以的。
6.重新新建一个***D:
然后用这个***D试试效果。
然后是可以启动的。
不过速度也还是很慢。
6.继续参考该贴,先去设置为1024MB,
然后再去把:
C:\Users\CLi\.android\avd\SamsungGalaxySII.avd\config.ini
hw.ramSize=1024
hw.ramSize=1024MB
然后去运行试试,结果出现:
Emulator] emulator: ERROR: Unable to load VM from snapshot. The snapshot has been saved for a different hardware configuration.
再去取消掉snapshot,再运行,的确是可以运行的。
当前有个bug:
默认是通过
hw.ramSize=1024
来判断内存大小的,但是当是&=1024时,就无法正确识别了。
必须手动把对应的
C:\Users\CLi\.android\avd\SamsungGalaxySII.avd\config.ini
hw.ramSize=1024
hw.ramSize=1024MB
就可以了。
1. 手动改了后,结果会导致界面中无法正确显示:
总之,还是很悲催,bug还是很大的说。
2.虽然改为1024MB,甚至2048MB,但是实际上运行***D的时候,貌似还是原始的(我所选的那个设备Nexus的)343MB:
总之,更加坑爹。。。
共享此文章:
免费的格式化Javascript源码的网站
查询Unicode字符,且还带Oct,Decimal,Hex,HTML Entity
HTML和Javascript都支持,很好用。dll - This application has requested the runtime to terminate it in an unusual way QT C++ - Stack Overflow
to customize your list.
Join the Stack Overflow Community
Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.
J it only takes a minute:
I am developing a Fifteen Puzzle Game in QT C++. Game works sometimes fine and sometimes crashed during run. I don't know the problem. I looked into different forums and found different suggestions. Some say this error is due to missing dll etc.
A window appears with Error is below
Microsoft Visual C++ Runtime Library
This application has requested the runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
I solved the problem: Actually I was accessing a vector location which was not available. assert() helped me to troubleshoot. Thanks @DNT
Your Answer
Sign up or
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Post as a guest
By posting your answer, you agree to the
Not the answer you're looking for?
Browse other questions tagged
Stack Overflow works best with JavaScript enabledYour question
&&&How to fix Runtime error! program c:\...&
Try scanning your system.
If your system turn out to be ok, it may be a corrupt program in your startup. Can you give more details as to what has changed.
Check your event log to see which application is erroring.
Can't find your answer ? Ask !
couldn't load
script:mispL//C:\PROGRA~1\McAfee\VIRUSS~1\VSJsRes.dll:ScanExclusionsDrawer.js
Faulting application name: KillerTray.exe, version: 1.0.0.1, time stamp: 0x4b509abe
Faulting module name: KillerTray.exe, version: 1.0.0.1, time stamp: 0x4b509abe
Exception code: 0x
Fault offset: 0x014e
Faulting process id: 0x163c
Faulting application start time: 0x01cd7fe3fc0142c2
Faulting application path: C:\Program Files\Bigfoot Networks\Killer Driver\KillerTray.exe
Faulting module path: C:\Program Files\Bigfoot Networks\Killer Driver\KillerTray.exe
Report Id: 5ae98194-ebd7-11e1-9c3b-
apparently this is causing the runtime error
Reinstall the driver
i reinstalled the drivers but now when i i start up and open chrome after 5 mins it just completely turns off the internet and freezes my computer
Sounds like either your copy of windows is corrupt or a virus issue. Either way you may need to re-install windows
Can't find your answer ? Ask !
Related resources
More resources
Read discussions in other Windows 7 categories
Ask the community
Top Experts
Motherboard
Tradesman1
65960 messages since 6/4/13
SR-71 Blackbird
95057 messages since 8/17/09
10830 messages since 3/13/11
All badges
Forum help
Latest Reports
Tom's Hardware Around the World
Subscribe to Tom's Hardware
About Tom's Hardware
Advertising
Purch Privacy Policy
Terms Of Use and Sale
Copyright Policy
Copyright & 2016
Group, Inc. All Rights ReservedTom's Hardware Guide &
Ad choices

参考资料

 

随机推荐