[Rock-dev] [rock] #49: typlib ruby can not access fields of type char[]

rock noreply at opendfki.de
Wed Sep 21 18:20:52 CEST 2011


#49: typlib ruby can not access fields of type char[]
---------------------------+-----------------------------------
Reporter:  Alexander.Duda  |      Owner:  rock-dev-mailing-list
    Type:  defect          |     Status:  new
Priority:  major           |  Component:  base
Keywords:                  |
---------------------------+-----------------------------------
 to reproduce the error use the following code and the attached log file:

 require 'orocos/log'
 log = Orocos::Log::Replay.open(ARGV)

 def display(object)
      if object.kind_of?(Typelib::CompoundType)
       object.each_field do |name,value|
         puts name
         display(value)
       end
      end
 end

 log.taskmon_front.stats.connect_to do |data,_|
     display(data)
 end

 log.step

 Backtrace:

 /home/aduda/avalon/install/lib/ruby/1.8/typelib.rb:2046:in `to_string':
 invalid conversion to string (RuntimeError)
         from /home/aduda/avalon/install/lib/ruby/1.8/typelib.rb:2046:in
 `to_ruby'
         from /home/aduda/avalon/install/lib/ruby/1.8/typelib.rb:2079:in
 `to_ruby'
         from /home/aduda/avalon/install/lib/ruby/1.8/typelib.rb:1056:in
 `get_field'
         from /home/aduda/avalon/install/lib/ruby/1.8/typelib.rb:911:in
 `each_field'
         from /home/aduda/avalon/install/lib/ruby/1.8/typelib.rb:999:in
 `each_field'
         from /home/aduda/avalon/install/lib/ruby/1.8/typelib.rb:999:in
 `each'
         from /home/aduda/avalon/install/lib/ruby/1.8/typelib.rb:999:in
 `each_field'
         from /home/aduda/avalon/install/lib/ruby/1.8/typelib.rb:910:in
 `each_field'

-- 
Ticket URL: <http://rock.opendfki.de/ticket/49>
rock <http://rock.opendfki.de>
rock: the robot construction kit


More information about the Rock-dev mailing list