overte/libraries
Anthony Thibault 6c66f5a37b Fix for DependencyManager crash on shutdown on Mac
On Mac, it is possible to crash when shutting down, it is not clear if this is due to
shutting down the app on another thread during logout or something that can happen
during normal shutdown, because it is so difficult to reproduce.

However, from looking at the stack traces it is possible for a [NSApplication terminate:]
event to get processed while Appliction::aboutToQuit() is calling ScriptEngine::waitTillDoneRunning()
This causes AppKit to invoke the static destructors too early.  Which in turn, causes the
DependencyManager destructor to fire while there are still many dependencies running.
Unfortunatly, the order of destruction is not determinstic, causing them to get shutdown
in an incorrect order.

To workaround this, we delay the call to QCoreApplication::processEvents() as late as possible,
in the Application destructor. Theoretically, this will be a safe time for the static destructors
to be invoked, because it is after all of the DependencyManager's dependencies have been
manually destroyed.

However, this is only a speculative fix, because this is so difficult to reproduce.
2019-07-01 17:37:57 -07:00
..
animation Disable handTouch.js to prevent finger twitching 2019-06-20 15:52:36 -07:00
audio Replace NEXTPOW2() macros with constexpr (supported since VS2015) 2019-06-18 10:29:23 -07:00
audio-client push to talk causes fun, removing tttt 2019-06-20 15:12:20 -07:00
auto-updater
avatars Merge pull request #15676 from ctrlaltdavid/DOC-33 2019-06-11 15:05:06 -07:00
avatars-renderer Merge pull request #15693 from sabrina-shanman/bug_avatar_res-state 2019-06-06 16:35:04 -07:00
baking Fix for DependencyManager crash on shutdown on Mac 2019-07-01 17:37:57 -07:00
controllers Fix link 2019-06-05 15:14:05 +12:00
display-plugins fixed color banding on rift 2019-06-26 09:29:06 -07:00
embedded-webserver
entities Doc review 2019-06-28 17:05:36 +12:00
entities-renderer Fix for DependencyManager crash on shutdown on Mac 2019-07-01 17:37:57 -07:00
fbx Merge pull request #15555 from raveenajain/gltf_walkingBounding 2019-06-07 12:23:52 -07:00
gl Enable KHR_robustness option 2019-06-14 11:09:28 -07:00
gpu change ContextStats::evalDelta to better handle wrapping values in graphics stats 2019-06-11 11:56:49 -07:00
gpu-gl fix the actual problem 2019-05-24 09:36:37 -07:00
gpu-gl-common change ContextStats::evalDelta to better handle wrapping values in graphics stats 2019-06-11 11:56:49 -07:00
gpu-gles
graphics move bias init from config to run 2019-06-26 15:42:11 -07:00
graphics-scripting get rid of lightmapMap 2019-06-07 14:53:31 -07:00
hfm
image fix uninitialized read 2019-06-04 13:00:26 -07:00
input-plugins
ktx add version to texmeta.json files, fallback to original file if version has changed for skyboxes 2019-05-21 15:30:28 -07:00
material-networking Fix for DependencyManager crash on shutdown on Mac 2019-07-01 17:37:57 -07:00
midi
model-baker Fix for DependencyManager crash on shutdown on Mac 2019-07-01 17:37:57 -07:00
model-networking
networking Fix for DependencyManager crash on shutdown on Mac 2019-07-01 17:37:57 -07:00
octree Merge branch 'master' into DOC-79 2019-06-22 12:11:22 +12:00
oculusMobile
oculusMobilePlugin fixed gamma on rift, removed extraneous code from quest, clarified variable names 2019-06-18 19:23:40 -07:00
physics Doc review 2019-06-28 17:05:36 +12:00
platform cr feedback 2019-07-01 15:23:00 -07:00
plugins getting rid of the resolution Scale on the display plugin 2019-06-21 10:36:25 -07:00
pointers fixed pick profiling 2019-06-19 10:54:28 -07:00
procedural add version to texmeta.json files, fallback to original file if version has changed for skyboxes 2019-05-21 15:30:28 -07:00
qml Disable remote QML unless whitelisted 2019-06-27 16:37:56 -07:00
recording Consider a NetworkClipLoader resource with null URL to be failed 2019-06-19 15:02:16 -07:00
render fix layered rendering of group culled sub items 2019-06-28 14:24:33 -07:00
render-utils clang braces fix 2019-06-27 11:52:43 -07:00
script-engine Fix for DependencyManager crash on shutdown on Mac 2019-07-01 17:37:57 -07:00
shaders
shared more correct bounding sphere around avatar for SafeLanding query 2019-07-01 15:53:42 -07:00
task
test-utils
trackers
ui Don't request an OpenGL 2.0 context via the dock widget 2019-06-19 14:10:53 -07:00
ui-plugins
workload