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

sm_three_some example not running on galactic #259

Closed
romainreignier opened this issue Mar 10, 2022 · 3 comments
Closed

sm_three_some example not running on galactic #259

romainreignier opened this issue Mar 10, 2022 · 3 comments

Comments

@romainreignier
Copy link

Describe the bug
I am currently investigating the SMACC2 usage for a project.
I need subscribers to generate events so I have taken a look at examples using subscribers.
I have tried to run the sm_three_some example but there is an error about a topic without name but then, the state machine structure is not printed as for the other examples and after some logs, the node exits with return code 245.

To Reproduce
Steps to reproduce the behavior:

  1. Clone the galactic branch
  2. Follow the README to build (vcs import and rosdep install)
  3. colcon build
  4. source install/setup.bash
  5. ros2 run sm_three_some sm_three_some_node

Expected behavior
The state machine running

Output

console output
$ ros2 run sm_three_some sm_three_some_node 
1646932441.267087 [0] sm_three_s: selected interface "lo" is not multicast-capable: disabling multicast
[INFO] [1646932441.272365375] [SmThreeSome]: Creating State Machine Base: /SmThreeSome
[INFO] [1646932441.272556170] [SmThreeSome]: [sm_three_some::OrTimer] creating client object, type:'cl_ros_timer::ClRosTimer' object tag: 'sm_three_some::OrTimer'
[INFO] [1646932441.272622045] [SmThreeSome]: sm_three_some::OrTimer Orthogonal is created
[INFO] [1646932441.272673740] [SmThreeSome]: [sm_three_some::OrUpdatablePublisher] creating client object, type:'cl_ros_publisher::ClRosPublisher' object tag: 'sm_three_some::OrUpdatablePublisher'
[INFO] [1646932441.272713190] [SmThreeSome]: sm_three_some::OrUpdatablePublisher Orthogonal is created
[INFO] [1646932441.272746011] [SmThreeSome]: [sm_three_some::OrKeyboard] creating client object, type:'cl_keyboard::ClKeyboard' object tag: 'sm_three_some::OrKeyboard'
[INFO] [1646932441.272790118] [SmThreeSome]: [smacc2::ClientHandler<sm_three_some::OrKeyboard, cl_keyboard::ClKeyboard>] Subscribing to topic: /keyboard_unicode
[INFO] [1646932441.273203678] [SmThreeSome]: sm_three_some::OrKeyboard Orthogonal is created
[INFO] [1646932441.273235649] [SmThreeSome]: [sm_three_some::OrSubscriber] creating client object, type:'sm_three_some::cl_subscriber::ClSubscriber' object tag: 'sm_three_some::OrSubscriber'
[ERROR] [1646932441.273276577] [SmThreeSome]: topic client with no topic name set. Skipping subscribing
[INFO] [1646932441.273293049] [SmThreeSome]: sm_three_some::OrSubscriber Orthogonal is created
[INFO] [1646932441.273306483] [SmThreeSome]: [SmaccStateMachine] Introspecting state machine via typeWalker
[INFO] [1646932441.273324766] [SmThreeSome]: Creating State Info: sm_three_some::MsRun
[INFO] [1646932441.273369956] [SmThreeSome]: static OnDefinition: dont exist for sm_three_some::MsRun
[INFO] [1646932441.273392567] [SmThreeSome]: Creating State Info: sm_three_some::StState1
[WARN] [1646932441.273422261] [SmThreeSome]: Real parent state> sm_three_some::MsRun
[INFO] [1646932441.273441264] [SmThreeSome]: EXECUTING ONDEFINITION: sm_three_some::StState1
[INFO] [1646932441.273960627] [static]: [states walking] State StState1client behavior count: 1
[INFO] [1646932441.274002710] [static]: [states walking] State StState1client behavior count: 2
[INFO] [1646932441.274034218] [static]: [states walking] State StState1client behavior count: 3
[INFO] [1646932441.274061452] [static]: [states walking] State StState1client behavior count: 4
[INFO] [1646932441.274070888] [SmThreeSome]: State N13sm_three_some8StState1E Walker has transition list
[INFO] [1646932441.279404674] [SmThreeSome]: State sm_three_some::StState1 Walker transition: cl_ros_timer::EvTimer<cl_ros_timer::CbTimerCountdownOnce, sm_three_some::OrTimer>
[INFO] [1646932441.279432887] [SmThreeSome]: State sm_three_some::StState1 Walker transition: cl_ros_timer::EvTimer<cl_ros_timer::CbTimerCountdownOnce, sm_three_some::OrTimer>
[INFO] [1646932441.279459664] [SmThreeSome]: Transition tag: sm_three_some::StState1::TIMEOUT
[INFO] [1646932441.279482231] [SmThreeSome]: Creating State Info: sm_three_some::StState2
[INFO] [1646932441.279506551] [SmThreeSome]: EXECUTING ONDEFINITION: sm_three_some::StState2
[INFO] [1646932441.279989362] [static]: [states walking] State StState2client behavior count: 1
[INFO] [1646932441.280016353] [static]: [states walking] State StState2client behavior count: 2
[INFO] [1646932441.280039820] [static]: [states walking] State StState2client behavior count: 3
[INFO] [1646932441.280068287] [static]: [states walking] State StState2client behavior count: 4
[INFO] [1646932441.283668636] [SmThreeSome]: State N13sm_three_some8StState2E Walker has transition list
[INFO] [1646932441.288629471] [SmThreeSome]: State sm_three_some::StState2 Walker transition: cl_ros_timer::EvTimer<cl_ros_timer::CbTimerCountdownOnce, sm_three_some::OrTimer>
[INFO] [1646932441.288672206] [SmThreeSome]: State sm_three_some::StState2 Walker transition: cl_ros_timer::EvTimer<cl_ros_timer::CbTimerCountdownOnce, sm_three_some::OrTimer>
[INFO] [1646932441.288709286] [SmThreeSome]: Transition tag: sm_three_some::StState2::TIMEOUT
[INFO] [1646932441.288722180] [SmThreeSome]: Creating State Info: sm_three_some::StState3
[INFO] [1646932441.288816230] [SmThreeSome]: EXECUTING ONDEFINITION: sm_three_some::StState3
[INFO] [1646932441.289371514] [static]: [states walking] State StState3client behavior count: 1
[INFO] [1646932441.289415750] [static]: [states walking] State StState3client behavior count: 2
[INFO] [1646932441.289498967] [static]: [states walking] State StState3client behavior count: 3
[INFO] [1646932441.289543580] [static]: [states walking] State StState3client behavior count: 4
[INFO] [1646932441.289554102] [SmThreeSome]: State N13sm_three_some8StState3E Walker has transition list
[INFO] [1646932441.294809550] [SmThreeSome]: State sm_three_some::StState3 Walker transition: cl_ros_timer::EvTimer<cl_ros_timer::CbTimerCountdownOnce, sm_three_some::OrTimer>
[INFO] [1646932441.294832302] [SmThreeSome]: State sm_three_some::StState3 Walker transition: cl_ros_timer::EvTimer<cl_ros_timer::CbTimerCountdownOnce, sm_three_some::OrTimer>
[INFO] [1646932441.294854379] [SmThreeSome]: Transition tag: sm_three_some::StState3::TIMEOUT
[INFO] [1646932441.294879303] [SmThreeSome]: Creating State Info: sm_three_some::SS1::Ss1
[INFO] [1646932441.294896876] [SmThreeSome]: EXECUTING ONDEFINITION: sm_three_some::SS1::Ss1
[INFO] [1646932441.294919424] [SmThreeSome]: Creating State Info: sm_three_some::SS1::sm_three_some::inner_states::StiState1
[WARN] [1646932441.294948100] [SmThreeSome]: Real parent state> sm_three_some::SS1::Ss1
[INFO] [1646932441.294971401] [SmThreeSome]: EXECUTING ONDEFINITION: sm_three_some::SS1::sm_three_some::inner_states::StiState1
[INFO] [1646932441.294989487] [SmThreeSome]: State N13sm_three_some3SS113sm_three_some12inner_states9StiState1E Walker has transition list
[INFO] [1646932441.302469996] [SmThreeSome]: State sm_three_some::SS1::sm_three_some::inner_states::StiState1 Walker transition: smacc2::default_events::EvLoopContinue<sm_three_some::SS1::sm_three_some::inner_states::StiState1>
[INFO] [1646932441.302514783] [SmThreeSome]: State sm_three_some::SS1::sm_three_some::inner_states::StiState1 Walker transition: smacc2::default_events::EvLoopContinue<sm_three_some::SS1::sm_three_some::inner_states::StiState1>
[INFO] [1646932441.302551390] [SmThreeSome]: Transition tag: smacc2::default_transition_tags::CONTINUELOOP
[INFO] [1646932441.302598906] [SmThreeSome]: Creating State Info: sm_three_some::SS1::sm_three_some::inner_states::StiState2
[INFO] [1646932441.302636957] [SmThreeSome]: EXECUTING ONDEFINITION: sm_three_some::SS1::sm_three_some::inner_states::StiState2
[INFO] [1646932441.303445770] [static]: [states walking] State StiState2client behavior count: 1
[INFO] [1646932441.303493883] [static]: [states walking] State StiState2client behavior count: 2
[INFO] [1646932441.303581065] [static]: [states walking] State StiState2client behavior count: 3
[INFO] [1646932441.303645894] [static]: [states walking] State StiState2client behavior count: 4
[INFO] [1646932441.303660595] [SmThreeSome]: State N13sm_three_some3SS113sm_three_some12inner_states9StiState2E Walker has transition list
[INFO] [1646932441.312233315] [SmThreeSome]: State sm_three_some::SS1::sm_three_some::inner_states::StiState2 Walker transition: cl_ros_timer::EvTimer<cl_ros_timer::CbTimerCountdownOnce, sm_three_some::OrTimer>
[INFO] [1646932441.312313930] [SmThreeSome]: State sm_three_some::SS1::sm_three_some::inner_states::StiState2 Walker transition: cl_ros_timer::EvTimer<cl_ros_timer::CbTimerCountdownOnce, sm_three_some::OrTimer>
[INFO] [1646932441.312349887] [SmThreeSome]: Transition tag: sm_three_some::SS1::sm_three_some::inner_states::StiState2::TIMEOUT
[INFO] [1646932441.312369406] [SmThreeSome]: Creating State Info: sm_three_some::SS1::sm_three_some::inner_states::StiState3
[INFO] [1646932441.312428383] [SmThreeSome]: EXECUTING ONDEFINITION: sm_three_some::SS1::sm_three_some::inner_states::StiState3
[INFO] [1646932441.313207704] [static]: [states walking] State StiState3client behavior count: 1
[INFO] [1646932441.313283246] [static]: [states walking] State StiState3client behavior count: 2
[INFO] [1646932441.313333219] [static]: [states walking] State StiState3client behavior count: 3
[INFO] [1646932441.313392904] [static]: [states walking] State StiState3client behavior count: 4
[INFO] [1646932441.313407595] [SmThreeSome]: State N13sm_three_some3SS113sm_three_some12inner_states9StiState3E Walker has transition list
[WARN] [1646932441.315174879] [SmThreeSome]: Signal detector frequency (ros param signal_detector_loop_freq): 20.000000
[INFO] [1646932441.315298238] [SmThreeSome]: [SignalDetector] loop rate hz:20
[INFO] [1646932441.321869439] [SmThreeSome]: State sm_three_some::SS1::sm_three_some::inner_states::StiState3 Walker transition: cl_ros_timer::EvTimer<cl_ros_timer::CbTimerCountdownOnce, sm_three_some::OrTimer>
[INFO] [1646932441.321917786] [SmThreeSome]: State sm_three_some::SS1::sm_three_some::inner_states::StiState3 Walker transition: cl_ros_timer::EvTimer<cl_ros_timer::CbTimerCountdownOnce, sm_three_some::OrTimer>
[INFO] [1646932441.321936883] [SmThreeSome]: Transition tag: sm_three_some::SS1::sm_three_some::inner_states::StiState3::TIMEOUT
[INFO] [1646932441.330363360] [SmThreeSome]: State sm_three_some::SS1::sm_three_some::inner_states::StiState3 Walker transition: cl_keyboard::EvKeyPressP<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard>
[INFO] [1646932441.330420668] [SmThreeSome]: State sm_three_some::SS1::sm_three_some::inner_states::StiState3 Walker transition: cl_keyboard::EvKeyPressP<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard>
[INFO] [1646932441.330471375] [SmThreeSome]: Transition tag: sm_three_some::SS1::sm_three_some::inner_states::StiState3::PREVIOUS
[INFO] [1646932441.339324147] [SmThreeSome]: State sm_three_some::SS1::sm_three_some::inner_states::StiState3 Walker transition: cl_keyboard::EvKeyPressN<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard>
[INFO] [1646932441.339392640] [SmThreeSome]: State sm_three_some::SS1::sm_three_some::inner_states::StiState3 Walker transition: cl_keyboard::EvKeyPressN<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard>
[INFO] [1646932441.339434453] [SmThreeSome]: Transition tag: sm_three_some::SS1::sm_three_some::inner_states::StiState3::NEXT
[INFO] [1646932441.347417561] [SmThreeSome]: State sm_three_some::SS1::sm_three_some::inner_states::StiState2 Walker transition: cl_keyboard::EvKeyPressN<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard>
[INFO] [1646932441.347451051] [SmThreeSome]: State sm_three_some::SS1::sm_three_some::inner_states::StiState2 Walker transition: cl_keyboard::EvKeyPressN<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard>
[INFO] [1646932441.347470901] [SmThreeSome]: Transition tag: sm_three_some::SS1::sm_three_some::inner_states::StiState2::NEXT
[INFO] [1646932441.355732515] [SmThreeSome]: State sm_three_some::SS1::sm_three_some::inner_states::StiState2 Walker transition: cl_keyboard::EvKeyPressP<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard>
[INFO] [1646932441.355778584] [SmThreeSome]: State sm_three_some::SS1::sm_three_some::inner_states::StiState2 Walker transition: cl_keyboard::EvKeyPressP<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard>
[INFO] [1646932441.355818017] [SmThreeSome]: Transition tag: sm_three_some::SS1::sm_three_some::inner_states::StiState2::PREVIOUS
[INFO] [1646932441.355881547] [SmThreeSome]: State N13sm_three_some3SS13Ss1E Walker has transition list
[INFO] [1646932441.362370123] [SmThreeSome]: State sm_three_some::SS1::Ss1 Walker transition: smacc2::default_events::EvLoopEnd<sm_three_some::SS1::sm_three_some::inner_states::StiState1>
[INFO] [1646932441.362421726] [SmThreeSome]: State sm_three_some::SS1::Ss1 Walker transition: smacc2::default_events::EvLoopEnd<sm_three_some::SS1::sm_three_some::inner_states::StiState1>
[INFO] [1646932441.362448286] [SmThreeSome]: Transition tag: smacc2::default_transition_tags::ENDLOOP
[INFO] [1646932441.362505519] [SmThreeSome]: Creating State Info: sm_three_some::SS2::Ss2
[INFO] [1646932441.362532319] [SmThreeSome]: EXECUTING ONDEFINITION: sm_three_some::SS2::Ss2
[INFO] [1646932441.362604876] [SmThreeSome]: Creating State Info: sm_three_some::SS2::sm_three_some::inner_states::StiState1
[WARN] [1646932441.362634963] [SmThreeSome]: Real parent state> sm_three_some::SS2::Ss2
[INFO] [1646932441.362662879] [SmThreeSome]: EXECUTING ONDEFINITION: sm_three_some::SS2::sm_three_some::inner_states::StiState1
[INFO] [1646932441.362680426] [SmThreeSome]: State N13sm_three_some3SS213sm_three_some12inner_states9StiState1E Walker has transition list
[INFO] [1646932441.370129096] [SmThreeSome]: State sm_three_some::SS2::sm_three_some::inner_states::StiState1 Walker transition: smacc2::default_events::EvLoopContinue<sm_three_some::SS2::sm_three_some::inner_states::StiState1>
[INFO] [1646932441.370152959] [SmThreeSome]: State sm_three_some::SS2::sm_three_some::inner_states::StiState1 Walker transition: smacc2::default_events::EvLoopContinue<sm_three_some::SS2::sm_three_some::inner_states::StiState1>
[INFO] [1646932441.370168043] [SmThreeSome]: Transition tag: smacc2::default_transition_tags::CONTINUELOOP
[INFO] [1646932441.370199680] [SmThreeSome]: Creating State Info: sm_three_some::SS2::sm_three_some::inner_states::StiState2
[INFO] [1646932441.370255836] [SmThreeSome]: EXECUTING ONDEFINITION: sm_three_some::SS2::sm_three_some::inner_states::StiState2
[INFO] [1646932441.371143617] [static]: [states walking] State StiState2client behavior count: 1
[INFO] [1646932441.371173889] [static]: [states walking] State StiState2client behavior count: 2
[INFO] [1646932441.371197725] [static]: [states walking] State StiState2client behavior count: 3
[INFO] [1646932441.371249234] [static]: [states walking] State StiState2client behavior count: 4
[INFO] [1646932441.371277887] [SmThreeSome]: State N13sm_three_some3SS213sm_three_some12inner_states9StiState2E Walker has transition list
[INFO] [1646932441.379001048] [SmThreeSome]: State sm_three_some::SS2::sm_three_some::inner_states::StiState2 Walker transition: cl_ros_timer::EvTimer<cl_ros_timer::CbTimerCountdownOnce, sm_three_some::OrTimer>
[INFO] [1646932441.379040190] [SmThreeSome]: State sm_three_some::SS2::sm_three_some::inner_states::StiState2 Walker transition: cl_ros_timer::EvTimer<cl_ros_timer::CbTimerCountdownOnce, sm_three_some::OrTimer>
[INFO] [1646932441.379077597] [SmThreeSome]: Transition tag: sm_three_some::SS2::sm_three_some::inner_states::StiState2::TIMEOUT
[INFO] [1646932441.379121175] [SmThreeSome]: Creating State Info: sm_three_some::SS2::sm_three_some::inner_states::StiState3
[INFO] [1646932441.379190030] [SmThreeSome]: EXECUTING ONDEFINITION: sm_three_some::SS2::sm_three_some::inner_states::StiState3
[INFO] [1646932441.379977848] [static]: [states walking] State StiState3client behavior count: 1
[INFO] [1646932441.380010456] [static]: [states walking] State StiState3client behavior count: 2
[INFO] [1646932441.380062597] [static]: [states walking] State StiState3client behavior count: 3
[INFO] [1646932441.380095948] [static]: [states walking] State StiState3client behavior count: 4
[INFO] [1646932441.380108153] [SmThreeSome]: State N13sm_three_some3SS213sm_three_some12inner_states9StiState3E Walker has transition list
[INFO] [1646932441.388188779] [SmThreeSome]: State sm_three_some::SS2::sm_three_some::inner_states::StiState3 Walker transition: cl_ros_timer::EvTimer<cl_ros_timer::CbTimerCountdownOnce, sm_three_some::OrTimer>
[INFO] [1646932441.388230131] [SmThreeSome]: State sm_three_some::SS2::sm_three_some::inner_states::StiState3 Walker transition: cl_ros_timer::EvTimer<cl_ros_timer::CbTimerCountdownOnce, sm_three_some::OrTimer>
[INFO] [1646932441.388323974] [SmThreeSome]: Transition tag: sm_three_some::SS2::sm_three_some::inner_states::StiState3::TIMEOUT
[INFO] [1646932441.396376878] [SmThreeSome]: State sm_three_some::SS2::sm_three_some::inner_states::StiState3 Walker transition: cl_keyboard::EvKeyPressP<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard>
[INFO] [1646932441.396416954] [SmThreeSome]: State sm_three_some::SS2::sm_three_some::inner_states::StiState3 Walker transition: cl_keyboard::EvKeyPressP<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard>
[INFO] [1646932441.396461251] [SmThreeSome]: Transition tag: sm_three_some::SS2::sm_three_some::inner_states::StiState3::PREVIOUS
[INFO] [1646932441.404829414] [SmThreeSome]: State sm_three_some::SS2::sm_three_some::inner_states::StiState3 Walker transition: cl_keyboard::EvKeyPressN<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard>
[INFO] [1646932441.404897798] [SmThreeSome]: State sm_three_some::SS2::sm_three_some::inner_states::StiState3 Walker transition: cl_keyboard::EvKeyPressN<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard>
[INFO] [1646932441.404924450] [SmThreeSome]: Transition tag: sm_three_some::SS2::sm_three_some::inner_states::StiState3::NEXT
[INFO] [1646932441.412548370] [SmThreeSome]: State sm_three_some::SS2::sm_three_some::inner_states::StiState2 Walker transition: cl_keyboard::EvKeyPressN<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard>
[INFO] [1646932441.412591676] [SmThreeSome]: State sm_three_some::SS2::sm_three_some::inner_states::StiState2 Walker transition: cl_keyboard::EvKeyPressN<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard>
[INFO] [1646932441.412610481] [SmThreeSome]: Transition tag: sm_three_some::SS2::sm_three_some::inner_states::StiState2::NEXT
[INFO] [1646932441.420510104] [SmThreeSome]: State sm_three_some::SS2::sm_three_some::inner_states::StiState2 Walker transition: cl_keyboard::EvKeyPressP<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard>
[INFO] [1646932441.420552711] [SmThreeSome]: State sm_three_some::SS2::sm_three_some::inner_states::StiState2 Walker transition: cl_keyboard::EvKeyPressP<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard>
[INFO] [1646932441.420596271] [SmThreeSome]: Transition tag: sm_three_some::SS2::sm_three_some::inner_states::StiState2::PREVIOUS
[INFO] [1646932441.420659395] [SmThreeSome]: State N13sm_three_some3SS23Ss2E Walker has transition list
[INFO] [1646932441.426876830] [SmThreeSome]: State sm_three_some::SS2::Ss2 Walker transition: smacc2::default_events::EvLoopEnd<sm_three_some::SS2::sm_three_some::inner_states::StiState1>
[INFO] [1646932441.426917935] [SmThreeSome]: State sm_three_some::SS2::Ss2 Walker transition: smacc2::default_events::EvLoopEnd<sm_three_some::SS2::sm_three_some::inner_states::StiState1>
[INFO] [1646932441.426954208] [SmThreeSome]: Transition tag: smacc2::default_transition_tags::ENDLOOP
[INFO] [1646932441.426991877] [SmThreeSome]: Creating State Info: sm_three_some::StState4
[INFO] [1646932441.427020152] [SmThreeSome]: EXECUTING ONDEFINITION: sm_three_some::StState4
[INFO] [1646932441.427637944] [static]: [states walking] State StState4client behavior count: 1
[INFO] [1646932441.427651499] [SmThreeSome]: State N13sm_three_some8StState4E Walker has transition list
[INFO] [1646932441.432992059] [SmThreeSome]: State sm_three_some::StState3 Walker transition: cl_keyboard::EvKeyPressP<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard>
[INFO] [1646932441.433032353] [SmThreeSome]: State sm_three_some::StState3 Walker transition: cl_keyboard::EvKeyPressP<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard>
[INFO] [1646932441.433068455] [SmThreeSome]: Transition tag: sm_three_some::StState3::PREVIOUS
[INFO] [1646932441.438236313] [SmThreeSome]: State sm_three_some::StState3 Walker transition: cl_keyboard::EvKeyPressN<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard>
[INFO] [1646932441.438277984] [SmThreeSome]: State sm_three_some::StState3 Walker transition: cl_keyboard::EvKeyPressN<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard>
[INFO] [1646932441.438326380] [SmThreeSome]: Transition tag: sm_three_some::StState3::NEXT
[INFO] [1646932441.444537234] [SmThreeSome]: State sm_three_some::StState2 Walker transition: smacc2::state_reactors::EvAllGo<smacc2::state_reactors::SrAllEventsGo, smacc2::state_reactors::EmptyObjectTag>
[INFO] [1646932441.444558754] [SmThreeSome]: State sm_three_some::StState2 Walker transition: smacc2::state_reactors::EvAllGo<smacc2::state_reactors::SrAllEventsGo, smacc2::state_reactors::EmptyObjectTag>
[INFO] [1646932441.444579681] [SmThreeSome]: Transition tag:
[INFO] [1646932441.450062618] [SmThreeSome]: State sm_three_some::StState2 Walker transition: cl_keyboard::EvKeyPressP<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard>
[INFO] [1646932441.450116362] [SmThreeSome]: State sm_three_some::StState2 Walker transition: cl_keyboard::EvKeyPressP<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard>
[INFO] [1646932441.450133452] [SmThreeSome]: Transition tag: sm_three_some::StState2::PREVIOUS
[INFO] [1646932441.455257538] [SmThreeSome]: State sm_three_some::StState2 Walker transition: cl_keyboard::EvKeyPressN<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard>
[INFO] [1646932441.455334946] [SmThreeSome]: State sm_three_some::StState2 Walker transition: cl_keyboard::EvKeyPressN<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard>
[INFO] [1646932441.455364601] [SmThreeSome]: Transition tag: sm_three_some::StState2::NEXT
[WARN] [1646932441.472024905] [SmThreeSome]:
[INFO] [1646932441.472157442] [SmThreeSome]: State sm_three_some::StState1 Walker transition: smacc2::default_events::EvTopicMessage<sm_three_some::cl_subscriber::ClSubscriber, sm_three_some::OrSubscriber, std_msgs::msg::UInt16_<std::allocator<void> > >
[INFO] [1646932441.472202114] [SmThreeSome]: State sm_three_some::StState1 Walker transition: smacc2::default_events::EvTopicMessage<sm_three_some::cl_subscriber::ClSubscriber, sm_three_some::OrSubscriber, std_msgs::msg::UInt16_<std::allocator<void> > >
[INFO] [1646932441.472226347] [SmThreeSome]: Transition tag: sm_three_some::StState1::TIMEOUT
$

