同时采用GPU仿真与OpenGL ES的在Android模拟器安装apk文件报告0x501错误 [英] Installing .apk in android emulator reports 0x501 error while using GPU Emulation with OpenGL ES

查看:4407
本文介绍了同时采用GPU仿真与OpenGL ES的在Android模拟器安装apk文件报告0x501错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图运行的 ArcGIS的Andr​​oid版在Android模拟器的样本。根据<一href="http://blogs.esri.com/esri/arcgis/2012/05/02/arcgis-runtime-sdk-for-android-v1-1-supports-android-emulator/"相对=nofollow> ArcGIS的建议,我已经安装了英特尔HAXM 并启用的 GPU模拟

我的一个机器具有3GB RAM运行.apk文件在仿真器没有问题。但是另外一台机器有2GB的RAM,报告下面的控制台输出,同时运行的应用程序。看来该应用程序已有错误的安装的,我可以看到应用程序布局的无地图和它不响应我。

请给我建议,是不是任何有关硬件的不足,还是我失去了任何软件配置的东西得到它的工作?

在此先感谢!

  [2012年8月17日12时零七分07秒 -  GeometryEditor]研究发现新的模拟器:模拟器-5554
[2012年8月17日12时07分零七秒 -  GeometryEditor]等待HOME('android.process.acore)即将推出...
[2012年8月17日十二时08分32秒 -  GeometryEditor] HOME是由设备'模拟器-5554
[2012年8月17日十二时08分32秒 -  GeometryEditor]上传GeometryEditor.apk到器件的模拟器,5554
[2012年8月17日12点〇九分20秒 -  GeometryEditor]安装GeometryEditor.apk ...
[2012年8月17日12点09分42秒 - 模拟器] SDK /仿真器/的OpenGL /主机/库/转换器/ GLES_V2 / GLESv2Imp.cpp:glUseProgram:1911年错误0x501
[2012年8月17日12点09分42秒 - 模拟器] SDK /仿真器/的OpenGL /主机/库/转换器/ GLES_V2 / GLESv2Imp.cpp:glGetUniformLocation:1380错误0x501
[2012年8月17日12点09分42秒 - 模拟器] SDK /仿真器/的OpenGL /主机/库/转换器/ GLES_V2 / GLESv2Imp.cpp:glGetAttribLocation:825错误0x501
[2012年8月17日12点09分42秒 - 模拟器] SDK /仿真器/的OpenGL /主机/库/转换器/ GLES_V2 / GLESv2Imp.cpp:glUseProgram:1911年错误0x501
[2012年8月17日12点09分42秒 - 模拟器] SDK /仿真器/的OpenGL /主机/库/转换器/ GLES_V2 / GLESv2Imp.cpp:glGetUniformLocation:1380错误0x501
[2012年8月17日12点09分42秒 - 模拟器] SDK /仿真器/的OpenGL /主机/库/转换器/ GLES_V2 / GLESv2Imp.cpp:glGetAttribLocation:825错误0x501
[2012年8月17日12点09分42秒 - 模拟器] SDK /仿真器/的OpenGL /主机/库/转换器/ GLES_V2 / GLESv2Imp.cpp:glGetUniformLocation:1380错误0x501
.............
.............
.............
[2012年8月17日十二点10分27秒 -  GeometryEditor]成功!
[2012年8月17日十二点10分27秒 -  GeometryEditor]启动活动com.esri.arcgis.android.samples.geometryeditor.GeometryEditor在设备模拟器-5554
[2012年8月17日十二时10分30秒 -  GeometryEditor] ActivityManager:开始:意向{行为= android.intent.action.MAIN猫= [android.intent.category.LAUNCHER] CMP = com.esri.arcgis.android。 samples.geometryeditor / .GeometryEditor}
 

解决方案

你得到的OpenGL错误501(GL_INVALID_VALUE)有什么样子的每一个与你的着色器的功能。

我会猜测,该着色器包含该程序没有编译,并且有着色器的没有错误检查/验证当它们被编译和链接,因此它继续进行断程序。不同的GPU是对着色器源代码,他们会接受多少有些挑剔,所以它似乎并不奇怪,在所有的程序在一台计算机上使用的将停止工作,在另一个。

你有源$ C ​​$ C到这个项目,你可以编辑?这是可能的,它很容易解决,如果从着色器打印调试消息。

I am trying to run the ArcGIS for Android samples in Android Emulator. Based on the ArcGIS recommendation, I have installed the Intel HAXM and enabled the GPU Emulation as well.

One of my machine having 3GB RAM running the .apk in Emulator without issues. But another machine having 2GB RAM, reporting the below console output while running the application. It seems the application has been installed with ERRORS, and I can see the application layout without MAP and its not responding to me.

Please suggest me, is it anything related to insufficient hardware or am I missing any software configuration things to get it worked?

Thanks in advance!

[2012-08-17 12:07:07 - GeometryEditor] New emulator found: emulator-5554
[2012-08-17 12:07:07 - GeometryEditor] Waiting for HOME ('android.process.acore') to be launched...
[2012-08-17 12:08:32 - GeometryEditor] HOME is up on device 'emulator-5554'
[2012-08-17 12:08:32 - GeometryEditor] Uploading GeometryEditor.apk onto device 'emulator-5554'
[2012-08-17 12:09:20 - GeometryEditor] Installing GeometryEditor.apk...
[2012-08-17 12:09:42 - Emulator] sdk/emulator/opengl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glUseProgram:1911 error 0x501
[2012-08-17 12:09:42 - Emulator] sdk/emulator/opengl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetUniformLocation:1380 error 0x501
[2012-08-17 12:09:42 - Emulator] sdk/emulator/opengl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetAttribLocation:825 error 0x501
[2012-08-17 12:09:42 - Emulator] sdk/emulator/opengl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glUseProgram:1911 error 0x501
[2012-08-17 12:09:42 - Emulator] sdk/emulator/opengl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetUniformLocation:1380 error 0x501
[2012-08-17 12:09:42 - Emulator] sdk/emulator/opengl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetAttribLocation:825 error 0x501
[2012-08-17 12:09:42 - Emulator] sdk/emulator/opengl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetUniformLocation:1380 error 0x501
.............
.............
.............
[2012-08-17 12:10:27 - GeometryEditor] Success!
[2012-08-17 12:10:27 - GeometryEditor] Starting activity com.esri.arcgis.android.samples.geometryeditor.GeometryEditor on device emulator-5554
[2012-08-17 12:10:30 - GeometryEditor] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.esri.arcgis.android.samples.geometryeditor/.GeometryEditor }

解决方案

You're getting OpenGL error 501 (GL_INVALID_VALUE) with what looks like every function related to your shaders.

I will guess that the shaders included with the program are not compiling, and that there is no error checking/validation of the shaders when they are compiled and linked, so it's proceeding with a broken program. Different GPUs are somewhat finicky about the shader source they will accept, so it doesn't seem surprising at all that a program that works on one computer would stop working on another.

Do you have the source code to this project, that you could edit? It's possible that it is easy to fix, if you print the debug messages from the shader.

这篇关于同时采用GPU仿真与OpenGL ES的在Android模拟器安装apk文件报告0x501错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