comment about trapping OOMs
[jalview.git] / src / jalview / ws / JobStateSummary.java
index 0983dc0..e6d176a 100644 (file)
@@ -54,8 +54,8 @@ public class JobStateSummary
    * @param OutputHeader
    * @param j
    */
-  public void updateJobPanelState(WebserviceInfo wsInfo, String OutputHeader,
-          AWsJob j)
+  public void updateJobPanelState(WebserviceInfo wsInfo,
+          String OutputHeader, AWsJob j)
   {
     if (j.submitted)
     {
@@ -108,7 +108,16 @@ public class JobStateSummary
       wsInfo.appendProgressText(j.jobnum, progheader);
       if (j.hasStatus())
       {
+        // Could try to squash OOMs here, but it usually doesn't help - there probably won't be
+        // enough memory to handle the results later on anyway.
+        // try {
         wsInfo.appendProgressText(j.jobnum, j.getStatus());
+        // } catch (OutOfMemoryError e)
+        // {
+        // System.err.println("Out of memory when displaying status. Squashing error.");
+        // wsInfo.appendProgressText(j.jobnum,
+        // "..\n(Out of memory when displaying status)\n");
+        // }
       }
     }
     else