sharp: [basic_string::_S_construct null not valid] (Electron, Linux, 0.27.0)

Sharp: v0.27.0 Electron: v11.1.1

My code is as simple as:

await sharp('test.png').toFile('test.jpg');

I get a [basic_string::_S_construct null not valid] error when loading a PNG file as described in https://github.com/lovell/sharp/issues/2356#issuecomment-744371757. I believe the linked comment was never fixed - only the GLib-GObject:ERROR (0.26.0) one was, so I decided to reopen this issue as a new and separate issue.

To summarize:

  • 0.27.0 doesn’t work with the basic_string error
  • 0.26.0 doesn’t work with the GLib-GObject:ERROR error
  • 0.25.0 seems to work

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 26 (22 by maintainers)

Commits related to this issue

Most upvoted comments