Skip to content

javascript heap explodes with vuetify 2 based custom theme #1878

Open
@jaunt

Description

@jaunt
  • I confirm that this is an issue rather than a question.

Bug report

After the client and server are compiled successfully, during the "Rendering static HTML" phase, the rendering of pages gets slower and slower until a crash:

Steps to reproduce

Check out the repo below. Yarn install. vuepress build docs.

https://github.com/jaunt/vuepress-vuetify2

What is expected?

The speed of each page rendering should be constant (they are duplicated md files). Memory should not run out.

What is actually happening?

Rendering gets slower and slower until javascript runs out of heap memory:

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

Other relevant information

  • Output of npx vuepress info in my VuePress project:

Environment Info:

System:
OS: macOS High Sierra 10.13.6
CPU: (8) x64 Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz
Binaries:
Node: 10.16.0 - ~/.nvm/versions/node/v10.16.0/bin/node
Yarn: 1.17.3 - /usr/local/bin/yarn
npm: 6.10.3 - ~/.nvm/versions/node/v10.16.0/bin/npm
Browsers:
Chrome: 76.0.3809.132
Firefox: 69.0
Safari: 13.0
npmPackages:
@vuepress/core: 1.1.0
@vuepress/theme-default: 1.1.0
vuepress: ^1.1.0 => 1.1.0
npmGlobalPackages:
vuepress: Not Found

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions