mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Updater: handling OOM errors (and other), increased Xmx for updater process
This commit is contained in:
@@ -139,6 +139,7 @@ public class Main {
|
||||
|
||||
Collections.addAll(args,
|
||||
System.getProperty("java.home") + "/bin/java",
|
||||
"-Xmx700m",
|
||||
"-classpath",
|
||||
copyPatchFile.getPath(),
|
||||
"com.intellij.updater.Runner",
|
||||
|
||||
@@ -200,7 +200,7 @@ public class Patch {
|
||||
shouldRevert = true;
|
||||
cancelled = true;
|
||||
}
|
||||
catch (Exception e) {
|
||||
catch (Throwable e) {
|
||||
shouldRevert = true;
|
||||
ui.showError(e);
|
||||
}
|
||||
|
||||
@@ -187,6 +187,9 @@ public class SwingUpdaterUI implements UpdaterUI {
|
||||
}
|
||||
catch (OperationCancelledException ignore) {
|
||||
}
|
||||
catch(Throwable e) {
|
||||
showError(e);
|
||||
}
|
||||
finally {
|
||||
isRunning.set(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user