Bug #2324
CCA lifecycle - component stops it self twice
Status: | New | Start date: | 06/15/2015 | |
---|---|---|---|---|
Priority: | High | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | - | |||
Target version: | - |
Description
My component changes its own state from EXECUTION to STOPPED via the requestTransition() method during the onProcess() method.
Bug: The onStopExecution() method is called twice!
See attached example project with minimum code:
cd ErrorExample/build
cmake .. -DCMAKE_PREFIX_PATH=/vol/toolkit/nightly/trusty/x86_64/successful
make
./build/StopComponent
Related issues
History
#1 Updated by Anonymous almost 9 years ago
- Priority changed from Normal to High
I could reproduce this error, thanks for the nice example.
The current method handling the lifecycle is a mess as I never found the time to implement it properly, e.g., by means of a state machine. I could provide a fix, this would, however, most probably lead to more issues in the lifecycle.
I am afraid this issue needs some more love, see #2325.
#2 Updated by Anonymous almost 9 years ago
- Related to Tasks #2325: Refactor component lifecycle added