[Bug 1030] New: Indexing a struct type in the Taskbrowser triggers an assertion

Ruben Smits <[email protected]>
Newsgroups gmane.science.robotics.orocos.devel
Message-ID <[email protected]/>
http://bugs.orocos.org/show_bug.cgi?id=1030

           Summary: Indexing a struct type in the Taskbrowser triggers an
                    assertion
           Product: Toolchain
           Version: master
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: RTT
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
   Estimated Hours: 0.0


If I create a variable in the Taskbrowser based on StructTypeInfo and try to
index it (which it does not support) an assertion is triggered:

Deployer [S]> var ConnPolicy cp
 = {type = 0, init = false, lock_policy = 2, pull = false, size = 0, transport
= 0, data_size = 0, name_id =  }

Deployer [S]> cp[0]
deployer-gnulinux:
/home/rsmits/LBE/ros-workspace/orocos_toolchain/rtt/rtt/typekit/../types/StructTypeInfo.hpp:97:
RTT::base::DataSourceBase::shared_ptr RTT::types::StructTypeInfo<T,
has_ostream>::getMember(RTT::base::DataSourceBase::shared_ptr,
RTT::base::DataSourceBase::shared_ptr) const [with T = RTT::ConnPolicy, bool
has_ostream = false, RTT::base::DataSourceBase::shared_ptr =
boost::intrusive_ptr<RTT::base::DataSourceBase>]: Assertion `false && "You're
doing something new and exotic. Contact the Orocos-dev mailing list."' failed.
/home/rsmits/LBE/ros-workspace/orocos_toolchain/install/bin/deployer: line 20:
18246 Aborted                 (core dumped) $cmd $*



rttlua does not suffer from the assertion problem and gives an error as
expected:

> rtt
rtt.     rttlib.  
> cp = rtt.Variable("ConnPolicy")
> =cp
{data_size=0,type="DATA",name_id="",init=false,pull=false,transport="default",lock_policy="LOCK_FREE",size=0}
> =cp[0]
stdin:1: Variable.getMember: indexing failed, no member 0
stack traceback:
    [C]: ?
    stdin:1: in main chunk
    [C]: ?

-- 
Configure bugmail: http://bugs.orocos.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.
-- 
Orocos-Dev mailing list
[email protected]
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.