Bug 931

Summary: OSX: v2.0.2-rc12 causes a SIGABRT with Applets (Safari, Firefox, .. and JVM 7u45)
Product: [JogAmp] Jogl Reporter: Sven Gothel <sgothel>
Component: macosxAssignee: Sven Gothel <sgothel>
Status: RESOLVED WORKSFORME    
Severity: major CC: packet0ack+bug
Priority: ---    
Version: 2   
Hardware: All   
OS: all   
Type: --- SCM Refs:
Workaround: ---

Description Sven Gothel 2013-12-24 00:04:38 CET
Reported here:
  <http://forum.jogamp.org/applets-fail-to-start-on-Mac-tp4031027.html>

I tested Java applets on Mac OS X 10.8.5 with Java 7.
When I use JOGL v2.0-rc11 or earlier, applets using JOGL start successfully.
However, if I use JOGL from v2.0.2-rc12 to the latest v2.1.3, applets fail to start
with message 'jogamp.org quit unexpectedly while using the libjvm.dylib plug-in.'
The problem details is as below.

I updated my Mac to OS 10.9.1, but the problem is not solved.
Any help will be appreciated.

Model: MacBook5,2, BootROM MB52.0088.B06, 2 processors, Intel Core 2 Duo, 2.13 GHz, 2 GB, SMC 1.38f5
Graphics: NVIDIA GeForce 9400M, NVIDIA GeForce 9400M, PCI, 256 MB 

Browsers I used are safari 7.0.1 and firefox 26.0.

+++

Tested on JVM 7u45 on a NVidia GT 650M (retina) and GT 320M (mini).

I reproduced a sporadic crash like yours
after testing many times on GT 320M (mini) ..

Me using:
  <http://jogamp.org/deployment/archive/master/gluegen_757-joal_507-jogl_1182-jocl_895-signed/jogl-applet-runner-newt-gears-normal-napplet.html>

I get a different crash trace @ main-Animator:
  - gldUpdateDispatch
  - gleDoDrawDispatchCoreGL3
  - glDrawArrays

.. same exception type and code.

This never occurred on the GT 650M (retina).

Sporadic:
  - Only at Firefox/Safari startup and 1st applet, very rare.
  - After Applet launched successfully all subsequent tests work fine
  - Relaunching firefox after shutdown the same and java/applet
    it also launches properly.

+++

----------
Process:         java [247]
Path:            /usr/bin/java
Identifier:      net.java.openjdk.cmd
Version:         1.0 (1.0)
Code Type:       X86-64 (Native)
Parent Process:  ??? [1]
User ID:         501

PlugIn Path:       /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/server/libjvm.dylib
PlugIn Identifier: libjvm.dylib
PlugIn Version:    ??? (1)

Date/Time:       2013-12-22 17:04:14.035 +0900
OS Version:      Mac OS X 10.8.5 (12F45)
Report Version:  10

Interval Since Last Report:          4458 sec
Crashes Since Last Report:           6
Per-App Interval Since Last Report:  682 sec
Per-App Crashes Since Last Report:   6
Anonymous UUID:                      CE4836F5-865F-1C9B-CB97-DCBDF1BBDCA5

Crashed Thread:  33  Java: thread applet-com.jogamp.newt.awt.applet.JOGLNewtApplet1R

Exception Type:  EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000

VM Regions Near 0:
-->
    __TEXT                 000000010d472000-000000010d483000 [   68K] r-x/rwx SM=COW  /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java

Application Specific Information:
abort() called

Thread 33 Crashed:: Java: thread applet-com.jogamp.newt.awt.applet.JOGLNewtApplet1R
0   libsystem_kernel.dylib         0x00007fff84914212 __pthread_kill + 10
1   libsystem_c.dylib             0x00007fff8be70b24 pthread_kill + 90
2   libsystem_c.dylib             0x00007fff8beb4f61 abort + 143
3   libjvm.dylib                   0x000000010d9b9b93 os::abort(bool) + 25
4   libjvm.dylib                   0x000000010dac4220 VMError::report_and_die() + 2316
5   libjvm.dylib                   0x000000010d9bb52d JVM_handle_bsd_signal + 1083
6   libsystem_c.dylib             0x00007fff8be5d90a _sigtramp + 26
7   com.apple.CoreFoundation       0x00007fff8a5f1eaa CFDataGetBytePtr + 10
8   libnewt.jnilib                 0x000000013de7f946 0x13de76000 + 39238
9   libnewt.jnilib                 0x000000013de7f8ca 0x13de76000 + 39114
10  libnewt.jnilib                 0x000000013de7c440 0x13de76000 + 25664
11  libnewt.jnilib                 0x000000013de77f18 Java_jogamp_newt_driver_macosx_WindowDriver_initIDs0 + 488
Comment 1 pack 2014-01-16 13:57:45 CET
Hi, I'm the guy who posted <http://forum.jogamp.org/JVM-crash-with-GLWindow-create-caps-on-OSX-10-9-1-td4031108.html>

I seem to get similar problem on my mac as well, although I'm not running the applet but directly compiling .java and executing .class file.
In my case JVM crashed 100% with GLWindow.create() on versions >2.0.2-rc12.

It seems like a general bug in Newt after rc11, since GLCanvas and stuff works.

Macbook Air Mid 2012 (Intel HD Graphics 4000 1024 MB); OSX10.9.1 (13B42); JVM 1.7.0_45 (Oracle)
Comment 2 Sven Gothel 2014-01-22 09:37:33 CET
Seems like an issue w/ Oracle's 7u45 plugin, 
didn't occur on 7u51 anymore.