我设置了 hellomap 示例并收到以下错误

2024-04-14

我正在 Android Studio 中工作,并且在运行时不断收到此错误:

E/CL_magma: [ERROR] CL_magma - Unable to open shader file 'shaders/gles2.0/Primitive.shaderb'
[ERROR] CL_magma - Unable to open shader file 'shaders/gles2.0/Default.shaderb'
[ERROR] CL_magma - Failed to load texture file 'spot_light_glow.rgba4.tex'
E/CL_magma: [ERROR] CL_magma - Failed to load texture file 'light_flare.rgba4.tex'
A/CL_magma: [FATAL] CL_magma - Couldn't load the default shader.
A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 8730 (Thread-440)

我更换了模拟器,它可以工作,但仍然出现错误。 我不确定如何解决这个问题。有人可以帮忙吗?


查看 logcat 输出,我找到了完整的(本机)故障转储:

07-27 16:53:17.294  2488  2993 I magma-graphics-opengl: [INFO ] magma-graphics-opengl - Vendor string: Google (Intel Open Source Technology Center)
07-27 16:53:17.294  2488  2993 I magma-graphics-opengl: [INFO ] magma-graphics-opengl - Renderer string: Android Emulator OpenGL ES Translator (Mesa DRI Intel(R) HD Graphics (Coffeelake 3x8 GT3) )
07-27 16:53:17.294  2488  2993 I magma-graphics-opengl: [INFO ] magma-graphics-opengl - OpenGL ES 2.0
07-27 16:53:17.295  2488  2993 I magma-graphics-opengl: [INFO ] magma-graphics-opengl - Extensions: GL_EXT_debug_marker GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_depth24 GL_OES_depth32 GL_OES_element_index_uint GL_OES_texture_float GL_OES_texture_float_linear GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth_texture GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_packed_depth_stencil GL_OES_texture_npot GL_OES_rgb8_rgba8 GL_EXT_color_buffer_half_float GL_EXT_texture_format_BGRA8888 ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 ANDROID_EMU_async_unmap_buffer GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_2 
07-27 16:53:17.297  2967  2967 E ConfigUpdater: ignoring update request
07-27 16:53:17.297  2488  2993 I magma-graphics-opengl: [INFO ] magma-graphics-opengl - Parsed OpenGL GPU info string - VendorId=Unknown ModelFamily= ModelCode=0
07-27 16:53:17.308  2967  2967 E ConfigUpdater: ignoring update request
07-27 16:53:17.314  2967  2967 E ConfigUpdater: ignoring update request
07-27 16:53:17.314  2488  2993 E CL_magma: [ERROR] CL_magma - Couldn't get context config: no error
07-27 16:53:17.314  2488  2993 I CL_magma: [INFO ] CL_magma - Failed to set rendering parameters with anti-aliasing. Will retry without anti-aliasing.
07-27 16:53:17.315  2879  2879 D PhenotypeManager: Registered: Status{statusCode=SUCCESS, resolution=null}
07-27 16:53:17.317  2967  2967 E ConfigUpdater: ignoring update request
07-27 16:53:17.317  2488  2993 D EGL_emulation: eglCreateContext: 0x80c17f00: maj 2 min 0 rcv 2
07-27 16:53:17.317  2488  2993 D EGL_emulation: eglMakeCurrent: 0x80c17f00: ver 2 0 (tinfo 0x80e7c380)
07-27 16:53:17.319  2967  2967 E ConfigUpdater: ignoring update request
07-27 16:53:17.325  2488  2993 E CL_magma: [ERROR] CL_magma - Unable to open shader file 'shaders/gles2.0/Primitive.shaderb'
07-27 16:53:17.325  2488  2993 E CL_magma: [ERROR] CL_magma - Unable to open shader file 'shaders/gles2.0/Default.shaderb'
07-27 16:53:17.325  2488  2993 E CL_magma: [ERROR] CL_magma - Failed to load texture file 'spot_light_glow.rgba4.tex'
07-27 16:53:17.325  2488  2993 E CL_magma: [ERROR] CL_magma - Failed to load texture file 'light_flare.rgba4.tex'
07-27 16:53:17.325  2488  2993 F CL_magma: [FATAL] CL_magma - Couldn't load the default shader.
--------- beginning of crash
07-27 16:53:17.325  2488  2993 F libc    : Fatal signal 6 (SIGABRT), code -6 in tid 2993 (Thread-45), pid 2488 (om.here.routing)
07-27 16:53:17.334  2126  2985 I Icing   : IndexChimeraService.getServiceInterface callingPackage=com.google.android.apps.messaging componentName=null serviceId=36
07-27 16:53:17.336  2126  3016 I Icing   : IndexChimeraService.getServiceInterface callingPackage=com.google.android.gms componentName=null serviceId=36
07-27 16:53:17.337  2967  2967 E ConfigUpdater: ignoring update request
07-27 16:53:17.343  2131  2271 W MediaScanner: Error opening directory '/oem/media/', skipping: No such file or directory.
07-27 16:53:17.347  2967  2967 E ConfigUpdater: ignoring update request
07-27 16:53:17.348  1980  1980 I AlarmClock: AlarmInitReceiver android.intent.action.BOOT_COMPLETED
07-27 16:53:17.299  2488  2488 W Thread-45: type=1400 audit(0.0:9): avc: denied { read } for name="uptime" dev="proc" ino=4026531999 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:proc:s0 tclass=file permissive=0
07-27 16:53:17.351  2049  2049 I Dialer  : VvmOmtpService - onBoot
07-27 16:53:17.358  3021  3021 I crash_dump32: obtaining output fd from tombstoned, type: kDebuggerdTombstone
07-27 16:53:17.359  1527  1527 I /system/bin/tombstoned: received crash request for pid 2488
07-27 16:53:17.359  3021  3021 I crash_dump32: performing dump of process 2488 (target tid = 2993)
07-27 16:53:17.359  3021  3021 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
07-27 16:53:17.359  3021  3021 F DEBUG   : Build fingerprint: 'google/sdk_gphone_x86/generic_x86:8.1.0/OSM1.180201.007/4586646:user/release-keys'
07-27 16:53:17.359  3021  3021 F DEBUG   : Revision: '0'
07-27 16:53:17.359  3021  3021 F DEBUG   : ABI: 'x86'
07-27 16:53:17.359  3021  3021 F DEBUG   : pid: 2488, tid: 2993, name: Thread-45  >>> com.here.routing <<<
07-27 16:53:17.360  3021  3021 F DEBUG   : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
07-27 16:53:17.361  3021  3021 F DEBUG   : Abort message: '[FATAL] CL_magma - Couldn't load the default shader.'
07-27 16:53:17.361  3021  3021 F DEBUG   :     eax 00000000  ebx 000009b8  ecx 00000bb1  edx 00000006
07-27 16:53:17.362  3021  3021 F DEBUG   :     esi 0000001e  edi 000009b8
07-27 16:53:17.362  3021  3021 F DEBUG   :     xcs 00000073  xds 0000007b  xes 0000007b  xfs 0000003b  xss 0000007b
07-27 16:53:17.362  3021  3021 F DEBUG   :     eip a9bf3ac4  ebp 83146205  esp 80afa238  flags 00000286

