[SOLVED] JVM MAC OSX - crash when adding a light to the scenegraph

Hi,

I have a problem when I try to run a basic test case on my mac (OS X El Capitan)

public void simpleInitApp() {
    Vector3i position = new Vector3i(0, 0, 0);
    ColorRGBA color = ColorRGBA.Green;
    
    Tile tile = new Tile(color, position);
    Material material = assetManager.loadMaterial("Materials/tile.j3m");
    tile.setMaterial(material);
    
    rootNode.attachChild(tile);
    
    DirectionalLight sun = new DirectionalLight();
    sun.setColor(ColorRGBA.White);
    sun.setDirection(new Vector3f(-1, -1, -1).normalizeLocal());
    
    AmbientLight ambientLight = new AmbientLight();
    ambientLight.setColor(ColorRGBA.White.multLocal(0.2f));
    
    rootNode.addLight(sun);
    rootNode.addLight(ambientLight);
}

As soon as I remove the two last lines (adding the lights), the app runs fine. It’s the same for both lights, as soon as I add one of them to the scenegraph, the JVM crashes.

Stacktrace:

okt 23, 2015 2:24:29 PM com.jme3.system.JmeDesktopSystem initialize
INFO: Running on jMonkeyEngine 3.0.10
okt 23, 2015 2:24:29 PM com.jme3.system.Natives extractNativeLibs
INFO: Extraction Directory: /Users/remy/projects/LostInTheStars
okt 23, 2015 2:24:29 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Lwjgl 2.9.0 context running on thread LWJGL Renderer Thread
okt 23, 2015 2:24:29 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Adapter: null
okt 23, 2015 2:24:29 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Driver Version: null
okt 23, 2015 2:24:29 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Vendor: Intel Inc.
okt 23, 2015 2:24:29 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: OpenGL Version: 2.1 INTEL-10.10.18
okt 23, 2015 2:24:29 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Renderer: Intel HD Graphics 5000 OpenGL Engine
okt 23, 2015 2:24:29 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: GLSL Ver: 1.20
okt 23, 2015 2:24:29 PM com.jme3.asset.AssetConfig loadText
WARNING: Cannot find loader com.jme3.scene.plugins.blender.BlenderModelLoader
2015-10-23 14:24:30.046 java[2268:243592] 14:24:30.046 WARNING:  140: This application, or a library it uses, is using the deprecated Carbon Component Manager for hosting Audio Units. Support for this will be removed in a future release. Also, this makes the host incompatible with version 3 audio units. Please transition to the API's in AudioComponent.h.
okt 23, 2015 2:24:30 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio Device: OpenAL Soft
okt 23, 2015 2:24:30 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio Vendor: OpenAL Community
okt 23, 2015 2:24:30 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio Renderer: OpenAL Soft
okt 23, 2015 2:24:30 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio Version: 1.1 ALSOFT 1.15.1
okt 23, 2015 2:24:30 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: AudioRenderer supports 64 channels
okt 23, 2015 2:24:30 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio effect extension version: 1.0
okt 23, 2015 2:24:30 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio max auxilary sends: 4
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00000001198bf7c8, pid=2268, tid=54803
#
# JRE version: Java(TM) SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.51-b03 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C  [GLEngine+0x1587c8]  gleRunVertexSubmitImmediate+0x13d8
#
# 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:
# /Users/remy/projects/LostInTheStars/hs_err_pid2268.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

Any help is welcome! :confused:

Edit: When I set the renderer to use OpenGL1.1 it works.

settings.setRenderer(AppSettings.LWJGL_OPENGL1);

Hi,

Today I reverted back from El Capitan to Yosemite, and the problem is gone.