Skip to content

fatal java error when opening file open dialog (with mouse and ctrl o) #11642

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
antonilol opened this issue Aug 2, 2021 · 4 comments
Closed
Labels
Java 9+ Related to porting the Arduino IDE to use Java version 9 or newer OS: Linux Specific to the Linux version of the Arduino IDE

Comments

@antonilol
Copy link
Contributor

when i try to open the file open dialog the ide freezes and crashes after 2-3 seconds after freezing.
the following is then printed in the terminal:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fc04c7710cc, pid=1626, tid=1735
#
# JRE version: Java(TM) SE Runtime Environment (16.0.1+9) (build 16.0.1+9-24)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (16.0.1+9-24, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C  0x00007fc04c7710cc
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h" (or dumping to /home/antoni/core.1626)
#
# An error report file with more information is saved as:
# /home/antoni/hs_err_pid1626.log
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
/usr/share/arduino/arduino: line 35:  1626 Aborted                 (core dumped) "$JAVA" "${JAVA_OPTIONS[@]}" processing.app.Base "$@"

@antonilol
Copy link
Contributor Author

hs_err_pid1626.log

@antonilol
Copy link
Contributor Author

antonilol commented Aug 2, 2021

i use arch btw

@antonilol
Copy link
Contributor Author

when i start it with java 8 it looks nicer and doest give me this crash
maybe something with java

@facchinm
Copy link
Member

facchinm commented Aug 2, 2021

Fellow archer 🙂
The problem is indeed JRE 16; the IDE has been validated only with JRE8 (the one we bundle) and it's known to be buggy on JRE9+ (may work to some extent and then crash during random operations).
My advice is to use the archlinux-java helper to set jre8 as default, so everything should work smoothly.

@facchinm facchinm closed this as completed Aug 2, 2021
@facchinm facchinm added Java 9+ Related to porting the Arduino IDE to use Java version 9 or newer OS: Linux Specific to the Linux version of the Arduino IDE labels Aug 2, 2021
A6GibKm added a commit to A6GibKm/cc.arduino.arduinoide that referenced this issue Aug 3, 2021
This is the only supported option for the IDE and crashes otherwise.

See arduino/Arduino#11642
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Java 9+ Related to porting the Arduino IDE to use Java version 9 or newer OS: Linux Specific to the Linux version of the Arduino IDE
Projects
None yet
Development

No branches or pull requests

2 participants