diff options
author | Sven Gothel <[email protected]> | 2019-09-08 12:56:57 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2019-09-08 12:56:57 +0200 |
commit | 534d764474cacf8bc380123cbfd164c7c55f236a (patch) | |
tree | f87a883e0962df6a8e6d9270967527fba943e37c /make/scripts/tests-osx-x64-java8.sh | |
parent | 125e4bd1c8e0a8f4b434209b155e6cd0d8f09092 (diff) |
Buig 1389: Fix SIGSEGV on OpenJDK11 on [NSApplicationAWT sendEvent:]
Culprit of the crash and the non propagated action on NSApp main-thread
was _simply_ our OSXUtil_KickNSApp() 'kick alive'
NSApplicationDefined NSEvent sent to the NSApp.
Java11's NSApp code overrides sendEvent and handles
NSApplicationDefined + subtype=ExecuteBlockEvent
using the given data1 as a function pointer. 8-O
ExecuteBlockEvent defined as 0, which we have sent.
Simply passing subtype=8888 avoids this side-effect.
Whether it is still required to KickNSApp() is another question.
+++
Further, make code a bit more robuts regarding the offscreenSurfaceLayer
at JAWTWindow invalidate. I.e. if still not detached, do the late cleanup there.
This just in case the OSX Context callback to disassociate the drawable
has been missed.
Diffstat (limited to 'make/scripts/tests-osx-x64-java8.sh')
-rwxr-xr-x | make/scripts/tests-osx-x64-java8.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/make/scripts/tests-osx-x64-java8.sh b/make/scripts/tests-osx-x64-java8.sh new file mode 100755 index 000000000..7643919bc --- /dev/null +++ b/make/scripts/tests-osx-x64-java8.sh @@ -0,0 +1,18 @@ +#! /bin/bash + +#export DYLD_LIBRARY_PATH=$HOME/ffmpeg-0.8_0.9/lib:$DYLD_LIBRARY_PATH +#export DYLD_LIBRARY_PATH=$HOME/ffmpeg-2.2.3/lib:$DYLD_LIBRARY_PATH +export DYLD_LIBRARY_PATH=/usr/local/Cellar/ffmpeg/2.8/lib:$DYLD_LIBRARY_PATH + +#JAVA_HOME=`/usr/libexec/java_home` +JAVA_HOME=`/usr/libexec/java_home -version 1.8` +#JAVA_HOME=`/usr/libexec/java_home -version 11` +PATH=$JAVA_HOME/bin:$PATH +export JAVA_HOME PATH + +export SWT_CLASSPATH=`pwd`/lib/swt/cocoa-macosx-x86_64/swt.jar + +spath=`dirname $0` + +. $spath/tests.sh $JAVA_HOME/bin/java -DummyArg ../build-macosx $* + |