summaryrefslogtreecommitdiffstats
path: root/make/config/jogl/gl-if-es2.cfg
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-02-22 15:11:17 +0100
committerSven Gothel <[email protected]>2020-02-22 15:11:17 +0100
commit78b96b89a68ff35969aea83de294cd3cc1178f26 (patch)
treea1c63979d777bb52b2e365bdd3fd7e62c99c410d /make/config/jogl/gl-if-es2.cfg
parentff780fc11602fb79a7ce1dcf879fdaeb865b9fa8 (diff)
Bug 1398: Crash only occurs @ -[NSOpenGLContext setView:] when using XCode 11 _and_ its default SDK 'macosx10.15'
This patch demonstrates that using the SDK 'macosx10.11' does not cause the crash @ -[NSOpenGLContext setView:]. SDK 'macosx10.15' enforces Apple's own Cargo Cult of 'main-thread' by throwing a SIGILL signal (or SIGABRT) - essentially an exception. This surely renders our code officially invalid due to this policy, i.e. we are not allowed to issue [* setView] on any non main-thread. +++ The crash occurs independently of used Java version on Java 8 - 11, as well as on JogAmp 2.3.2 - current master tip. +++ The initial remedy to issue said action on the main-thread in a blocking/wait manner has the risk to deadlock, due to 1) [NSOpenGLContext setView:] itself using a mutex (Thanks to Ken Harris's analysis) and (2) in case where we are 'thread hopping': - [main-thread] Event like 'window ready' -> kick off action on EDT-thread *blocking* - [EDT-thread] Create stuff incl OpenGLContext -> kick off setView on main-thread *blocking* This has to be further investigated. This crash finally has been reliably reproduced now.
Diffstat (limited to 'make/config/jogl/gl-if-es2.cfg')
0 files changed, 0 insertions, 0 deletions