9

It often crashes when I open Intellij Idea.

I have tried different Intellij Idea versions (2019.1, 2018.3).

I installed Oracle JDK (Java SE Development Kit 8u201).

My Os : macOs Mojave.

This is the one part of the crash logs : (it is too long to share all logs here. to see all logs : here paste bin )

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x000000011080b574, pid=4503, tid=0x000000000000a603
#
# JRE version: OpenJDK Runtime Environment (8.0_152-b28) (build 1.8.0_152-release-1343-b28)
# Java VM: OpenJDK 64-Bit Server VM (25.152-b28 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# V  [libjvm.dylib+0x406574]
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#

---------------  T H R E A D  ---------------

Current thread (0x00007ffd20821800):  JavaThread "C2 CompilerThread2" daemon [_thread_in_native, id=42499, stack(0x000070000522d000,0x000070000532d000)]

siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x000077fd22e98478

Registers:
RAX=0x00007ffd2932bcf0, RBX=0x00007ffd2932bcf0, RCX=0x000077fd22e98460, RDX=0x00007ffd21070c20
RSP=0x00007000053298c0, RBP=0x0000700005329930, RSI=0x00007ffd2932bcf0, RDI=0x000070000532a6d0
R8 =0x0000000000000000, R9 =0x0000000000000001, R10=0x0000000000000000, R11=0xffffffffff589ff0
R12=0x00007ffd223205b0, R13=0x00007ffd23dd12c8, R14=0x0000000000000000, R15=0x00007ffd2932bcf0
RIP=0x000000011080b574, EFLAGS=0x0000000000010246, ERR=0x0000000000000004
  TRAPNO=0x000000000000000e

Top of Stack: (sp=0x00007000053298c0)
0x00007000053298c0:   00007ffd2932bf48 00007ffd2932bcf0
0x00007000053298d0:   0000700005329930 000000011055a376
0x00007000053298e0:   0000000000000001 00007ffd2932bcf0
0x00007000053298f0:   0000700005329930 000070000532a6d0
0x0000700005329900:   000070000532a6d0 00007ffd2932bcf0
0x0000700005329910:   00007ffd223205b0 00007ffd23dd12c8
0x0000700005329920:   0000000000000000 00007ffd2932bcf0

I could not find what the reason is. Can somebody help me?

Pavel Smirnov
  • 4,611
  • 3
  • 18
  • 28
sam
  • 1,073
  • 4
  • 13
  • 27
  • Try using IntelliJ IDEA + JBR11 instead of 8: http://www.jetbrains.com/idea/download/index.html. If the issue persists, check your system with http://www.memtest86.com/, it could be the hardware issue (faulty RAM). – CrazyCoder Apr 11 '19 at 21:59
  • did you try "try "ulimit -c unlimited" before starting Java again"? how much free memory do you have when launching intellij? – Amin Heydari Alashti Apr 21 '19 at 04:02
  • Is java working at all? `java -version` or other java app? Also, as suggested elsewhere, try to use a newer java version (9, 10). – LMC Apr 22 '19 at 02:52
  • The JRE you downloaded appears to be a different JRE than your exception is coming from. – matt Apr 23 '19 at 11:07
  • It should crash man, You have installed oracle and it's showing openjdk in fatal error. – Yanish Pradhananga Apr 23 '19 at 12:36
  • are u running on VM ? – Du-Lacoste Apr 25 '19 at 05:32
  • 1
    @matt that is as expected, IntelliJ runs on its own JRE rather than the system JRE (for running IntelliJ only, not for running/compiling your projects). – jwenting Apr 25 '19 at 06:27
  • @jwenting that is why I am asking. You can start intellij using a different jvm. I am not sure how to do it on mac, but maybe op already is. – matt Apr 25 '19 at 07:57
  • 3
    This looks more like an issue for Jetbrains support than for SO... Suggest you look there, sam, they're very good at responding on their own support channels – jwenting Apr 25 '19 at 08:10

4 Answers4

1

Intellij runs on OpenJDK by default, and the reason for your problem may be that the version of OpenJDK used by intellij has a conflict with the Oracle JDK. My idea is to change the intellij default JDK to Oracle JDK. And I find the steps on intellij official website.

  • Firstly, start your intellij and ignore the Java crash.
  • Secondly, press Ctrl + Shift + A and type Switch Boot JDK.
  • Thirdly, double click the "Switch Boot JDK" item bar and choose your Oracle JDK installation directory.
  • Finally, restart your intellij.

search bar

Switch Boot JDK

Jabongg
  • 2,099
  • 2
  • 15
  • 32
climy
  • 23
  • 6
0

It could be a memory issue if it sometimes crashes. Have you tried to adjust the memory options in idea64.vmoptions? https://intellij-support.jetbrains.com/hc/en-us/articles/206544869

shalama
  • 1,133
  • 1
  • 11
  • 25
0

Did you try ulimit -a and check core file size in result? If core file size is 0 mean that you can't create core dumps.

then you can try ulimit -c unlimited to set that is unlimited

You can see more information about ulimit in this link Setting limits with ulimit

quy_tm
  • 1
  • 1
0

Please try removing -Xmx750m from JVM Arguments. I am guessing it might be due to heap size.

Note: By default, -Xmx takes 25% of available memory.

Mohamed Anees A
  • 4,119
  • 1
  • 22
  • 35