Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

IDE crashes for "Save"/"Save as..." on Ubuntu 14.10 with global menus (Jayatana)

Open neopostmodern opened this issue 11 years ago • 12 comments

Setup: Ubuntu 14.10 x64, Java 1.7.0_80

I tried the versions from the

  • Ubuntu Repositories
  • latest stable from website
  • nightly from website

...and all have the same behavior when trying to "Save" or "Save as...":

$ ./arduino 
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar 
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f68ec362324, pid=25817, tid=140085852890880
#
# JRE version: Java(TM) SE Runtime Environment (7.0_80-b15) (build 1.7.0_80-b15)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.80-b11 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libpthread.so.0+0xa324]  pthread_mutex_lock+0x4
#
# 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:
# /home/[...]/Downloads/arduino-nightly/hs_err_pid25817.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#
./arduino: line 29: 25817 Aborted                 (core dumped) java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel $SPLASH processing.app.Base --curdir $CURDIR "$@"

Unsetting my JAVA_TOOL_OPTIONS (thus loosing the global menus) fixes this.

Any chance this could be fixed on the Arduino side? (Other Java programs work fine with Jayatana integrations).

neopostmodern avatar Apr 23 '15 13:04 neopostmodern

Never heard of jayatana but it looks definitely the cause of your issue. What's your problem with global menus?

ffissore avatar Apr 23 '15 13:04 ffissore

Java Swing Jayatana "is a project that brings Ubuntu global menu (AppMenu) and HUD support for Java Swing applications." (says webupd8.org)

It's obviously not strictly necessary but buys me the convenience of the HUD (searchable menus) and of course a nicer design.

I'm not sure this is on the Arduino side, but - as stated before - all other Java software I use runs just smooth.

neopostmodern avatar Apr 23 '15 15:04 neopostmodern

@neopostmodern Ubuntu 15.04 will soon be released - ubuntu.com still links to 14.10, but the release notes are available: https://wiki.ubuntu.com/VividVervet/ReleaseNotes Could you test whether the problem persists in 15.04? Since Ubuntu 14.10 is no LTS release, support will be ended soon.

mschlenker avatar Apr 23 '15 15:04 mschlenker

jayatana looks interesting and a specific issue requesting its support would be great: please create such issue. I'm going to close this however, since the problem you're experiencing is not related to the IDE but rather to something you did with it that we don't currently support

ffissore avatar Apr 24 '15 07:04 ffissore

I haven't run the update yet. I'll create the specific jAyatana request once I have checked out 15.04

neopostmodern avatar Apr 24 '15 09:04 neopostmodern

Just FYI, you can start the Arduino IDE with following command to disable jayatanaag without uninstalling it

JAVA_TOOL_OPTIONS="" arduino

DanielWeigl avatar May 01 '15 15:05 DanielWeigl

A feature request is ok for future releases. With Ubuntu 15.04, it doesn't work. Right now we needed a fix. DanielWeigl's solution works with all IDE versions and Ubunto 15.04. I edit the shell script.

SurferTim avatar May 07 '15 17:05 SurferTim

Wrapping the shell script is probably the best solution.

Even canonical is giving up on global menus. Don't know about HUD, thus. But Jayatana seems to be mostly abandonned. So why try riding a dead horse?

mschlenker avatar May 07 '15 17:05 mschlenker

If you have more information on this, let me know, but from what I know they just promoted jayatana: http://www.webupd8.org/2015/01/ubuntu-1504-might-get-global-menu-and.html

And how and where is canonical giving up on global menus?

neopostmodern avatar May 07 '15 18:05 neopostmodern

The solution presented on the arduino forums worked for me. http://forum.arduino.cc/index.php?topic=318520.0 is the link to the topic. You do lose the menus though

bashterm avatar Jun 03 '15 01:06 bashterm

Hello! I don't find any place to ask this :S The thing is that I'm using Ubuntu Vivid right now and the only software I have mandatory to use for work (Cafetran, a java app) is not working. It's weird cause it works on every other distros and Ubuntu flavours but just with Unity It crashes everytime the program opens the "java file manager" to pick a file to work with... Do you have any idea why this is happening?

victorparragarcia avatar Jun 21 '15 17:06 victorparragarcia

Ask cafetran support

ffissore avatar Jun 22 '15 07:06 ffissore