Version 7.0.1/8.0.0 can cause memory problems on Windows
harmboschloo opened this issue · 1 comments
I'm trying to upgrade elm-webpack-loader from 6.0.1 to 7.0.1.
But during compilation I get a bunch of lines like this (sorry it's in Dutch):
elm.exe: getMBlocks: VirtualAlloc MEM_COMMIT failed: Het wisselbestand is te klein voor het voltooien van deze bewerking.
It says the virtual memory is too small to complete the operation. I'm compiling 28 elm entry points files.
I increased my virtual memory which made the problem go away. But that doesn't seem like a desired solution for this problem.
I saw that the maxInstances
option was removed in d4ec59a#diff-168726dbe96b3ce427e7fedce31bb0bcL157. So now all elm entry points are compiled in parallel. Maybe it's a good idea to revert that change and and prevent these kind of problems.
I increased my virtual memory which made the problem go away.
That didn't work when I tried to compile a project with about 50 elm entry points, and VSCode crashed 😅