Now inserting calls to advance_state(), other debug code (that keeps
a parallel administration) claims that the statemachine shouldn't
be running. What went wrong?
STATEFULTASK: Running state bs_multiplex / MonteCarlo_alpha [0x19b9230]
NOTICE : randomnumber = 18
STATEFULTASK: Entering AIStatefulTask::idle() [0x19b9230]
STATEFULTASK: Erasing stateful task [0x19b9230] from gMainThreadEngine
STATEFULTASK: Sorting 0 stateful tasks.
NOTICE : Looped 20 times, calling cont().
STATEFULTASK: Entering AIStatefulTask::cont() [0x19b9230]
STATEFULTASK: Entering AIStatefulTask::multiplex(schedule_run) [0x19b9230]
STATEFULTASK: Entering AIStatefulTask::begin_loop(bs_multiplex) [0x19b9230]
STATEFULTASK: Entering AIStatefulTask::begin_loop(bs_multiplex) [0x19b9230]
STATEFULTASK: Running state bs_multiplex / MonteCarlo_alpha [0x19b9230]
NOTICE : randomnumber = 36
STATEFULTASK: Entering AIStatefulTask::set_state(MonteCarlo_alpha) [0x19b9230]
STATEFULTASK: Entering AIStatefulTask::yield(gMainThreadEngine) [0x19b9230]
STATEFULTASK: Adding stateful task [0x19b9230] to gMainThreadEngine
STATEFULTASK: Entering AIStatefulTask::multiplex(normal_run) [0x19b9230]
STATEFULTASK: Entering AIStatefulTask::begin_loop(bs_multiplex) [0x19b9230]
STATEFULTASK: Insertion of advance_state(MonteCarlo_beta) at AIStatefulTask.cxx:0
STATEFULTASK: | Entering AIStatefulTask::advance_state(MonteCarlo_beta) [0x19b9230]
STATEFULTASK: Running state bs_multiplex / MonteCarlo_alpha [0x19b9230]
NOTICE : randomnumber = 40
STATEFULTASK: Entering AIStatefulTask::set_state(MonteCarlo_beta) [0x19b9230]
STATEFULTASK: Entering AIStatefulTask::idle() [0x19b9230]
MCSTATE : New node (n16): { 'After idle()' (AIStatefulTask.cxx:0), bs_multiplex/MonteCarlo_beta, need_run idle reset}
MCSTATE : { 'Before multiplex()' (AIStatefulTask.cxx:0), bs_multiplex/MonteCarlo_beta, need_run reset}(n10) -> { 'After idle()' (AIStatefulTask.cxx:0), bs_multiplex/MonteCarlo_beta, need_run idle reset} {50}
MCSTATE : { 'After idle()' (AIStatefulTask.cxx:0), bs_multiplex/MonteCarlo_beta, need_run idle reset}(n16) -> { 'In multiplex(), locked, CA-mState' (AIStatefulTask.cxx:0), bs_multiplex/MonteCarlo_beta, need_run idle reset} {51}
STATEFULTASK: Entering AIStatefulTask::begin_loop(bs_multiplex) [0x19b9230]
MCSTATE : { 'After idle()' (AIStatefulTask.cxx:0), bs_multiplex/MonteCarlo_beta, need_run idle reset}(n16) -> { 'In multiplex(), locked, CA-mState, after begin_loop()' (AIStatefulTask.cxx:0), bs_multiplex/MonteCarlo_beta, idle reset} {52}
STATEFULTASK: Running state bs_multiplex / MonteCarlo_beta [0x19b9230]
COREDUMP : /home/carlo/projects/feniks/montecarlo/montecarlo/statefultask/AIStatefulTask.cxx:426: void AIStatefulTask::multiplex(AIStatefulTask::event_type, AIEngine*): Assertion `mDebugShouldRun' failed.
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.