deployer-xenomai, error when quiting

Dear all,

I am running deployer-xenomai (RTT and OCL 2.2) on powerpc. When I quit by:

 Deployer [S]> quit
I receive errors like:

 144.690 [ ERROR  ][Logger] Failed to stop thread TaskBrowser: breakLoop() returned true, but loop() function did not return after 1 second.
I can load my own component and run it in the deployer. But when I type "stop", I receive the same error as above, too.

Does anyone have any idea?

Thanks!

Lin

Ruben Smits's picture

deployer-xenomai, error when quiting

On Wednesday 19 January 2011 13:20:08 lin [dot] zhang [..] ... wrote:
> Dear all,
>
> I am running deployer-xenomai (RTT and OCL 2.2) on powerpc. When I quit by:
>
> Deployer [S]> quit
>
> I receive errors like:
>
> 144.690 [ ERROR ][Logger] Failed to stop thread TaskBrowser: breakLoop()
> returned true, but loop() function did not return after 1 second.
>
> I can load my own component and run it in the deployer. But when I type
> "stop", I receive the same error as above, too.
>
> Does anyone have any idea?

It seems like the TaskBrowser is hanging for some reason. Is your TaskBrowser
fully functional? Do you use some special configuration of the TaskBrowser?

> Thanks!
>
> Lin

Ruben

Thanks Ruben,I tried the

Thanks Ruben,

I tried the basic functions that I could see using "ls", only "stop" and "quit" returns this error.

Deployer [S]> loadLibrary("/home/lin-test-component2/libtestparam-xenomai.so")
57.088 [ Debug ][DeploymentComponent::loadLibrary] Succesfully loaded testparam-xenomai
57.092 [ Info ][DeploymentComponent::loadLibrary] Loaded component type 'MK::MK'
= true

Deployer [S]> loadComponent("test1","MK::MK")
143.412 [ Debug ][DeploymentComponent::loadComponent] Trying to create component test1 of type MK::MK
143.416 [ Debug ][DeploymentComponent::loadComponent] Found factory for Component type MK::MK
143.420 [ Info ][Thread] Creating Thread for scheduler: 1
143.423 [ Warning][Thread] Forcing priority (0) of thread to 1.
143.430 [ Info ][test1] Thread created with scheduler type '1', priority 1 and period 0.
143.446 [ Info ][DeploymentComponent::loadComponent] Adding test1 as new peer: OK.
= true
Deployer [S]>cd test1
207.011 [ Debug ][TaskBrowser] Connected output port extractedBallPosition successfully to extractedBallPosition
207.014 [ Debug ][TaskBrowser] Connected output port validPosition successfully to validPosition
Switched to : test1
test1 [U]> configure
210.397 [ Debug ][Logger] ***************************************
210.399 [ Debug ][Logger] configureHook entered
configHook
210.402 [ Debug ][Logger] configureHook finished
210.404 [ Debug ][Logger] ***************************************
= true

test1 [S]> start
218.756 [ Debug ][Logger] ***************************************
218.759 [ Debug ][Logger] startHook entered
startHook
218.762 [ Debug ][Logger] startHook finished
218.764 [ Debug ][Logger] ***************************************
= true

218.767 [ Debug ][Logger] ***************************************
218.771 [ Debug ][Logger] updateHook entered
218.774 [ Debug ][Logger] updateHook finished
218.776 [ Debug ][Logger] ***************************************
test1 [R]> isRunning
= true

test1 [R]> stop
226.067 [ ERROR ][Logger] Failed to stop thread test1: breakLoop() returned true, but loop() function did not return after 1 second.
= false

test1 [R]>

It is still running.

The component itself does not have any function, it is only a test. Which command(s) should I use to check if the TaskBrowser is fully functional?

Thanks!

Lin

Thanks Ruben,I tried the

Thanks Ruben,

I tried the basic functions that I could see using "ls", only "stop" and "quit" returns this error.

 Deployer [S]> loadLibrary("/home/lin-test-component2/libtestparam-xenomai.so")
 57.088 [ Debug  ][DeploymentComponent::loadLibrary] Succesfully loaded testparam-xenomai
 57.092 [ Info   ][DeploymentComponent::loadLibrary] Loaded component type 'MK::MK'                                                                                                                                                           
  = true                

 Deployer [S]> loadComponent("test1","MK::MK")
 143.412 [ Debug  ][DeploymentComponent::loadComponent] Trying to create component test1 of type MK::MK
 143.416 [ Debug  ][DeploymentComponent::loadComponent] Found factory for Component type MK::MK
 143.420 [ Info   ][Thread] Creating Thread for scheduler: 1
 143.423 [ Warning][Thread] Forcing priority (0) of thread to 1.
 143.430 [ Info   ][test1] Thread created with scheduler type '1', priority 1 and period 0.
 143.446 [ Info   ][DeploymentComponent::loadComponent] Adding test1 as new peer:  OK.
  = true                
 Deployer [S]>cd test1
 207.011 [ Debug  ][TaskBrowser] Connected output port extractedBallPosition successfully to extractedBallPosition
 207.014 [ Debug  ][TaskBrowser] Connected output port validPosition successfully to validPosition
   Switched to : test1
 test1 [U]> configure
 210.397 [ Debug  ][Logger] ***************************************
 210.399 [ Debug  ][Logger] configureHook entered
 configHook
 210.402 [ Debug  ][Logger] configureHook finished
 210.404 [ Debug  ][Logger] ***************************************
  = true                

 test1 [S]> start
 218.756 [ Debug  ][Logger] ***************************************
 218.759 [ Debug  ][Logger] startHook entered
 startHook
 218.762 [ Debug  ][Logger] startHook finished
 218.764 [ Debug  ][Logger] ***************************************
  = true                

 218.767 [ Debug  ][Logger] ***************************************
 218.771 [ Debug  ][Logger] updateHook entered
 218.774 [ Debug  ][Logger] updateHook finished
 218.776 [ Debug  ][Logger] ***************************************
 test1 [R]> isRunning
  = true                

 test1 [R]> stop
 226.067 [ ERROR  ][Logger] Failed to stop thread test1: breakLoop() returned true, but loop() function did not return after 1 second.
  = false               

 test1 [R]> 
It is still running.

The component itself does not have any function, it is only a test. Which command(s) should I use to check if the TaskBrowser is fully functional?

Thanks!

Lin

deployer-xenomai, error when quiting

Dear all,

I am running deployer-xenomai (RTT and OCL 2.2) on powerpc. When I quit by:

Deployer [S]> quit

I receive errors like:

144.690 [ ERROR ][Logger] Failed to stop thread TaskBrowser: breakLoop() returned true, but loop() function did not return after 1 second.

I can load my own component and run it in the deployer. But when I type "stop", I receive the same error as above, too.

Does anyone have any idea?

Thanks!

Lin