Communications error: "XPCErrorDescription" "Connection interrupted"


Full error message:

2016-02-09 15:53:02.185 Electron[2779:47890] Communications error: <OS_xpc_error: <error: 0x7fff76496b60> { count = 1, contents = "XPCErrorDescription" => <string: 0x7fff76496fa8> { length = 22, contents = "Connection interrupted" } }>

I’ve googled this for hours and can’t find any reference to this error relating to Electron.

I am attempting to unarchive a rar file that is a bit over 2GB using the npm module unrar.js v0.2.3 and get this error message every time. When the error occurs Electron almost completely locks up my MacBook and I either have to restart my computer or wait about 15 minutes to get enough delayed responsiveness to force quit Electron.

I suspect that the issue is that the unarchiving process takes around 2 minutes. Does anyone know a way to ensure that long processes complete without blowing up?