Can't run scilab with java over ssh or from cron (i.e. headless) on Mac
Reported by Francois Granade
BUG DESCRIPTION:
----------------
running scilab in an ssh session with -nw -nb gives error and crashes.
this is causing the automated tests to fail, e.g.
http://compilationchain.scilab.org/index.php?os=macosx&date=2015-12-08&detail=test1_api_scilab.txt&module=6&mode=release
ERROR LOG:
----------
HOW TO REPRODUCE THE BUG:
-------------------------
simply ssh to your own machine and run scilab:
users-MacBook-Pro-3:~ francois$ ssh localhost
Last login: Tue Dec 8 13:33:49 2015 from localhost
users-MacBook-Pro-3:~ francois$ /Applications/scilab-master-1449243750.app/Contents/MacOS/bin/scilab -nw -nb
2015-12-08 13:44:19.097 scilab-bin[90214:507] [JRSAppKitAWT markAppIsDaemon]: Process manager already initialized: can't fully enable headless mode.
2015-12-08 13:44:19.573 scilab-bin[90214:1403] Apple AWT Internal Exception: Error (1000) creating CGSWindow
2015-12-08 13:44:19.573 scilab-bin[90214:1403] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Error (1000) creating CGSWindow'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff9276e25c __exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff8f105e75 objc_exception_throw + 43
2 CoreFoundation 0x00007fff9276e10c +[NSException raise:format:] + 204
3 AppKit 0x00007fff8cd36001 _NXCreateWindowWithStyleMask + 366
4 AppKit 0x00007fff8cd35dfd _NSCreateWindow + 64
5 AppKit 0x00007fff8cbee87c -[NSWindow _commonAwake] + 2963
6 AppKit 0x00007fff8caca590 -[NSWindow _commonInitFrame:styleMask:backing:defer:] + 882
7 AppKit 0x00007fff8cac9a12 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1054
8 AppKit 0x00007fff8cac95e8 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45
9 libnativewindow_macosx.jnilib 0x000000011bac4f9e Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398
10 ??? 0x00000001084a0394 0x0 + 4434035604
)
libc++abi.dylib: terminating with uncaught exception of type NSException
/Applications/scilab-master-1449243750.app/Contents/MacOS/bin/scilab: line 922: 90214 Illegal instruction: 4 "$SCILABBIN" "$@"
users-MacBook-Pro-3:~ francois$
OTHER INFORMATION:
------------------