dlr-gtlab / gtlab-core

GTlab Core Framework
https://www.gtlab.de
Other
7 stars 2 forks source link

🐛 [BUG] - Tasks of modules seems to be registered twice #1181

Closed jensschmeink closed 4 months ago

jensschmeink commented 5 months ago

Summary

There is a message for each task that it is already registered

Expected Behaviour

No warnigns should appear

Reproduction steps

Start GTlab

Screenshots

DESCRIPTION

Logs

WARNING : class already exists! ( "GtpEquationSystem)"

GTlab environment

GTlab Version: 2.0.6

OS

Windows

jensschmeink commented 5 months ago

If is needed to change the API/ABI change milestone 2-1

jensschmeink commented 4 months ago

I think there is a problem in the registration in the gt_processmoduleloader.cpp (line 146/147)

        for (GtTaskData const& taskData : taskDataList)
        {
            gtTaskFactory->registerTaskData(taskData);
            gtObjectFactory->registerClass(taskData->metaData());
        }

but
registerTaskData
also calls
gtObjectFactory->registerClass(taskData->metaData());