Problem with write properties

Hi,

When I try to write a property file with property of type
std::vector<double>, I have the following error.

Is there normal?

Thanks

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff723a273 in RTT::Property<double>::update (this=0x6bc560,
orig=...) at
/home/pierre/orocos/kul-ros-pkg/orocos/rtt/rtt_2.0/rtt_2.0-git/rtt/Property.hpp:352
352 _value->set( orig.rvalue() );
(gdb) bt
#0 0x00007ffff723a273 in RTT::Property<double>::update (this=0x6bc560,
orig=...) at
/home/pierre/orocos/kul-ros-pkg/orocos/rtt/rtt_2.0/rtt_2.0-git/rtt/Property.hpp:352
#1 0x00007ffff723a007 in RTT::Property<double>::update (this=0x6bc560,
other=0x6ee230) at
/home/pierre/orocos/kul-ros-pkg/orocos/rtt/rtt_2.0/rtt_2.0-git/rtt/Property.hpp:306
#2 0x00007ffff71d8c73 in RTT::updateProperties (target=..., source=...)
at
/home/pierre/orocos/kul-ros-pkg/orocos/rtt/rtt_2.0/rtt_2.0-git/rtt/PropertyBag.cpp:573
#3 0x00007ffff71d67ee in RTT::Property<RTT::PropertyBag>::update
(this=0x6f0330, orig=...)
at
/home/pierre/orocos/kul-ros-pkg/orocos/rtt/rtt_2.0/rtt_2.0-git/rtt/PropertyBag.cpp:263
#4 0x00007ffff781515f in
RTT::Property<RTT::PropertyBag>::update(RTT::base::PropertyBase const*) ()
from
/home/pierre/orocos/kul-ros-pkg/orocos/ocl/ocl_2.0/lib/liborocos-deployment-gnulinux.so.1.99
#5 0x00007ffff71d8c73 in RTT::updateProperties (target=..., source=...)
at
/home/pierre/orocos/kul-ros-pkg/orocos/rtt/rtt_2.0/rtt_2.0-git/rtt/PropertyBag.cpp:573
#6 0x00007ffff58b612c in RTT::marsh::PropertyLoader::save
(this=0x7fffffffd1af, filename=..., target=0x67ce60, all=true)
at
/home/pierre/orocos/kul-ros-pkg/orocos/rtt/rtt_2.0/rtt_2.0-git/rtt/marsh/PropertyLoader.cpp:224
#7 0x00007ffff588e0fa in
RTT::marsh::MarshallingService::writeProperties (this=0x6eab60,
filename=...)
at
/home/pierre/orocos/kul-ros-pkg/orocos/rtt/rtt_2.0/rtt_2.0-git/rtt/marsh/MarshallingService.cpp:97

Problem with write properties

On Fri, Jul 23, 2010 at 11:55 AM, Pierre ANDRE <pierre [..] ...> wrote:
> Hi,
>
> When I try to write a property file with property of type
> std::vector<double>, I have the following error.
>
> Is there normal?

Clearly not. This bug should have been fixed a while ago. I'll take a
look at it again. Does the crash disappear when no existing .cpf file
is present ?

Peter

