For me it was a virtual memory size problem.
System has (oddly) automatically set VM size at 512MB, I've enlarged it to 4-8G (min-max) and... no more freezes!
Hope it helps.