Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The DATA_MAX_SIZE parameter is set too large, causing memory allocation errors #28

Open
tiantian500 opened this issue Sep 14, 2023 · 1 comment
Assignees
Labels
question Further information is requested
Milestone

Comments

@tiantian500
Copy link

Hi,

thanks for the awesome examples.

i tried to create a PointCloud240m.msg,and change uint32 DATA_MAX_SIZE=251658240.
when i run ./pcl240m_talker
error i have got:
'''

terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted (core dumped)

'''
it seems DATA_MAX_SIZE is set too large

Any idea how to publish the pcd file with 240M ?

@ZhenshengLee
Copy link
Owner

  1. please post your code as a branch of your fork.
  2. please use the gdb to debug your code to get call stack.
  3. may related to https://stackoverflow.com/questions/30171528/how-to-dynamically-allocate-big-memory-like-10-g-using-new-operator-in-c-on

thanks for your report!
please star it if you like.

@ZhenshengLee ZhenshengLee self-assigned this Sep 14, 2023
@ZhenshengLee ZhenshengLee added the question Further information is requested label Sep 14, 2023
@ZhenshengLee ZhenshengLee added this to the doing milestone Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants