Automattic/node-canvas

doesn't work for node.js with pointer-compression

Open

#2 228 ouverte le 7 avr. 2023

Voir sur GitHub
 (0 commentaires) (1 réaction) (0 assignés)JavaScript (1 140 forks)batch import
Help wanted

Métriques du dépôt

Stars
 (9 524 stars)
Métriques de merge PR
 (Merge moyen 47m) (6 PRs mergées en 30 j)

Description

Issue

Using canvas with pointer compression node.js builds (from unofficial-builds) always leads to a segmentation fault.

Steps to Reproduce

console.log('before');
const Canvas = require('canvas');
console.log('after');

with pointer compression node.js we got:

before
Segmentation fault

It's probably not guranteed for node-canvas to work on any build, especially unofficial ones, yet the problem looks unexpected, because some other binary addons work well with the node version.

Environment

  • node-canvas 2.11.2
  • node js with pointer compression from unofficial-builds 18.12.1, 18.15.0
  • Debian Linux 11

Guide contributeur