求引擎组改下这个studio导入内存限制

2020-06-23T09:11:48.772Z - error: RangeError: Maximum call stack size exceeded
at String.replace ()
at L (/Applications/CocosCreator/Creator/2.3.4/CocosCreator.app/Contents/Resources/app.asar/editor/builtin/project-importer/core/studio/csd-importer.js:1:15852)
at W (/Applications/CocosCreator/Creator/2.3.4/CocosCreator.app/Contents/Resources/app.asar/editor/builtin/project-importer/core/studio/csd-importer.js:1:23083)
at /Applications/CocosCreator/Creator/2.3.4/CocosCreator.app/Contents/Resources/app.asar/editor/builtin/project-importer/core/studio/csd-importer.js:1:17147
at /Applications/CocosCreator/Creator/2.3.4/CocosCreator.app/Contents/Resources/app.asar/editor/builtin/project-importer/core/studio/csd-importer.js:1:19078
at nextTask (/Applications/CocosCreator/Creator/2.3.4/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:4578:27)
at next (/Applications/CocosCreator/Creator/2.3.4/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:4586:13)
at /Applications/CocosCreator/Creator/2.3.4/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:325:20
at /Applications/CocosCreator/Creator/2.3.4/CocosCreator.app/Contents/Resources/app.asar/editor/builtin/project-importer/core/studio/csd-importer.js:1:16930
at nextTask (/Applications/CocosCreator/Creator/2.3.4/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:4578:27)
at EventEmitter.p (/Applications/CocosCreator/Creator/2.3.4/CocosCreator.app/Contents/Resources/app.asar/editor/builtin/project-importer/main.js:1:550)
at Object.onceWrapper (events.js:282:20)
at EventEmitter.emit (events.js:194:13)
at EventEmitter.emit (domain.js:469:20)
at EventEmitter. (/Applications/CocosCreator/Creator/2.3.4/CocosCreator.app/Contents/Resources/app.asar/editor-framework/lib/main/ipc.js:1:3399)
at EventEmitter.emit (events.js:194:13)
at EventEmitter.emit (domain.js:469:20)
at WebContents. (/Applications/CocosCreator/Creator/2.3.4/CocosCreator.app/Contents/Resources/electron.asar/browser/api/web-contents.js:390:13)
at WebContents.emit (events.js:194:13)

导入公司项目,报错了 不再导入了,我看了creator里面好像打不开app.asar

@引擎组大大

12345678963258741

无人及自动顶

看起来是导入过程中死循环了,给个 demo 呗

csd太多导入creator报错.zip (2.6 MB)

这个导入会最后报错,类似这个报错吧,只不过我公司的项目会打断剩余的导入,很不方便,之前nodejs类似报错,记得好像是内存限制

我们负责这块的工程师休假了,过俩礼拜后回来,到时候再帮你看下

CocosCreator.exe --nologin --max_old_space_size=4096

看看这个有无帮助,默认1G内存变4G

请问一下,这个改好了吗

你好,该问题会在 2.4.1 或者 2.4.2上修复

麻烦问下如果没有升级版本的时候,用的1.8.x的版本还有这个问题,要怎么修改才能解决???

应该就没办法了

那就不能构建打包了呗?

这不是导入 studio 的问题吗?跟打包没关系

我是在编译构建安卓项目的时候出现这个问题的

试试 2.4.11,这个问题有修复了