Environment:

ROS DETAILS:

  • OS: Ubuntu 20.04 LTS
  • Version: Galactic

REPO DETAILS:

  • Repository: robosoft-ai/SMACC2
  • Branch: galactic
  • Commit: 8ad830

BUILD DETAILS

  • Build Command: colcon build

TEST DETAILS

  • Command: ros2 run sm_three_some sm_three_some_node
  • Launch file:ros2 launch sm_three_some sm_three_some.launch
@romainreignier
Copy link
Author

Here is the gdb backtrace if of any help

Thread 5 "sm_three_some_n" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff5244700 (LWP 2219)]
0x0000555555747be4 in __gnu_cxx::__normal_iterator<std::shared_ptr<smacc2::introspection::TypeInfo>*, std::vector<std::shared_ptr<smacc2::introspection::TypeInfo>, std::allocator<std::shared_ptr<smacc2::introspection::TypeInfo> > > >::__normal_iterator (this=0x7ffff5240ad0, __i=<error reading variable>) at /usr/include/c++/9/bits/stl_iterator.h:807
807           : _M_current(__i) { }
(gdb) bt
#0  0x0000555555747be4 in __gnu_cxx::__normal_iterator<std::shared_ptr<smacc2::introspection::TypeInfo>*, std::vector<std::shared_ptr<smacc2::introspection::TypeInfo>, std::allocator<std::shared_ptr<smacc2::introspection::TypeInfo> > > >::__normal_iterator (this=0x7ffff5240ad0, __i=<error reading variable>) at /usr/include/c++/9/bits/stl_iterator.h:807
#1  0x0000555555742064 in std::vector<std::shared_ptr<smacc2::introspection::TypeInfo>, std::allocator<std::shared_ptr<smacc2::introspection::TypeInfo> > >::begin (this=0x0) at /usr/include/c++/9/bits/stl_vector.h:809
#2  0x000055555573d90f in std::vector<std::shared_ptr<smacc2::introspection::TypeInfo>, std::allocator<std::shared_ptr<smacc2::introspection::TypeInfo> > >::front (this=0x0) at /usr/include/c++/9/bits/stl_vector.h:1121
#3  0x000055555573dd2c in smacc2::introspection::SmaccStateInfo::declareTransition<smacc2::default_events::EvTopicMessage<sm_three_some::cl_subscriber::ClSubscriber, sm_three_some::OrSubscriber, std_msgs::msg::UInt16_<std::allocator<void> > > > (this=0x7ffff0080a70,
    dstState=std::shared_ptr<smacc2::introspection::SmaccStateInfo> (use count 10, weak count 1) = {...}, transitionTag="sm_three_some::StState1::TIMEOUT", transitionType="smacc2::default_transition_tags::ABORT", history=false, transitionTypeInfo=std::shared_ptr<smacc2::introspection::TypeInfo> (empty) = {...})
    at /home/rre/victor_ws/install/smacc2/include/smacc2/introspection/smacc_state_machine_info.hpp:263
