Cocos Creator v1.3.0 内测版发布帖(10月24日更新 rc.1)

之前用的是1.3.0beta2,一切正常,升级到rc1后,编译正常,但是在安卓上无法运行,运行后是黑屏的。什么情况。

有没有错误 log 输出?看看 logcat 的输出。

rc1还是会闪退,得用Windows 8兼容模式

10-24 12:36:51.874: I/art(15827): Late-enabling -Xcheck:jni
10-24 12:36:51.950: D/TidaProvider(15827): TidaProvider()
10-24 12:36:51.967: V/BoostFramework(15827): mAcquireFunc method = public int com.qualcomm.qti.Performance.perfLockAcquire(int,int[])
10-24 12:36:51.967: V/BoostFramework(15827): mReleaseFunc method = public int com.qualcomm.qti.Performance.perfLockRelease()
10-24 12:36:51.968: V/BoostFramework(15827): mAcquireTouchFunc method = public int com.qualcomm.qti.Performance.perfLockAcquireTouch(android.view.MotionEvent,android.util.DisplayMetrics,int,int[])
10-24 12:36:51.968: V/BoostFramework(15827): mIOPStart method = public int com.qualcomm.qti.Performance.perfIOPrefetchStart(int,java.lang.String)
10-24 12:36:51.968: V/BoostFramework(15827): mIOPStop method = public int com.qualcomm.qti.Performance.perfIOPrefetchStop()
10-24 12:36:51.970: V/BoostFramework(15827): BoostFramework() : mPerf = com.qualcomm.qti.Performance@446bc3b
10-24 12:36:52.268: D/JniHelper(15827): JniHelper::setJavaVM(0xf533c000), pthread_self() = -145188044
10-24 12:36:52.269: D/main(15827): cocos_android_app_init
10-24 12:36:52.272: D/Cocos2dxHelper(15827): isSupportLowLatency:false
10-24 12:36:52.278: D/Cocos2dxHelper(15827): sampleRate: 48000, framesPerBuffer: 192
10-24 12:36:52.278: D/Java_org_cocos2dx_lib_Cocos2dxHelper.cpp(15827): nativeSetAudioDeviceInfo: sampleRate: 48000, bufferSizeInFrames: 192
10-24 12:36:52.352: D/Cocos2dxActivity(15827): model=MI 5
10-24 12:36:52.353: D/Cocos2dxActivity(15827): product=gemini
10-24 12:36:52.353: D/Cocos2dxActivity(15827): isEmulator=false
10-24 12:36:52.378: D/FLQG_LOG(15827): AgentManager: loadALLPlugin(), Get the supported plugins: NULL
10-24 12:36:52.378: D/FLQG_LOG(15827): PluginFactory: Java class name of plugin UserDebug is : com/anysdk/framework/UserDebug
10-24 12:36:52.379: I/FLQG_LOG(15827): PluginWrapper: class name : ----com/anysdk/framework/UserDebug----
10-24 12:36:52.379: D/FLQG_LOG(15827): PluginFactory: java class com/anysdk/framework/UserDebug:32
10-24 12:36:52.380: D/FLQG_LOG(15827): Statistics: createPlugin(UserDebug,32)
10-24 12:36:52.388: D/FLQG_LOG(15827): PluginFactory: Java class name of plugin IAPDebug is : com/anysdk/framework/IAPDebug
10-24 12:36:52.389: I/FLQG_LOG(15827): PluginWrapper: class name : ----com/anysdk/framework/IAPDebug----
10-24 12:36:52.389: D/FLQG_LOG(15827): PluginFactory: java class com/anysdk/framework/IAPDebug:8
10-24 12:36:52.389: D/FLQG_LOG(15827): Statistics: createPlugin(IAPDebug,8)
10-24 12:36:52.391: D/FLQG_LOG(15827): IAPDebug: getPluginId() invoked!
10-24 12:36:52.391: D/FLQG_LOG(15827): PluginFactory: Java class name of plugin AnalyticsDebug is : com/anysdk/framework/AnalyticsDebug
10-24 12:36:52.391: I/FLQG_LOG(15827): PluginWrapper: class name : ----com/anysdk/framework/AnalyticsDebug----
10-24 12:36:52.391: D/FLQG_LOG(15827): PluginFactory: java class com/anysdk/framework/AnalyticsDebug:1
10-24 12:36:52.391: D/FLQG_LOG(15827): Statistics: createPlugin(AnalyticsDebug,1)
10-24 12:36:52.393: D/FLQG_LOG(15827): PluginFactory: Java class name of plugin AdsDebug is : com/anysdk/framework/AdsDebug
10-24 12:36:52.393: I/FLQG_LOG(15827): PluginWrapper: class name : ----com/anysdk/framework/AdsDebug----
10-24 12:36:52.393: D/FLQG_LOG(15827): PluginFactory: java class com/anysdk/framework/AdsDebug:16
10-24 12:36:52.393: D/FLQG_LOG(15827): Statistics: createPlugin(AdsDebug,16)
10-24 12:36:52.398: D/FLQG_LOG(15827): PluginFactory: Java class name of plugin ShareDebug is : com/anysdk/framework/ShareDebug
10-24 12:36:52.398: I/FLQG_LOG(15827): PluginWrapper: class name : ----com/anysdk/framework/ShareDebug----
10-24 12:36:52.399: D/FLQG_LOG(15827): PluginFactory: java class com/anysdk/framework/ShareDebug:2
10-24 12:36:52.399: D/FLQG_LOG(15827): Statistics: createPlugin(ShareDebug,2)
10-24 12:36:52.407: D/FLQG_LOG(15827): PluginFactory: Java class name of plugin SocialDebug is : com/anysdk/framework/SocialDebug
10-24 12:36:52.407: I/FLQG_LOG(15827): PluginWrapper: class name : ----com/anysdk/framework/SocialDebug----
10-24 12:36:52.408: D/FLQG_LOG(15827): PluginFactory: java class com/anysdk/framework/SocialDebug:4
10-24 12:36:52.408: D/FLQG_LOG(15827): Statistics: createPlugin(SocialDebug,4)
10-24 12:36:52.413: D/FLQG_LOG(15827): PluginFactory: Java class name of plugin PushDebug is : com/anysdk/framework/PushDebug
10-24 12:36:52.413: I/FLQG_LOG(15827): PluginWrapper: class name : ----com/anysdk/framework/PushDebug----
10-24 12:36:52.414: D/FLQG_LOG(15827): PluginFactory: java class com/anysdk/framework/PushDebug:64
10-24 12:36:52.414: D/FLQG_LOG(15827): Statistics: createPlugin(PushDebug,64)
10-24 12:36:52.415: D/FLQG_LOG(15827): PluginFactory: Java class name of plugin CrashDebug is : com/anysdk/framework/CrashDebug
10-24 12:36:52.416: I/FLQG_LOG(15827): PluginWrapper: class name : ----com/anysdk/framework/CrashDebug----
10-24 12:36:52.416: D/FLQG_LOG(15827): CrashDebug: configDeveloperInfo({})invoked!
10-24 12:36:52.416: D/FLQG_LOG(15827): PluginFactory: java class com/anysdk/framework/CrashDebug:128
10-24 12:36:52.416: D/FLQG_LOG(15827): Statistics: createPlugin(CrashDebug,128)
10-24 12:36:52.418: D/FLQG_LOG(15827): PluginFactory: Java class name of plugin CustomDebug is : com/anysdk/framework/CustomDebug
10-24 12:36:52.418: I/FLQG_LOG(15827): PluginWrapper: class name : ----com/anysdk/framework/CustomDebug----
10-24 12:36:52.418: D/FLQG_LOG(15827): PluginFactory: java class com/anysdk/framework/CustomDebug:256
10-24 12:36:52.419: D/FLQG_LOG(15827): Statistics: createPlugin(CustomDebug,256)
10-24 12:36:52.420: D/FLQG_LOG(15827): PluginFactory: Java class name of plugin RECDebug is : com/anysdk/framework/RECDebug
10-24 12:36:52.420: I/FLQG_LOG(15827): PluginWrapper: class name : ----com/anysdk/framework/RECDebug----
10-24 12:36:52.420: D/FLQG_LOG(15827): PluginFactory: java class com/anysdk/framework/RECDebug:512
10-24 12:36:52.421: D/FLQG_LOG(15827): Statistics: createPlugin(RECDebug,512)
10-24 12:36:52.425: D/FLQG_LOG(15827): PluginFactory: Java class name of plugin AdTrackingDebug is : com/anysdk/framework/AdTrackingDebug
10-24 12:36:52.426: I/FLQG_LOG(15827): PluginWrapper: class name : ----com/anysdk/framework/AdTrackingDebug----
10-24 12:36:52.426: D/FLQG_LOG(15827): PluginFactory: java class com/anysdk/framework/AdTrackingDebug:1024
10-24 12:36:52.426: D/FLQG_LOG(15827): Statistics: createPlugin(AdTrackingDebug,1024)
10-24 12:36:52.428: D/FLQG_LOG(15827): Statistics: initInfo
10-24 12:36:52.431: D/Cocos2dxActivity(15827): onResume()
10-24 12:36:52.446: D/ActivityThreadInjector(15827): clearCachedDrawables.
10-24 12:36:52.447: D/FLQG_LOG(15827): IAPDebug: payResult : 5 msg : init success
10-24 12:36:52.447: D/FLQG_LOG(15827): Statistics: onActionResult(IAPDebug,5,init success)
10-24 12:36:52.448: W/FLQG_LOG(15827): IAPObject: Listener of plugin IAPDebug not set correctly
10-24 12:36:52.513: I/Adreno(15827): QUALCOMM build : fcb772e, I8f32e2e2ee
10-24 12:36:52.513: I/Adreno(15827): Build Date : 03/23/16
10-24 12:36:52.513: I/Adreno(15827): OpenGL ES Shader Compiler Version: XE031.06.00.05
10-24 12:36:52.513: I/Adreno(15827): Local Branch :
10-24 12:36:52.513: I/Adreno(15827): Remote Branch : refs/tags/AU_LINUX_ANDROID_LA.HB.1.1.1.C2.06.00.00.204.049
10-24 12:36:52.513: I/Adreno(15827): Remote Branch : NONE
10-24 12:36:52.513: I/Adreno(15827): Reconstruct Branch : NOTHING
10-24 12:36:52.548: D/Cocos2dxActivity(15827): onWindowFocusChanged() hasFocus=true
10-24 12:36:52.557: D/cocos2d-x(15827): {
10-24 12:36:52.557: D/cocos2d-x(15827): gl.supports_OES_packed_depth_stencil: true
10-24 12:36:52.557: D/cocos2d-x(15827): gl.supports_vertex_array_object: true
10-24 12:36:52.557: D/cocos2d-x(15827): gl.supports_BGRA8888: false
10-24 12:36:52.557: D/cocos2d-x(15827): cocos2d.x.version: cocos2d-x-3.13-lite
10-24 12:36:52.557: D/cocos2d-x(15827): gl.supports_discard_framebuffer: true
10-24 12:36:52.557: D/cocos2d-x(15827): cocos2d.x.compiled_with_profiler: false
10-24 12:36:52.557: D/cocos2d-x(15827): gl.supports_PVRTC: false
10-24 12:36:52.557: D/cocos2d-x(15827): cocos2d.x.build_type: DEBUG
10-24 12:36:52.557: D/cocos2d-x(15827): gl.renderer: Adreno ™ 530
10-24 12:36:52.557: D/cocos2d-x(15827): gl.supports_OES_depth24: true
10-24 12:36:52.557: D/cocos2d-x(15827): gl.supports_ETC1: true
10-24 12:36:52.557: D/cocos2d-x(15827): gl.supports_OES_map_buffer: false
10-24 12:36:52.557: D/cocos2d-x(15827): cocos2d.x.compiled_with_gl_state_cache: true
10-24 12:36:52.557: D/cocos2d-x(15827): gl.version: OpenGL ES 3.1 V@145.0 (GIT@I8f32e2e2ee)
10-24 12:36:52.557: D/cocos2d-x(15827): gl.supports_NPOT: true
10-24 12:36:52.557: D/cocos2d-x(15827): gl.max_texture_units: 96
10-24 12:36:52.557: D/cocos2d-x(15827): gl.vendor: Qualcomm
10-24 12:36:52.557: D/cocos2d-x(15827): gl.max_texture_size: 16384
10-24 12:36:52.557: D/cocos2d-x(15827): }
10-24 12:36:52.558: E/cocos2d-x(15827): cocos2d: warning, Director::setProjection() failed because size is 0
10-24 12:36:52.613: D/cocos2d-x(15827): cocos2d: fullPathForFilename: No file found at script/jsb_prepare.jsc. Possible missing file.
10-24 12:36:52.707: D/cocos2d-x(15827): cocos2d: fullPathForFilename: No file found at script/jsb_boot.jsc. Possible missing file.
10-24 12:36:52.753: D/cocos2d(15827): android SDK version:23
10-24 12:36:53.308: D/cocos2d-x debug info(15827): Cocos2d-JS v3.13
10-24 12:36:53.435: D/cocos2d-x debug info(15827): (evaluatedOK == JS_FALSE)
10-24 12:36:53.435: E/cocos js error:(15827): assets/src/jsb_polyfill.js line:23914 msg:ReferenceError: dragonBones is not defined
10-24 12:36:53.435: D/cocos2d-x debug info(15827): Evaluating main.js failed (evaluatedOK == JS_FALSE)
10-24 12:36:53.448: D/FLQG_LOG(15827): CustomDebug: CustomResult result : 80000 msg : CUSTOMRESULT_CUSTOMREXTENSION
10-24 12:36:53.464: D/FLQG_LOG(15827): Statistics: onActionResult(UserDebug,0,init success)
10-24 12:36:53.464: W/FLQG_LOG(15827): UserObject: callback of plugin UserDebug not set correctly
10-24 12:36:53.465: D/FLQG_LOG(15827): Statistics: onActionResult(CustomDebug,80000,CUSTOMRESULT_CUSTOMREXTENSION)
10-24 12:36:53.465: W/FLQG_LOG(15827): CustomObject: Listener of plugin CustomDebug not set correctly
10-24 12:36:53.465: D/FLQG_LOG(15827): Statistics: onActionResult(RECDebug,0,init success)
10-24 12:36:53.466: W/FLQG_LOG(15827): RECObject: Listener of plugin RECDebug not set correctly

