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
- Avoid calling g_type_from_name See: https://github.com/lovell/sharp/issues/2535. — committed to kleisauke/sharp by kleisauke 3 years ago
- Avoid calling g_type_from_name #2535 — committed to lovell/sharp by kleisauke 3 years ago
v0.28.0 now available. Thank you @kleisauke for all your help with this.
https://github.com/kleisauke/sharp/commit/fd03dd25fd44e0b6fb9ddd96e2efc570bfa89493 landed as https://github.com/lovell/sharp/commit/573ed5f4b57e4de421f8fc5a1714c86a588f6825