Skip to content

Crashes when debugging with VSCode #1030

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
hillin opened this issue Nov 6, 2017 · 3 comments
Closed

Crashes when debugging with VSCode #1030

hillin opened this issue Nov 6, 2017 · 3 comments

Comments

@hillin
Copy link

hillin commented Nov 6, 2017

Issue or Feature

When debugging a server side node app with VSCode, whenever a breakpoint hits in a context with a Canvas variable, the node process crashes.

The crash message:

Microsoft Visual C++ Runtime Library

Assertion failed!

Program: ...s\canvas-prebuilt\canvas\build\Release\canvas.node
File: c:\projects\node-canvas-prebuilt\no...\nan_obj..._wrap.h
Line: 33

Expression: object->InternalFieldCount() > 0

For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts

Steps to Reproduce

  1. Create a server nodejs side app, I use expressjs
  2. Do something with a Canvas
  3. Add a breakpoint in VSCode where the ambient contains the Canvas
  4. Debug and try to make the breakpoint hit

Your Environment

  • Version of node-canvas: 1.6.5-prerelease.1 (canvas-prebuilt)
  • Environment: node v8.7.0 on Windows 10 version 1709, VSCode 1.17.2
@hillin
Copy link
Author

hillin commented Nov 6, 2017

Sorry, seems this is a duplicate of #855. Strangely I haven't found it when I did a rough search. Closing.

@hillin hillin closed this as completed Nov 6, 2017
@zbjornson
Copy link
Collaborator

@hillin can you try with canvas@next please? I think it's fixed there.

@hillin
Copy link
Author

hillin commented Nov 7, 2017

@zbjornson thanks Zach. For some reason I have to use a prebuilt version in our production environment, but canvas-prebuilt hasn't caught up yet. So I guess I'll just walk around this issue for now and try it later when canvas-prebuilt has a new release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants