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

DatalayerClientSub segmentation fault #16

Open
OsamaOAyoub opened this issue Jan 19, 2023 · 0 comments
Open

DatalayerClientSub segmentation fault #16

OsamaOAyoub opened this issue Jan 19, 2023 · 0 comments

Comments

@OsamaOAyoub
Copy link

Hello,

I have a datalayerClientSub that was running fine and was written based on the sample code provided. However, I had to reinstall my OS and reinstall all libraries including the debian package ctrlx-datalayer and since then there is a specific line causing a segmentation fault.

The segmentation fault happens in the constructor of the datalayerClientSub:

DataLayerClientSub::DataLayerClientSub(const comm::datalayer::DatalayerSystem &datalayerSystem, const std::string &connectionClient)
{
  _datalayerSystem = datalayerSystem;
  _connectionClient = connectionClient;
}

It happens when assigning _datalayerSystem the value of datalayerSystem which is passed when the object is created in main:

auto dataLayerClientSub = new DataLayerClientSub(datalayerSystem, connectionString);

I am not sure what is causing the problem exactly since it was working fine before and I guess assigning the datalayerSystem to the private object _datalayerSystem should be fine.

I also tried to adapt my code to the updated sample, the same problem occurs which is assigning the passed object to the private object.

Thanks,
Osama

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