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

m_hnd is null #1

Open
ameya7295 opened this issue Jun 13, 2021 · 2 comments
Open

m_hnd is null #1

ameya7295 opened this issue Jun 13, 2021 · 2 comments

Comments

@ameya7295
Copy link

sample-cpp-plugin-master/./psdk/loader.hpp:55: Plugin::Plugin(std::string): Assertion `m_hnd != nullptr' failed.
Aborted (core dumped)

May I know, why this issue is generated.
I am running on Linux Ubuntu machine.
gcc version is 9.3

@ameya7295
Copy link
Author

ameya7295 commented Jun 13, 2021

Update :
in loader.hpp : 50
if I change m_hnd = dlopen(m_file.c_str(), RTLD_LAZY);
to m_hnd = dlopen("./PluginA.so", RTLD_LAZY); it works.

@haithink
Copy link

haithink commented Nov 1, 2021

Update : in loader.hpp : 50 if I change m_hnd = dlopen(m_file.c_str(), RTLD_LAZY); to m_hnd = dlopen("./PluginA.so", RTLD_LAZY); it works.

Same with you. Fix the so file path。

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

2 participants