Skip to content
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

Fix "vips2png: unable to write to target target" Error message #586

Open
hexagon6 opened this issue Jan 27, 2021 · 1 comment
Open

Fix "vips2png: unable to write to target target" Error message #586

hexagon6 opened this issue Jan 27, 2021 · 1 comment

Comments

@hexagon6
Copy link

What's the problem you want solved?

Fix an error message which happens using oasis. (clicking on a ❤️ button triggered this in the console, not sure yet why exactly this happened).

/home/<user>/.nvm/versions/node/v15.2.1/lib/node_modules/@fraction/oasis/src/index.js:132
    throw err;
    ^

[Error: vips2png: unable to write to target target
]

Tracing it here:

$ rgrep 'unable to write to'  ~/.nvm/versions/node/v15.2.1/lib/
~/.nvm/versions/node/v15.2.1/lib/node_modules/@fraction/oasis/node_modules/sharp/vendor/8.10.5/lib/libvips.so.42 matches

Is there a solution you'd like to recommend?

Catching the error thrown by vips2png "unable to write to target target" or
figure out why it can't write. (Not sure how to do this).

I've installed [email protected]
$ jq '.version' ~/.nvm/versions/node/v15.2.1/lib/node_modules/@fraction/oasis/package.json "2.17.0"

@hexagon6
Copy link
Author

hexagon6 commented Jan 27, 2021

I assume it is an issue with libvips.

Traced it to its source:

https://github.com/libvips/libvips/blob/0e7f2124c73988a1cdb1e227d35c0e4e775b6517/libvips/foreign/vipspng.c#L1220

Not sure what can be done in @fraction/oasis but upgrade a version if they fixed it at one point in time.

I assume you can close this as I probably can't reproduce it easily and it is a bug from a dependency.

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

No branches or pull requests

1 participant