ros2 / ros2_embedded_nuttx

This repository isn't actively being worked on. If you would like to take over maintainership please open a ticket on https://github.com/ros2/ros2
72 stars 34 forks source link

Publishing stops after a while (in embedded) #24

Open vmayoral opened 9 years ago

vmayoral commented 9 years ago

https://github.com/ros2/ros2_embedded_nuttx/blob/master/apps/examples/ddsimu/main.c starts publishing as soon as the other is discovered and eventually (after publishing for a while) stops.

The embedded board has still the other peer marked as discovered (checked with the !!sdisc command) however it just stops publishing. It sounds to me like a buffer issue.

vmayoral commented 9 years ago

The embedded board seems to be running out of memory:

elapsed: 3209 miliseconds to send 10 readings
elapsed: 3440 miliseconds to send 10 readings
elapsed: 3297 miliseconds to send 10 readings
elapsed: 3296 miliseconds to send 10 readings
elapsed: 3613 miliseconds to send 10 readings
elapsed: 3547 miliseconds to send 10 readings
elapsed: 3233 miliseconds to send 10 readings
elapsed: 3399 miliseconds to send 10 readings
elapsed: 3290 miliseconds to send 10 readings
elapsed: 3286 miliseconds to send 10 readings
elapsed: 3226 miliseconds to send 10 readings
elapsed: 3383 miliseconds to send 10 readings
elapsed: 3199 miliseconds to send 10 readings
elapsed: 3484 miliseconds to send 10 readings
elapsed: 3115 miliseconds to send 10 readings
mm_malloc: Allocation failed, smm_malloc: Allocation failed, size 176
mm_malloc: Allocation failed, size 176
mm_malloc: Allocation failed, size 176
mm_malloc: Allocationi zfea i3l5e2d
,db_alloc_db: out of memory!

iDDS_DataWriter_write({22}): out of memory for data (324 bytes)!
z
em m1_7m6a
lmlmo_cm:a lAllolco:c aAtliloonc aftaiiolne df,a isliezde,  1s1i2z
em m1_7m6a
lmlmo_cm:a lAllolco:c aAtliloonc aftaiiolne df,a isliezde,  1s6i0z
eelapsed: 2969 miliseconds to send 10 readings
 m1m7_6m
amlml_omca:l lAolcl:o cAaltlioocna tfiaoinl efda,i lseidz,e  s1i6z0e
 m1m7_6m
amlml_omca:l lAolcl:o cAaltlioocna tfiaoinl efda,i lseidz,e  s1i6z0e
 m1m7_6m
amlml_omca:l lAolcl:o cAaltlioocna tfiaoinl efda,i lseidz,e  s1i6z0e
 m1m7_6m
amlml_omca:l lAolcl:o cAaltlioocna tfiaoinl efda,i lseidz,e  s1i6z0e
 m1m7_6m
amlml_omca:l lAolcl:o cAaltlioocna tfiaoinl efda,i lseidz,e  s1i6z0e
 m1m7_6m
amlml_omca:l lAolcl:o cAaltlioocna tfiaoinl efda,i lseidz,e  s1i6z0e
 m1m7_6m
amlml_omca:l lAolcl:o cAaltlioocna tfiaoinl efda,i lseidz,e  s1i6z0e
 m1m7_6m
amlml_omca:l lAolcl:o cAaltlioocna tfiaoinl efda,i lseidz,e  s1i6z0e
 m1m7_6m
amlml_omca:l lAolcl:o cAaltlioocna tfiaoinl efda,i lseidz,e  s1i6z0e