fix: not on FX thread. Mentioned in #673.
This commit is contained in:
@@ -121,15 +121,16 @@ public class CrashReporter implements Thread.UncaughtExceptionHandler {
|
|||||||
" JVM Free Memory: " + Runtime.getRuntime().freeMemory() + "\n";
|
" JVM Free Memory: " + Runtime.getRuntime().freeMemory() + "\n";
|
||||||
|
|
||||||
LOG.log(Level.SEVERE, text);
|
LOG.log(Level.SEVERE, text);
|
||||||
|
Platform.runLater(() -> {
|
||||||
if (checkThrowable(e)) {
|
if (checkThrowable(e)) {
|
||||||
if (showCrashWindow) {
|
if (showCrashWindow) {
|
||||||
Platform.runLater(() -> new CrashWindow(text).show());
|
new CrashWindow(text).show();
|
||||||
|
}
|
||||||
|
if (!UpdateChecker.isOutdated() && IntegrityChecker.isSelfVerified()) {
|
||||||
|
reportToServer(text);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!UpdateChecker.isOutdated() && IntegrityChecker.isSelfVerified()) {
|
});
|
||||||
reportToServer(text);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} catch (Throwable handlingException) {
|
} catch (Throwable handlingException) {
|
||||||
LOG.log(Level.SEVERE, "Unable to handle uncaught exception", handlingException);
|
LOG.log(Level.SEVERE, "Unable to handle uncaught exception", handlingException);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user