Skip to content

Prebuilt: runtime error undefined symbol: _ZN2v87Isolate19CheckMemoryPressureEv after creating multiple canvases #1252

@symil

Description

@symil

Issue

After creating a large number of canvases, the process crashes with the error message:

node: symbol lookup error: /path/to/project/node_modules/canvas/build/Release/canvas.node:
undefined symbol: _ZN2v87Isolate19CheckMemoryPressureEv

When testing with a standalone file that does nothing but creating canvases, it crashes after creating 100 canvases, but in my real application it crashes after creating the 3rd canvas. I'm guessing that it has to do with the total memory used by the process (as the error kind of indicate)s, which is much higher in my real application than in the standalone file.

I'm on Linux, and this error only happens when the cairo package is not installed. When it's installed everything works well.

Steps to Reproduce

var Canvas = require('canvas');
var list = [];
for (var i = 0; i < 100; i++) {
  var canvas = Canvas.createCanvas(200, 200);
  var ctx = canvas.getContext('2d');
  list.push({canvas, ctx});
}

Your Environment

  • node-canvas v2.0.0-alpha-14
  • Ubuntu 16.04
  • package libcairo2 NOT installed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions