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

The specified procedure could not be found #1219

Closed
EvaisaDev opened this issue Aug 8, 2018 · 5 comments
Closed

The specified procedure could not be found #1219

EvaisaDev opened this issue Aug 8, 2018 · 5 comments

Comments

@EvaisaDev
Copy link

I get this error and I've seen a few old issues that have it but I can't seem to figure out how to fix it.

Error: The specified procedure could not be found.
\?\E:\Deep Doodle\node_modules\canvas\build\Release\canvas.node
at Object.Module._extensions..node (module.js:653:18)
at Module.load (module.js:545:32)
at tryModuleLoad (module.js:508:12)
at Function.Module._load (module.js:500:3)
at Module.require (module.js:568:17)
at require (internal/module.js:11:18)
at Object. (E:\Deep Doodle\node_modules\canvas\lib\bindings.js:3:18)
at Module._compile (module.js:624:30)
at Object.Module._extensions..js (module.js:635:10)
at Module.load (module.js:545:32)
make: *** [server] Fout 1

@zbjornson
Copy link
Collaborator

I think this can happen for a few reasons: (a) if you have another module that depends on one of the same dependencies of canvas, like cairo, (b) if you have multiple versions of canvas loaded by the same node.js process, sometimes, (c) if canvas was built with a different version of the dependencies than it's attempting to run with. When Windows searches for a DLL, if it finds one already loaded in memory with the same name, that one will be used even if it's the wrong one.

Try deleting your node_modules folder and re-installing, or see if you have multiple modules being loaded that depend on cairo, or multiple version of canvas... If you're up for it, you can follow these instructions to enable logging of DLL loading: https://ofekshilon.com/2013/06/22/entry-point-not-found-and-other-dll-loading-problems/

@EvaisaDev
Copy link
Author

Eh I think I am too stupid to figure out how to enable logging but I removed node modules and it still gives the same error
The only other thing depending on cairo is sharp

@zbjornson
Copy link
Collaborator

If you have Sharp also, then then this is a dupe of #930. There's some useful info in that ticket. I haven't gotten back to trying to figure out DLL redirection, but I think the Sharp maintainers made a possible fix. Feel free to post in #930...

@Shubhamrawat5
Copy link

Getting same error

@temurih
Copy link

temurih commented Dec 3, 2023

I don't have Sharp, and I'm still getting the same error. Over 5 years, and still not fixed! WoW!

This issue was closed.
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

4 participants