-
Creator 版本: 3.8.6
-
目标平台: Android
-
首个报错:
E 14:08:30 [ERROR]: [ERROR] file C:/ProgramData/cocos/editors/Creator/3.8.6/resources/resources/3d/engine/native/cocos/application/CocosApplication.cpp: line 173
2025-04-15 14:08:30.855 562-626 Cocos FanSha.com E 14:08:30 [ERROR]:
Uncaught Exception:
- location : src/cocos-js/cc.js:1:740009:
System.register([],(function(t,e){“use strict”;return{execute:function(){function i(t,e,i,s){i&&Object.defineProperty(t,e,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(s):void 0})}function s(t,e,i,s,n){var r={};return Object.keys(s).forEach((function(t){r[t]=s[t]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=i.slice().reverse().reduce((function(i,s){return s(t,e,i)||i}),r),n&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(n):void 0,r.initializer=void 0),void 0===r.initializer&&(Object.defineProperty(t,e,r),r=null),r}function n(t,e){const i=“undefined”==typeof window?global:window;return void 0===i[t]?i[t]=e:i[t]}t({BitMask:he,CCClass:mi,Enum:ue,Eventify:Fo,WorldNode3DToLocalNodeUI:aa,WorldNode3DToWorldNodeUI:ha,checkObsoleteInNamespace:function(t){return ot||(ot=“undefined”==typeof Proxy?{}:new Proxy(t,{get:(t,e,i)=>(rt(e),Reflect.get(t,e,i))})),ot},checkObsolete:function(t){for(let e of t)rt(e)},_resetDebugSetting:R,absMax:i,absMaxComponent:Xi,applyMixins:ju,approx:Oi,assert:O,assertID:G,assertIsNonNullable:function(){},assertIsTrue:function(){},assertsArrayIndex:le,bezier:Mc,bezierByTime:Vc,binarySearch:function(t,e){return Ha(t,e,0)},binarySearchBy:function(t,e,i){let s=0,n=t.length-1,r=n>>>1;for(;s<=n;r=s+n>>>1){const o=t[r];if(i(o,e)<0)n=r-1;else{if(!(i(o,e)>0))return r;s=r+1}}return~s},binarySearchEpsilon:Ha,ccenum:pe,clamp:Di,clamp01:Ri,color:Fs,computeRatioByType:ak,createDefaultPipeline:qG,debug:D,debugID:B,deprecateModuleExportedName:nt,deserialize:kg,enumerableProps:Yi,equals:Ci,error:C,errorID:H,find:_v,flattenCodeArray:Wu,floatToHalf:Qi,formerlySerializedAs:yh,fragmentText:HA,getBaselineOffset:SA,getEnglishWordPartAtFirst:kA,getEnglishWordPartAtLast:UA,getError:j,getPathFromRoot:function(t,e){let i=t,s="";for(;null!==i&&i!==e;)s=`{i.name}/{s}`,i=i.parent;return s.slice(0,-1)},getSerializationMetadata:function(t){return t[gh]},getSymbolAt:MA,getSymbolCodeAt:FA,getSymbolLength:NA,getWorldTransformUntilRoot:function(t,e,i){for(fn.identity(i);t!==e;)fn.fromRTS(XH,t.rotation,t.position,t.scale),fn.multiply(i,XH,i),t=t.parent;return i},halfToFloat:Zi,instantiate:MV,inverseLerp:ji,isCCClassOrFastDefined:gi,isCCObject:Io,isDisplayStats:X,isEnglishWordPartAtFirst:function(t){return OA.test(t)},isEnglishWordPartAtLast:function(t){return CA.test(t)},isUnicodeCJK:DA,isUnicodeSpace:RA,isValid:Ao,lerp:Pi,loadWasmModuleSpine:mX,log:I,logID:F,mat4:Sn,murmurhash2_32_gc:Uu,nextPow2:Vi,pingPong:Wi,pseudoRandom:ki,pseudoRandomRange:Ui,pseudoRandomRangeInt:Hi,quat:an,random:Fi,randomRange:Bi,randomRangeInt:zi,rect:Vn,repeat:Gi,safeMeasureText:PA,sampleAnimationCurve:ok,setDefaultLogTimes:function(t){t>0&&(tt=t)},setDisplayStats:,setPropertyEnumType:ei,setPropertyEnumTypeOnAttrs:ii,setRandGenerator:Li,shift:function(t,e,i){if(le(t,e),le(t,i),e===i)return t;const s=t[e];if(e<i)for(let s=e+1;s<=i;++s)t[s-1]=t[s];else for(let s=e;s!==i;–s)t[s]=t[s-1];return t[i]=s,t},size:zn,toDegree:Mi,toRadian:Ni,tween:A$,tweenUtil:C$,v2:Fn,v3:Cs,v4:ds,warn:A,warnID:k}),n(“CC_WECHAT”,!1),n(“CC_XIAOMI”,!1),n(“CC_ALIPAY”,!1),n(“CC_BYTEDANCE”,!1),n(“CC_OPPO”,!1),n(“CC_VIVO”,!1),n(“CC_HUAWEI”,!1),n(“CC_MIGU”,!1),n(“CC_HONOR”,!1),n(“CC_COCOS_RUNTIME”,!1),n(“CC_EDITOR”,!1),n(“CC_PREVIEW”,!1),n(“CC_BUILD”,!0),n(“CC_TEST”,!1),n(“CC_DEBUG”,!1),n(“CC_DEV”,!1),n(“CC_MINIGAME”,!1),n(“CC_RUNTIME_BASED”,!1),n(“CC_SUPPORT_JIT”,!0),n(“CC_JSB”,!0);const r=“undefined”==typeof window?global:window,o=t(“cclegacy”,{_global:r}),a=o;o.internal={};const h=t(“VERSION”,“3.8.6”);r.CocosEngine=a.ENGINE_VERSION=h,r.cc=a;const l=void 0!==globalThis.jsb&&void 0!==jsb.window?jsb.window:globalThis;r.ccwindow=l;function c(t,e){return t^(t^e)&-(t<e)}function u(t){let e,i;return e=(t>65535)<<4,i=((t>>>=e)>255)<<3,e|=i,i=((t>>>=i)>15)<<2,e|=i,i=((t>>>=i)>3)<<1,e|=i,e|(t>>>=i)>>1}function _(t){return 168430
2025-04-15 14:08:30.877 562-626 Cocos FanSha.com E 14:08:30 [ERROR]: JS: src/cocos-js/cc.js:1:740009:
System.register([],(function(t,e){“use strict”;return{execute:function(){function i(t,e,i,s){i&&Object.defineProperty(t,e,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(s):void 0})}function s(t,e,i,s,n){var r={};return Object.keys(s).forEach((function(t){r[t]=s[t]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=i.slice().reverse().reduce((function(i,s){return s(t,e,i)||i}),r),n&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(n):void 0,r.initializer=void 0),void 0===r.initializer&&(Object.defineProperty(t,e,r),r=null),r}function n(t,e){const i=“undefined”==typeof window?global:window;return void 0===i[t]?i[t]=e:i[t]}t({BitMask:he,CCClass:mi,Enum:ue,Eventify:Fo,WorldNode3DToLocalNodeUI:aa,WorldNode3DToWorldNodeUI:ha,checkObsoleteInNamespace:function(t){return ot||(ot=“undefined”==typeof Proxy?{}:new Proxy(t,{get:(t,e,i)=>(rt(e),Reflect.get(t,e,i))})),ot},checkObsolete:function(t){for(let e of t)rt(e)},_resetDebugSetting:R,absMax:i,absMaxComponent:Xi,applyMixins:ju,approx:Oi,assert:O,assertID:G,assertIsNonNullable:function(){},assertIsTrue:function(){},assertsArrayIndex:le,bezier:Mc,bezierByTime:Vc,binarySearch:function(t,e){return Ha(t,e,0)},binarySearchBy:function(t,e,i){let s=0,n=t.length-1,r=n>>>1;for(;s<=n;r=s+n>>>1){const o=t[r];if(i(o,e)<0)n=r-1;else{if(!(i(o,e)>0))return r;s=r+1}}return~s},binarySearchEpsilon:Ha,ccenum:pe,clamp:Di,clamp01:Ri,color:Fs,computeRatioByType:ak,createDefaultPipeline:qG,debug:D,debugID:B,deprecateModuleExportedName:nt,deserialize:kg,enumerableProps:Yi,equals:Ci,error:C,errorID:H,find:_v,flattenCodeArray:Wu,floatToHalf:Qi,formerlySerializedAs:yh,fragmentText:HA,getBaselineOffset:SA,getEnglishWordPartAtFirst:kA,getEnglishWordPartAtLast:UA,getError:j,getPathFromRoot:function(t,e){let i=t,s="";for(;null!==i&&i!==e;)s=`{i.name}/{s}`,i=i.parent;return s.slice(0,-1)},getSerializationMetadata:function(t){return t[gh]},getSymbolAt:MA,getSymbolCodeAt:FA,getSymbolLength:NA,getWorldTransformUntilRoot:function(t,e,i){for(fn.identity(i);t!==e;)fn.fromRTS(XH,t.rotation,t.position,t.scale),fn.multiply(i,XH,i),t=t.parent;return i},halfToFloat:Zi,instantiate:MV,inverseLerp:ji,isCCClassOrFastDefined:gi,isCCObject:Io,isDisplayStats:X,isEnglishWordPartAtFirst:function(t){return OA.test(t)},isEnglishWordPartAtLast:function(t){return CA.test(t)},isUnicodeCJK:DA,isUnicodeSpace:RA,isValid:Ao,lerp:Pi,loadWasmModuleSpine:mX,log:I,logID:F,mat4:Sn,murmurhash2_32_gc:Uu,nextPow2:Vi,pingPong:Wi,pseudoRandom:ki,pseudoRandomRange:Ui,pseudoRandomRangeInt:Hi,quat:an,random:Fi,randomRange:Bi,randomRangeInt:zi,rect:Vn,repeat:Gi,safeMeasureText:PA,sampleAnimationCurve:ok,setDefaultLogTimes:function(t){t>0&&(tt=t)},setDisplayStats:,setPropertyEnumType:ei,setPropertyEnumTypeOnAttrs:ii,setRandGenerator:Li,shift:function(t,e,i){if(le(t,e),le(t,i),e===i)return t;const s=t[e];if(e<i)for(let s=e+1;s<=i;++s)t[s-1]=t[s];else for(let s=e;s!==i;–s)t[s]=t[s-1];return t[i]=s,t},size:zn,toDegree:Mi,toRadian:Ni,tween:A$,tweenUtil:C$,v2:Fn,v3:Cs,v4:ds,warn:A,warnID:k}),n(“CC_WECHAT”,!1),n(“CC_XIAOMI”,!1),n(“CC_ALIPAY”,!1),n(“CC_BYTEDANCE”,!1),n(“CC_OPPO”,!1),n(“CC_VIVO”,!1),n(“CC_HUAWEI”,!1),n(“CC_MIGU”,!1),n(“CC_HONOR”,!1),n(“CC_COCOS_RUNTIME”,!1),n(“CC_EDITOR”,!1),n(“CC_PREVIEW”,!1),n(“CC_BUILD”,!0),n(“CC_TEST”,!1),n(“CC_DEBUG”,!1),n(“CC_DEV”,!1),n(“CC_MINIGAME”,!1),n(“CC_RUNTIME_BASED”,!1),n(“CC_SUPPORT_JIT”,!0),n(“CC_JSB”,!0);const r=“undefined”==typeof window?global:window,o=t(“cclegacy”,{_global:r}),a=o;o.internal={};const h=t(“VERSION”,“3.8.6”);r.CocosEngine=a.ENGINE_VERSION=h,r.cc=a;const l=void 0!==globalThis.jsb&&void 0!==jsb.window?jsb.window:globalThis;r.ccwindow=l;function c(t,e){return t^(t^e)&-(t<e)}function u(t){let e,i;return e=(t>65535)<<4,i=((t>>>=e)>255)<<3,e|=i,i=((t>>>=i)>15)<<2,e|=i,i=((t>>>=i)>3)<<1,e|=i,e|(t>>>=i)>>1}function _(t){return 16843009*((t=(858993459&(t-=t>>>1&1431
2025-04-15 14:08:30.884 562-626 Cocos FanSha.com E 14:08:30 [ERROR]: [SE_ERROR] (C:/ProgramData/cocos/editors/Creator/3.8.6/resources/resources/3d/engine/native/cocos/bindings/jswrapper/v8/Object.cpp, 774): Invoking function (0x7762c83070) failed!
后面我打开调试再打包运行,报错如下:
E 14:46:42 [ERROR]: [ERROR] file C:/ProgramData/cocos/editors/Creator/3.8.6/resources/resources/3d/engine/native/cocos/application/CocosApplication.cpp: line 173
2025-04-15 14:46:42.578 3783-3829 Cocos FanSha.com E 14:46:42 [ERROR]:
Uncaught Exception:
- location : src/cocos-js/cc.js:49175:43:
const vertexCount = renderData.vertexCount;
^
- msg : TypeError: Cannot read properties of null (reading 'vertexCount')
- detail :
TypeError: Cannot read properties of null (reading 'vertexCount')
at Letter.updateColor (src/cocos-js/cc.js:49175:44)
at Label._updateColor (src/cocos-js/cc.js:41825:25)
at Label._updateColor (src/cocos-js/cc.js:42492:17)
at set color [as color] (src/cocos-js/cc.js:41666:16)
at RichText._resetLabelState (src/cocos-js/cc.js:47800:23)
at RichText._applyTextAttribute (src/cocos-js/cc.js:47749:16)
at src/cocos-js/cc.js:47180:18
at Array.forEach (<anonymous>)
at RichText._updateLabelSegmentTextAttributes (src/cocos-js/cc.js:47179:26)
at RichText._updateRichText (src/cocos-js/cc.js:47585:18)
2025-04-15 14:46:42.578 3783-3829 Cocos FanSha.com E 14:46:42 [ERROR]: JS: src/cocos-js/cc.js:49175:43:
const vertexCount = renderData.vertexCount;
^
TypeError: Cannot read properties of null (reading ‘vertexCount’)
TypeError: Cannot read properties of null (reading ‘vertexCount’)
at Letter.updateColor (src/cocos-js/cc.js:49175:44)
at Label._updateColor (src/cocos-js/cc.js:41825:25)
at Label._updateColor (src/cocos-js/cc.js:42492:17)
at set color [as color] (src/cocos-js/cc.js:41666:16)
at RichText._resetLabelState (src/cocos-js/cc.js:47800:23)
at RichText._applyTextAttribute (src/cocos-js/cc.js:47749:16)
at src/cocos-js/cc.js:47180:18
at Array.forEach ()
at RichText._updateLabelSegmentTextAttributes (src/cocos-js/cc.js:47179:26)
at RichText._updateRichText (src/cocos-js/cc.js:47585:18)
2025-04-15 14:46:42.578 3783-3829 Cocos FanSha.com E 14:46:42 [ERROR]: [SE_ERROR] (C:/ProgramData/cocos/editors/Creator/3.8.6/resources/resources/3d/engine/native/cocos/bindings/jswrapper/v8/Object.cpp, 774): Invoking function (0x7761e0d070) failed!
- 之前哪个版本是正常的: 3.8.4
- 重现概率: 执行某个tween动作必现
微信小游戏平台和浏览器上都没有问题,就是安卓打包运行才会报这个错误。