diff --git a/apps/OpenSpace/ext/sgct b/apps/OpenSpace/ext/sgct
index 0d902bbe4f..1ab6980ccc 160000
--- a/apps/OpenSpace/ext/sgct
+++ b/apps/OpenSpace/ext/sgct
@@ -1 +1 @@
-Subproject commit 0d902bbe4f13be7e1e532aa4428b9cc90422611b
+Subproject commit 1ab6980ccc825a68094fcda950e73312fb89cc3c
diff --git a/apps/OpenSpace/main.cpp b/apps/OpenSpace/main.cpp
index eacbafa345..62297dde05 100644
--- a/apps/OpenSpace/main.cpp
+++ b/apps/OpenSpace/main.cpp
@@ -854,16 +854,16 @@ void mainLogCallback(Log::Level level, const char* message) {
// Remove the trailing \n that is passed along
switch (level) {
case Log::Level::Debug:
- LDEBUGC("SGCT", msg.substr(0, msg.size() - 1));
+ LDEBUGC("SGCT", msg);
break;
case Log::Level::Info:
- LINFOC("SGCT", msg.substr(0, msg.size() - 1));
+ LINFOC("SGCT", msg);
break;
case Log::Level::Warning:
- LWARNINGC("SGCT", msg.substr(0, msg.size() - 1));
+ LWARNINGC("SGCT", msg);
break;
case Log::Level::Error:
- LERRORC("SGCT", msg.substr(0, msg.size() - 1));
+ LERRORC("SGCT", msg);
break;
}
@@ -1293,6 +1293,12 @@ int main(int argc, char** argv) {
try {
Engine::create(cluster, callbacks, config);
}
+ catch (const std::runtime_error& e) {
+ LFATAL("main", e.what());
+ Engine::destroy();
+ global::openSpaceEngine.deinitialize();
+ ghoul::deinitialize();
+ }
catch (...) {
Engine::destroy();
global::openSpaceEngine.deinitialize();
diff --git a/config/gui_projector.xml b/config/gui_projector.xml
index 9f50aa7037..21e9d09a9f 100644
--- a/config/gui_projector.xml
+++ b/config/gui_projector.xml
@@ -4,7 +4,7 @@
-
+
@@ -17,7 +17,7 @@
-
+
diff --git a/config/single_fisheye_gui.xml b/config/single_fisheye_gui.xml
index 6eb46bbabb..794a03b056 100644
--- a/config/single_fisheye_gui.xml
+++ b/config/single_fisheye_gui.xml
@@ -6,7 +6,7 @@
-->
-
+
@@ -32,7 +32,7 @@
-
+
diff --git a/config/single_gui.xml b/config/single_gui.xml
index 60399df349..832273090e 100644
--- a/config/single_gui.xml
+++ b/config/single_gui.xml
@@ -4,7 +4,7 @@
-
+
@@ -17,7 +17,7 @@
-
+
diff --git a/config/spherical_mirror_gui.xml b/config/spherical_mirror_gui.xml
index c946cbecd2..e1e84e46df 100644
--- a/config/spherical_mirror_gui.xml
+++ b/config/spherical_mirror_gui.xml
@@ -19,7 +19,7 @@
-->
-
+
@@ -27,7 +27,7 @@
-
+
diff --git a/ext/ghoul b/ext/ghoul
index 19f324db68..d35be27b61 160000
--- a/ext/ghoul
+++ b/ext/ghoul
@@ -1 +1 @@
-Subproject commit 19f324db68837b867779059f538b46051aec1bd9
+Subproject commit d35be27b61140e76d8283999d9faee16977b1bfc
diff --git a/modules/cefwebgui/cefwebguimodule.cpp b/modules/cefwebgui/cefwebguimodule.cpp
index 4af5fe7ed1..7de3a160de 100644
--- a/modules/cefwebgui/cefwebguimodule.cpp
+++ b/modules/cefwebgui/cefwebguimodule.cpp
@@ -91,10 +91,6 @@ void CefWebGuiModule::startOrStopGui() {
WebBrowserModule* webBrowserModule = global::moduleEngine.module();
- //TODO: micah - revisit this, either remove code or find situation
- //where you haave a master without a gui and fixfor it.
- //const bool hasGuiWindow = global::windowDelegate.hasGuiWindow();
-
const bool isMaster = global::windowDelegate.isMaster();
if (_enabled && isMaster) {
diff --git a/modules/webbrowser/webbrowsermodule.cpp b/modules/webbrowser/webbrowsermodule.cpp
index 877d1f8e0c..d75ddf4959 100644
--- a/modules/webbrowser/webbrowsermodule.cpp
+++ b/modules/webbrowser/webbrowsermodule.cpp
@@ -138,10 +138,6 @@ void WebBrowserModule::internalInitialize(const ghoul::Dictionary& dictionary) {
_enabled = dictionary.value("Enabled");
}
- //TODO: micah - revisit this, either remove code or find situation
- //where you haave a master without a gui and fixfor it.
- //const bool haGuiWindow = global::windowDelegate.hasGuiWindow();
-
const bool isMaster = global::windowDelegate.isMaster();
if (!_enabled || (!isMaster) ) {