检查 HERE .aar,我发现根本不存在 GLES 2.0 着色器,因此我假设我需要让 Android 虚拟设备在 GLES 3.0 模式下运行,以便 HERE SDK 正常工作。

我使用的是英特尔 NUC,我知道它支持 OpenGL ES 3.2,因此 AVD 不使用 3.0 是没有意义的。

显然,您需要为某些显卡强制启用 OpenGL ES 3.2,具体如下这个问题的答案: https://stackoverflow.com/a/44117381/798224

echo "GLESDynamicVersion = on" >> ~/.android/advancedFeatures.ini

我重新启动 Android Studio 和 AVD(冷启动,表明它注意到配置更改)并且崩溃消失了。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

我设置了 hellomap 示例并收到以下错误 的相关文章

随机推荐

  • 中止先前正在运行的 Ajax 请求 [重复]

    这个问题在这里已经有答案了 是否可以中止先前运行的 Ajax 请求 var xhr ajax type POST url some php data name John location Boston success function ms
  • 如何在 MongoDB shell 中将 NumberDecimal 转换为 Double?

    我有一个 文本 字段为的文档NumberDecimal type id ObjectId 5d1a202e476381c30cd995a4 test NumberDecimal 0 1 如何将 测试 字段从NumberDecimal to
  • 排除具有特定值的特定记录 SQL Select

    我使用了下面线程中的解决方案 由 AdaTheDev 提供 因为它涉及同一问题 如何在sql select中排除具有特定值的记录 https stackoverflow com questions 15389091 how to exclu
  • 将命令行参数传递给 sql (Postgres)

    如何将命令行参数传递给运行的 sql 文件psql Postgres i e psql mydatabase lt mysqlfile sql arg1 arg2 arg3 这可能吗 Use 变量插值功能 https www postgre
  • 如果 AppsScript 服务已被限制,如何让脚本再次运行?

    我将此绑定脚本添加到谷歌工作表中 试图通过不必在单元格中手动输入工作表名称来节省时间 function sheetname return SpreadsheetApp getActive getName 然后我意识到它不稳定 所以我停止从工
  • 如何修复此 UnknownHostException?

    public static final String readURL String url throws Throwable try InputStream in InputStream fetch url byte bArr readBy
  • Sybase:HAVING 对行进行操作?

    我遇到过以下 SYBASE SQL Setup first create table t id int ts int go insert into t values 1 2 insert into t values 1 10 insert
  • 如何让 AudioKit 从远程 URL 传输音频文件?

    我正在尝试在 iOS 应用程序 Swift 4 中播放来自 URL 的音频文件 我希望它们在下载时缓冲和播放 我非常喜欢 AudioKit 但是对于我来说 我无法弄清楚如何让它读取远程文件 有什么建议么 你找不到它 因为它不在那里 我们从未
  • SQLite Python 插入 - 提供的绑定数量不正确

    如果这是多余的 我很抱歉 我花了很多时间试图找到答案 但提供的技巧似乎没有任何作用 我正在尝试使用 Python 将股票数据的 csv 文档读入 SQLite 雅虎财经 Ticker Open High Low Close Volume A
  • 回调中的 Tornado IOLoop 异常 Celery 工作线程中没有

    我在用tornado ioloop inside celery工人 因为我需要使用 mongodb class WorkerBase gen engine def foo self args callback bar Python Cele
  • 绑定中的 JAXB 空节点

    JAXB无法解析此示例的绑定
  • UTF-8 编码、JSP、jQuery、Spring 的问题

    我在 apache tomcat 6 中有一个带有 spring jsp 和 jquery 的 Web 应用程序 一个 jsp 页面有一个表单 该表单通过 jquery 进行的 ajax 调用将数据发送到我后端的 Spring MultiA
  • .net core azure部署失败:项目文件不存在

    我在 Azure 中设置了一个应用程序服务应用程序 该应用程序设置为在提交到团队服务 git 存储库时部署 到目前为止 这一直工作正常 但部署失败 并显示 MSBUILD error MSB1009 Project file does no
  • php 字符串末尾的 Substr?

    我有这种数组 我会让它变得非常简单易懂 picture artist2 1 thumb jpg artist2 2 jpg artist2 3 thumb jpg artist2 4 jpg artist2 5 thumb jpg 现在我想
  • WPF 断边

    我在使用 WPF 时遇到了一个相当奇怪的问题 当我将按钮放置在窗体上时 它们在设计时看起来很好 在 Windows XP 上看起来也很好 但当应用程序在 Windows 7 上运行时 边缘会损坏 Here is a screen shot
  • 访问 WinForms 中的 ToolStripMenuItem 子项

    H all 我在 Winform 中创建了一个菜单条 但不是动态的 而且这一切都是不可见的 当用户拥有权限时才可见 我的用户名之一拥有完全的权利 为此我写了下面的代码 private void menuActive MenuStrip me
  • 尝试加载动画时 Resources$NotFoundException

    我们在 Google Play 市场上的应用程序在某些设备上抛出了一个奇怪的异常 我看到以下堆栈跟踪 android content res Resources NotFoundException File res anim ani in
  • 使用 perl 包时将参数传递给它

    如何在使用包时传递一些参数 例如 use Test More tests gt 21 我无法找到有关此功能的任何有价值的文档 通过这样的论点有什么优点和缺点吗 use My Module LIST https metacpan org po
  • React Native改变监听端口

    我正在使用 React Native Android 并且在 Android 设备上部署应用程序时遇到问题 当我跑步时 react native启动 它不会在端口上启动开发服务器8081 我尝试了以下提到的一些选项 https reactn
  • 我设置了 hellomap 示例并收到以下错误

    我正在 Android Studio 中工作 并且在运行时不断收到此错误 E CL magma ERROR CL magma Unable to open shader file shaders gles2 0 Primitive shad