You are not logged in.

#1 2015-09-27 07:10:19

Jake1055
Member
Registered: 2015-09-27
Posts: 2

[SOLVED] Problem with Java and Arduino IDE

I've been having a lot of issues with arduino lately.  When I execute it, the splash screen appears for a second, then disappears.

Running it in terminal, I see this.

[jake@arch ~]$ arduino
Picked up JAVA_TOOL_OPTIONS: 
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f1fe7f917e0, pid=3044, tid=139774953694976
#
# JRE version: Java(TM) SE Runtime Environment (8.0_51-b16) (build 1.8.0_51-b16)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.51-b03 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libpthread.so.0+0x127e0]  __lll_unlock_elision+0x30
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /tmp/hs_err_pid3044.log
#
# If you would like to submit a bug report, please visit:
#   http://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/bin/arduino: line 36:  3044 Aborted                 (core dumped) $JAVA -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel $SPLASH processing.app.Base --curdir "$CURDIR" "$@"

Here is the /tmp/hs_err_pid3044.log if you think it could be of use.

Upon googling this error, I found this solution.

Here is my arduino script before modification.

Here is my arduino script after modification.

Here is the result

[jake@arch arduino]$ ./arduino
Picked up JAVA_TOOL_OPTIONS: 
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f54241607e0, pid=30332, tid=139999300523776
#
# JRE version: Java(TM) SE Runtime Environment (8.0_51-b16) (build 1.8.0_51-b16)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.51-b03 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libpthread.so.0+0x127e0]  __lll_unlock_elision+0x30
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /tmp/hs_err_pid30332.log
#
# If you would like to submit a bug report, please visit:
#   http://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.
#
./arduino: line 31: 30332 Aborted                 (core dumped) java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel $SPLASH processing.app.Base --curdir $CURDIR "$@"

Here are my currently installed java environments.

[jake@arch ~]$ sudo archlinux-java status
Available Java environments:
  java-7-openjdk
  java-8-openjdk (default)

I looked at the Arch Wiki pages on arduino and Java.  Neither of them seemed to mention this problem.  I really am at a lost on how to fix this.

What do you guys think?

Last edited by Jake1055 (2015-09-27 22:09:06)

Offline

#2 2015-09-27 16:23:58

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: [SOLVED] Problem with Java and Arduino IDE

On my system:

ewaller@turing ~/corebird 1007 %sudo archlinux-java status
[sudo] password for ewaller: 
Available Java environments:
  java-7-openjdk
  java-8-jre/jre (default)
ewaller@turing ~/corebird 1008 %arduino
Picked up JAVA_TOOL_OPTIONS: 
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
ewaller@turing ~/corebird 1009 %pacman -Qi arduino
Name           : arduino
Version        : 1:1.6.5.r5-2
Description    : Arduino prototyping platform SDK
Architecture   : x86_64
URL            : http://arduino.cc/en/Main/Software
Licenses       : GPL  LGPL
Groups         : None
Provides       : None
Depends On     : gtk2  libusb-compat  java-runtime  desktop-file-utils  giflib  avrdude
Optional Deps  : None
Required By    : None
Optional For   : None
Conflicts With : None
Replaces       : None
Installed Size : 369.84 MiB
Packager       : Unknown Packager
Build Date     : Sat 19 Sep 2015 08:22:52 AM PDT
Install Date   : Sat 19 Sep 2015 09:08:01 AM PDT
Install Reason : Explicitly installed
Install Script : Yes
Validated By   : None

ewaller@turing ~/corebird 1010 %

Seems okay.


Edit:  Just a hunch..  Is yours an Intel processor.  Have you properly installed and configured the microcode update package?

Last edited by ewaller (2015-09-27 16:30:55)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2015-09-27 22:07:48

Jake1055
Member
Registered: 2015-09-27
Posts: 2

Re: [SOLVED] Problem with Java and Arduino IDE

Wow.

I am really an idiot.

This was the first time I tried using systemd-boot(relatively inexperienced with UEFI bootloaders).  I didn't read up on how to apply the microcode changes.  I just changed my bootloader to GRUB, which is probably for the best as I have multiple operating systems.

I ran this in an arch-chroot, and arduino works perfectly now.

[jake@arch ~]$ sudo pacman -S grub efibootmgf os-prober intel-ucode
[jake@arch ~]$ sudo grub-install --target=x86_64-efi --efi-directory=/boot/ --bootloader-id=grub --recheck
Installing for x86_64-efi platform.
Installation finished. No error reported.
[jake@arch ~]$ sudo grub-mkconfig -o /boot/grub/grub.cfg
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
Found fallback initramfs image: /boot/initramfs-linux-fallback.img
done

Thank you so much.  That fixed my problem.

Offline

Board footer

Powered by FluxBB