uni-app HBUILDER 预览区一直崩溃

uni-app HBUILDER 预览区一直崩溃

示例代码:

之前也发过了,最近真的很频繁,经常写着写着,看着预览突然就崩了。 HBUILDER没崩溃,是预览区一直崩溃,崩溃后devTool都无法使用,必须关闭预览再打开预览。 以上是崩溃时的日志, 关键字: Request Timeout( 200 )!!! when: “textDocument/openHelp” 请问是什么原因导致的?MAC上一直没事,win上最近频发。

操作步骤:

就突然之间就这样了

预期结果:

不要这样

实际结果:

这样了

bug描述:

2021-12-29 14:05:16.262 [WARNING:] QProcess: Destroyed while process (“G:\HBuilderX\plugins\jre\bin\java.exe”) is still running. 2021-12-29 14:05:16.311 [WARNING:] uniapp compiled errorOccurred====== “进程已崩溃” 2021-12-29 14:28:21.739 [WARNING:] QLayout: Attempting to add QLayout “” to FuncDescFrame “FuncDescFrameBorder”, which already has a layout 2021-12-29 14:33:04.883 [WARNING:] Request Timeout( 200 )!!! when: “textDocument/openHelp” 2021-12-29 14:34:34.712 [WARNING:] Request Timeout( 200 )!!! when: “textDocument/openHelp” 2021-12-29 14:34:50.858 [WARNING:] QObject::setParent: Cannot set parent, new parent is in a different thread 2021-12-29 14:35:08.632 [WARNING:] Request Timeout( 200 )!!! when: “textDocument/openHelp” 2021-12-29 14:35:10.208 [WARNING:] Request Timeout( 200 )!!! when: “textDocument/openHelp” 2021-12-29 14:35:20.040 [WARNING:] Request Timeout( 200 )!!! when: “textDocument/openHelp” 2021-12-29 14:35:30.062 [WARNING:] QObject::setParent: Cannot set parent, new parent is in a different thread 2021-12-29 14:35:56.488 [WARNING:] QObject::setParent: Cannot set parent, new parent is in a different thread 2021-12-29 14:37:04 [LanguageServerProcess] Cannot recover from the syntax error 2021-12-29 14:37:04 [LanguageServerProcess] beaver.Parser$Exception: Cannot recover from the syntax error at beaver.Parser.recoverFromError(Parser.java:715) at io.dcloud.editor.js.parsing.JSParser.recoverFromError(JSParser.java:543) at beaver.Parser.parse(Parser.java:516) at beaver.Parser.parse(Parser.java:442) at io.dcloud.editor.js.parsing.JSParser.parse(JSParser.java:447) at io.dcloud.editor.js.parsing.JSParser.parse(JSParser.java:401) at io.dcloud.parsing.ParserPoolFactory.parse(ParserPoolFactory.java:75) at io.dcloud.index.core.AbstractRemoteFileIndexingParticipant.getAST(AbstractRemoteFileIndexingParticipant.java:128) at io.dcloud.editor.js.contentassist.index.JSFileIndexingParticipant.requestIndex(JSFileIndexingParticipant.java:1294) at io.dcloud.index.core.AbstractRemoteFileIndexingParticipant.offlineIndex(AbstractRemoteFileIndexingParticipant.java:100) at io.dcloud.index.core.AbstractRemoteFileIndexingParticipant.index(AbstractRemoteFileIndexingParticipant.java:93) at io.dcloud.index.core.IndexRequestJob.indexFileStores(IndexRequestJob.java:298) at io.dcloud.index.core.IndexUrisJob.run(IndexUrisJob.java:55) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) 2021-12-29 14:37:16.258 [WARNING:] QObject::setParent: Cannot set parent, new parent is in a different thread 2021-12-29 14:37:24.645 [WARNING:] Request Timeout( 200 )!!! when: “textDocument/openHelp” 2021-12-29 14:38:43.975 [WARNING:] Request Timeout( 200 )!!! when: “textDocument/openHelp” 2021-12-29 14:38:44.281 [WARNING:] QObject::setParent: Cannot set parent, new parent is in a different thread 2021-12-29 14:38:50.072 [WARNING:] Request Timeout( 200 )!!! when: “textDocument/openHelp” 2021-12-29 14:38:59.195 [WARNING:] QObject::setParent: Cannot set parent, new parent is in a different thread 2021-12-29 14:39:05.541 [WARNING:] QObject::setParent: Cannot set parent, new parent is in a different thread 2021-12-29 14:39:12.410 [WARNING:] Request Timeout( 200 )!!! when: “textDocument/openHelp” 2021-12-29 14:39:33.710 [WARNING:] QObject::setParent: Cannot set parent, new parent is in a different thread 2021-12-29 14:40:15.304 [WARNING:] Request Timeout( 200 )!!! when: “textDocument/openHelp” 2021-12-29 14:40:15.821 [WARNING:] Request Timeout( 200 )!!! when: “textDocument/openHelp” 2021-12-29 14:40:24.053 [WARNING:] Request Timeout( 200 )!!! when: “textDocument/openHelp”


更多关于uni-app HBUILDER 预览区一直崩溃的实战教程也可以访问 https://www.itying.com/category-93-b0.html

4 回复

应该是uni-app编译,进程崩溃了。
调大Node内存启动参数试试。(菜单【设置 - 运行设置】,uni-app运行设置)

更多关于uni-app HBUILDER 预览区一直崩溃的实战教程也可以访问 https://www.itying.com/category-93-b0.html


默認:2048 設置: 8192、4096 FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

設置4000,能正常啟動但也崩潰,記錄如下:

2021-12-29 15:52:07.695 [INFO:] node “G:/HBuilderX/plugins/node/node.exe” 2021-12-29 15:52:07.696 [INFO:] args ("–max-old-space-size=4000", “G:/HBuilderX/plugins/uniapp-cli/bin/uniapp-cli.js”) 2021-12-29 15:52:31.410 [WARNING:] Request Timeout( 200 )!!! when: “textDocument/openHelp”

回到顶部