EGL_BAD_CONFIG: no ES 3.2 support

  • Creator 版本: 3.4.2
  • 目标平台: Android模拟器(逍遥、蓝叠)
  • 重现方式:正常打包apk,无论渲染后端如何选择,都会报错
  • 之前哪个版本是正常的: 2.4.4

看到论坛上其他人也提过类似问题,题主说勾选了全部的架构后好了,我也尝试了下,果然没有解决问题 :joy:

  • 由于蓝叠的报错废话太多,以下截取的是逍遥的报错:
    E/EGL_adreno: [getAttribValue] Bad attribute idx
    D/EGL_adreno: eglGetConfigAttrib: bad attrib 0x30e2
    E/EGL_adreno: tid 6084: eglGetConfigAttrib(1202): error 0x3004 (EGL_BAD_ATTRIBUTE)
    [getAttribValue] Bad attribute idx
    D/EGL_adreno: eglGetConfigAttrib: bad attrib 0x30e2
    E/EGL_adreno: tid 6084: eglGetConfigAttrib(1202): error 0x3004 (EGL_BAD_ATTRIBUTE)
    I/Cocos: 15:02:12 [INFO]: Setup EGLConfig: depth [24] stencil [8] sampleBuffer [0] sampleCount [0]
    E/EGL_adreno: eglCreateContext: EGL_BAD_CONFIG: no ES 3.2 support
    tid 6084: eglCreateContext(1778): error 0x3005 (EGL_BAD_CONFIG)
    E/Cocos: 15:02:12 [ERROR]: [ERROR] file C:/CocosDashboard_1.0.18/resources/.editors/Creator/3.4.2/resources/resources/3d/engine-native/cocos/renderer/gfx-gles3/GLES3GPUContext.cpp: line 216
    15:02:12 [ERROR]: eglDefaultContext = eglCreateContext(eglDisplay, eglConfig, nullptr, eglAttributes.data()) returned EGL error: 0x3005
    E/assert: C:/CocosDashboard_1.0.18/resources/.editors/Creator/3.4.2/resources/resources/3d/engine-native/cocos/renderer/gfx-gles3/GLES3GPUContext.cpp function:initialize line:216
    E/EGL_adreno: eglCreateContext: EGL_BAD_CONFIG: no ES 3.1 support
    tid 6084: eglCreateContext(1772): error 0x3005 (EGL_BAD_CONFIG)
    E/Cocos: 15:02:12 [ERROR]: [ERROR] file C:/CocosDashboard_1.0.18/resources/.editors/Creator/3.4.2/resources/resources/3d/engine-native/cocos/renderer/gfx-gles3/GLES3GPUContext.cpp: line 216
    15:02:12 [ERROR]: eglDefaultContext = eglCreateContext(eglDisplay, eglConfig, nullptr, eglAttributes.data()) returned EGL error: 0x3005
    E/assert: C:/CocosDashboard_1.0.18/resources/.editors/Creator/3.4.2/resources/resources/3d/engine-native/cocos/renderer/gfx-gles3/GLES3GPUContext.cpp function:initialize line:216
    E/EGL_adreno: CreateContext rcMajorVersion:3, minorVersion:0
    D/EGL_adreno: eglCreateContext: 0xc2ef08a0: maj 3 min 0 rcv 3
    E/emuglGLESv2_enc: device/generic/goldfish/opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glBindTexture:2654 GL error 0x500
    E/Cocos: 15:02:12 [ERROR]: [ERROR] file C:/CocosDashboard_1.0.18/resources/.editors/Creator/3.4.2/resources/resources/3d/engine-native/cocos/renderer/gfx-gles3/GLES3GPUContext.cpp: line 397
    15:02:12 [ERROR]: glBindTexture(GL_TEXTURE_2D_MULTISAMPLE, 0) returned GL error: 0x500
    E/assert: C:/CocosDashboard_1.0.18/resources/.editors/Creator/3.4.2/resources/resources/3d/engine-native/cocos/renderer/gfx-gles3/GLES3GPUContext.cpp function:resetStates line:397

顶一个,官方没有人回答么

遇到同样问题,大佬,解决没

3.8.2也有这个问题

https://github.com/cocos/cocos-engine/pull/17300/commits/5202fcd7b8014dd4e416416e90516728cb028a81 在这个pr修复了