Android图片加载不出

resources.load(url, Texture2D, (err, texture2d) => {
   !err && this.meshRenderer.material?.setProperty('mainTexture', texture2d);
});

通过resources.load加载图片后刷新不出,报错

06-04 13:46:12.189 19022-19076/com.cocos.panorama E/Cocos: 13:46:12 [ERROR]: [ERROR] file D:/development/CocosDashboard_1.0.12/resources/.editors/Creator/3.1.1/resources/resources/3d/engine-native/cocos/renderer/gfx-gles2/GLES2Commands.cpp: line 720 
06-04 13:46:12.189 19022-19076/com.cocos.panorama E/Cocos: 13:46:12 [ERROR]: glTexImage2D(GL_TEXTURE_2D, i, gpuTexture->glInternelFmt, w, h, 0, gpuTexture->glFormat, gpuTexture->glType, nullptr) returned GL error: 0x505
06-04 13:46:12.189 19022-19076/com.cocos.panorama E/assert: D:/development/CocosDashboard_1.0.12/resources/.editors/Creator/3.1.1/resources/resources/3d/engine-native/cocos/renderer/gfx-gles2/GLES2Commands.cpp function:cmdFuncGLES2CreateTexture line:720
06-04 13:46:12.189 19022-19076/com.cocos.panorama E/Cocos: 13:46:12 [ERROR]: [ERROR] file D:/development/CocosDashboard_1.0.12/resources/.editors/Creator/3.1.1/resources/resources/3d/engine-native/cocos/renderer/gfx-gles2/GLES2Commands.cpp: line 2408 
06-04 13:46:12.199 19022-19076/com.cocos.panorama E/Cocos: 13:46:12 [ERROR]: glTexSubImage2D(GL_TEXTURE_2D, region.texSubres.mipLevel, region.texOffset.x, region.texOffset.y, w, h, gpuTexture->glFormat, gpuTexture->glType, (GLvoid *)buff) returned GL error: 0x502
06-04 13:46:12.199 19022-19076/com.cocos.panorama E/assert: D:/development/CocosDashboard_1.0.12/resources/.editors/Creator/3.1.1/resources/resources/3d/engine-native/cocos/renderer/gfx-gles2/GLES2Commands.cpp function:cmdFuncGLES2CopyBuffersToTexture line:2408

哪个大神能告诉下怎么解决么

纹理需要图片路径后面加上 /texture

assetManager.resources?.load('HelloWorld/texture', Texture2D, (err, res: Texture2D) => {
  this.quad.material?.setProperty('mainTexture', res);
})

已经加了,传入的url为’xx/texture’格式的

神奇的地方是同一张图片,现在不是必现了,是偶现。
不知道如何捕获异常setProperty时try/catch是无效的,只能看打印。
有方法捕获的话我释放texture2d重新加载不知道是否可以暂时解决。

有大神告诉下这么弄么

有没有方法知道渲染失败呢?有大神告诉下么