背景
intelliJ idea 非正常关闭,再次启动时报错,编译class也报相应的错,清空idea缓存也无法生效。
- intelliJ idea 版本:2022.2
- jdk:open jdk jdk-17.0.2
报错信息
java.lang.VerifyError: Expecting a stackmap frame at branch target 482
Exception Details:
Location:
org/jetbrains/jps/incremental/storage/OneToManyPathsMapping.$$$reportNull$$$0(I)V @405: tableswitch
Reason:
Expected stackmap frame at this location.
Bytecode:
0000000: 1aaa 0000 0000 004f 0000 0000 0000 000f
0000010: 0000 004f 0000 004f 0000 004f 0000 004f
0000020: 0000 004f 0000 004f 0000 004f 0000 004f
0000030: 0000 004f 0000 004f 0000 0054 0000 004f
0000040: 0000 004f 0000 004f 0000 0054 0000 004f
0000050: 12d8 a700 0812 daa7 0003 1aaa 0000 004d
0000060: 0000 0000 0000 000f 0000 004d 0000 004d
0000070: 0000 004d 0000 004d 0000 004d 0000 004d
0000080: 0000 004d 0000 004d 0000 004d 0000 004d
0000090: 0000 0051 0000 004d 0000 004d 0000 004d
00000a0: 0000 0051 0000 004d 06a7 0007 05a7 0003
00000b0: bd00 dc1a aa00 0000 0000 0050 0000 0000
00000c0: 0000 000f 0000 0050 0000 0058 0000 0050
00000d0: 0000 0060 0000 0050 0000 0060 0000 0050
00000e0: 0000 0058 0000 0050 0000 0050 0000 0068
00000f0: 0000 0050 0000 0050 0000 0060 0000 0068
0000100: 0000 0070 5903 12dd 53a7 0023 5903 12de
0000110: 53a7 001b 5903 12df 53a7 0013 5903 12e0
0000120: 53a7 000b 5903 12e1 53a7 0003 1aaa 0000
0000130: 0000 004f 0000 0000 0000 000f 0000 004f
0000140: 0000 004f 0000 004f 0000 004f 0000 004f
0000150: 0000 004f 0000 004f 0000 004f 0000 004f
0000160: 0000 004f 0000 0057 0000 004f 0000 004f
0000170: 0000 004f 0000 005f 0000 004f 5904 12e0
0000180: 53a7 0013 5904 12e2 53a7 000b 5904 12e3
0000190: 53a7 0003 1aaa 0000 0000 004f 0000 0000
00001a0: 0000 000f 0000 004f 0000 004f 0000 004d
00001b0: 0000 004f 0000 0057 0000 0057 0000 0057
00001c0: 0000 0057 0000 005f 0000 0067 0000 006f
00001d0: 0000 0072 0000 007a 0000 007a 0000 006f
00001e0: 0000 0082 5905 12e4 53a7 0036 5905 12e5
00001f0: 53a7 002e 5905 12e6 53a7 0026 5905 12e2
0000200: 53a7 001e a700 1b59 0512 e753 a700 1359
0000210: 0512 e853 a700 0b59 0512 e953 a700 03b8
0000220: 00ed 1aaa 0000 004d 0000 0000 0000 000f
0000230: 0000 004d 0000 004d 0000 004d 0000 004d
0000240: 0000 004d 0000 004d 0000 004d 0000 004d
0000250: 0000 004d 0000 004d 0000 0058 0000 004d
0000260: 0000 004d 0000 004d 0000 0058 0000 004d
0000270: bb00 ef5a 5fb7 00f1 a700 0ebb 00f3 5a5f
0000280: b700 f4a7 0003 bf
Stackmap Table:
same_frame_extended(@80)
same_frame(@85)
same_locals_1_stack_item_frame(@90,Object[#33])
same_locals_1_stack_item_extended(@168,Object[#33])
same_locals_1_stack_item_frame(@172,Object[#33])
full_frame(@176,{Integer},{Object[#33],Integer})
full_frame(@260,{Integer},{Object[#33],Object[#246]})
full_frame(@268,{Integer},{Object[#33],Object[#246]})
full_frame(@276,{Integer},{Object[#33],Object[#246]})
full_frame(@284,{Integer},{Object[#33],Object[#246]})
full_frame(@292,{Integer},{Object[#33],Object[#246]})
full_frame(@300,{Integer},{Object[#33],Object[#246]})
full_frame(@380,{Integer},{Object[#33],Object[#246]})
full_frame(@388,{Integer},{Object[#33],Object[#246]})
full_frame(@396,{Integer},{Object[#33],Object[#246]})
full_frame(@404,{Integer},{Object[#33],Object[#246]})
full_frame(@484,{Integer},{Object[#33],Object[#246]})
full_frame(@492,{Integer},{Object[#33],Object[#246]})
full_frame(@500,{Integer},{Object[#33],Object[#246]})
full_frame(@508,{Integer},{Object[#33],Object[#246]})
full_frame(@516,{Integer},{Object[#33],Object[#246]})
full_frame(@519,{Integer},{Object[#33],Object[#246]})
full_frame(@527,{Integer},{Object[#33],Object[#246]})
full_frame(@535,{Integer},{Object[#33],Object[#246]})
full_frame(@543,{Integer},{Object[#33],Object[#246]})
same_locals_1_stack_item_extended(@624,Object[#33])
same_locals_1_stack_item_frame(@635,Object[#33])
same_locals_1_stack_item_frame(@646,Object[#248])
at org.jetbrains.jps.incremental.storage.BuildDataManager.<init>(BuildDataManager.java:82)
at org.jetbrains.jps.cmdline.BuildRunner.load(BuildRunner.java:83)
at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:333)
at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:179)
at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler.lambda$channelRead0$0(BuildMain.java:218)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
解决办法
Build, Execution, Deployment > Compiler页面的“Shared build process WM options:” 添加 “-hoverify”
参考文档:
https://blog.csdn.net/zhaoyf7746/article/details/79410421