Blog|Database|How To|Linux

SQL Developer Crash on Fedora 20

SQL Developer Crash on Fedora 20

I ran into a painful issue on Fedora 20 with SQL Developer.  Basically every time it was launched via the shortcut it would go through loading, and then disappear.

Manual Invocation of SQL Developer

When launching it via the script itself it gives us a little more information.

$ /opt/sqldeveloper/</p>

<p>Oracle SQL Developer<br />

Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.</p>


<p>LOAD TIME : 279#<br />

# A fatal error has been detected by the Java Runtime Environment:<br />

#<br />

# SIGSEGV (0xb) at pc=0x00000038a1e64910, pid=12726, tid=140449865832192<br />

#<br />

# JRE version: Java(TM) SE Runtime Environment (7.0_40-b43) (build 1.7.0_40-b43)<br />

# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.0-b56 mixed mode linux-amd64 compressed oops)<br />

# Problematic frame:<br />

# C 0x00000038a1e64910<br />

#<br />

# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try &quot;ulimit -c unlimited&quot; before starting Java again<br />

#<br />

# An error report file with more information is saved as:<br />

# /opt/sqldeveloper/sqldeveloper/bin/hs_err_pid12726.log<br />

[thread 140449881597696 also had an error]<br />

#<br />

# If you would like to submit a bug report, please visit:<br />

#<br />

#<br />

/opt/sqldeveloper/sqldeveloper/bin/../../ide/bin/ line 611: 12726 Aborted (core dumped) ${JAVA} &quot;${APP_VM_OPTS[@]}&quot; ${APP_ENV_VARS} -classpath ${APP_CLASSPATH} ${APP_MAIN_CLASS} &quot;${APP_APP_OPTS[@]}&quot;

I also noticed, that while executing as root it worked.  However that clearly isn’t the “solution”

Fixing the Problem

Here we need to remove the GNOME_DESKTOP_SESSION_ID as part of the script.

$ cat /opt/sqldeveloper/<br />

#!/bin/bash<br />


cd &quot;`dirname $0`&quot;/sqldeveloper/bin &amp;&amp; bash sqldeveloper $*

Once this was completed, SQL Developer launched clean for me.

News & Insights