【Cursor】报错:FATAL:v8_initializer.cc(630)] Error loading V8 startup snapshot file
-
最初是在使用
Cursor
时左下角出现一个类似更新失败的提示,没注意,后来界面非常卡。 -
接着重新打开
Cursor
,提示说原文件不存在要删除快捷方式。 -
再以管理员身份打开
Cursor
,报错:Failed to install Cursor update. Updates may fail due to anti-virus software and/or runaway processes. Please try restarting your machine before attempting to update again. Please read the log file for more information: C:\Users\USER\AppData\LocalTemp\cursor-inno-updater-1740572032.10g
大概意思可能防病毒软件的阻止或者软件进程失控,建议重新启动。
-
重启之后还是没有反应。
当前版本:版本: 0.46.5 (user setup) 提交: 1.96.2 日期: 9fa6e431b47f723d1bac24802102dd2fd8ea72b0 Electron: 2025-02-26T04:36:28.903Z ElectronBuildId: 32.2.6 Chromium: undefined Node.js: 128.0.6613.186 V8: 20.18.1 OS: 12.8.374.38-electron.0
-
到
Cursor
安装目录找debug.log
,查看报错信息,一堆:[0226/202059.323:FATAL:v8_initializer.cc(630)] Error loading V8 startup snapshot file
[0226/202059.418:FATAL:v8_initializer.cc(630)] Error loading V8 startup snapshot file
发现有个约开机时更改的文件夹_
-
网上没看到Cursor相关的报错,基本只有VSCode的。
在Stack Overflow有个类似的,也出现了_
文件夹,想着让修改C盘文件夹?
参考链接:
https://stackoverflow.com/questions/75341924/when-i-trying-to-open-vscode-by-code-command-in-window-11-then-getting-this-e“ I had the same issue here. I don´t know why, but after the latest VS
Code release, a folder was created in my VS Code folder
(C:\Users\XXX\AppData\Local\Programs\Microsoft VS Code) called “_”. I
copied everything from this folder and pasted it into the VS Code
folder and the error disappeared. Try this too and see if solves the
problem ”看到在VSCode有人复制文件夹的内容解决:
https://blog.csdn.net/aduzhe/article/details/144525665于是试着在安装位置运行了一下:“Cursor.exe”
[0226/212211.053:FATAL:v8_initializer.cc(630)] Error loading V8 startup snapshot file
一样的问题!
忽然意识到,之前修改C盘不是修改某个系统文件,而是直接在安装位置操作。至于
_
文件夹应该是某个Cursor版本的更新后的补充依赖包。tree “_”
_
|-- tools
|-- inno_updater.exe
|--v8_context_snapshot.bin
|--vk_swiftshader.dll
|--vk_swiftshader_icd.json
|--vulkan-1.dll
1 directory, 5 files这个
inno_updater.exe
是执行不起来了,没有什么用好像。
于是,在_
位置复制了所有文件并将其粘贴到Cursor安装文件夹中解决!测试一下看看有没有什么错误,应该没必要沙盒模式了。再次在命令行运行(好像不是这么用的,可能需要切换字符编码集utf-8,执行
chcp 65001
):"Cursor.exe" --verison
输出是(就看看,没什么实际含义):
警告: "verison"不在已知选项列表中,但仍传递给 Electron/Chromium
最后,正常运行!