Running andengine GLES2 using emulator - android

This is my first game and i choosed AndEngine library. My avd configuration have its target as Android 4.2.2 API Level 17 and GPU emulation enabled. Yet I am getting the following error in my console
[2013-08-29 22:05:13 - AndEngine1] Android Launch!
[2013-08-29 22:05:13 - AndEngine1] adb is running normally.
[2013-08-29 22:05:14 - AndEngine1] Performing com.example.andengine1.MainActivity activity launch
[2013-08-29 22:05:25 - AndEngine1] Launching a new emulator with Virtual Device 'small2'
[2013-08-29 22:06:52 - Emulator] creating window 0 0 240 432
[2013-08-29 22:06:53 - AndEngine1] New emulator found: emulator-5554
[2013-08-29 22:06:53 - AndEngine1] Waiting for HOME ('android.process.acore') to be launched...
[2013-08-29 22:08:11 - AndEngine1] emulator-5554 disconnected! Cancelling 'com.example.andengine1.MainActivity activity launch'!
[2013-08-29 22:09:02 - Emulator] sdk/emulator/opengl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetUniformLocation:1380 error 0x501
[2013-08-29 22:09:04 - Emulator] sdk/emulator/opengl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetUniformLocation:1380 error 0x501
[2013-08-29 22:09:04 - Emulator] sdk/emulator/opengl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glUseProgram:1911 error 0x501
[2013-08-29 22:09:04 - Emulator] sdk/emulator/opengl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetUniformLocation:1380 error 0x501
[2013-08-29 22:09:12 - Emulator] sdk/emulator/opengl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glUseProgram:1911 error 0x501
[2013-08-29 22:09:15 - Emulator] sdk/emulator/opengl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glUseProgram:1911 error 0x501
and so on
Pls help me regarding this to fix the issue.
Thanks in advance.

You need to install 'intel X86' in the extras section in the SDK Manager .
After installing 'intel X86' also if your system is showing problem such as "HXA not installed " , that means you have to check whether your system supports virtualization .
Suppose your system doesnt support virtualization , then you can't run your game on emulator .
Emulator requires virtualization enabled in the system .
If your system doesn't support virtualization , then
You should run using real smart phone which has android OS in it to test your game.
stems
If your system supports virtualization , then you have to enable virtualization to run your game on emulator .
Virtualization(VT) is a hardware related thing. Some sy

Related

Android avd device stopped working

So today, until now my avd device launched and it didn't have any problem at all. I were updating through Android SDK Manager and launching an app on the same time but when avd device showed up after 1 minute I got an error message that Windows have to close the app.
My current AVD device is custom:
900x600 Android 4.3 - API Level 18 Intel Atom Memory Options: Ram:
760 VM Heap: 32 Internal Storage: 200 Mib Use Host Gpu (ticked)
When my app was closed I tryed to see if there is any problem at config.ini. And I changed
ORIGINAL: disk.dataPartition.size=200M
MODIFIED: disk.dataPartition.size=200MB
ORIGINAL: hw.ramSize=760
MODIFIED: hw.ramSize=760MB
and tryed to launch it again, but it didn't work and then I checked again from my device manager that RAM didn't have a value!!! Also I tryed to change the resolutionbut it didn't work.
So this is keep happening. Every time I save it and then fix config.ini but emulator stops.
I tryed to use different device from the list, but they didn't launch either.
This the message from my console also:
[2014-03-06 12:49:28 - ] Dx
trouble writing output: already prepared
[2014-03-06 12:49:32 - ] ------------------------------
[2014-03-06 12:49:32 - ] Android Launch!
[2014-03-06 12:49:32 - ] adb is running normally.
[2014-03-06 12:49:32 - ] Performing com.example. .MainActivity activity launch
[2014-03-06 12:49:32 - ] Automatic Target Mode: launching new emulator with compatible AVD 'AVDPanos'
[2014-03-06 12:49:32 - ] Launching a new emulator with Virtual Device 'AVDPanos'
[2014-03-06 12:49:37 - Emulator] emulator: Failed to open the HAX device!
[2014-03-06 12:49:37 - Emulator] HAX is not working and emulator runs in emulation mode
[2014-03-06 12:49:37 - Emulator]
[2014-03-06 12:49:37 - Emulator] emulator: Open HAX device failed
[2014-03-06 12:49:37 - Emulator]
[2014-03-06 12:49:38 - Emulator] creating window 0 0 900 600
[2014-03-06 12:49:38 - ] New emulator found: emulator-5554
[2014-03-06 12:49:38 - ] Waiting for HOME ('android.process.acore') to be launched...
[2014-03-06 12:49:59 - ] emulator-5554 disconnected! Cancelling 'com.example. .MainActivity activity launch'!
Any help?
attempts to decrease the ram 528 and uncheck the gpu
and read http://software.intel.com/en-us/android/articles/installation-instructions-for-intel-hardware-accelerated-execution-manager-windows
I also face with the same issue, pap. When I run the project on the emulator, and face with the same issue, I re-run the project (without closing/restarting anything viz. Emulator, Eclipse or the machine). Then it works fine. Try this scenario from your end as well. Hope it works for you as well.
I tryed to do what ViramV and Tomazini couple of times (thanks both for your help), but didn't work for me. So I had reinstall the whole package of eclipse from the beginning, because I couldn't find any other way to do it.

OpenGL does not work in VMware?

I am new to Android, and am just starting to work through the examples in "Learn Android App Development". When I try to "run as Android application", I get the following errors...
[2013-10-12 19:39:18 - Hello_World] ------------------------------
[2013-10-12 19:39:18 - Hello_World] Android Launch!
[2013-10-12 19:39:18 - Hello_World] adb is running normally.
[2013-10-12 19:39:18 - Hello_World] Performing chapter.two.hello_world.MainActivity activity launch
[2013-10-12 19:39:19 - Hello_World] Automatic Target Mode: launching new emulator with compatible AVD 'Android_4.2_Emulator_Nexus_7'
[2013-10-12 19:39:19 - Hello_World] Launching a new emulator with Virtual Device 'Android_4.2_Emulator_Nexus_7'
[2013-10-12 19:39:27 - Emulator] extension WGL_ARB_make_current_read was not found
[2013-10-12 19:39:27 - Emulator] extension WGL_EXT_swap_control was not found
[2013-10-12 19:39:27 - Emulator] Failed to create pbuf surface for FB 0x3004
[2013-10-12 19:39:27 - Emulator] emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
[2013-10-12 19:39:29 - Emulator] emulator: warning: opening audio output failed
[2013-10-12 19:39:29 - Emulator]
[2013-10-12 19:39:33 - Emulator] emulator: emulator window was out of view and was recentered
[2013-10-12 19:39:33 - Emulator]
[2013-10-12 19:39:33 - Hello_World] New emulator found: emulator-5554
[2013-10-12 19:39:33 - Hello_World] Waiting for HOME ('android.process.acore') to be launched...
[2013-10-12 19:40:57 - Hello_World] emulator-5554 disconnected! Cancelling 'chapter.two.hello_world.MainActivity activity launch'!
The two lines with "not found" at the end, and the very last line are actually in red ink.
Being brand new to Android development, I am not sure where the error is actually coming from. Is it related to the fact that I am doing this on a Windows 7 x64 VMware VM, is it related to the host system (also a Windows 7 x64 system), is it related to the graphics card and its software, OpenGL, position of Mars in relationship to Venus, screen resolution, etc.??? My hardware is a HP pavilion AMD three Core processor.

Need help, honeycomb emulator launch fails

When I run my application with Honeycomb emulator, it is showing the following error
[2013-01-25 17:56:54 - Demo] Launching a new emulator with Virtual Device 'Honeycomb'
[2013-01-25 17:57:07 - Emulator] Failed to create Context 0x3005
[2013-01-25 17:57:07 - Emulator] emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
[2013-01-25 17:57:08 - Demo] New emulator found: emulator-5556
[2013-01-25 17:57:08 - Demo] Waiting for HOME ('android.process.acore') to be launched...
[2013-01-25 17:58:24 - Demo] emulator-5556 disconnected! Cancelling 'android.demo.com.MainActivity activity launch'!
But other applications are running fine in other emulators like Gingerbread.
Did anyone face this problem? Please help me solve this.
may be this will help You
Go to the location C:\users\ur_pc_name\.android\cache and delete all the file

Android Emulator on Eclipse Not Working

I've been following the instructions found at http://developer.android.com/training/basics/firstapp/running-app.html to run the Hello World app on Eclipse's AVD, but the AVD does not launch and I get the following messages:
[2013-01-20 00:20:59 - MyFirstApp] ------------------------------
[2013-01-20 00:20:59 - MyFirstApp] Android Launch!
[2013-01-20 00:20:59 - MyFirstApp] adb is running normally.
[2013-01-20 00:20:59 - MyFirstApp] Performing com.example.myfirstapp.MainActivity activity launch
[2013-01-20 00:21:00 - MyFirstApp] Automatic Target Mode: launching new emulator with compatible AVD 'TestAVD'
[2013-01-20 00:21:00 - MyFirstApp] Launching a new emulator with Virtual Device 'TestAVD'
[2013-01-20 00:21:48 - Emulator] Failed to create Context 0x3005
[2013-01-20 00:21:48 - Emulator] emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
[2013-01-20 00:21:48 - Emulator] Failed to allocate memory: 8
[2013-01-20 00:21:48 - Emulator]
[2013-01-20 00:21:48 - Emulator] This application has requested the Runtime to terminate it in an unusual way.
[2013-01-20 00:21:48 - Emulator] Please contact the application's support team for more information.
Also, an error window popped up saying that the ARM emulator exe has stopped working. Any thoughts?
OP of this thread has similar error message,
emulator: WARNING: Could not initialize OpenglES emulation, using software renderer
Hope it helps!
Check 2 things:
That you are using 512MB of RAM (the emulator doesn't work properly
with more)
Try turning 'Host GPU' off
Try running emulator from the command line with GPU option and make sure that it is working or not.
-gpu off
Even if it result into the error, go to the eclipse, Right Click on the project and select run my projects as an "Android application". Emulator should start.
You can also give a try with enabling/disabling GPU emulation option for the selected emulator from the AVD manager.
To enable/disable GPU emulation :
Goto AVD manager -> select android virtual device -> click on Edit ->
Hardware tab -> enable/disable GPU emulation.
Hope it will work.
I got this error when trying to run an emulator with a higher resolution than I had my display set to.

Problems launching a virtual machine using the android avd manager [duplicate]

I have installed and set up Eclipse and the plugin ADT in order to work with Android SDK. So far so good. But when I try to launch a VM(virtual Machine) for any android platform that I choose (for example: android 3.2) I just get the skin launched together with a keyboard console and phone buttons, it seems to boot up to a state and then does nothing but displays the android logo on the main vm screen and that's all it does - no more!, no VM functionality!, what's going on? Have I missed out some step? Please help...
Have been waiting sometimes over 10 mins in each case for the emulator to start.
I launched/ran an Android project test sample; 'hello world' from the eclipse environment after installing the ADT plugin for Android These are the error messages I had displayed in the console ddms:
[2012-04-30 14:31:20 - HelloAndroid]
[2012-04-30 14:31:20 - HelloAndroid] Android Launch!
[2012-04-30 14:31:20 - HelloAndroid] adb is running normally.
[2012-04-30 14:31:20
- HelloAndroid] Performing com.example.helloandroid.HelloAndroidActivity activity launch
[2012-04-30 14:31:20 - HelloAndroid] Automatic Target Mode: launching
new emulator with compatible AVD
'leighs_basic_hardware_secound_virtual_device'
[2012-04-30 14:31:20 -
HelloAndroid] Launching a new emulator with Virtual Device
'leighs_basic_hardware_secound_virtual_device'
[2012-04-30 14:31:40 -
Emulator] Warning: No DNS servers found
[2012-04-30 14:31:52 -
Emulator] emulator: emulator window was out of view and was recentered
[2012-04-30 14:31:52 - Emulator]
[2012-04-30 14:31:53 - HelloAndroid]
New emulator found: emulator-5554
[2012-04-30 14:31:53 - HelloAndroid]
Waiting for HOME ('android.process.acore') to be launched...
[2012-04-30 14:49:03 - HelloAndroid] HOME is up on device
'emulator-5554' [2012-04-30 14:49:03 - HelloAndroid] Uploading
HelloAndroid.apk onto device 'emulator-5554'
[2012-04-30 14:49:03 -
HelloAndroid] Installing HelloAndroid.apk...
[2012-04-30 14:51:38 -
HelloAndroid] Failed to install HelloAndroid.apk on device
'emulator-5554!
[2012-04-30 14:51:38 - HelloAndroid] (null)
[2012-04-30 14:51:39 - HelloAndroid] Launch canceled!
At no point have I have anything but the Android logo displayed on my emulator. I have tried various platform emulators - none of them are performing!
A second lot of errors I received back on a test run after I checked the user data wiped in the Run configuration menu was: result
: [2012-04-30 17:20:27 - Emulator] Failed to allocate memory: 1455
[2012-04-30 17:20:27 - Emulator]
[2012-04-30 17:20:27 - Emulator] This
application has requested the Runtime to terminate it in an unusual
way.
[2012-04-30 17:20:27 - Emulator] Please contact the application's
support team for more information.
Bench mark results of my computer using Novabench incase anyone wants to check, are:
30/04/2012 17:45:59 Microsoft Windows 7 Starter Intel Atom N550
1.50GHz # 1500 MHz Graphics Card: Intel(R) Graphics Media Accelerator 3150
1014 MB System RAM (Score: 78) - RAM Speed: 1610 MB/s
CPU Tests (Score: 70) - Floating Point Operations/Second: 24110532 -
Integer Operations/Second: 43813828 - MD5 Hashes Generated/Second:
159380
Graphics Tests (Score: 1) - 3D Frames Per Second: 3
Hardware Tests (Score: 6) - Primary Partition Capacity: 87 GB - Drive
Write Speed: 14 MB/s
Do you Run your project or only start an emulator? After starting emulator, click Run button and select "Run as Android project".
I am not sure how long you waited, but starting the emulator the first time (before you have a snapshot) can take quite a long time. Depending on you hardware it can take more than 10 minutes to launch.
I had a similar issue which was solved by creating a new emulator and running it. You can check progress in Devices view through DDMS. Sometimes, this problem may occur when a snapshot enabled emulator hangs because of error, which can be solved by starting the emulator with user data wiped.
Emulator thread automatically cuts off if for some time you have not done any activity on it..
so.. keep running your app to keep emulator on LIVE!
My advice - if you having an android phone.. please usb debug it and Debug your application on your phone... You will feel relieved from the long durations of the emulator........ to run!! :)

Categories

Resources