收藏
回答

小游戏启动报错 exception thrown: TypeError

游戏引擎 AppID 操作系统 微信版本 基础库版本
unity wxe224de3ae744335a iOS 8.0.30 2.28.1

详细console如下:

Loading player data from data.unity3d

Initialize engine version: 2021.3.26f1c1 (19b503b0ef33)

Creating WebGL 2.0 context.

Renderer: WeChat WebGL

Vendor:   WeChat

Version:  OpenGL ES 3.0 (WebGL 2.0 (OpenGL ES 3.0 WeChat))

GLES:     3

 EXT_texture_filter_anisotropic OES_standard_derivatives WEBGL_compressed_texture_pvrtc WEBGL_compressed_texture_astc WEBGL_compressed_texture_astc GL_EXT_texture_filter_anisotropic GL_OES_standard_derivatives GL_WEBGL_compressed_texture_pvrtc GL_WEBGL_compressed_texture_astc GL_WEBGL_compressed_texture_astc

exception thrown: TypeError: undefined is not an object (evaluating 'ret.length'),_glGetInternalformativ@https://usr/game.js:194:99772

@[native code]

apply@[native code]

@https://usr/game.js:194:172343

callMain@https://usr/game.js:194:272513

doRun@https://usr/game.js:194:273331

run@https://usr/game.js:194:273500

runCaller@https://usr/game.js:194:272162

removeRunDependency@https://usr/game.js:184:16745

receiveInstance@https://usr/game.js:184:18911

receiveInstantiationResult@https://usr/game.js:184:19121

@https://lib/WAGameSubContext.js:1:48368

n@https://lib/WAGameSubContext.js:1:24703

@https://lib/WAGameSubContext.js:1:35154

O@https://lib/WAGameSubContext.js:1:34886

@https://lib/WAGameSubContext.js:1:34924

@https://usr/game.js:97:353

f@https://lib/WAGameSubContext.js:1:107276

@https://lib/WAGameSubContext.js:1:95803

@https://lib/WAGameSubContext.js:1:147206

[PLUGIN TIME LOG 17:28.37.642] callMain耗时: 374ms

[PLUGIN TIME LOG 17:28.37.643] 游戏启动耗时: 4284ms


回答关注问题邀请回答
收藏
登录 后发表内容