这是运行的logcat,你看看为什么黑屏。

rc1 Web运行项目的时候有两个来自引擎的log,好像是cc.loader的。@pandamicro

刚开始我还没意识到是闪退,只是以为没点中,多点了几次之后。。居然凑活着启起来了
貌似不是每次都闪退

好像第一次打开会比较慢。我这里不用Windows 8兼容模式一定闪退,用兼容模式则不闪退。

我想重新构建一下该项目,请问都是要删除哪些文件才行?

应该要重新构建项目才行

是不是把build下的文件全删了,进行重构是吧?

是的(字数不够我来凑。。。)

我现在用的是1.3.0-rc.1,native的Label显示还是有问题


1.3.0的 cc.loader重构,加了一个LoadingItems.create,队列加载资源,防重复,如果在加载时我得不到加载状态,现在进度要怎么做

你需要删除 build 目录重新构建,不过目录系统字体还有点小问题,建议下一个 rc 版本再试一下。

已经是重新build的了,还是有问题,好的,下个版本试试,谢谢。

dragonbones的我们这边自己制作的骨骼文件打开会提示 assertion failed!
求大大指点

Win10 依然闪退,除非用兼容模式。

Cocos Creator v1.3.0 rc.1
Win10 x64 1511版 闪退

如果你的工程之前构建过,那么请将之前构建生成的工程删除之后,再重新构建。因为 DragonBones 是 1.3 版本新增模块。之前构建过的工程 native 引擎中不包含 DragonBones 相关的代码,所以需要重新构建。