android也一样
2022-07-23 17:15:42.822929+0800 cocos-creator-client-mobile[76363:3475202] Metal GPU Frame Capture Enabled
2022-07-23 17:15:42.823076+0800 cocos-creator-client-mobile[76363:3475202] Metal API Validation Enabled
17:15:42 [INFO]: Metal Feature Set: MTLFeatureSet_iOS_GPUFamily4_v2
17:15:42 [INFO]: Device validator enabled.
17:15:42 [DEBUG]: D/ Initializing V8, version: 9.1.269
17:15:42 [DEBUG]: D/ libuv version: 1.23.1-dev
17:15:42 [DEBUG]: D/ Number of interfaces: 13
17:15:42 [DEBUG]: D/ Debugger listening..., visit [
17:15:42 [DEBUG]: D/ devtools://devtools/bundled/js_app.html?v8only=true&ws=172.17.11.224:6086/00010002-0003-4004-8005-000600070008
17:15:42 [DEBUG]: D/ devtools://devtools/bundled/js_app.html?v8only=true&ws=127.0.0.1:6086/00010002-0003-4004-8005-000600070008
17:15:42 [DEBUG]: D/ ] in chrome browser to debug!
17:15:42 [DEBUG]: D/ For help see https://nodejs.org/en/docs/inspector
17:15:43 [INFO]: Device thread detached.
=================================================================
Main Thread Checker: UI API called on a background thread: -[UIView layer]
PID: 76363, TID: 3475434, Thread name: (none), Queue name: com.apple.root.default-qos.overcommit, QoS: 0
Backtrace:
4 cocos-creator-client-mobile 0x000000010168f8a0 _ZN2cc3gfx14CCMTLSwapchain6doInitERKNS0_13SwapchainInfoE + 168
5 cocos-creator-client-mobile 0x0000000101630834 _ZN2cc3gfx9Swapchain10initializeERKNS0_13SwapchainInfoE + 124
6 cocos-creator-client-mobile 0x000000010160c558 _ZZN2cc3gfx14SwapchainAgent6doInitERKNS0_13SwapchainInfoEEN13SwapchainInit7executeEv + 32
7 cocos-creator-client-mobile 0x00000001006e4640 _ZN2cc12MessageQueue15executeMessagesEv + 60
8 cocos-creator-client-mobile 0x00000001006e469c _ZN2cc12MessageQueue13flushMessagesEv + 52
9 cocos-creator-client-mobile 0x00000001006e3f10 _ZN2cc12MessageQueue18consumerThreadLoopEv + 64
10 cocos-creator-client-mobile 0x00000001006eddfc _ZNSt3__1L8__invokeIMN2cc12MessageQueueEDoFvvEPS2_JEvEEDTcldsdescT0_fp0_fp_spscT1_fp1_EEOT_OS6_DpOS7_ + 112
11 cocos-creator-client-mobile 0x00000001006edd6c _ZNSt3__1L16__thread_executeINS_10unique_ptrINS_15__thread_structENS_14default_deleteIS2_EEEEMN2cc12MessageQueueEDoFvvEJPS7_EJLm2EEEEvRNS_5tupleIJT_T0_DpT1_EEENS_15__tuple_indicesIJXspT2_EEEE + 56
12 cocos-creator-client-mobile 0x00000001006ed4d4 _ZNSt3__1L14__thread_proxyINS_5tupleIJNS_10unique_ptrINS_15__thread_structENS_14default_deleteIS3_EEEEMN2cc12MessageQueueEDoFvvEPS8_EEEEEPvSD_ + 84
13 libsystem_pthread.dylib 0x00000002082089ac _pthread_start + 148
14 libsystem_pthread.dylib 0x0000000208207e68 thread_start + 8
2022-07-23 17:15:43.198299+0800 cocos-creator-client-mobile[76363:3475434] [reports] Main Thread Checker: UI API called on a background thread: -[UIView layer]
PID: 76363, TID: 3475434, Thread name: (none), Queue name: com.apple.root.default-qos.overcommit, QoS: 0
Backtrace:
4 cocos-creator-client-mobile 0x000000010168f8a0 _ZN2cc3gfx14CCMTLSwapchain6doInitERKNS0_13SwapchainInfoE + 168
5 cocos-creator-client-mobile 0x0000000101630834 _ZN2cc3gfx9Swapchain10initializeERKNS0_13SwapchainInfoE + 124
6 cocos-creator-client-mobile 0x000000010160c558 _ZZN2cc3gfx14SwapchainAgent6doInitERKNS0_13SwapchainInfoEEN13SwapchainInit7executeEv + 32
7 cocos-creator-client-mobile 0x00000001006e4640 _ZN2cc12MessageQueue15executeMessagesEv + 60
8 cocos-creator-client-mobile 0x00000001006e469c _ZN2cc12MessageQueue13flushMessagesEv + 52
9 cocos-creator-client-mobile 0x00000001006e3f10 _ZN2cc12MessageQueue18consumerThreadLoopEv + 64
10 cocos-creator-client-mobile 0x00000001006eddfc _ZNSt3__1L8__invokeIMN2cc12MessageQueueEDoFvvEPS2_JEvEEDTcldsdescT0_fp0_fp_spscT1_fp1_EEOT_OS6_DpOS7_ + 112
11 cocos-creator-client-mobile 0x00000001006edd6c _ZNSt3__1L16__thread_executeINS_10unique_ptrINS_15__thread_structENS_14default_deleteIS2_EEEEMN2cc12MessageQueueEDoFvvEJPS7_EJLm2EEEEvRNS_5tupleIJT_T0_DpT1_EEENS_15__tuple_indicesIJXspT2_EEEE + 56
12 cocos-creator-client-mobile 0x00000001006ed4d4 _ZNSt3__1L14__thread_proxyINS_5tupleIJNS_10unique_ptrINS_15__thread_structENS_14default_deleteIS3_EEEEMN2cc12MessageQueueEDoFvvEPS8_EEEEEPvSD_ + 84
13 libsystem_pthread.dylib 0x00000002082089ac _pthread_start + 148
14 libsystem_pthread.dylib 0x0000000208207e68 thread_start + 8
17:15:43 [DEBUG]: D/ JS: @storage-------get------ [object Object]
17:15:44 [INFO]: builtin-sprite|sprite-vs:vert|sprite-fs:frag|CC_USE_EMBEDDED_ALPHA0|USE_TEXTURE1|IS_GRAY1 compile succeed.
17:15:44 [INFO]: builtin-sprite|sprite-vs:vert|sprite-fs:frag|USE_TEXTURE0 compile succeed.
17:15:44 [INFO]: builtin-clear-stencil|sprite-vs:vert|sprite-fs:frag compile succeed.
17:15:44 [INFO]: builtin-sprite|sprite-vs:vert|sprite-fs:frag|CC_USE_EMBEDDED_ALPHA0|USE_ALPHA_TEST1|USE_TEXTURE1|IS_GRAY0 compile succeed.
17:15:44 [INFO]: builtin-sprite|sprite-vs:vert|sprite-fs:frag|CC_USE_EMBEDDED_ALPHA0|USE_TEXTURE1|IS_GRAY0 compile succeed.
17:15:44 [INFO]: builtin-sprite|sprite-vs:vert|sprite-fs:frag|CC_USE_EMBEDDED_ALPHA1|USE_TEXTURE1|IS_GRAY0 compile succeed.
17:15:44 [INFO]: builtin-sprite|sprite-vs:vert|sprite-fs:frag|CC_USE_EMBEDDED_ALPHA1|USE_TEXTURE1|IS_GRAY1 compile succeed.
17:15:44 [INFO]: builtin-graphics|vs:vert|fs:frag compile succeed.
17:15:44 [INFO]: builtin-unlit|unlit-vs:vert|unlit-fs:frag|CC_USE_DEBUG_VIEW0|CC_USE_HDR1 compile succeed.
17:15:44 [INFO]: builtin-spine|sprite-vs:vert|sprite-fs:frag compile succeed.
17:15:44 [INFO]: util/splash-screen|splash-screen-vs:vert|splash-screen-fs:frag compile succeed.
17:15:45 [DEBUG]: D/ JS: [ERROR]: Error 3817, please go to https://github.com/cocos-creator/engine/blob/develop/EngineErrorMap.md#3817 to see details. Arguments: root, 0
17:15:45 [DEBUG]: D/ JS: Corrupted component value: null
17:15:45 [DEBUG]: D/ JS: Success to load scene: db://assets/main.scene
啥情况 iOS跑不起来啊
https://github.com/cocos-creator/engine/blob/develop/EngineErrorMap.md#3817
里面说
Sorry, the component of '%s' which with an index of %s is corrupted! It has been removed.
啥情况 动态添加组件不能用string???
android也一样
请问是原生化实现的问题吗,那这块不原生化也不影响功能才对。。
2.4.x和3.5.2是能正常显示的
换个浏览器试试
你这些错误有些挺严重的,要修复,比如 circular dependency,会导致部分脚本或者组件丢失,你后面遇到的报错也是这个原因导致的,就是下面这个
这个错误的核心原因是 component 为空:
API 用错了,参考文档
https://docs.cocos.com/creator/manual/zh/scripting/modules/engine.html#执行环境
只有编辑其他预制体会吗?切换场景会不会有问题?
目前这个编辑器预览暂不支持localStorage,我们已跟进该问题,会尽快加上
关于3.6我又有之前的疑问
曾经发过一个疑问贴:3.5.1 BUG 按钮点击区域会偏移 当时好像是说3.5改了触摸检测的逻辑,需要回滚下https://github.com/cocos/cocos-engine/pull/10496/files这块代码,理论上RT不应该支持触摸
我用3.6试了下确实触摸都没了,那么问题来了,怎么才能让RT有对应的触摸呀,因为我想给界面整体加个特效。将摄像机输出到Target Texture上用另一个精灵接受给这个精灵加特效,但是界面上有很多按钮以及节点触摸事件什么的,我也试过将输出的精灵事件上都设置了event.preventSwallow = true;也是无法触发按钮的点击,请问这样的做法在3.6该如何实现呀
感谢回复 我看看
原生工程我有定制东西的 删掉native目录问题很大
我其实只有一个场景哈
当coscos没有问题的时候,我一般不发表评论
好的
是这样的panda 我是自己写的一个插件 在extensions里面的 然后用webpack打包成一个js文件给项目用的 我要是在插件里面写
import { DEV } from 'cc/env';
if (DEV) {
log('I am in development mode!');
}
webpack就会报错
ERROR in ./src/storage/storage-engine.js 7:0-31
Module not found: Error: Can't resolve 'cc/env' in '/Users/dwb/Desktop/github/cocos-creator-client_V3.6/extensions/sven/src/storage'
resolve 'cc/env' in '/Users/dwb/Desktop/github/cocos-creator-client_V3.6/extensions/sven/src/storage'
Parsed request is a module
using description file: /Users/dwb/Desktop/github/cocos-creator-client_V3.6/extensions/sven/package.json (relative path: ./src/storage)
Field 'browser' doesn't contain a valid alias configuration
resolve as module
/Users/dwb/Desktop/github/cocos-creator-client_V3.6/extensions/sven/src/storage/node_modules doesn't exist or is not a directory
/Users/dwb/Desktop/github/cocos-creator-client_V3.6/extensions/sven/src/node_modules doesn't exist or is not a directory
looking for modules in /Users/dwb/Desktop/github/cocos-creator-client_V3.6/extensions/sven/node_modules
/Users/dwb/Desktop/github/cocos-creator-client_V3.6/extensions/sven/node_modules/cc doesn't exist
/Users/dwb/Desktop/github/cocos-creator-client_V3.6/extensions/node_modules doesn't exist or is not a directory
looking for modules in /Users/dwb/Desktop/github/cocos-creator-client_V3.6/node_modules
/Users/dwb/Desktop/github/cocos-creator-client_V3.6/node_modules/cc doesn't exist
/Users/dwb/Desktop/github/node_modules doesn't exist or is not a directory
/Users/dwb/Desktop/node_modules doesn't exist or is not a directory
/Users/dwb/node_modules doesn't exist or is not a directory
/Users/node_modules doesn't exist or is not a directory
/node_modules doesn't exist or is not a directory
@ ./src/storage/storage.js 31:0-49 103:87-111 104:87-111
@ ./src/sven.js 9:0-74 37:9-14 38:11-18 39:11-18 40:16-28
webpack 5.73.0 compiled with 1 error in 1380 ms
webpack就找不到 cc/env 这个模块
而且我3.5.x的时候就一直在插件里用CC_DEBUG也没事呀
可以试试在场景脚本里面import
那肯定没问题 在assets目录下的随便import 我要不就给我插件做个配置 init的时候传参算了
有一个不知道是bug还是故意改成如此的问题。比如我在level_1节点上挂上一个mask组件,level_1节点 下有个节点node1。3.6以前,level_1的children数组,children[0]是node1. 3.6下children[0]是mask,children[1]才是node1
还有个奇怪的问题。同样的颜色,安卓上,3.6的颜色比以前深很多,浏览器上则没有区别