Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JavaScript heap out of memory #10

Open
ichko opened this issue Apr 24, 2021 · 0 comments
Open

JavaScript heap out of memory #10

ichko opened this issue Apr 24, 2021 · 0 comments

Comments

@ichko
Copy link

ichko commented Apr 24, 2021

Hi,
I am trying to use your library in the browser and while building the project I get:

...
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
...
Aborted (core dumped)
npm ERR! code 134

I am using webpack for bundling and as I const mnist = require('mnist') I get the error.
I even tried loading dynamically with webpack:

  import(
    /* webpackChunkName: "mnist" */
    /* webpackMode: "lazy" */
    /* webpackPrefetch: false */
    /* webpackPreload: false */
    'mnist'
  ).then(mnist => {
    console.log('mnist');
  });

but this leads to the same error.

It would be nice if this package provides a way to load the dataset asynchronously in the browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant