其他环境没问题,安卓运行黑屏带catlog。麻烦帮忙看看

反馈 Bug 时记得提供:

Creator 版本号:1.4.2
运行时目标平台:(Android/模拟器)
手机浏览器平台:小米红米4A
操作系统:(编辑器错误)
详细报错信息,包含调用堆栈:

04-11 15:07:34.860: D/JniHelper(11440): JniHelper::setJavaVM(0xaae31cc8), pthread_self() = -150951116
04-11 15:07:34.861: D/main(11440): cocos_android_app_init
04-11 15:07:34.865: D/Cocos2dxHelper(11440): isSupportLowLatency:false
04-11 15:07:34.876: D/Cocos2dxHelper(11440): sampleRate: 48000, framesPerBuffer: 192
04-11 15:07:34.876: D/Java_org_cocos2dx_lib_Cocos2dxHelper.cpp(11440): nativeSetAudioDeviceInfo: sampleRate: 48000, bufferSizeInFrames: 192
04-11 15:07:35.020: D/Cocos2dxActivity(11440): model=Redmi 4A
04-11 15:07:35.021: D/Cocos2dxActivity(11440): product=rolex
04-11 15:07:35.021: D/Cocos2dxActivity(11440): isEmulator=false
04-11 15:07:35.033: D/FLQG_LOG(11440): AgentManager: loadALLPlugin(), Get the supported plugins: NULL
04-11 15:07:35.034: D/FLQG_LOG(11440): PluginFactory: Java class name of plugin UserDebug is : com/anysdk/framework/UserDebug
04-11 15:07:35.034: I/FLQG_LOG(11440): PluginWrapper: class name : ----com/anysdk/framework/UserDebug----
04-11 15:07:35.035: D/FLQG_LOG(11440): PluginFactory: java class com/anysdk/framework/UserDebug:32
04-11 15:07:35.036: D/FLQG_LOG(11440): Statistics: createPlugin(UserDebug,32)
04-11 15:07:35.038: D/FLQG_LOG(11440): PluginFactory: Java class name of plugin IAPDebug is : com/anysdk/framework/IAPDebug
04-11 15:07:35.038: I/FLQG_LOG(11440): PluginWrapper: class name : ----com/anysdk/framework/IAPDebug----
04-11 15:07:35.040: D/FLQG_LOG(11440): IAPDebug: payResult : 5 msg : init success
04-11 15:07:35.040: D/FLQG_LOG(11440): Statistics: onActionResult(IAPDebug,5,init success)
04-11 15:07:35.040: D/FLQG_LOG(11440): PluginFactory: java class com/anysdk/framework/IAPDebug:8
04-11 15:07:35.040: D/FLQG_LOG(11440): Statistics: createPlugin(IAPDebug,8)
04-11 15:07:35.041: W/FLQG_LOG(11440): IAPObject: Listener of plugin IAPDebug not set correctly
04-11 15:07:35.042: D/FLQG_LOG(11440): IAPDebug: getPluginId() invoked!
04-11 15:07:35.042: D/FLQG_LOG(11440): PluginFactory: Java class name of plugin AnalyticsDebug is : com/anysdk/framework/AnalyticsDebug
04-11 15:07:35.042: I/FLQG_LOG(11440): PluginWrapper: class name : ----com/anysdk/framework/AnalyticsDebug----
04-11 15:07:35.043: D/FLQG_LOG(11440): PluginFactory: java class com/anysdk/framework/AnalyticsDebug:1
04-11 15:07:35.043: D/FLQG_LOG(11440): Statistics: createPlugin(AnalyticsDebug,1)
04-11 15:07:35.045: D/FLQG_LOG(11440): PluginFactory: Java class name of plugin AdsDebug is : com/anysdk/framework/AdsDebug
04-11 15:07:35.046: I/FLQG_LOG(11440): PluginWrapper: class name : ----com/anysdk/framework/AdsDebug----
04-11 15:07:35.046: D/FLQG_LOG(11440): PluginFactory: java class com/anysdk/framework/AdsDebug:16
04-11 15:07:35.046: D/FLQG_LOG(11440): Statistics: createPlugin(AdsDebug,16)
04-11 15:07:35.048: D/FLQG_LOG(11440): PluginFactory: Java class name of plugin ShareDebug is : com/anysdk/framework/ShareDebug
04-11 15:07:35.048: I/FLQG_LOG(11440): PluginWrapper: class name : ----com/anysdk/framework/ShareDebug----
04-11 15:07:35.049: D/FLQG_LOG(11440): PluginFactory: java class com/anysdk/framework/ShareDebug:2
04-11 15:07:35.049: D/FLQG_LOG(11440): Statistics: createPlugin(ShareDebug,2)
04-11 15:07:35.051: D/FLQG_LOG(11440): PluginFactory: Java class name of plugin SocialDebug is : com/anysdk/framework/SocialDebug
04-11 15:07:35.052: I/FLQG_LOG(11440): PluginWrapper: class name : ----com/anysdk/framework/SocialDebug----
04-11 15:07:35.052: D/FLQG_LOG(11440): PluginFactory: java class com/anysdk/framework/SocialDebug:4
04-11 15:07:35.052: D/FLQG_LOG(11440): Statistics: createPlugin(SocialDebug,4)
04-11 15:07:35.054: D/FLQG_LOG(11440): PluginFactory: Java class name of plugin PushDebug is : com/anysdk/framework/PushDebug
04-11 15:07:35.054: I/FLQG_LOG(11440): PluginWrapper: class name : ----com/anysdk/framework/PushDebug----
04-11 15:07:35.055: D/FLQG_LOG(11440): PluginFactory: java class com/anysdk/framework/PushDebug:64
04-11 15:07:35.055: D/FLQG_LOG(11440): Statistics: createPlugin(PushDebug,64)
04-11 15:07:35.056: D/FLQG_LOG(11440): PluginFactory: Java class name of plugin CrashDebug is : com/anysdk/framework/CrashDebug
04-11 15:07:35.057: I/FLQG_LOG(11440): PluginWrapper: class name : ----com/anysdk/framework/CrashDebug----
04-11 15:07:35.058: D/FLQG_LOG(11440): CrashDebug: configDeveloperInfo({})invoked!
04-11 15:07:35.058: D/FLQG_LOG(11440): PluginFactory: java class com/anysdk/framework/CrashDebug:128
04-11 15:07:35.058: D/FLQG_LOG(11440): Statistics: createPlugin(CrashDebug,128)
04-11 15:07:35.060: D/FLQG_LOG(11440): PluginFactory: Java class name of plugin CustomDebug is : com/anysdk/framework/CustomDebug
04-11 15:07:35.061: I/FLQG_LOG(11440): PluginWrapper: class name : ----com/anysdk/framework/CustomDebug----
04-11 15:07:35.061: D/FLQG_LOG(11440): PluginFactory: java class com/anysdk/framework/CustomDebug:256
04-11 15:07:35.061: D/FLQG_LOG(11440): Statistics: createPlugin(CustomDebug,256)
04-11 15:07:35.063: D/FLQG_LOG(11440): PluginFactory: Java class name of plugin RECDebug is : com/anysdk/framework/RECDebug
04-11 15:07:35.063: I/FLQG_LOG(11440): PluginWrapper: class name : ----com/anysdk/framework/RECDebug----
04-11 15:07:35.064: D/FLQG_LOG(11440): PluginFactory: java class com/anysdk/framework/RECDebug:512
04-11 15:07:35.064: D/FLQG_LOG(11440): Statistics: createPlugin(RECDebug,512)
04-11 15:07:35.066: D/FLQG_LOG(11440): PluginFactory: Java class name of plugin AdTrackingDebug is : com/anysdk/framework/AdTrackingDebug
04-11 15:07:35.066: I/FLQG_LOG(11440): PluginWrapper: class name : ----com/anysdk/framework/AdTrackingDebug----
04-11 15:07:35.066: D/FLQG_LOG(11440): PluginFactory: java class com/anysdk/framework/AdTrackingDebug:1024
04-11 15:07:35.066: D/FLQG_LOG(11440): Statistics: createPlugin(AdTrackingDebug,1024)
04-11 15:07:35.068: D/FLQG_LOG(11440): Statistics: initInfo
04-11 15:07:35.071: D/Cocos2dxActivity(11440): onResume()
04-11 15:07:35.093: D/ActivityThreadInjector(11440): clearCachedDrawables.
04-11 15:07:35.094: D/Cocos2dxActivity(11440): onPause()
04-11 15:07:35.164: I/Adreno-EGL(11440): <qeglDrvAPI_eglInitialize:379>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_LA.UM.5.3_RB1.06.00.01.211.056_msm8937_64_refs/tags/AU_LINUX_ANDROID_LA.UM.5.3_RB1.06.00.01.211.056__release_AU (I48a9d37399)
04-11 15:07:35.164: I/Adreno-EGL(11440): OpenGL ES Shader Compiler Version: XE031.08.00.00
04-11 15:07:35.164: I/Adreno-EGL(11440): Build Date: 10/18/16 Tue
04-11 15:07:35.164: I/Adreno-EGL(11440): Local Branch:
04-11 15:07:35.164: I/Adreno-EGL(11440): Remote Branch: refs/tags/AU_LINUX_ANDROID_LA.UM.5.3_RB1.06.00.01.211.056
04-11 15:07:35.164: I/Adreno-EGL(11440): Local Patches: NONE
04-11 15:07:35.164: I/Adreno-EGL(11440): Reconstruct Branch: NOTHING
04-11 15:07:35.183: E/HAL(11440): Dawei load: module=/system/lib/hw/gralloc.msm8937.so
04-11 15:07:35.224: E/HAL(11440): Dawei load: module=/system/lib/hw/gralloc.msm8937.so
04-11 15:07:35.236: D/cocos2d-x(11440): {
04-11 15:07:35.236: D/cocos2d-x(11440): gl.supports_OES_packed_depth_stencil: true
04-11 15:07:35.236: D/cocos2d-x(11440): gl.supports_vertex_array_object: true
04-11 15:07:35.236: D/cocos2d-x(11440): gl.supports_BGRA8888: false
04-11 15:07:35.236: D/cocos2d-x(11440): cocos2d.x.version: 1.4.1
04-11 15:07:35.236: D/cocos2d-x(11440): gl.supports_discard_framebuffer: true
04-11 15:07:35.236: D/cocos2d-x(11440): cocos2d.x.compiled_with_profiler: false
04-11 15:07:35.236: D/cocos2d-x(11440): gl.supports_PVRTC: false
04-11 15:07:35.236: D/cocos2d-x(11440): cocos2d.x.build_type: DEBUG
04-11 15:07:35.236: D/cocos2d-x(11440): gl.renderer: Adreno ™ 308
04-11 15:07:35.236: D/cocos2d-x(11440): gl.supports_OES_depth24: true
04-11 15:07:35.236: D/cocos2d-x(11440): gl.supports_ETC1: true
04-11 15:07:35.236: D/cocos2d-x(11440): gl.supports_OES_map_buffer: false
04-11 15:07:35.236: D/cocos2d-x(11440): cocos2d.x.compiled_with_gl_state_cache: true
04-11 15:07:35.236: D/cocos2d-x(11440): gl.version: OpenGL ES 3.0 V@145.0 AU@06.00.01.211.056 (GIT@I48a9d37399)
04-11 15:07:35.236: D/cocos2d-x(11440): gl.supports_NPOT: true
04-11 15:07:35.236: D/cocos2d-x(11440): gl.max_texture_units: 32
04-11 15:07:35.236: D/cocos2d-x(11440): gl.vendor: Qualcomm
04-11 15:07:35.236: D/cocos2d-x(11440): gl.max_texture_size: 4096
04-11 15:07:35.236: D/cocos2d-x(11440): }
04-11 15:07:35.237: E/cocos2d-x(11440): cocos2d: warning, Director::setProjection() failed because size is 0
04-11 15:07:35.284: D/cocos2d-x(11440): cocos2d: fullPathForFilename: No file found at script/jsb_prepare.jsc. Possible missing file.
04-11 15:07:35.375: D/cocos2d-x(11440): cocos2d: fullPathForFilename: No file found at script/jsb_boot.jsc. Possible missing file.
04-11 15:07:35.381: D/cocos2d(11440): android SDK version:23
04-11 15:07:35.755: D/cocos2d-x debug info(11440): Cocos2d-JS v3.14
04-11 15:07:36.062: D/FLQG_LOG(11440): CustomDebug: CustomResult result : 80000 msg : CUSTOMRESULT_CUSTOMREXTENSION
04-11 15:07:36.976: E/cocos js error:(11440): assets/src/project.dev.js line:7943 msg:mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create
04-11 15:07:37.014: D/ScriptingCore.cpp(11440): ScriptingCore:: compileScript fail:stream
04-11 15:07:37.014: D/cocos2d-x debug info(11440): (evaluatedOK == JS_FALSE)
04-11 15:07:37.014: D/cocos2d-x debug info(11440): Evaluating main.js failed (evaluatedOK == JS_FALSE)
04-11 15:07:37.040: D/cocos2d-x(11440): create rendererRecreatedListener for GLProgramState
04-11 15:07:37.041: D/cocos2d-x(11440): cocos2d: QuadCommand: resizing index size from [-1] to [2560]
04-11 15:07:37.052: D/FLQG_LOG(11440): Statistics: onActionResult(UserDebug,0,init success)
04-11 15:07:37.052: W/FLQG_LOG(11440): UserObject: callback of plugin UserDebug not set correctly
04-11 15:07:37.055: D/FLQG_LOG(11440): Statistics: onActionResult(CustomDebug,80000,CUSTOMRESULT_CUSTOMREXTENSION)
04-11 15:07:37.055: W/FLQG_LOG(11440): CustomObject: Listener of plugin CustomDebug not set correctly
04-11 15:07:37.056: D/FLQG_LOG(11440): Statistics: onActionResult(RECDebug,0,init success)
04-11 15:07:37.056: W/FLQG_LOG(11440): RECObject: Listener of plugin RECDebug not set correctly

@panda 麻烦帮我分析下,谢谢

脚本执行失败了,应该是 project.dev.js 中的问题

你的其他 native 环境应该也一样会失败,可能使用了 JSB 不支持的特性

我其他native环境,可以运行啊。:sweat_smile:

哦,有一个 script 编译失败了,stream,看看工程哪里引用了吧

我真没这个脚本名。。。。

会不会是某个脚本里面引用了,你给的信息我只能判断到 stream 编译失败,根本原因我就不清楚了

又重新搜索了一次文件名,确实有这个,谢谢,剩下的自己排错了