Crashing occasionally when connecting to remote debugger

Answered

Ive been seeing Intellij crash almost 50% of the times I connect to a remote debugger. I also just had it crash when I tried to execute a maven compile task. 

My vmoptions are as follows:

-Xms2000m
-Xmx8000m
-XX:MaxPermSize=350m
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-XX:+HeapDumpOnOutOfMemoryError
-Dawt.useSystemAAFontSettings=lcd
-Dswing.aatext=true
-XX:NewRatio=8
-Dsun.java2d.pmoffscreen=false
-Dawt.useSystemAAFontSettings=on
-Dswing.aatext=true
-Dsun.java2d.xrender=true

The Intellij log has this:

#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f23af819d59, pid=16958, tid=0x00007f232013f700
#
# JRE version: OpenJDK Runtime Environment (8.0_76-b216) (build 1.8.0_76-release-b216)
# Java VM: OpenJDK 64-Bit Server VM (25.76-b216 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libc.so.6+0x14fd59]

And some more details from the crash log: Happy to send the whole file if needed, but though this may help/

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J 16720 sun.font.FreetypeFontScaler.getGlyphImageNative(Lsun/font/Font2D;JJI)J (0 bytes) @ 0x00007f239b34e54c [0x00007f239b34e500+0x4c]
J 11198 C1 sun.font.FreetypeFontScaler.getGlyphImage(JI)J (39 bytes) @ 0x00007f239af55434 [0x00007f239af54e20+0x614]
J 30102 C2 sun.font.FileFontStrike.getGlyphImagePtr(I)J (126 bytes) @ 0x00007f239ae2c528 [0x00007f239ae2c420+0x108]
J 15478 C1 sun.font.FileFontStrike.getGlyphAdvance(IZ)F (396 bytes) @ 0x00007f239baffc64 [0x00007f239baff740+0x524]
J 16682 C1 sun.font.FileFontStrike.getCodePointAdvance(I)F (13 bytes) @ 0x00007f239ac1c9fc [0x00007f239ac1c860+0x19c]
J 47989 C2 com.intellij.openapi.editor.impl.FontInfo.charWidth(C)I (14 bytes) @ 0x00007f23a2981bec [0x00007f23a2981ae0+0x10c]
j com.intellij.openapi.editor.impl.DefaultEditorTextRepresentationHelper.a(C)I+53
j com.intellij.openapi.editor.impl.DefaultEditorTextRepresentationHelper.charWidth(CI)I+20
j com.intellij.openapi.editor.impl.softwrap.mapping.SoftWrapApplianceManager.a(C)I+50
j com.intellij.openapi.editor.impl.softwrap.mapping.SoftWrapApplianceManager.a(IC)I+85
j com.intellij.openapi.editor.impl.softwrap.mapping.SoftWrapApplianceManager.d()Z+358
j com.intellij.openapi.editor.impl.softwrap.mapping.SoftWrapApplianceManager.b(Lcom/intellij/openapi/editor/impl/softwrap/mapping/IncrementalCacheUpdateEvent;)V+432
j com.intellij.openapi.editor.impl.softwrap.mapping.SoftWrapApplianceManager.c(Lcom/intellij/openapi/editor/impl/softwrap/mapping/IncrementalCacheUpdateEvent;)V+156
j com.intellij.openapi.editor.impl.softwrap.mapping.SoftWrapApplianceManager.recalculate(Lcom/intellij/openapi/editor/impl/softwrap/mapping/IncrementalCacheUpdateEvent;)V+25
j com.intellij.openapi.editor.impl.softwrap.mapping.SoftWrapApplianceManager.documentChanged(Lcom/intellij/openapi/editor/event/DocumentEvent;)V+36
J 57996 C1 com.intellij.openapi.editor.impl.SoftWrapModelImpl.documentChanged(Lcom/intellij/openapi/editor/event/DocumentEvent;)V (32 bytes) @ 0x00007f239ae00cf4 [0x00007f239ae00ba0+0x154]
J 51838 C2 com.intellij.openapi.editor.impl.DocumentImpl.a(Lcom/intellij/openapi/editor/event/DocumentEvent;JLcom/intellij/util/text/ImmutableText;)V (244 bytes) @ 0x00007f239b5d452c [0x00007f239b5d4300+0x22c]
J 48519 C1 com.intellij.openapi.editor.impl.DocumentImpl.a(Lcom/intellij/util/text/ImmutableText;ILjava/lang/CharSequence;Ljava/lang/CharSequence;ZJII)V (133 bytes) @ 0x00007f239dbd768c [0x00007f239dbd67a0+0xeec]
j com.intellij.openapi.editor.impl.DocumentImpl.insertString(ILjava/lang/CharSequence;)V+269
j com.intellij.execution.impl.ConsoleViewImpl.a(ZLjava/lang/String;Lcom/intellij/openapi/editor/Document;Ljava/util/Collection;)V+153
j com.intellij.execution.impl.ConsoleViewImpl$$Lambda$1673.run()V+20
J 48536 C1 com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(Lcom/intellij/openapi/project/Project;Ljava/lang/Runnable;Ljava/lang/String;Ljava/lang/Object;Lcom/intellij/openapi/command/UndoConfirmationPolicy;Lcom/intellij/openapi/editor/Document;)V (300 bytes) @ 0x00007f23a1e78b14 [0x00007f23a1e75920+0x31f4]
j com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(Lcom/intellij/openapi/project/Project;Ljava/lang/Runnable;Ljava/lang/String;Ljava/lang/Object;Lcom/intellij/openapi/command/UndoConfirmationPolicy;)V+92
j com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(Lcom/intellij/openapi/project/Project;Ljava/lang/Runnable;Ljava/lang/String;Ljava/lang/Object;)V+50
j com.intellij.execution.impl.ConsoleViewImpl.c(Z)V+381
j com.intellij.execution.impl.ConsoleViewImpl.flushDeferredText()V+2
j com.intellij.execution.impl.ConsoleViewImpl$MyFlushRunnable.doRun()V+4
j com.intellij.execution.impl.ConsoleViewImpl$MyFlushRunnable.run()V+42
J 48335 C2 com.intellij.util.Alarm$Request.run()V (108 bytes) @ 0x00007f23a0805b14 [0x00007f23a0805860+0x2b4]
J 25902 C2 com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run()V (101 bytes) @ 0x00007f239df341fc [0x00007f239df33f20+0x2dc]
J 16858 C2 java.awt.EventQueue$3.run()Ljava/lang/Object; (5 bytes) @ 0x00007f239be882a8 [0x00007f239be881a0+0x108]
v ~StubRoutines::call_stub
J 8216 java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object; (0 bytes) @ 0x00007f23993d7523 [0x00007f23993d74c0+0x63]
J 35613 C2 com.intellij.ide.IdeEventQueue.a(Ljava/awt/AWTEvent;)V (52 bytes) @ 0x00007f239a78783c [0x00007f239a7870e0+0x75c]
J 44350 C2 com.intellij.ide.IdeEventQueue._dispatchEvent(Ljava/awt/AWTEvent;Z)V (924 bytes) @ 0x00007f239d8454b4 [0x00007f239d843d80+0x1734]
J 34846 C2 com.intellij.ide.IdeEventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V (555 bytes) @ 0x00007f239fd0e3f8 [0x00007f239fd0dae0+0x918]
J 54952 C2 java.awt.EventDispatchThread.pumpOneEventForFilters(I)V (295 bytes) @ 0x00007f23a31b561c [0x00007f23a31b51e0+0x43c]
J 53416% C2 java.awt.EventDispatchThread.pumpEventsForFilter(ILjava/awt/Conditional;Ljava/awt/EventFilter;)V (47 bytes) @ 0x00007f239a8f7e3c [0x00007f239a8f7d40+0xfc]
j java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+11
j java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
j java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
j java.awt.EventDispatchThread.run()V+9
v ~StubRoutines::call_stub

 

Any help on what I can do to stop it from crash would be great! 

Thanks in advance!

4 comments
Comment actions Permalink

Thanks Serge, it seems like Im using the bundled version already. I am going to try an Oracle 1.8_72 version I have locally.

IntelliJ IDEA 2016.2.2
Build #IU-162.1628.40, built on August 16, 2016
Licensed to Salesforce.com / Brian McNamara
You have perpetual fallback license for this version
Subscription is active until September 2, 2018
JRE: 1.8.0_76-release-b216 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

0
Comment actions Permalink

You may also try a later IDEA version from http://www.jetbrains.com/idea/download/index.html, it should have a more recent bundled Java version.

0
Comment actions Permalink

Yep that was it, seems the bundled version was causing problems. Once I moved to another local version I had, seems to be working fine.

0

Please sign in to leave a comment.