問題描述:Idea平時好好的,忽然就打開後掃描完畢後自動退出。網上說修改idea.exe.vmoptions文件的Xmx,仍是不行。java
後來根據http://www.pianshen.com/article/3971537327/提示完美解決windows
1.進入當前用戶的根目錄(好比我本地是:C:\Users\admin,通常是打開Cmd窗口顯示的默認目錄),查看日誌文件java_error_in_idea_XXXX.log(好比我本地文件爲:java_error_in_idea_3532.log),通常狀況下,日誌文件一開始會有「A fatal error」的提示信息,以下:mybatis
1 # 2 # A fatal error has been detected by the Java Runtime Environment: 3 # 4 # EXCEPTION_ILLEGAL_INSTRUCTION (0xc000001d) at pc=0x00007ffe54a146fa, pid=3532, tid=0x000000000000220c
5 # 6 # JRE version: OpenJDK Runtime Environment (8.0_202-b44) (build 1.8.0_202-release-1483-b44) 7 # Java VM: OpenJDK 64-Bit Server VM (25.202-b44 mixed mode windows-amd64 compressed oops) 8 # Problematic frame: 9 # C [mybatisplugin69638408677257723.tmp+0xa46fa] 10 # 11 # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows 12 # 13 # If you would like to submit a bug report, please visit: 14 # http://bugreport.java.com/bugreport/crash.jsp
15 # The crash happened outside the Java Virtual Machine in native code. 16 # See problematic frame for where to report the bug. 17 # 18
19 --------------- T H R E A D ---------------
2.根據提示,發現提示信息中有"Problematic frame.......mybatisplugin....."的信息,說明是mybatis plugin的問題致使的app
3.刪除該plugin tmp文件,進入根目錄下的.IntelliJIdeaXXX文件夾下的以下目錄(我本地爲:C:\Users\admin\.IntelliJIdea2019.1\config\plugins),刪除mybatis的文件夾,而後再啓動idea,問題消失jsp