Automattic / Automattic/node-canvas

Problem at execution on Rapsbian

Open
#2,121 0 comments 0 reactions 0 assignees View on GitHub
Compatibility
Dominant language
JavaScript
Stars
10.7k
Forks
1.2k
Avg merge
4d 8h
Merged PRs (30d)
1

Description

## Issue or Feature
There is a problem when execute simple Nodejs script on Raspbian after installing canvas successfully with compilation method (`sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev ` and `npm install --build-from-source`).

Execution crash with error : `node[2443]: ../src/debug_utils-inl.h:67:std::__cxx11::string node::SPrintFImpl(const char*): Assertion '(p[1]) == ('%')' failed.`

## Steps to Reproduce
```js
import {createCanvas} from "canvas";
const canvas = createCanvas(500, 500);
```

## Your Environment
* Version of node-canvas (output of `npm list canvas` or `yarn list canvas`): `canvas@2.10.1`
* Environment (e.g. node 4.2.0 on Mac OS X 10.8): node `v16.17.1` / npm `8.15.0` / distribution `Linux raspberrypi 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l GNU/Linux`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the provided createCanvas script with canvas@2.10.1 on the reported Node.js and Raspberry Pi environment, after the documented source build. Trace the assertion in Node's debug_utils-inl.h and compare the behavior with a working environment. Done means the script executes without the reported assertion crash and the cause or required compatibility change is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, linux, node.js, raspberry-pi
Domain
computer-graphics, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.