>
> Thanks
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x00007ffff723a273 in RTT::Property<double>::update (this=0x6bc560,
> orig=...) at
> /home/pierre/orocos/kul-ros-pkg/orocos/rtt/rtt_2.0/rtt_2.0-git/rtt/Property.hpp:352
> 352                _value->set( orig.rvalue() );
> (gdb) bt
> #0  0x00007ffff723a273 in RTT::Property<double>::update (this=0x6bc560,
> orig=...) at
> /home/pierre/orocos/kul-ros-pkg/orocos/rtt/rtt_2.0/rtt_2.0-git/rtt/Property.hpp:352
> #1  0x00007ffff723a007 in RTT::Property<double>::update (this=0x6bc560,
> other=0x6ee230) at
> /home/pierre/orocos/kul-ros-pkg/orocos/rtt/rtt_2.0/rtt_2.0-git/rtt/Property.hpp:306
> #2  0x00007ffff71d8c73 in RTT::updateProperties (target=..., source=...) at
> /home/pierre/orocos/kul-ros-pkg/orocos/rtt/rtt_2.0/rtt_2.0-git/rtt/PropertyBag.cpp:573
> #3  0x00007ffff71d67ee in RTT::Property<RTT::PropertyBag>::update
> (this=0x6f0330, orig=...)
>    at
> /home/pierre/orocos/kul-ros-pkg/orocos/rtt/rtt_2.0/rtt_2.0-git/rtt/PropertyBag.cpp:263
> #4  0x00007ffff781515f in
> RTT::Property<RTT::PropertyBag>::update(RTT::base::PropertyBase const*) ()
>   from
> /home/pierre/orocos/kul-ros-pkg/orocos/ocl/ocl_2.0/lib/liborocos-deployment-gnulinux.so.1.99
> #5  0x00007ffff71d8c73 in RTT::updateProperties (target=..., source=...) at
> /home/pierre/orocos/kul-ros-pkg/orocos/rtt/rtt_2.0/rtt_2.0-git/rtt/PropertyBag.cpp:573
> #6  0x00007ffff58b612c in RTT::marsh::PropertyLoader::save
> (this=0x7fffffffd1af, filename=..., target=0x67ce60, all=true)
>    at
> /home/pierre/orocos/kul-ros-pkg/orocos/rtt/rtt_2.0/rtt_2.0-git/rtt/marsh/PropertyLoader.cpp:224
> #7  0x00007ffff588e0fa in RTT::marsh::MarshallingService::writeProperties
> (this=0x6eab60, filename=...)
>    at
> /home/pierre/orocos/kul-ros-pkg/orocos/rtt/rtt_2.0/rtt_2.0-git/rtt/marsh/MarshallingService.cpp:97
>
> --
> Pierre ANDRE
>
> 06 76 59 34 92
> pierre [..] ...
>
> Le Belvédère
> 46700 Puy l'Évêque
>
> Appt 2 Bat D
> 50 Avenue de Lespinet
> 31400 Toulouse
>
>
--
Orocos-Users mailing list
Orocos-Users [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

Problem with write properties

Hi,

The problem is still the same with the .cpf file.
Have you taken a look at it ?

Thanks

Sebastien & Pierre

Problem with write properties

Hi,

The problem is still the same with the .cpf file. Have you taken a look at it ?

Thanks

Sebastien & Pierre

Problem with write properties

On Wednesday 28 July 2010 15:01:00 seb [dot] ferris [..] ... wrote:
> Hi,
>
> The problem is still the same with the .cpf file.
> Have you taken a look at it ?

This bug has been fixed on July 12. Make sure you are using a typekit library
from after that date (in lib/orocos/types), or that you aren't loading an old
typekit from some place.

I extended the unit tests to cover your case and I can only reproduce it with
code from before July 12.

Cheers,
Peter

Problem with write properties

On Friday 30 July 2010 22:58:45 Peter Soetens wrote:
> On Wednesday 28 July 2010 15:01:00 seb [dot] ferris [..] ... wrote:
> > Hi,
> >
> > The problem is still the same with the .cpf file.
> > Have you taken a look at it ?
>
> This bug has been fixed on July 12. Make sure you are using a typekit
> library from after that date (in lib/orocos/types), or that you aren't
> loading an old typekit from some place.
>
> I extended the unit tests to cover your case and I can only reproduce it
> with code from before July 12.

I'll have to withdraw that comment. I can also reproduce it with current
mainline. I have commited the hopefully final fix to mainline on github.

Peter

Problem with write properties

Hi,

Our error is:

deployer-gnulinux: /usr/include/boost/smart_ptr/intrusive_ptr.hpp:166:
T* boost::intrusive_ptr<T>::operator->() const [with T =
RTT::internal::AssignableDataSource<int>]: Assertion `px != 0' failed.
/opt/ros/cturtle/ros/bin/rosrun: line 35: 13412 Abandon $exepath "$@"

We define a variable: PropertyBag Propertiesbag;

And after, we are trying to use:

tc->addProperty(this->getName()+"_Parameters",Propertiesbag).doc("Properties
of the slave"+this->getName());

It is the same problem if we declare Property<PropertyBag>

We have found some documentation in the component builder manual in
rtt-2.0-mainline doc but it seems to be the use of property from the
version 1 of rtt. Is there normal?

Thanks for your help.

Le 28/07/2010 15:01, seb [dot] ferris [..] ... a écrit :
> Hi,
>
> The problem is still the same with the .cpf file.
> Have you taken a look at it ?
>
> Thanks
>
> Sebastien& Pierre
>
>