#4  0x0000555555738403 in smacc2::introspection::processTransitionAux<smacc2::default_events::EvTopicMessage<sm_three_some::cl_subscriber::ClSubscriber, sm_three_some::OrSubscriber, std_msgs::msg::UInt16_<std::allocator<void> > >, sm_three_some::StState2, sm_three_some::StState1::TIMEOUT> (
    sourceState=std::shared_ptr<smacc2::introspection::SmaccStateInfo> (use count 6, weak count 1) = {...}, history=false, transitionTypeInfo=std::shared_ptr<smacc2::introspection::TypeInfo> (empty) = {...}) at /home/rre/victor_ws/install/smacc2/include/smacc2/introspection/smacc_state_machine_info.hpp:235
#5  0x00005555557335b0 in smacc2::introspection::processTransition<smacc2::default_events::EvTopicMessage<sm_three_some::cl_subscriber::ClSubscriber, sm_three_some::OrSubscriber, std_msgs::msg::UInt16_<std::allocator<void> > >, sm_three_some::StState2, sm_three_some::StState1::TIMEOUT> (t=0x0,
    sourceState=std::shared_ptr<smacc2::introspection::SmaccStateInfo> (use count 6, weak count 1) = {...}) at /home/rre/victor_ws/install/smacc2/include/smacc2/introspection/smacc_state_machine_info.hpp:190
#6  0x000055555572d3af in smacc2::introspection::processTransitions<smacc2::Transition<smacc2::default_events::EvTopicMessage<sm_three_some::cl_subscriber::ClSubscriber, sm_three_some::OrSubscriber, std_msgs::msg::UInt16_<std::allocator<void> > >, sm_three_some::StState2, sm_three_some::StState1::TIMEOUT, boost::statechart::detail::no_context<smacc2::default_events::EvTopicMessage<sm_three_some::cl_subscriber::ClSubscriber, sm_three_some::OrSubscriber, std_msgs::msg::UInt16_<std::allocator<void> > > >, &boost::statechart::detail::no_context<smacc2::default_events::EvTopicMessage<sm_three_some::cl_subscriber::ClSubscriber, sm_three_some::OrSubscriber, std_msgs::msg::UInt16_<std::allocator<void> > > >::no_function> > (sourceState=std::shared_ptr<smacc2::introspection::SmaccStateInfo> (use count 6, weak count 1) = {...}) at /home/rre/victor_ws/install/smacc2/include/smacc2/introspection/smacc_state_machine_info.hpp:344
#7  0x0000555555726da5 in smacc2::introspection::AddTransition::operator()<smacc2::introspection::type_<smacc2::Transition<smacc2::default_events::EvTopicMessage<sm_three_some::cl_subscriber::ClSubscriber, sm_three_some::OrSubscriber, std_msgs::msg::UInt16_<std::allocator<void> > >, sm_three_some::StState2, sm_three_some::StState1::TIMEOUT, boost::statechart::detail::no_context<smacc2::default_events::EvTopicMessage<sm_three_some::cl_subscriber::ClSubscriber, sm_three_some::OrSubscriber, std_msgs::msg::UInt16_<std::allocator<void> > > >, &boost::statechart::detail::no_context<smacc2::default_events::EvTopicMessage<sm_three_some::cl_subscriber::ClSubscriber, sm_three_some::OrSubscriber, std_msgs::msg::UInt16_<std::allocator<void> > > >::no_function> > > (this=0x7ffff5241f80) at /home/rre/victor_ws/install/smacc2/include/smacc2/introspection/smacc_state_machine_info.hpp:416
#8  0x000055555572235b in boost::mpl::aux::for_each_impl<false>::execute<boost::mpl::l_iter<boost::mpl::l_item<mpl_::long_<4l>, smacc2::introspection::type_<smacc2::Transition<smacc2::default_events::EvTopicMessage<sm_three_some::cl_subscriber::ClSubscriber, sm_three_some::OrSubscriber, std_msgs::msg::UInt16_<std::allocator<void> > >, sm_three_some::StState2, sm_three_some::StState1::TIMEOUT, boost::statechart::detail::no_context<smacc2::default_events::EvTopicMessage<sm_three_some::cl_subscriber::ClSubscriber, sm_three_some::OrSubscriber, std_msgs::msg::UInt16_<std::allocator<void> > > >, &boost::statechart::detail::no_context<smacc2::default_events::EvTopicMessage<sm_three_some::cl_subscriber::ClSubscriber, sm_three_some::OrSubscriber, std_msgs::msg::UInt16_<std::allocator<void> > > >::no_function> >, boost::mpl::l_item<mpl_::long_<3l>, smacc2::introspection::type_<smacc2::Transition<cl_keyboard::EvKeyPressP<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard>, sm_three_some::SS1::Ss1, sm_three_some::StState1::PREVIOUS, boost::statechart::detail::no_context<cl_keyboard::EvKeyPressP<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard> >, &boost::statechart::detail::no_context<cl_keyboard::EvKeyPressP<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard> >::no_function> >, boost::mpl::l_item<mpl_::long_<2l>, smacc2::introspection::type_<smacc2::Transition<cl_keyboard::EvKeyPressN<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard>, sm_three_some::StState2, sm_three_some::StState1::NEXT, boost::statechart::detail::no_context<cl_keyboard::EvKeyPressN<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard> >, &boost::statechart::detail::no_context<cl_keyboard::EvKeyPressN<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard> >::no_function> >, boost::mpl::l_item<mpl_::long_<1l>, smacc2::introspection::type_<smacc2::Transition<sm_three_some::EvFail, sm_three_some::MsRecover, smacc2::default_transition_tags::ABORT, boost::statechart::detail::no_context<sm_three_some::EvFail>, &boost::statechart::detail::no_context<sm_three_some::EvFail>::no_function> >, boost::mpl::l_end> > > > >, boost::mpl::l_iter<boost::mpl::l_end>, boost::mpl::identity<mpl_::na>, smacc2::introspection::AddTransition> (f=...) at /usr/include/boost/mpl/for_each.hpp:78
#9  0x000055555571c10a in _ZN5boost3mpl3aux13for_each_implILb0EE7executeINS0_6l_iterINS0_6l_itemIN4mpl_5long_ILl5EEEN6smacc213introspection5type_INSA_10TransitionIN12cl_ros_timer7EvTimerINSE_20CbTimerCountdownOnceEN13sm_three_some7OrTimerEEENSH_8StState2ENSH_8StState17TIMEOUTENS_10statechart6detail10no_contextISJ_EEXadL_ZNSQ_11no_functionERKSJ_EEEEEENS6_INS8_ILl4EEENSC_INSD_INSA_14default_events14EvTopicMessageINSH_13cl_subscriber12ClSubscriberENSH_12OrSubscriberEN8std_msgs3msg7UInt16_ISaIvEEEEESK_SM_NSP_IS16_EEXadL_ZNS17_11no_functionERKS16_EEEEEENS6_INS8_ILl3EEENSC_INSD_IN11cl_keyboard11EvKeyPressPINS1D_25CbDefaultKeyboardBehaviorENSH_10OrKeyboardEEENSH_3SS13Ss1ENSL_8PREVIOUSENSP_IS1H_EEXadL_ZNS1L_11no_functionERKS1H_EEEEEENS6_INS8_ILl2EEENSC_INSD_INS1D_11EvKeyPressNIS1F_S1G_EESK_NSL_4NEXTENSP_IS1S_EEXadL_ZNS1U_11no_functionERKS1S_EEEEEENS6_INS8_ILl1EEENSC_INSD_INSH_6EvFailENSH_9MsRecoverENSA_23default_transition_tags5ABORTENSP_IS20_EEXadL_ZNS24_11no_functionERKS20_EEEEEENS0_5l_endEEEEEEEEEEEEENS5_IS29_EENS0_8identityINS7_2naEEENSB_13AddTransitionEEEvPT_PT0_PT1_T2_ (
    f=...) at /usr/include/boost/mpl/for_each.hpp:82
#10 0x0000555555715aad in boost::mpl::for_each<boost::mpl::l_item<mpl_::long_<5l>, smacc2::introspection::type_<smacc2::Transition<cl_ros_timer::EvTimer<cl_ros_timer::CbTimerCountdownOnce, sm_three_some::OrTimer>, sm_three_some::StState2, sm_three_some::StState1::TIMEOUT, boost::statechart::detail::no_context<cl_ros_timer::EvTimer<cl_ros_timer::CbTimerCountdownOnce, sm_three_some::OrTimer> >, &boost::statechart::detail::no_context<cl_ros_timer::EvTimer<cl_ros_timer::CbTimerCountdownOnce, sm_three_some::OrTimer> >::no_function> >, boost::mpl::l_item<mpl_::long_<4l>, smacc2::introspection::type_<smacc2::Transition<smacc2::default_events::EvTopicMessage<sm_three_some::cl_subscriber::ClSubscriber, sm_three_some::OrSubscriber, std_msgs::msg::UInt16_<std::allocator<void> > >, sm_three_some::StState2, sm_three_some::StState1::TIMEOUT, boost::statechart::detail::no_context<smacc2::default_events::EvTopicMessage<sm_three_some::cl_subscriber::ClSubscriber, sm_three_some::OrSubscriber, std_msgs::msg::UInt16_<std::allocator<void> > > >, &boost::statechart::detail::no_context<smacc2::default_events::EvTopicMessage<sm_three_some::cl_subscriber::ClSubscriber, sm_three_some::OrSubscriber, std_msgs::msg::UInt16_<std::allocator<void> > > >::no_function> >, boost::mpl::l_item<mpl_::long_<3l>, smacc2::introspection::type_<smacc2::Transition<cl_keyboard::EvKeyPressP<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard>, sm_three_some::SS1::Ss1, sm_three_some::StState1::PREVIOUS, boost::statechart::detail::no_context<cl_keyboard::EvKeyPressP<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard> >, &boost::statechart::detail::no_context<cl_keyboard::EvKeyPressP<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard> >::no_function> >, boost::mpl::l_item<mpl_::long_<2l>, smacc2::introspection::type_<smacc2::Transition<cl_keyboard::EvKeyPressN<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard>, sm_three_some::StState2, sm_three_some::StState1::NEXT, boost::statechart::detail::no_context<cl_keyboard::EvKeyPressN<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard> >, &boost::statechart::detail::no_context<cl_keyboard::EvKeyPressN<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard> >::no_function> >, boost::mpl::l_item<mpl_::long_<1l>, smacc2::introspection::type_<smacc2::Transition<sm_three_some::EvFail, sm_three_some::MsRecover, smacc2::default_transition_tags::ABORT, boost::statechart::detail::no_context<sm_three_some::EvFail>, &boost::statechart::detail::no_context<sm_three_some::EvFail>::no_function> >, boost::mpl::l_end> > > > >, boost::mpl::identity<mpl_::na>, smacc2::introspection::AddTransition> (f=...) at /usr/include/boost/mpl/for_each.hpp:105
#11 0x000055555571102c in boost::mpl::for_each<boost::mpl::l_item<mpl_::long_<5l>, smacc2::introspection::type_<smacc2::Transition<cl_ros_timer::EvTimer<cl_ros_timer::CbTimerCountdownOnce, sm_three_some::OrTimer>, sm_three_some::StState2, sm_three_some::StState1::TIMEOUT, boost::statechart::detail::no_context<cl_ros_timer::EvTimer<cl_ros_timer::CbTimerCountdownOnce, sm_three_some::OrTimer> >, &boost::statechart::detail::no_context<cl_ros_timer::EvTimer<cl_ros_timer::CbTimerCountdownOnce, sm_three_some::OrTimer> >::no_function> >, boost::mpl::l_item<mpl_::long_<4l>, smacc2::introspection::type_<smacc2::Transition<smacc2::default_events::EvTopicMessage<sm_three_some::cl_subscriber::ClSubscriber, sm_three_some::OrSubscriber, std_msgs::msg::UInt16_<std::allocator<void> > >, sm_three_some::StState2, sm_three_some::StState1::TIMEOUT, boost::statechart::detail::no_context<smacc2::default_events::EvTopicMessage<sm_three_some::cl_subscriber::ClSubscriber, sm_three_some::OrSubscriber, std_msgs::msg::UInt16_<std::allocator<void> > > >, &boost::statechart::detail::no_context<smacc2::default_events::EvTopicMessage<sm_three_some::cl_subscriber::ClSubscriber, sm_three_some::OrSubscriber, std_msgs::msg::UInt16_<std::allocator<void> > > >::no_function> >, boost::mpl::l_item<mpl_::long_<3l>, smacc2::introspection::type_<smacc2::Transition<cl_keyboard::EvKeyPressP<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard>, sm_three_some::SS1::Ss1, sm_three_some::StState1::PREVIOUS, boost::statechart::detail::no_context<cl_keyboard::EvKeyPressP<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard> >, &boost::statechart::detail::no_context<cl_keyboard::EvKeyPressP<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard> >::no_function> >, boost::mpl::l_item<mpl_::long_<2l>, smacc2::introspection::type_<smacc2::Transition<cl_keyboard::EvKeyPressN<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard>, sm_three_some::StState2, sm_three_some::StState1::NEXT, boost::statechart::detail::no_context<cl_keyboard::EvKeyPressN<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard> >, &boost::statechart::detail::no_context<cl_keyboard::EvKeyPressN<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard> >::no_function> >, boost::mpl::l_item<mpl_::long_<1l>, smacc2::introspection::type_<smacc2::Transition<sm_three_some::EvFail, sm_three_some::MsRecover, smacc2::default_transition_tags::ABORT, boost::statechart::detail::no_context<sm_three_some::EvFail>, &boost::statechart::detail::no_context<sm_three_some::EvFail>::no_function> >, boost::mpl::l_end> > > > >, smacc2::introspection::AddTransition> (f=...) at /usr/include/boost/mpl/for_each.hpp:118
#12 0x000055555570c0e6 in smacc2::introspection::processTransitions<boost::mpl::list<smacc2::Transition<cl_ros_timer::EvTimer<cl_ros_timer::CbTimerCountdownOnce, sm_three_some::OrTimer>, sm_three_some::StState2, sm_three_some::StState1::TIMEOUT, boost::statechart::detail::no_context<cl_ros_timer::EvTimer<cl_ros_timer::CbTimerCountdownOnce, sm_three_some::OrTimer> >, &boost::statechart::detail::no_context<cl_ros_timer::EvTimer<cl_ros_timer::CbTimerCountdownOnce, sm_three_some::OrTimer> >::no_function>, smacc2::Transition<smacc2::default_events::EvTopicMessage<sm_three_some::cl_subscriber::ClSubscriber, sm_three_some::OrSubscriber, std_msgs::msg::UInt16_<std::allocator<void> > >, sm_three_some::StState2, sm_three_some::StState1::TIMEOUT, boost::statechart::detail::no_context<smacc2::default_events::EvTopicMessage<sm_three_some::cl_subscriber::ClSubscriber, sm_three_some::OrSubscriber, std_msgs::msg::UInt16_<std::allocator<void> > > >, &boost::statechart::detail::no_context<smacc2::default_events::EvTopicMessage<sm_three_some::cl_subscriber::ClSubscriber, sm_three_some::OrSubscriber, std_msgs::msg::UInt16_<std::allocator<void> > > >::no_function>, smacc2::Transition<cl_keyboard::EvKeyPressP<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard>, sm_three_some::SS1::Ss1, sm_three_some::StState1::PREVIOUS, boost::statechart::detail::no_context<cl_keyboard::EvKeyPressP<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard> >, &boost::statechart::detail::no_context<cl_keyboard::EvKeyPressP<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard> >::no_function>, smacc2::Transition<cl_keyboard::EvKeyPressN<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard>, sm_three_some::StState2, sm_three_some::StState1::NEXT, boost::statechart::detail::no_context<cl_keyboard::EvKeyPressN<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard> >, &boost::statechart::detail::no_context<cl_keyboard::EvKeyPressN<cl_keyboard::CbDefaultKeyboardBehavior, sm_three_some::OrKeyboard> >::no_function>, smacc2::Transition<sm_three_some::EvFail, sm_three_some::MsRecover, smacc2::default_transition_tags::ABORT, boost::statechart::detail::no_context<sm_three_some::EvFail>, &boost::statechart::detail::no_context<sm_three_some::EvFail>::no_function>, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na> > (
    sourceState=std::shared_ptr<smacc2::introspection::SmaccStateInfo> (use count 6, weak count 1) = {...}) at /home/rre/victor_ws/install/smacc2/include/smacc2/introspection/smacc_state_machine_info.hpp:168
