You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

IntelliJ启动时冻结:org.h2.mvstore.MVStoreException文件块损坏

IDEA启动卡顿无法进入,H2数据库文件损坏相关解决办法

问题详情

启动IDEA时卡在启动界面,已尝试重启软件、重新安装、删除缓存等操作,问题未解决。日志关键报错如下:

2023-06-29 10:47:42,492 [   2337] SEVERE - #c.i.o.a.i.FlushQueue - File corrupted in chunk 29, expected page length 4..384, got 11336 [2.2.219/6]
org.h2.mvstore.MVStoreException: File corrupted in chunk 29, expected page length 4..384, got 11336 [2.2.219/6]
    at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
    at org.h2.mvstore.Page.read(Page.java:590)

该问题已在JetBrains官方问题平台记录,但现有方案无效,寻求可行解决办法。

针对性解决方案

  • 删除损坏的H2数据库文件:
    定位IDEA配置目录下的database文件夹,删除其中所有以.mv.db或.h2.db结尾的文件,不同系统路径参考:
    • Windows:C:\Users\<你的用户名>\.IntelliJIdea<版本号>\system\database
    • macOS:~/Library/Application Support/JetBrains/IntelliJIdea<版本号>/database
    • Linux:~/.IntelliJIdea<版本号>/system/database
  • 强制重置IDEA配置:
    通过命令行启动IDEA并执行重置:
    # Windows
    idea.exe --reset
    # macOS/Linux
    ./idea.sh --reset
    
  • 替换H2驱动版本:
    进入IDEA安装目录的lib文件夹,找到h2-2.2.219.jar(对应报错版本),替换为稳定版H2驱动(如2.2.220或2.1.214),替换后重启IDEA。

内容的提问来源于stack exchange,提问作者R.A

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.17 11:37:12