JVM crashing at random

Asked

Viewed 314 times

0

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fc501ddca87, pid=2944, tid=0x00007fc4c41ab700
#
# JRE version: Java(TM) SE Runtime Environment (8.0_201-b09) (build 1.8.0_201-b09)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.201-b09 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V  [libjvm.so+0x6cfa87]  jni_invoke_nonstatic(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*) [clone .constprop.109]+0x27
#
# 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 (0x00007fc4fc43f000):  JavaThread "JavaFX Application Thread" [_thread_in_vm, id=2974, stack(0x00007fc4c40ab000,0x00007fc4c41ac000)]

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

Every three runs of my software, two return this to me. I tried debugging to find where this is going, but I couldn’t find it. Any idea what might be causing this? I searched and found NOTHING. It could just be my computer?

I’ve tried to ulimit -c unlimited and it didn’t work.

I studied the behavior of the nuclei of the CPU and RAM during the execution of the software and both presented normal behaviors (they neither increased nor decreased, they remained as always).

I am working with FXML if it changes something, but no more framework.

Edit: I debugged much more code and saw that the crash occurs in this method within a Java class (Scene class.java):

    @Override
    public void keyEvent(KeyEvent keyEvent)
    {
        impl_processKeyEvent(keyEvent);
    }
  • I’ll take a guess, it may be JVM bugger. Has your PC suffered power outage or accidental shutdown lately? Maybe uninstall and reinstall JDK will solve.

  • Yes, it did! I was afraid of being something in my software, but it is very strange that it crashes randomly like this. Just uninstall the JDK will do? I’m thinking about doing a complete reinstallation of Java...

  • As far as I know reinstalling the JDK is "doing the complete reinstallation of Java" (including there the JRE, if it was not installed separately), but does there what is most complete.

  • I reinstalled JDK. At first, errors stopped. Now, I went to debug a code and it gave the SAME error again. He had stopped, it makes no sense...

  • The only tip I can give is to reinstall JDK, reinstall JRE’s (Java Runtime Environment) that are installed together, otherwise I don’t know how to help anymore.

  • All that’s left is to reinstall the Eclipse or Netbeans or the IDE you’re using. After that, reinstall the operating system...

  • I’m using the Intellij. The whole thing is that I searched a lot for some reason, something that said what it might be... but I think it’s better to format it, really. Thanks for the help!

Show 2 more comments

2 answers

2


That’s a BUG known from Java, which was mentioned only in Java 10.

This bug occurs when you try to manipulate a graphical element within some external context. In my case, it happened because of this excerpt:

Stage stage = (Stage) btnLogin.getScene().getWindow();
stage.close();

Usually this happens after a login screen, where you try to close the Stage (or Frame), causing the JVM to crash.

Solution to this:

Platform.runLater(() -> {
    Stage stage = (Stage) btnLogin.getScene().getWindow();
    stage.close();
});
  • Have official source that you know this bug?

  • Yes. I forgot to put, but I will update the answer.

0

Make sure your BIOS has CPU Virtualization enabled!

Some computers do not have the virtualization system, this causes problems in any application that needs to view your CPU.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.