Skip to content

Mac aarch64 draw image(svg) error #2600

Description

@948764321

Title: Issues Encountered When Using Node-canvas to Draw SVG Images While Deploying Linux Images with Docker on macOS

Description:
I deployed a Linux Docker image on the macOS system and encountered an error while using the node-canvas library to draw SVG images in this environment. node-canvas is an implementation of Canvas based on Cairo, specifically designed for NodeJS. When I attempted to render an SVG file, the system threw an error, which affected the normal operation of the application.

(process:688207): GLib-GObject-CRITICAL **: 16:13:32.903: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

Problem Description:

  • Operating System: macOS
  • Deployment Environment: Docker (Linux image)
  • Used Library: node-canvas (based on Cairo)
  • Operation: Drawing SVG images
  • Problem: Error occurred

Request for Help:
I am encountering an error when using Docker to deploy a Linux image on macOS and attempting to draw SVG images with node-canvas. I hope to find discussions or solutions to this issue on GitHub, or seek assistance from the community.

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