#13 0x00005555557066b6 in smacc2::introspection::WalkStatesExecutor<sm_three_some::StState1>::walkStates (parentState=std::shared_ptr<smacc2::introspection::SmaccStateInfo> (use count 9, weak count 1) = {...}, rootInitialNode=false) at /home/rre/victor_ws/install/smacc2/include/smacc2/introspection/smacc_state_machine_info.hpp:461
#14 0x00005555557022c5 in smacc2::introspection::processSubState<sm_three_some::StState1> (parentState=std::shared_ptr<smacc2::introspection::SmaccStateInfo> (use count 9, weak count 1) = {...}) at /home/rre/victor_ws/install/smacc2/include/smacc2/introspection/smacc_state_machine_info.hpp:144
#15 0x00005555556fdfaa in smacc2::introspection::WalkStatesExecutor<sm_three_some::MsRun>::walkStates (parentState=std::shared_ptr<smacc2::introspection::SmaccStateInfo> (use count 9, weak count 1) = {...}, rootInitialNode=true) at /home/rre/victor_ws/install/smacc2/include/smacc2/introspection/smacc_state_machine_info.hpp:454
#16 0x00005555556fb9bf in smacc2::introspection::SmaccStateMachineInfo::buildStateMachineInfo<sm_three_some::MsRun> (this=0x7ffff007c5a0) at /home/rre/victor_ws/install/smacc2/include/smacc2/introspection/smacc_state_machine_info.hpp:470
#17 0x00005555556fa666 in smacc2::ISmaccStateMachine::buildStateMachineInfo<sm_three_some::MsRun> (this=0x7ffff0000b60) at /home/rre/victor_ws/install/smacc2/include/smacc2/impl/smacc_state_machine_impl.hpp:601
#18 0x00005555556f742d in smacc2::SmaccStateMachineBase<sm_three_some::SmThreeSome, sm_three_some::MsRun>::initiate_impl (this=0x7ffff0000b60) at /home/rre/victor_ws/install/smacc2/include/smacc2/smacc_state_machine_base.hpp:75
#19 0x000055555568a19d in boost::statechart::event_processor<boost::statechart::fifo_scheduler<boost::statechart::fifo_worker<std::allocator<boost::statechart::none> >, std::allocator<boost::statechart::none> > >::initiate (this=0x7ffff0000e40) at /usr/include/boost/statechart/event_processor.hpp:44
#20 0x000055555567ac22 in boost::statechart::processor_container<boost::statechart::fifo_scheduler<boost::statechart::fifo_worker<std::allocator<boost::statechart::none> >, std::allocator<boost::statechart::none> >, boost::function0<void>, std::allocator<boost::statechart::none> >::initiate_processor_impl (this=0x7fffffffcfc8, processor=...)
    at /usr/include/boost/statechart/processor_container.hpp:397
