3.5.2版本creator中richText组件使用char后会卡死

index.js:1 ErrorEvent {isTrusted: true, message: “Uncaught TypeError: Cannot read properties of null (reading ‘atlasName’)”, filename: ‘http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js’, lineno: 204400, colno: 91, …}isTrusted: truebubbles: falsecancelBubble: falsecancelable: truecolno: 91composed: falsecurrentTarget: Window {window: Window, self: Window, document: document, name: ‘’, location: Location, …}defaultPrevented: falseerror: TypeError: Cannot read properties of null (reading ‘atlasName’)
at Object._multilineTextWrap (http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js:204400:91)
at Object._multilineTextWrapByWord (http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js:204545:23)
at Object._alignText (http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js:204583:18)
at Object._updateContent (http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js:204328:16)
at Object.updateRenderData (http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js:204238:18)
at Label.updateRenderData (http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js:59064:31)
at Label.set (http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js:59522:18)
at RichText._applyTextAttribute (http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js:61543:27)
at RichText._calculateSize (http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js:60925:16)
at RichText.SplitLongStringApproximatelyIn2048 (http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js:60767:32)eventPhase: 0filename: "http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js"lineno: 204400message: "Uncaught TypeError: Cannot read properties of null (reading ‘atlasName’)"path: [Window]returnValue: truesrcElement: Window {window: Window, self: Window, document: document, name: ‘’, location: Location, …}target: Window {window: Window, self: Window, document: document, name: ‘’, location: Location, …}timeStamp: 250914.80000007153type: “error”[[Prototype]]: ErrorEvent
(匿名) @ index.js:1
bmfontUtils.ts:258 Uncaught TypeError: Cannot read properties of null (reading ‘atlasName’)
at Object._multilineTextWrap (bmfontUtils.ts:258:37)
at Object._multilineTextWrapByWord (bmfontUtils.ts:397:21)
at Object._alignText (bmfontUtils.ts:437:18)
at Object._updateContent (bmfontUtils.ts:191:14)
at Object.updateRenderData (bmfontUtils.ts:94:18)
at Label.updateRenderData (label.ts:741:33)
at Label.set (label.ts:522:14)
at RichText._applyTextAttribute (rich-text.ts:1257:9)
at RichText._calculateSize (rich-text.ts:722:14)
at RichText.SplitLongStringApproximatelyIn2048 (rich-text.ts:575:32)

复现几率很大?方便给个 demo 看看?

就是必现的,应该就是在同一场景,因为中文字体大小或者颜色不同,所以最后存的位图过多,超了又没得释放就卡死吧

简单测试,一直没复现,有什么特定的步骤?

文本不重复,用的char模式,如果有字体资源可以用下,系统自带字体要复现需要更大不重复文本量