Skip to content

Breakpoint after use of node-canvas lets node crash #15099

Closed
@luxzeitlos

Description

@luxzeitlos
  • Version: v8.4.0
  • Platform: Darwin mycomputer.example.org 15.6.0 Darwin Kernel Version 15.6.0: Thu Jun 23 18:25:34 PDT 2016; root:xnu-3248.60.10~1/RELEASE_X86_64 x86_64

If I have this code:

const Canvas = require("canvas");
console.log('foo');
const canvas = new Canvas(1039, 100);
console.log('done');

and canvas is "canvas": "^1.6.6", and then I run node --inspect=31852 --debug-brk dist/index.js , attach the chrome debugger and I place a breakpoint on the console.log('done'); this will crash with:

Assertion failed: (object->InternalFieldCount() > 0), function Unwrap, file ../../nan/nan_object_wrap.h, line 33.

same is true for debugging with vscode.

However the same code works when running without a breakpoint/debugger. Thats why I assume a bug within node itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    addonsIssues and PRs related to native addons.inspectorIssues and PRs related to the V8 inspector protocol

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions