-
Notifications
You must be signed in to change notification settings - Fork 2
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
getCurrentVersionNumber() of VirtualModule crashes due to missing owner #30
Comments
Why does your module not have an owner? What type of module are you talking about? |
I found out how the owner is a ApplicationCore/src/EntityOwner.cc Line 99 in 43b4e47
This VirtualModule has no owner:ApplicationCore/include/VirtualModule.h Line 25 in 43b4e47
And finally when writeAll() is called the problem descibed above happens:Line 108 in 43b4e47
|
Ah ok, so we have to somehow override getCurrentVersionNumber() in VirtualModules to obtain the version number properly from the corresponding ApplicationModule. Btw: findTag() might be very slow. I would recommend running it once at the beginning of mainLoop() and then later only use the VirtualModule to run writeAll() on. I had not foreseen this use case, but it might be nice and handy, so we should support it. |
I think this is fixed, but a test is still missing. So the task is to write a small test that writeAll() and readAll() properly work and get/set the version number from the true owner. |
I just tested with the master branch and the problem is still present. |
Now tracked on redmine: #8361 |
I guess that should not happen when using ApplicationCore in the correct way, but currently my application crashes at this point since owner is a
nullptr
in my case:ApplicationCore/include/Module.h
Line 146 in 43b4e47
Better throw an exception and if possible give a hint how to solve the problem.
The text was updated successfully, but these errors were encountered: