-
Creator 版本:2.1
-
目标平台: iOS 和android 都存在
-
详细报错信息,包含调用堆栈:
[ERROR] (/Users/mac/workspace/git/datePlay/DatePlay/CCGameProject/cocos/scripting/js-bindings/manual/jsb_opengl_manual.cpp, 2278): glTexSubImage2D((GLenum)target , (GLint)level , (GLint)xoffset , (GLint)yoffset , (GLsizei)width , (GLsizei)height , (GLenum)format , (GLenum)type , (GLvoid*)pixels); GL error 0x502: GL_INVALID_OPERATION
[ERROR] Failed to invoke JSB_glTexSubImage2D, location: /Users/mac/workspace/git/datePlay/DatePlay/CCGameProject/cocos/scripting/js-bindings/manual/jsb_opengl_manual.cpp:2282
[ERROR] (/Users/mac/workspace/git/datePlay/DatePlay/CCGameProject/cocos/scripting/js-bindings/manual/jsb_opengl_manual.cpp, 2278): glTexSubImage2D((GLenum)target , (GLint)level , (GLint)xoffset , (GLint)yoffset , (GLsizei)width , (GLsizei)height , (GLenum)format , (GLenum)type , (GLvoid*)pixels); GL error 0x502: GL_INVALID_OPERATION
[ERROR] Failed to invoke JSB_glTexSubImage2D, location: /Users/mac/workspace/git/datePlay/DatePlay/CCGameProject/cocos/scripting/js-bindings/manual/jsb_opengl_manual.cpp:2282
[ERROR] (/Users/mac/workspace/git/datePlay/DatePlay/CCGameProject/cocos/scripting/js-bindings/manual/jsb_opengl_manual.cpp, 2278): glTexSubImage2D((GLenum)target , (GLint)level , (GLint)xoffset , (GLint)yoffset , (GLsizei)width , (GLsizei)height , (GLenum)format , (GLenum)type , (GLvoid*)pixels); GL error 0x502: GL_INVALID_OPERATION
[ERROR] Failed to invoke JSB_glTexSubImage2D, location: /Users/mac/workspace/git/datePlay/DatePlay/CCGameProject/cocos/scripting/js-bindings/manual/jsb_opengl_manual.cpp:2282
[ERROR] (/Users/mac/workspace/git/datePlay/DatePlay/CCGameProject/cocos/scripting/js-bindings/manual/jsb_opengl_manual.cpp, 2278): glTexSubImage2D((GLenum)target , (GLint)level , (GLint)xoffset , (GLint)yoffset , (GLsizei)width , (GLsizei)height , (GLenum)format , (GLenum)type , (GLvoid*)pixels); GL error 0x502: GL_INVALID_OPERATION
[ERROR] Failed to invoke JSB_glTexSubImage2D, location: /Users/mac/workspace/git/datePlay/DatePlay/CCGameProject/cocos/scripting/js-bindings/manual/jsb_opengl_manual.cpp:2282
[ERROR] (/Users/mac/workspace/git/datePlay/DatePlay/CCGameProject/cocos/scripting/js-bindings/manual/jsb_opengl_manual.cpp, 2278): glTexSubImage2D((GLenum)target , (GLint)level , (GLint)xoffset , (GLint)yoffset , (GLsizei)width , (GLsizei)height , (GLenum)format , (GLenum)type , (GLvoid*)pixels); GL error 0x502: GL_INVALID_OPERATION
[ERROR] Failed to invoke JSB_glTexSubImage2D, location: /Users/mac/workspace/git/datePlay/DatePlay/CCGameProject/cocos/scripting/js-bindings/manual/jsb_opengl_manual.cpp:2282
-
重现方式:
比如这张图片:http://devpic.aimymusic.com/386185dcdc116631787768ce3a4a7961.jpg?imageView2/0/w/200
复现方式: 由于我们设计了图片缓存,所以并不是 直接调用cc.loader.load 方法加载这个URL,还是先把这个图片下载下来保存到本地,然后再 通过 cc.loader.load 加载的本地图片。 加载这张图片时,cc.loader.load 方法正常回调,没有错误,但是设置spriteFrame的时候会报错,也就无法显示出这张图。 -
之前哪个版本是正常的 :
-
手机型号 :
-
手机浏览器 :
-
编辑器操作系统 :
-
编辑器之前是否有其它报错 :
-
出现概率:
-
额外线索: