Cocos Creator v2.4.3-rc.7 测试帖(正式版已发)

cc.director.preloadScene 为啥加载完不返回 cc.SceneAsset了

单独测试这个文本资源好像是没问题,你那里有复现的条件吗?

游戏在ios发生闪退。

0 游戏 v8::internal::RelocatingCharacterStream::UpdateBufferPointersCallback(v8::Isolate*, v8::GCType, v8::GCCallbackFlags, void*) + 505524
1 游戏 v8::base::LazyInstanceImpl<v8::base::Mutex, v8::base::StaticallyAllocatedInstanceTraitv8::base::Mutex, v8::base::DefaultConstructTraitv8::base::Mutex, v8::base::ThreadSafeInitOnceTrait, v8::base::LeakyInstanceTraitv8::base::Mutex >::InitInstance(void*) + 82560
2 游戏 v8::base::LazyInstanceImpl<v8::base::Mutex, v8::base::StaticallyAllocatedInstanceTraitv8::base::Mutex, v8::base::DefaultConstructTraitv8::base::Mutex, v8::base::ThreadSafeInitOnceTrait, v8::base::LeakyInstanceTraitv8::base::Mutex >::InitInstance(void*) + 82560
3 游戏 __cxa_throw + 1680448
4 游戏 __cxa_throw + 1654260
5 游戏 __cxa_throw + 319324
6 CoreFoundation -[__NSISOLatin6TrigramKeySet init] + 32
7 CoreFoundation -[__NSISOLatin6TrigramKeySet init] + 112
8 CoreFoundation _CFNumberGetValue + 288
9 CoreFoundation _CFNumberCreate + 1416
10 CoreFoundation -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 776
11 CoreFoundation _CFXNotificationPost + 1260
12 Foundation +[NSRunLoop(NSRunLoop) _new:] + 148
13 UIKitCore -[_UICoreUICatalogColorWrapper description] + 128
14 UIKitCore -[NSCollectionLayoutGroup setCount:] + 4
15 UIKitCore _UIApplicationSceneStringForApplicationStatusBarPart + 40
16 UIKitCore _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 260
17 UIKitCore -[NSCollectionLayoutGroup interItemSpacing] + 12
18 UIKitCore -[NSCollectionLayoutGroup _isListSolverCompatibleForLayoutAxis:] + 288
19 UIKitCore _UISceneSettingsDiffActionPerformActionsWithDelayForTransitionContext + 108
20 UIKitCore ___66-[NSCollectionLayoutGroup _hasDecorationItemRequiringRegistration]_block_invoke + 260
21 UIKitCore -[_UICollectionLayoutSectionListSolver sectionSupplementaryFrameWithKind:index:] + 660
22 UIKitCore -[_UICollectionLayoutSectionListSolver solveForContainer:traitCollection:layoutAxis:frameCount:preferredSizes:layoutRTL:] + 164
23 UIKitCore -[_UICollectionLayoutSectionListSolver sectionSupplementaryKindIndexForEnrollmentIdentifier:] + 324
24 UIKitCore -[UIGestureGraph removeNodes:] + 68
25 FrontBoardServices -[FBSSceneImpl closeSession:] + 36
26 FrontBoardServices ___55-[FBSSceneEvent descriptionBuilderWithMultilinePrefix:]_block_invoke + 236
27 FrontBoardServices -[FBSProcessWatchdog invalidate] + 284
28 FrontBoardServices ___55-[FBSSceneEvent descriptionBuilderWithMultilinePrefix:]_block_invoke + 8
29 libdispatch.dylib __dispatch_async_redirect_invoke + 592
30 libdispatch.dylib _dispatch_set_qos_class_floor$VARIANT$mp + 116
31 FrontBoardServices -[FBSServiceFacilityClient setEndpoint:] + 36
32 FrontBoardServices ___49-[FBSServiceFacilityClient initWithConfigurator:]_block_invoke.63 + 80
33 FrontBoardServices -[FBSServiceFacilityClient setEndpoint:] + 572
34 CoreFoundation __CFCalendarEnumerateDates + 4756
35 CoreFoundation __CFCalendarEnumerateDates + 4584
36 CoreFoundation __CFCalendarEnumerateDates + 2372
37 CoreFoundation _CFRunLoopTimerSetNextFireDate + 800
38 CoreFoundation CFRunLoopRunSpecific + 480
39 GraphicsServices GSEventRunModal + 164
40 UIKitCore UIApplicationMain + 1936
41 游戏 0x00000001003a4000 + 48964
42 libdyld.dylib 0x00000001befc2000 + 4996

另一种崩溃:

0 游戏 v8::internal::RelocatingCharacterStream::UpdateBufferPointersCallback(v8::Isolate*, v8::GCType, v8::GCCallbackFlags, void*) + 505524

1 游戏 v8::base::LazyInstanceImpl<v8::base::Mutex,
v8::base::StaticallyAllocatedInstanceTraitv8::base::Mutex,
v8::base::DefaultConstructTraitv8::base::Mutex,
v8::base::ThreadSafeInitOnceTrait,
v8::base::LeakyInstanceTraitv8::base::Mutex >::InitInstance(void*) + 82560

2 游戏 v8::base::LazyInstanceImpl<v8::base::Mutex,
v8::base::StaticallyAllocatedInstanceTraitv8::base::Mutex,
v8::base::DefaultConstructTraitv8::base::Mutex,
v8::base::ThreadSafeInitOnceTrait,
v8::base::LeakyInstanceTraitv8::base::Mutex >::InitInstance(void*) + 82560

3 游戏 __cxa_throw + 1680448
4 游戏 __cxa_throw + 1654260
5 游戏 __cxa_throw + 319324
6 CoreFoundation _CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 20
7 CoreFoundation ____CFXRegistrationPost_block_invoke + 64
8 CoreFoundation __CFXRegistrationPost + 392
9 CoreFoundation ____CFXNotificationPost_block_invoke + 96
10 CoreFoundation -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1496
11 CoreFoundation _CFXNotificationPost + 696
12 Foundation -[NSNotificationCenter postNotificationName:object:userInfo:] + 68
13 UIKitCore -[UIDevice setOrientation:animated:] + 328
14 UIKitCore ___124-[_UICanvasDeviceOrientationSettingsDiffAction
_updateDeviceOrientationWithSettingObserverContext:canvas:transitionContext:]_block_invoke + 88
15 UIKitCore _performChangesWithTransitionContext + 836
16 UIKitCore -[_UICanvasDeviceOrientationSettingsDiffAction _updateDeviceOrientationWithSettingObserverContext:canvas:transitionContext:] + 236
17 UIKitCore ___133-[_UICanvasDeviceOrientationSettingsDiffAction
performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 104
18 UIKitCore _performActionsWithDelayForTransitionContext + 112
19 UIKitCore -[_UICanvasDeviceOrientationSettingsDiffAction
performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 172
20 UIKitCore -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 360
21 UIKitCore -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:] + 464
22 FrontBoardServices ___80-[FBSSceneImplupdater:didUpdateSettings:withDiff:transitionContext:completion:]_block_invoke_3 + 224
23 libdispatch.dylib __dispatch_client_callout + 16
24 libdispatch.dylib __dispatch_block_invoke_direct$VARIANT$mp + 224
25 FrontBoardServices _FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK + 40
26 FrontBoardServices -[FBSSerialQueue _performNext] + 408
27 FrontBoardServices -[FBSSerialQueue _performNextFromRunLoopSource] + 52
28 CoreFoundation _CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 24
29 CoreFoundation ___CFRunLoopDoSource0 + 88
30 CoreFoundation ___CFRunLoopDoSources0 + 176
31 CoreFoundation ___CFRunLoopRun + 1004
32 CoreFoundation CFRunLoopRunSpecific + 436
33 GraphicsServices GSEventRunModal + 104
34 UIKitCore UIApplicationMain + 212
35 游戏 0x0000000100434000 + 51936 36 libdyld.dylib _start + 4

1赞

cache mode改为share或者private cache,可以凑合用,避免换装影响其他节点

用不了 场景生成10个角色 1个换图 个个都换了

我的帖子里面提供一个避免缓存的思路。

目前唯一能确定复现的方式就是把fnt文件对应的png文件的Packable勾选上,然后预览就会出现。
而且如图所示,0这张图能正常显示,其它的都是黑的···

请问,现在cc.director.preloadScene 是不是不会预加载场景依赖资源,比如图片

使用SafeArea组件绑定再UI根节点上,关闭UI界面的时候报错

原生平台打包勾选md5cahce 是否有什么影响?

想要打包 Asset Bundle ,勾选了md5cache , 这时候生成的 Android 主包的资源也是有md5的,
是否需要取消勾选再次打包没有md5cache 的主包?

这个解决了吗,链接开不了,具体改了哪些文件。是第一个bug导致的?

这两个cocostudio导入问题改了吗?

下面这个崩溃有解吗?
(XMLHttpRequest::onResponse(cocos2d::network::HttpClient*, cocos2d::network::HttpResponse*)+1624)
挺多的都是XMLHttpRequest::onResponse

发生时间:昨天, 下午8:45,应用版本:11
Huawei HUAWEI Y6 Pro 2019 (HWMRD-M1), 2816MB RAM, Android 9
报告 1(共 5 页)

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> com.xxx.yyy <<<

backtrace:
  #00  pc 0000000000b4ef4e  /data/app/com.xxx.yyy-lFicTHWMDJmEAuUZPUkKAA==/lib/arm/libcocos2djs.so (v8::Object::Has(v8::Local<v8::Context>, v8::Local<v8::Value>)+342)
  #01  pc 000000000061270c  /data/app/com.xxx.yyy-lFicTHWMDJmEAuUZPUkKAA==/lib/arm/libcocos2djs.so (se::Object::getProperty(char const*, se::Value*)+168)
  #02  pc 0000000000609fe8  /data/app/com.xxx.yyy-lFicTHWMDJmEAuUZPUkKAA==/lib/arm/libcocos2djs.so
  #03  pc 0000000000604c58  /data/app/com.xxx.yyy-lFicTHWMDJmEAuUZPUkKAA==/lib/arm/libcocos2djs.so (XMLHttpRequest::onResponse(cocos2d::network::HttpClient*, cocos2d::network::HttpResponse*)+1672)
  #04  pc 00000000006b3194  /data/app/com.xxx.yyy-lFicTHWMDJmEAuUZPUkKAA==/lib/arm/libcocos2djs.so
  #05  pc 000000000058e610  /data/app/com.xxx.yyy-lFicTHWMDJmEAuUZPUkKAA==/lib/arm/libcocos2djs.so (cocos2d::Scheduler::update(float)+432)
  #06  pc 0000000000569c23  /data/app/com.xxx.yyy-lFicTHWMDJmEAuUZPUkKAA==/lib/arm/libcocos2djs.so (Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeRender+506)
  #07  pc 0000000000432879  /system/lib/libart.so (art_quick_generic_jni_trampoline+40)
  #08  pc 0000000000004517  /dev/ashmem/dalvik-jit-code-cache (deleted)

第二个

发生时间:今天, 下午12:44,应用版本:11
Huawei Y9 Prime 2019 (HWSTK-HF), 3840MB RAM, Android 10
报告 1(共 2 页)

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> com.xxx.yyy <<<

backtrace:
  #00  pc 0000000000cc6094  /data/app/com.xxx.yyy-otAxoY_qqefz8LRQAR7l1A==/lib/arm64/libcocos2djs.so (v8::Object::Has(v8::Local<v8::Context>, v8::Local<v8::Value>)+404)
  #01  pc 000000000078e6a0  /data/app/com.xxx.yyy-otAxoY_qqefz8LRQAR7l1A==/lib/arm64/libcocos2djs.so (se::Object::getProperty(char const*, se::Value*)+156)
  #02  pc 0000000000786a70  /data/app/com.xxx.yyy-otAxoY_qqefz8LRQAR7l1A==/lib/arm64/libcocos2djs.so
  #03  pc 0000000000786e74  /data/app/com.xxx.yyy-otAxoY_qqefz8LRQAR7l1A==/lib/arm64/libcocos2djs.so
  #04  pc 0000000000781dc0  /data/app/com.xxx.yyy-otAxoY_qqefz8LRQAR7l1A==/lib/arm64/libcocos2djs.so (XMLHttpRequest::onResponse(cocos2d::network::HttpClient*, cocos2d::network::HttpResponse*)+1624)
  #05  pc 0000000000820364  /data/app/com.xxx.yyy-otAxoY_qqefz8LRQAR7l1A==/lib/arm64/libcocos2djs.so
  #06  pc 00000000007156cc  /data/app/com.xxx.yyy-otAxoY_qqefz8LRQAR7l1A==/lib/arm64/libcocos2djs.so (cocos2d::Scheduler::update(float)+404)
  #07  pc 00000000006f1c10  /data/app/com.xxx.yyy-otAxoY_qqefz8LRQAR7l1A==/lib/arm64/libcocos2djs.so (Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeRender+632)
  #08  pc 0000000002001d10  /memfd:/jit-cache (art_jni_trampoline+144)
  #09  pc 00000000020067ac  /memfd:/jit-cache (org.cocos2dx.lib.Cocos2dxRenderer.onDrawFrame+476)
  #10  pc 000000000200a798  /memfd:/jit-cache (android.opengl.GLSurfaceView$GLThread.guardedRun+3976)
  #11  pc 000000000014463c  /apex/com.android.runtime/lib64/libart.so (art_quick_osr_stub+60)
  #12  pc 000000000034337c  /apex/com.android.runtime/lib64/libart.so (art::jit::Jit::MaybeDoOnStackReplacement(art::Thread*, art::ArtMethod*, unsigned int, int, art::JValue*)+1660)
  #13  pc 00000000005c5fc0  /apex/com.android.runtime/lib64/libart.so (MterpMaybeDoOnStackReplacement+212)
  #14  pc 0000000000143350  /apex/com.android.runtime/lib64/libart.so (MterpHelpers+240)
  #15  pc 00000000002fbfe8  /system/framework/framework.jar (android.opengl.GLSurfaceView$GLThread.guardedRun+1268)
  #16  pc 00000000005bd788  /apex/com.android.runtime/lib64/libart.so (MterpInvokeDirect+1168)
  #17  pc 000000000013e914  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_direct+20)
  #18  pc 00000000002fc52c  /system/framework/framework.jar (android.opengl.GLSurfaceView$GLThread.run+48)
  #19  pc 00000000002bf948  /apex/com.android.runtime/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.4040658722762997890)+240)
  #20  pc 00000000005a62c8  /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+1012)
  #21  pc 000000000014d468  /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88)
  #22  pc 0000000000144334  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548)
  #23  pc 00000000001531a4  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+252)
  #24  pc 00000000004c6d18  /apex/com.android.runtime/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104)
  #25  pc 00000000004c7dac  /apex/com.android.runtime/lib64/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+416)
  #26  pc 0000000000507d7c  /apex/com.android.runtime/lib64/libart.so (art::Thread::CreateCallback(void*)+1176)
  #27  pc 00000000000ce1b0  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36)
  #28  pc 0000000000070ba8  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)

我新建了一个demo,直接在场景中嵌套和prefab内再嵌套好像都没问题。可能是我的场景和prefab都是在2.4.3之前的版本创建的缘故吧。 资源应用确实也有点乱。我把场景和预制都在新重新做一下。感谢大神

1赞

现在也会的

这个rc4修复了哈

这个pr里面就可以看到了么

目前热更新无法更新main.js文件,勾选md5cache会导致加载的setting一直都是包内的文件,自己手动改下代码。

2赞

都改了,你可以试看看

想请问下,编辑框,如果占位符有字符串,点开后,占位符的字符变暗。这种要怎么改?