Latest IntelliJ 2016.2.3 patch failed due to OutOfMemoryError

Answered

IntelliJ prompted me to upgrade to the latest 2016.2.3 release this morning (I am currently on 2016.2.2), so I clicked to install the patch.

 

In the past,t his has always worked, but today, it failed.  In particular, the patch dialog box displayed the message "Failed to apply patch" and below that had a text area with this text:

 

Temp. directory: C:\Users\captainmidnight\AppData\Local\Temp\

java.lang.OutOfMemoryError
    at java.io.FileOutputStream.writeBytes(Native Method)
    at java.io.FileOutputStream.write(FileOutputStream.java:326)
    at java.io.BufferedOutputStream.write(BufferedOutputStream.java:122)
    at ie.wombat.jbdiff.JBPatch.bspatch(JBPatch.java:149)
    at com.intellij.updater.BaseUpdateAction.applyDiff(BaseUpdateAction.java:112)
    at com.intellij.updater.UpdateAction.doApply(UpdateAction.java:44)
    at com.intellij.updater.PatchAction.apply(PatchAction.java:184)
    at com.intellij.updater.Patch$3.forEach(Patch.java:308)
    at com.intellij.updater.Patch.forEach(Patch.java:360)
    at com.intellij.updater.Patch.apply(Patch.java:303)
    at com.intellij.updater.PatchFileCreator.apply(PatchFileCreator.java:84)
    at com.intellij.updater.PatchFileCreator.apply(PatchFileCreator.java:75)
    at com.intellij.updater.Runner.doInstall(Runner.java:304)
    at com.intellij.updater.Runner.access$000(Runner.java:32)
    at com.intellij.updater.Runner$1.execute(Runner.java:265)
    at com.intellij.updater.SwingUpdaterUI.lambda$doPerform$2(SwingUpdaterUI.java:186)
    at java.lang.Thread.run(Thread.java:745)

 

Does anyone know how to fix this?

I assume that either I need to somehow allocate more memory to the updater JVM process, or else this patch is buggy in that it needs so much memory?

Please sign in to leave a comment.