elm-webpack-loader icon indicating copy to clipboard operation
elm-webpack-loader copied to clipboard

Version 7.0.1/8.0.0 can cause memory problems on Windows

Open harmboschloo opened this issue 5 years ago • 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 https://github.com/elm-community/elm-webpack-loader/commit/d4ec59a9cb2ed153d7752eba06b11c88ea9095b7#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.

harmboschloo avatar Aug 27 '20 14:08 harmboschloo

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 😅

harmboschloo avatar Sep 09 '20 13:09 harmboschloo