Hi, I have setup a new fresh Titanium environment on a brand new Windows 7 x64 - 8GB RAM - intel i7 processor system and I have been struggling during the last few days in order to be able to launch even just the most simple test mobile application on android emulator with Google APIs Android 4.0 (API 14) with an WXGA800 resolution. Both Android SDK Tools and SDK Platform-tools are updated (revision 20.0.3 and 14) with all Android 4.0 (API 14) packages installed
The error messages I'm receiving through console seem to be related to some memory allocation issue for this particular configuration. Console output is as follows on running:
[INFO] logfile = C:\Users\A55A\My Documents\Titanium_Studio_Workspace\prueba\build.log [DEBUG] C:\Users\A55A\AppData\Roaming\Titanium\mobilesdk\win32\2.1.2.GA\android\builder.py emulator prueba C:\android-sdk C:\Users\A55A\My Documents\Titanium_Studio_Workspace\prueba com.prueba.prueba 7 WXGA800 [INFO] Launching Android emulator...one moment [DEBUG] From: C:\android-sdk\tools\emulator.exe [DEBUG] SDCard: C:\Users\A55A\.titanium\android2.sdcard [DEBUG] AVD ID: 7 [DEBUG] AVD Skin: WXGA800 [DEBUG] SDK: C:\android-sdk [DEBUG] C:\android-sdk\platform-tools\adb.exe start-server [INFO] Creating 64M SD card for use in Android emulator [DEBUG] C:\android-sdk\tools\mksdcard.exe 64M C:\Users\A55A\.titanium\titanium_7_WXGA800.sdcard [INFO] Creating new Android Virtual Device (7 WXGA800) [DEBUG] C:\android-sdk\tools\emulator.exe -avd titanium_7_WXGA800 -port 5560 -sdcard "C:\Users\A55A\.titanium\titanium_7_WXGA800.sdcard" -logcat *:d,*,TiAPI:V -no-boot-anim -partition-size 128 [DEBUG] signal caught: 3 [DEBUG] calling emulator kill on 3512 ERROR: no se encontro el proceso "3512". Failed to allocate memory: 8 This application has requested the Runtime to terminate it in an unusual way. Please contact the applications support team for more information.Build.log output :
[INFO] logfile = C:\Users\A55A\My Documents\Titanium_Studio_Workspace\prueba\build.log [DEBUG] C:\Users\A55A\AppData\Roaming\Titanium\mobilesdk\win32\2.1.2.GA\android\builder.py simulator prueba C:\android-sdk C:\Users\A55A\My Documents\Titanium_Studio_Workspace\prueba com.prueba.prueba 7 WXGA800 [INFO] Building prueba for Android ... one moment [DEBUG] C:\android-sdk\platform-tools\adb.exe start-server [INFO] Titanium SDK version: 2.1.2 (08/24/12 14:46 ed7f777) [DEBUG] Waiting for device to be ready ... [TRACE] adb devices returned 0 devices/emulator [TRACE] adb devices returned 0 devices/emulator [TRACE] adb devices returned 0 devices/emulator [TRACE] adb devices returned 0 devices/emulator [TRACE] adb devices returned 0 devices/emulator [TRACE] adb devices returned 0 devices/emulator [ERROR] Application Installer abnormal process termination. Process exit value was 1 [ERROR] Timed out waiting for emulator to be ready, you may need to close the emulator and try againAt first Titanium environment was configured automatically with JDK and Titanium SDK most recent versions (32-bit JDK 1.7 Update 7 and Titanium SDK 2.1.3).
On the other hand I have another similar system which I have been using up until now with no problems with android emulator. This other system is not as powerful as the new system being also Windows 7 x64 but with 4GB RAM and dual-core processor, but neverthless is having no problems with android emulator with any configuration. This system is actually working with the follwing SDK configurations : 32-bit JDK 1.6 Update 25 and Titanium SDK v2.1.2. So in this way I have copied Java and Titanium version configuration on the new system (32-bit JDK 1.6 Update 25 and Titanium SDK v2.1.2) in order to avoid any possible conflicts or bug related issues (¿?) between new SDK versions and to have exactly the same configuration as my previous running system, but apps are still not running with API 14, although tests with other API configurations like with Android 2.2 with other seem to be working fine.
When starting the emulator directly from AVD Manager I am getting the following output:
Starting emulator for AVD 'titanium_7_WXGA800' Failed to allocate memory: 8 This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.Once again to mention that 2.2 platform emulators do open correctly from AVD Manager, but not 4.0 platforms.
Here is an output of Java versions on both systems :
C:\>java -version java version "1.6.0_25" Java(TM) SE Runtime Environment (build 1.6.0_25-b06) Java HotSpot(TM) Client VM (build 20.0-b11, mixed mode, sharing) C:\>javac -version javac 1.6.0_25I have reinstalled Titanium Studio, Android and Java SDKs in several ocassions with no luck. I've installed Android SDKs and Java both before and after installing Titanium Studio, not making any difference. I have even resinstalled OS on new system with no effect. There is no way of launching android emulator 4.0 / WXGA800.
There must be some issue I'm missing although both systems seem to be identical, even the new system is three or four times as powerful as the old system regarding hardware configuration, so it really doesn't make any sense.
I would appreciate any guide/orientation over this issue. Thanks a lot.
lots of this is mentioned on stackoverflow
Thanks a lot for your indications. I have configured WXGA resolution manually (1280x768) and added the text "MB" at the end of 1024 and now emulator seems to be working OK. Nevertheless I'm still interested in knowing why this problem affects only some machines and does not occur on others ???
Think you can help? Login to answer this question!