android - 在 Android 模拟器中安装 .apk 在将 GPU 模拟与 OpenGL ES 一起使用时报告 0x501 错误

标签 android opengl-es android-emulator apk arcgis

我正在尝试在 Android 模拟器中运行 ArcGIS for Android 示例。基于ArcGIS recommendation ,我已经安装了 Intel HAXM 并启用了 GPU Emulation

我的一台机器有 3GB 内存,在模拟器中运行 .apk 没有问题。但是另一台机器有 2GB RAM,在运行应用程序时报告以下控制台输出。似乎应用程序已安装错误,我可以看到应用程序布局没有 MAP 并且它没有响应我。

请给我建议,这是否与硬件不足有关,或者我是否缺少任何软件配置才能使其正常工作?

提前致谢!

[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 }

最佳答案

您收到 OpenGL 错误 501 (GL_INVALID_VALUE),每个函数看起来都与您的着色器相关。

我猜测程序中包含的着色器没有编译,并且在编译和链接时没有对着色器进行错误检查/验证,因此它正在处理一个损坏的程序。不同的 GPU 对于它们将接受的着色器源有些挑剔,因此在一台计算机上运行的程序在另一台计算机上停止运行似乎一点也不奇怪。

你有这个项目的源代码,你可以编辑吗?如果您从着色器打印调试消息,可能很容易修复。

关于android - 在 Android 模拟器中安装 .apk 在将 GPU 模拟与 OpenGL ES 一起使用时报告 0x501 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12002000/

相关文章:

android - IntelliJ - 缺少运行选项?

opengl - openGL中glFrustum的分解

Android Studio 1.2 Emulator 适合屏幕的一端并且不动

android - Android 上 GLSL 中的数组

android - SharedPreferences 无法将文件重命名为备份文件

android - 我怎样才能在安卓模拟器中写入 "@"(at)?

android - 如何在 Android 中获取高度

java - Spring 网络应用程序 : sending notifications to java and android clients

java - 用于在 Android 中调试构建的替代应用程序子类

android - 没有 GPU 的 Android 手机上的 OpenGL ES 2.0?