#21 0x00005555556e103a in boost::_mfi::mf1<void, boost::statechart::processor_container<boost::statechart::fifo_scheduler<boost::statechart::fifo_worker<std::allocator<boost::statechart::none> >, std::allocator<boost::statechart::none> >, boost::function0<void>, std::allocator<boost::statechart::none> >, boost::weak_ptr<std::auto_ptr<boost::statechart::event_processor<boost::statechart::fifo_scheduler<boost::statechart::fifo_worker<std::allocator<boost::statechart::none> >, std::allocator<boost::statechart::none> > > > > const&>::operator() (this=0x555555979a10, p=0x7fffffffcfc8, a1=...) at /usr/include/boost/bind/mem_fn_template.hpp:165
#22 0x00005555556d8590 in boost::_bi::list2<boost::_bi::value<boost::statechart::processor_container<boost::statechart::fifo_scheduler<boost::statechart::fifo_worker<std::allocator<boost::statechart::none> >, std::allocator<boost::statechart::none> >, boost::function0<void>, std::allocator<boost::statechart::none> >*>, boost::_bi::value<boost::weak_ptr<std::auto_ptr<boost::statechart::event_processor<boost::statechart::fifo_scheduler<boost::statechart::fifo_worker<std::allocator<boost::statechart::none> >, std::allocator<boost::statechart::none> > > > > > >::operator()<boost::_mfi::mf1<void, boost::statechart::processor_container<boost::statechart::fifo_scheduler<boost::statechart::fifo_worker<std::allocator<boost::statechart::none> >, std::allocator<boost::statechart::none> >, boost::function0<void>, std::allocator<boost::statechart::none> >, boost::weak_ptr<std::auto_ptr<boost::statechart::event_processor<boost::statechart::fifo_scheduler<boost::statechart::fifo_worker<std::allocator<boost::statechart::none> >, std::allocator<boost::statechart::none> > > > > const&>, boost::_bi::list0> (this=0x555555979a20, f=..., a=...) at /usr/include/boost/bind/bind.hpp:319
#23 0x00005555556c4af2 in boost::_bi::bind_t<void, boost::_mfi::mf1<void, boost::statechart::processor_container<boost::statechart::fifo_scheduler<boost::statechart::fifo_worker<std::allocator<boost::statechart::none> >, std::allocator<boost::statechart::none> >, boost::function0<void>, std::allocator<boost::statechart::none> >, boost::weak_ptr<std::auto_ptr<boost::statechart::event_processor<boost::statechart::fifo_scheduler<boost::statechart::fifo_worker<std::allocator<boost::statechart::none> >, std::allocator<boost::statechart::none> > > > > const&>, boost::_bi::list2<boost::_bi::value<boost::statechart::processor_container<boost::statechart::fifo_scheduler<boost::statechart::fifo_worker<std::allocator<boost::statechart::none> >, std::allocator<boost::statechart::none> >, boost::function0<void>, std::allocator<boost::statechart::none> >*>, boost::_bi::value<boost::weak_ptr<std::auto_ptr<boost::statechart::event_processor<boost::statechart::fifo_scheduler<boost::statechart::fifo_worker<std::allocator<boost::statechart::none> >, std::allocator<boost::statechart::none> > > > > > > >::operator() (this=0x555555979a10) at /usr/include/boost/bind/bind.hpp:1294
#24 0x00005555556a7505 in boost::detail::function::void_function_obj_invoker0<boost::_bi::bind_t<void, boost::_mfi::mf1<void, boost::statechart::processor_container<boost::statechart::fifo_scheduler<boost::statechart::fifo_worker<std::allocator<boost::statechart::none> >, std::allocator<boost::statechart::none> >, boost::function0<void>, std::allocator<boost::statechart::none> >, boost::weak_ptr<std::auto_ptr<boost::statechart::event_processor<boost::statechart::fifo_scheduler<boost::statechart::fifo_worker<std::allocator<boost::statechart::none> >, std::allocator<boost::statechart::none> > > > > const&>, boost::_bi::list2<boost::_bi::value<boost::statechart::processor_container<boost::statechart::fifo_scheduler<boost::statechart::fifo_worker<std::allocator<boost::statechart::none> >, std::allocator<boost::statechart::none> >, boost::function0<void>, std::allocator<boost::statechart::none> >*>, boost::_bi::value<boost::weak_ptr<std::auto_ptr<boost::statechart::event_processor<boost::statechart::fifo_scheduler<boost::statechart::fifo_worker<std::allocator<boost::statechart::none> >, std::allocator<boost::statechart::none> > > > > > > >, void>::invoke (function_obj_ptr=...) at /usr/include/boost/function/function_template.hpp:158
#25 0x000055555563f85f in boost::function0<void>::operator() (this=0x7ffff52434d0) at /usr/include/boost/function/function_template.hpp:763
#26 0x0000555555664adb in boost::statechart::fifo_worker<std::allocator<boost::statechart::none> >::operator() (this=0x7fffffffcff8, maxItemCount=0) at /usr/include/boost/statechart/fifo_worker.hpp:134
#27 0x00005555556598c7 in boost::statechart::fifo_scheduler<boost::statechart::fifo_worker<std::allocator<boost::statechart::none> >, std::allocator<boost::statechart::none> >::operator() (this=0x7fffffffcfc0, maxEventCount=0) at /usr/include/boost/statechart/fifo_scheduler.hpp:187
#28 0x00005555556fc3a0 in boost::_mfi::mf1<unsigned long, boost::statechart::fifo_scheduler<boost::statechart::fifo_worker<std::allocator<boost::statechart::none> >, std::allocator<boost::statechart::none> >, unsigned long>::operator() (this=0x55555599fd28, p=0x7fffffffcfc0, a1=0) at /usr/include/boost/bind/mem_fn_template.hpp:165
#29 0x00005555556fb0c7 in boost::_bi::list2<boost::_bi::value<boost::statechart::fifo_scheduler<boost::statechart::fifo_worker<std::allocator<boost::statechart::none> >, std::allocator<boost::statechart::none> >*>, boost::_bi::value<int> >::operator()<unsigned long, boost::_mfi::mf1<unsigned long, boost::statechart::fifo_scheduler<boost::statechart::fifo_worker<std::allocator<boost::statechart::none> >, std::allocator<boost::statechart::none> >, unsigned long>, boost::_bi::list0> (this=0x55555599fd38, f=..., a=...) at /usr/include/boost/bind/bind.hpp:309
#30 0x00005555556f8060 in boost::_bi::bind_t<unsigned long, boost::_mfi::mf1<unsigned long, boost::statechart::fifo_scheduler<boost::statechart::fifo_worker<std::allocator<boost::statechart::none> >, std::allocator<boost::statechart::none> >, unsigned long>, boost::_bi::list2<boost::_bi::value<boost::statechart::fifo_scheduler<boost::statechart::fifo_worker<std::allocator<boost::statechart::none> >, std::allocator<boost::statechart::none> >*>, boost::_bi::value<int> > >::operator() (this=0x55555599fd28) at /usr/include/boost/bind/bind.hpp:1294
#31 0x00005555556f1f4a in boost::detail::thread_data<boost::_bi::bind_t<unsigned long, boost::_mfi::mf1<unsigned long, boost::statechart::fifo_scheduler<boost::statechart::fifo_worker<std::allocator<boost::statechart::none> >, std::allocator<boost::statechart::none> >, unsigned long>, boost::_bi::list2<boost::_bi::value<boost::statechart::fifo_scheduler<boost::statechart::fifo_worker<std::allocator<boost::statechart::none> >, std::allocator<boost::statechart::none> >*>, boost::_bi::value<int> > > >::run (this=0x55555599fbf0) at /usr/include/boost/thread/detail/thread.hpp:120
#32 0x00007ffff7f7443b in ?? () from /lib/x86_64-linux-gnu/libboost_thread.so.1.71.0
#33 0x00007ffff7942609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#34 0x00007ffff75d2293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

@romainreignier
Copy link
Author

For some context, I have started to write a simple state machine based on the sm_atomic_example.
But as soon as I have replaced the timer by a subscriber to produce events, I also have a segfault.

I think that SMACC2 lack simpler examples with just two states but different sources for events, like timer, subscriber, service...

@pabloinigoblasco
Copy link
Contributor

Hello.
Thanks for your report. We identified the issue you mentioned.
It was a regression in the code, now it should be fixed in all branches.

I hope it helps for you. Please, do not hesitate to re-open the discussion if you are still getting any error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants