Bug #2324

CCA lifecycle - component stops it self twice

Added by N. Dehio almost 9 years ago. Updated almost 9 years ago.

Status:NewStart date:06/15/2015
Priority:HighDue 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

ErrorExample.tar.gz (4.65 KB) N. Dehio, 06/15/2015 04:48 PM


Related issues

Related to Compliant Control Architecture - Tasks #2325: Refactor component lifecycle New 06/15/2015

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

Also available in: Atom PDF