regl
regl copied to clipboard
Can't build the gallery anymore.
On my branch pick-buffer
, I added a pickBuffer example. But it seems like this addition finally broke the camel's back, because if I try to build the gallery, it runs for a while, and then I get this error:
<--- Last few GCs --->
158865 ms: Scavenge 1257.7 (1435.0) -> 1257.5 (1435.0) MB, 38.8 / 0 ms [allocation failure].
158907 ms: Scavenge 1257.7 (1435.0) -> 1257.7 (1435.0) MB, 41.7 / 0 ms [allocation failure].
158953 ms: Scavenge 1257.7 (1435.0) -> 1257.7 (1435.0) MB, 45.0 / 0 ms [allocation failure].
158997 ms: Scavenge 1257.7 (1435.0) -> 1257.7 (1435.0) MB, 44.0 / 0 ms [allocation failure].
159042 ms: Scavenge 1257.7 (1435.0) -> 1257.7 (1435.0) MB, 44.7 / 0 ms [allocation failure].
<--- JS stacktrace --->
Cannot get stack trace in GC.
FATAL ERROR: Scavenger: semi-space copy
Allocation failed - process out of memory
Abort trap: 6
However, if I remove this line from bin/build-gallery.js
:
b.transform(es2020)
it works again.
We need to break out the build for each module into a separate process. Could do this with a makefile.
More generally though this ties in with splitting out the gallery into a separate repo.
Gonna start working on this.
@Erkaman @mikolalysenko I believe #384 solved this issue
@mikolalysenko should this be closed?
Not yet, I'm going to scrub all built artifacts from git and move it to a separate repo. This situation with the size of built assets has gotten out of hand.
:+1: sounds great! looking forward to this!