[openrtm-users 00594] shutdown処理についてのお伺い

Akio Uda uda-axa @ necst.nec.co.jp
2008年 9月 3日 (水) 19:25:33 JST


いつも御世話になります。宇田@NECシステムテクノロジーです

度々申し訳ありません。

OpenRTM-aist-0.4.2 環境において、RTC::Manager の shutdown() を
呼んだ場合に、shutdownORB() の処理で SystemException が発生する
ようなのですが、omniORB の設定で注意すべき点などはございますで
しょうか?

OpenRTM は Fedora 一括インストール・スクリプトを使っております。
再現環境を添付致しますので、もし使用法などに問題がありましたら
ご指摘頂ければ幸いです。

よろしくお願い申し上げます。



 ShutdownComp.h
┌─────────────────────────────────┐
│class ShutdownComp  : public RTC::DataFlowComponentBase           │
│{                                                                 │
│  ・・                                                            │
│ private:                                                         │
│  RTC::Manager* m_manager;                                        │
│  int           m_count;                                          │
│};                                                                │
└─────────────────────────────────┘


 ShutdownComp.cpp
┌─────────────────────────────────┐
│ShutdownComp::ShutdownComp(RTC::Manager* manager)                 │
│    // <rtc-template block="initializer">                         │
│  : RTC::DataFlowComponentBase(manager),                          │
│    ・・                                                          │
│    m_manager(manager),                                           │
│    m_count(10)                                                   │
│    ・・                                                          │
│{                                                                 │
│  ・・                                                            │
│}                                                                 │
│                                                                  │
│                                                                  │
│RTC::ReturnCode_t ShutdownComp::onExecute(RTC::UniqueId ec_id)    │
│{                                                                 │
│  m_count--;                                                      │
│  cout << "count douwn " << m_count << endl;                      │
│  if(m_count==0){                                                 │
│    cout << "shutdown start" << endl;                               
│    m_manager->shutdown();                                  …… ☆
│    cout << "shutdown end" << endl;                                 
│  }                                                               │
│  sleep(1);                                                       │
│                                                                  │
│  return RTC::RTC_OK;                                             │
│}                                                                 │
└─────────────────────────────────┘


 rtc27492.log
┌─────────────────────────────────┐
│・・                                                              │
│manager Manager::shutdown()                                       │
│manager Manager::shutdownComponents()                             │
│manager Manager::shutdownComponents()                             │
│manager Manager::unregisterComponent(ShutdownComp0)               │
│manager Unbind name: ShutdownComp0.rtc                            │
│naming_svc NamingManager::unbindObject(ShutdownComp0.rtc)         │
│manager Manager::shutdownNaming()                                 │
│naming_svc NamingManager::unbindAll(): 0 names.                   │
│manager Manager::shutdownORB()                                    │
│manager No pending works of ORB. Shutting down POA and ORB.       │
│manager Caught SystemException during root POA destruction          
│manager Caught CORBA::SystemException during ORB shutdown   …… ☆
│・・                                                                
└─────────────────────────────────┘


zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
z  宇田 安規男                                                        z
z  NECシステムテクノロジー株式会社  エンベデッドソフトウェア事業部  z
z  神奈川県川崎市中原区下沼部 1753  NEC 玉川事業場 S棟26F              z
z  〒 211-8666   Tel: 044-435-5657  Fax: 044-435-5629                  z
z  E-mail: uda-axa @ necst.nec.co.jp                                     z
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz


-------------- next part --------------
テキスト形式以外の添付ファイルを保管しました...
ファイル名: test_Shutdown.tar.gz
型:         application/x-stuffit
サイズ:     154269 バイト
説明:       無し
URL:        <http://www.openrtm.org/pipermail/openrtm-users/attachments/20080903/bc17d6c3/attachment-0001.sit>


openrtm-users メーリングリストの案内