IntelliJ 2020.1.2: Consistently crashes on macOS Catalina after long laptop sleep
已回答
For the last week or so, IntelliJ 2020.1.2 consistently crashes each night/morning on my MacBook Pro 2018.
- I'm up-to-date on both macOS (10.15.5) and IntelliJ (2020.1.2 Ultimate, Build #IU-201.7846.76).
- The crash is always in "22 Java: Java2D Queue Flusher".
- I'm running IntelliJ with a Jetbrains OpenJDK 11: Runtime version: 11.0.7+10-b765.53 x86_64, VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
- The crash also happened with an earlier version of the Jetbrains OpenJDK 11.
- IntelliJ doesn't seem to crash throughout the day when my Mac sleeps for an hour or two at most. But it is crashed nearly every morning when the Mac wakes up after 6-8 hours.
I've been using IntelliJ daily for years now. These crashes only started recently. I suppose it could be caused by either the latest macOS version or the latest IntelliJ one.
Does anybody know how to fix this?
Here are the details on the crashed thread from the macOS log:
Thread 22 Crashed:: Java: Java2D Queue Flusher
0 libsystem_kernel.dylib 0x00007fff6b44d33a __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff6b509e60 pthread_kill + 430
2 libsystem_c.dylib 0x00007fff6b3d4808 abort + 120
3 libGPUSupportMercury.dylib 0x00007fff527250a5 gpusGenerateCrashLog.cold.1 + 95
4 libGPUSupportMercury.dylib 0x00007fff5271c18f gpusGenerateCrashLog + 89
5 com.apple.AMDRadeonX4000GLDriver 0x00000001198f4241 gpusKillClientExt + 9
6 libGPUSupportMercury.dylib 0x00007fff5271d55b gpusSubmitDataBuffers + 164
7 com.apple.AMDRadeonX4000GLDriver 0x00000001198cedc7 glrATI_Hwl_SubmitPacketsWithToken + 91
8 com.apple.AMDRadeonX4000GLDriver 0x00000001198fb594 glrWriteTextureData + 3080
9 GLEngine 0x00007fff3be292f1 glTexSubImage2D_Exec + 1557
10 libGL.dylib 0x00007fff3b1b52ae glTexSubImage2D + 55
11 libawt_lwawt.dylib 0x0000000116a28e8a OGLVertexCache_AddMaskQuad + 249
12 libawt_lwawt.dylib 0x0000000116a232a1 OGLMaskFill_MaskFill + 230
13 libawt_lwawt.dylib 0x0000000116a249d3 Java_sun_java2d_opengl_OGLRenderQueue_flushBuffer + 1947
14 ??? 0x0000000122cc177d 0 + 4878767997
15 ??? 0x0000000124192c90 0 + 4900596880
Here's more on my configuration:
IntelliJ memory: 2048 MB
Custom properties:
ide.mac.alt.mnemonic.without.ctrl=false
apple.laf.useScreenMenuBar=true
Custom VM options:
-Xms1024m
-Xmx2048m
-XX:ReservedCodeCacheSize=240m
-XX:+UseCompressedOops
-Dfile.encoding=UTF-8
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-Djdk.http.auth.tunneling.disabledSchemes=""
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-Xverify:none
-XX:ErrorFile=$USER_HOME/java_error_in_idea_%p.log
-XX:HeapDumpPath=$USER_HOME/java_error_in_idea.hprof
请先登录再写评论。
Seems similar to https://youtrack.jetbrains.com/issue/JBR-1501
May you describe the project you are working on? Which language is in use, how many files?
Do you have a possibility to check if this is reproduced with a sample "hello world!" project?
The only open project is a Gradle Spring Boot project with Java 11 and an Angular app inside. I've worked with this project since February, but the crashes only showed up about a week ago. Both Gradle and Java last changed maybe two or three weeks ago.
What I'll do tonight is that I create a similar, sample Gradle Spring Boot project with Java 11. I'll then have only this sample project open and see if IntelliJ crashes with it, too.
Follow this thread for updates: https://youtrack.jetbrains.com/issue/JBR-2474
We are working on finding the root cause.
Just my luck:
I'll try again tonight.
Tonight it worked - IntelliJ crashed with sample project. I logged the details in the issue.
I discovered this post while researching this similar GPU crash in Safari:
Please update macOS to 10.15.6 where the issue has been fixed.
IntelliJ keeps crashing even after 10.15.6 updates. The IntelliJ Ultimate doesn't open any window after it starts!!!!
Replied to you other post, please report to YouTrack with the crash dumps attached.
I have the same problem and seriously dampens my productivity. Started to happen after a MacOS update. Will move on to some other simpler IDE until this is not resolved.
PyCharm 2020.2
@...This crash has been resolved in macOS 10.15.6 update. Please raise a new issue at https://youtrack.jetbrains.com/issues/IDEA, and attach crash dumps along with the information about your system environment.