-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
src: add file name to 'Module did not self-register' error #30125
Conversation
@@ -484,7 +484,9 @@ void DLOpen(const FunctionCallbackInfo<Value>& args) { | |||
mp = dlib->GetSavedModuleFromGlobalHandleMap(); | |||
if (mp == nullptr || mp->nm_context_register_func == nullptr) { | |||
dlib->Close(); | |||
env->ThrowError("Module did not self-register."); | |||
char errmsg[1024]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could this be PATH_MAX?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PATH_MAX + strlen("Module did not self-register.") + 1 i suppose?
given the code immediately below that also uses 1024 and includes *filename
, I figured best to go for consistency :)
Looks like the CI flaked out here, could someone kick it? |
Landed in 4f43418 🎉 |
PR-URL: #30125 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
PR-URL: #30125 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
PR-URL: #30125 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
PR-URL: #30125 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
The 'Module did not self-register' error can be difficult to track down because it's not always obvious which module is failing to self-register.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes