!malloc size exceeds heap while creating publisher

2 posts / 0 new
Last post
Offline
Last seen: 4 years 8 months ago
Joined: 03/19/2020
Posts: 1
!malloc size exceeds heap while creating publisher

Hi,

I am using nodejs rticonnextdds-connector. while the application is starting up I am getting the following issue. Pls guide.

[D0347|Pub(80000008)|T=TEST_DATA|CREATE Writer] RTIOsapiHeap_allocateBufferAligned:!malloc size exceeds heap (4294934784 > 2147483647)
REDAFastBufferPool_growEmptyPoolEA: !allocate buffer of 68719444224 bytes
[D0347|Pub(80000008)|T=TEST_DATA|CREATE Writer] REDAFastBufferPool_newWithNotification:!create fast buffer pool buffers
[D0347|Pub(80000008)|T=TEST_DATA|CREATE Writer] PRESTypePluginDefaultEndpointData_createWriterPool:!create writer buffer pool
[D0347|Pub(80000008)|T=TEST_DATA|CREATE Writer] DDS_DynamicData2TypePlugin_on_endpoint_attached:ERROR: Failed to create writer pool
[D0347|Pub(80000008)|T=TEST_DATA|CREATE Writer] PRESPsService_enableLocalEndpointWithCursor:failed to attach endpoint to typePlugin
[D0347|Pub(80000008)|T=TEST_DATA|CREATE Writer] PRESPsService_enableLocalEndpoint:!enable local endpoint
[D0347|Pub(80000008)|T=TEST_DATA|CREATE Writer] DDS_Publisher_create_datawriter:ERROR: Failed to auto-enable entity
DDS_FactoryXmlPlugin_createDataWritersWithNamesI:!create DataWriter
DDS_FactoryXmlPlugin_createDataWriters:!create DataWriters from XML DataWriter "::MyParticipantLibrary::MyParticipant::MyPublisher::TEST_DATA_Writer"
DDS_FactoryXmlPlugin_createPublishers:!create DataWriters from XMLPublisher "::MyParticipantLibrary::MyParticipant::MyPublisher"
DDS_FactoryXmlPlugin_createParticipant:!create Publishers from XML Participant "::MyParticipantLibrary::MyParticipant"
DDS_DomainParticipantFactory_create_participant_from_config_w_paramsI:!create DomainParticipant from configuration "MyParticipantLibrary::MyParticipant"
DDS_DomainParticipantFactory_create_participant_from_config:!create participant with default parameters
RTIDDSConnector_newI:!new participant
RTIDDSConnector_EntitiesLookupList_delete:RTIDDSConnector

 

Regards

Krishna Murthy

AttachmentSize
Plain text icon ddswriter_error.txt1.72 KB
Organization:
Offline
Last seen: 1 month 3 weeks ago
Joined: 10/22/2018
Posts: 91

Hi,

I believe your issue is related to your type. Do you have any unbounded sequences or strings in your XML type definition?
If so, you have two optoins:
- Give the unbounded types a bound (i.e., if you know that the string will never be longer than 1KiB, bound it to that).
- Set the following QoS in your XML
 

<datawriter_qos>
  <property>
    <value>
      <element>
        <name>dds.data_writer.history.memory_manager.fast_pool.pool_buffer_max_size</name>
        <value>4096</value>
      </element
     </value
   </property

 </datawriter_qos>
Note that in the above QoS snippet, i am setting the max_size to 4096, this is just an example, you will need to decide what you want the max size to be.

Sam